Writing of multiple orders with communication series

Hello

I'm quite familiar with the basics of LabVIEW, but I'm new to communication series with VISA. I had no chance of finding a solution to my problem, but it is similar: http://forums.ni.com/t5/LabVIEW/VISA-read-write-to-serial-port-Unable-to-impelement-multiple/td-p/93....

I am able to send a command and read the response with the device, but I can't send several commands to change the settings of the device. For example, I send 'F' to the device to read the current operating frequency and read the response (22). But if I send 'f' to the device to change the operating frequency, read the answer ('send frequency... (''), then send my desired frequency (120), I get no response.

The default frequency at the opening of the port of the unit is 22. I would like to change the frequency to 120, then read the current operating frequency to ensure that it was indeed changed.

I'm confused about the format of data to be sent in LabVIEW. In MatLab, it works fine if I send 'f' as a character (fwrite), followed by the desired integer frequency. However, in LabVIEW, it seems that the number I want to send is not read correctly. I have tried to cast the integer to a string and read that the slash code, hexadecimal, normal code, all I could think about.

Help, please

This give a try. Press the button "Prepare", followed by the 'Set Freq' button. You need to configure your serial port properly first well.

Tags: NI Software

Similar Questions

  • Communication series with Mettler Toledo 205 XS

    Hey guys,.

    I'm in the process of establishing a communication series between my PC and a microphone Mettler Toledo (XS-205) balance. The Balance is connected via an RS 232 cable to the adapter USB TU-S9, then to the PC. I do not see the port in the MAX of NOR and via the test Panel, I put the configuration of the communication according to those of my balance:

    BD rate: 9600

    Bit\Parity: 8 / no

    Stop bits: 1

    Handshake: no

    EndofLine: LF

    CharSet: Ansi\Win (only within the balance)

    Continuous mode: OFF ("");

    now, the fact is that if I try to query the command * IDN? \n I get as a response

    1: write operation (* IDN? \n)

    Back County: 6 bytes

    2: read operation
    Back County: 17 bytes
    S\sS\s\s\s-0.0006\s\sg\n

    with an error in the data returned (Hex 0xBFFF006C). I also tried to use the script provided by the site OR Mettler-Toledo scales, but I get all the data and at the end of the routine, I get error VISA: (Hex 0xBFFF0015) timeout expired before the operation is complete.

    Everyone as an indication of what's going on? Thank you much for the help

    See you soon!

    Thank you guys for the quick responses.

    my mistake. Mettler Toledo balances does not accept the SCPI standard commands, but they have their own defined standardized command.

    Thanks anyway

  • Communication series

    Hello

    I'm using communications series VISA in my vi to communicate with the hardware. My laptop has two COM COM1 and COM2 ports. I'll be using VISA configure a serial port to set specific Com Port.

    COM port will be indicated by using the name of resource VISA. I should know the status of com before another operation takes place. IE say I chose com2 on behalf of the resource for the COM port configuration, but I connected the hardware serial cable on COM1. How can I know the difference? I tried the line of the error checking, but unfortunately his does give no error since the COM1 is present in the laptop.

    Thanking you,

    sushmith

    Hello

    The idea would be to write * IDN? (or you can select the order based on the expected answer your device connected to COM port) command individually, to the COM port

    This should return the identification of the unit (or a known response) of the device connected to the COM port when trying to read the data for the number of available bytes to the port.

    If the returned string is empty (or not the expected answer) then that would mean that no device is connected to the COM port.

  • Web interface and communication series

    I just started reading on the user Web interface. It seems useful, but I could not, how do I connect an application user Web interface with some series/USB instrument, for example. Is it possible to have VISAS screws normals and other toolkits within the user Web interface? Or maybe, it would be possible to develop a stand-alone application using LabVIEW (and all the screw and tool boxes that I am used to), and then import into the user Web interface?

    Thank you

    Marcelo

    That's basically correct - LabVIEW code cannot be imported and you can not directly interface with hardware - and is the only authorized communication with web services (LabVIEW or otherwise).

    So if you have any material you want with the Web Interface Builder interface, you will need to build a web service of LabVIEW that outlined some of the features and then consuming the Builder UI with the functionality of the Web Service to import.

  • Save multiple pictures with a dialogue box

    Hello

    I try to add a feature to a program of mine to record multiple images with a single click, but I get these ridiculous errors saying "file not found" to "Open/create/replace the file" function, which is set to create. Of course, the file is not found, I'm trying to create it!

    Can someone look at my code and tell me what is the problem? Thank you!

    Hey manufacturer.

    I took a glance at your VI and it seems to me that the problem is in the Express VI to file dialog box, you choose a location to save the files, but this situation is never created. So if I want to save my images in TestFolder, it seems that your intended functionality is for images to be stored in a subfolder called 'Images' (or whatever the user enters a name in the file dialog box) so that the final result are images being recorded TestFolder/Images.

    If this is the case, you can simply add a node function to create a folder in your block diagram (look in the programming > e/s from file > Adv IO file for this). You can wire directly from the output of selected path in the dialog box file to the path of the node Create Folder entry. I recommend you to place this node in line with your existing code in order to ensure that the creation of files ends before you try to save files in this location.

    If, instead, you want the user to select an existing folder and save images directly into that, simply have the click of the user the "Current folder" button in the dialog box of the file, rather than enter a new name and click Save.

    I hope that helps and let us know if you have any other questions.

  • Management communication series through liaison camera card

    I have a card OR cameralink and want to handle the integration of a camera time using the controls of the camera series.  Is it possible to place orders of series using other software like MatLab (heresy I know)...

    My experience using MATLAB is absent, but if you can call the C API for IMAQ, then you should be able to do.  You can take a look at the help of the reference of the NOR-IMAQ function and specifically examine the functions of Communication series under features low level.

  • How can I send docs to multiple signatories with different addresses on sign of Echo?

    How can I send docs to multiple signatories with different addresses on sign of Echo?

    Hello

    In EchoSign, you simply have to add e-mail addresses to each signatory in the box 'To' and set the saved order. If you have to close, you must enter your last e-mail address and check the box "I need to sign. The shape that you send must have signature of blocks for each signatory but apart from that, there are other special rules or the necessary implementation. If you continue to experience problems try this, detail your problem here and I'll do what I can to help.

    See you soon!

    EchoSign-Rob!

  • My ipod video 5th generation won't play of smart playlists in order with 12.4 itunes, itunes can not remember how to sort things either. When you going to solve the problem?

    My iPod video 5th generation won't play of smart playlists in order with 12.4 iTunes, iTunes can not remember how to sort things either.

    When you going to solve the problem?

    Can I do to solve this problem?

    Use the view of songs to set the order you want. Right-click on the name of the playlist in the left sidebar, and then select copy to Play Order in the context menu. Sort the list on the left most column of numbers, or use view > sort by > order of Playlist. Device synchronization.

    TT2

  • C50D satellite - black screen with code series

    I just changed on my computer and it came with a black screen with a series of code

    series of code?
    What is the text that you see?
    If you google code, you can find the solution.

  • Multiple accounts with the same email

    I have an account I can not connect to after my daughter it has disconnected. I tried to reset the password, but I get an email on my account to other girls: S (same email)
    I guess I have 3 accounts with the same email, but only the latter can created recover!
    Not even my main Skype has a chance

    I'm not 100% sure but it is most likely that I used the same email to whoever I have to reset - what can I do?

    In fact, this morning I managed to log on to the account of an iPad without frills but the pc refuses to sign ^ ^ ^? "Skype cannot connect" - what is happening?

    I also discovered that I could connect via a browser, but not via the Skype program... So I uninstalled and installed again and it's working now...
    I've now changed the email so I have 3 accounts with the same email address as Skype seems not to be able to manage multiple accounts with the same email!

  • Satellite Pro A - screen hinges compatible with M series?

    Anyone know if the hinges of the screen for a series of Satellite would be compatible with M series?

    See you soon

    Hey Buddy

    I think that no one here is able to answer your question because it s only a user to user forum and that you won't find here an authorized service provider or cell phone technician sorry!

    But let me give you a little advice: contact the vendor of services authorized in your country. If you call them it only takes a few minutes and I think they can answer your question.

    Good luck!

  • That engine run time is necessary for communication series build Setup

    That engine run time is necessary for communication series build Setup

    You need NI-VISA. If you are using a National Instruments serial port card or device, then you also need OR Serial. All software can be found in the Technical Support page.

    Obviously, you have also the runtime for the software development environment itself as well. For example, for LabVIEW, you need to the LabVIEW Run-Time.

  • How to rename multiple files with the extension in windows xp

    How to rename multiple files with extension in windows XP.

    1. If you want to simply rename the extension, open a run window (Windows Logo key + R), type cmd and press ENTER. Using the CD (Change Directory) command, navigate to the folder in question. Now, type ren *.mp3, *.mp4, and press enter (note the two spaces in the command). Note, rename mp3 MP4 is just an example of the command.

    2. If you want to rename files, download the 32-bit version or 64-bit Bulk Rename, here http://www.bulkrenameutility.co.uk/Main_Intro.php

  • Cannot send to multiple addresses with outlook express

    Cannot send to multiple addresses with outlook express

    Hello
    even if you weren't too fourth to come up with more details on this issue, guide for the question on Outlook express here.
    If you have more specific questions, please include more details.
    http://support.Microsoft.com/kb/835830
    B Eddie

  • 3070 connectivity problem - multiple Accespoints with the same SSID

    Hi all

    I have a problem with my printer HP Deskjet 3070 printer all-in-one.

    I have 2 accespoints with the same SSID for better coverage of the pit of the wireless home network.

    For some reason any my HP printer keeps losing wireless connection when the 2 accespoints are rising.

    I use a different frequency for the 2 accespoints channel and it works fine with all other wireless devices.

    I did that a DHCP are used, r, but in fact it doesn't matter because the printer uses a static IP (192.168.0.3)

    When the two AP is the printer loses wirelesss connectivity. (The blue led will blink)

    If I take one of the accespoints offline, the printer becomes available.

    Is this a problem on my end or a problem of software/firmware printer?

    Kind regards

    -eth0

    Lol this is not very clear to me?

    But it is very good that we continue here:

    http://h30499.www3.HP.com/T5/printers-DeskJet/3070A-connectivity-issue-multiple-Accespoints-with-the-same-SSID/TD-p/5865699#.UKNyiYatlI1

Maybe you are looking for