communication series with VISA

I'm trying to communcate with a power supply via a serial connection.  Communication works very well in Hyperterminal and putty, but I can't seem to run in labview.  It times out when trying to read the data.

Hyperterminal parameters are the basis of everything and it works fine

9600 baud

8 data bits

no parity

1 stop bit

no flow control

Send "VOLT?" with CTRL + J for line break

Returns under the voltage at the output of the UUT.

I wonder if I send you the incorrect order in labview.  Any help would be great.  I have attached the VI, it's my first try at comms series so it's pretty baisc and I do not know I'm missing something

You are not sending the line break.  You send only "Volt"?

Make a right click on the string constant, visible display style and make \codes show.  Then enter \n at the end.  Now you send VOLT? with the line break.

In addition, remove the shift regsiters on the son of reference and error.  (A single time-out error will keep your VI to run again until you stop and restart the VI)

And put a close VISA outside the loop.

Tags: NI Software

Similar Questions

  • Communication series with visa, need help

    IM G-codes(which is a string in this case) sending to my Board of Directors, Im using the structure of the event choose sent a code that, when sending as string constants program runs without problems, but when Im getting the format string to string program dosnt sent the code in this case, but its present when events change (so in other cases it works too previous)

    problem can be seen in the performance of climax too

    I will ask once again: do you need to send a character of endpoint with your order?

    Your 4 character button events 'home' have all orders ending in the line.  Other events are not.  My guess is that the unit does not recoginize newline character he received a valid full command until he got the line.

    PS: Those who touch terminals that belong in their boxes of the discipline concerned.

  • 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 with ANSI emulation

    I have a mass flow of gripper controller that uses a connection set to read/write.  I have the connection works in hyperterminal, but we are updating our computers and do not use more serial ports.  I have a cable USb232 and now trying to establish the connection through labview.  There are several required specific hyperterminal settings to get the device to communicate that I can't find in the settings of labview.  The device requires:

    1. 19200 bauds, 8 bits, no parity, no flow control (not a problem, can adjust these settings)

    2 terminal emulation must be set to ANSI

    3. under the ASCII Configuration

    Send line with line breaks ends is NOT enabled

    The echo typed local characters is turned on

    Add RSS to finish lines is running

    When I connect through the serial.vi base, I get a time-out error and do not have all the data of the device.  In hyperterminal, the news on the device are questioned by sending 'A' to the device.  Any help for this communication device would be appreciated.

    Thank you

    Problem solved, I just to activate the writing of the end and read with characters of endpoint and the hexadecimal value on D.

  • Moxa Ethernet series with Visa showing strange characters

    Before going to the Moxa with these questions, I was hoping if someone could easily say "I saw this before and this is probably what is wrong." I use a Moxa device which is just ethernet to serial (NPort 5150). I can say I have everything match correctly in terms of run configuration, and I'm just a loopback test. However the data have some weird characters at the beginning, when I read again. They seem to spend as I add text at the beginning of my thong and maybe has something to do with the first space in the string? Someone has seen something like this before with Moxa or other ethernet equipment series? The device has a few options of delimitter but now that they are not chosen so I don't think that's the question.

    They have a DLL with functions I'd like to try in case they do something special under the hood, but I'm really trying to avoid writing a wrapper around a bunch of UIBC if native G will do. My next step would be to one of their example programs C compile and write data to see if I get the same results as my LabVIEW application.

    Marco, your question about the serial interface made me think, because Yes it is 232 but has 485 capabilities...

    Maybe that I just need to sleep on it, but I came this morning and looked at the settings. The default type is 485 serial device. I switched it to 232 and it worked (big surprise...).

    Thank you for encouraging my brain to start working again.

  • Communication series with Miteq switching system

    Hello

    I am trying to contact a Miteq redundant switching system 1:8 for high power amplifier.

    My VI gives me an error of framing. I have already read the thread on the mistake of framing posted here and made sure my port is configured to match the settings of the device.

    (Data bits - 7; Parity - same, baud rate (9600) equipment is silent about data flow and the stop bits, (I guess NONE and 1.0 respectively)

    I use a laptop with a USB port. I have a USB-serial cable of NOR. I use an IC -? 855 RS232-RS485 converter because the system is RS485. I already checked the pinout for the port that I use a fact a connector corresponding Tx + in the converter with Rx +; TX - Rx-; and the other two wires are connected as well.

    I opened MAX and tried to write directly to the VISA driver, but I get an error as well.

    I do not know if the manual is just, he is a former switch and someone could have changed the port connections.

    Y at - it a trick to know what is the link?

    I'd appreciate any thoughts here

    Thank you very much

    Hi Jeff,

    I can't open the link you sent, but we finally thought that the problem is the connection of broaching. Me not according to the manual or any document we have.

    Sorry I did not before.

    Thank you very much for answering!

  • 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.

  • 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.

  • Write to serial with VISA

    Hello everyone,

    I am now looking for some time to solve my problem, but I couldn't find anything by working for me. I try for the first time to implement a communication series through the VISA screws to my arduino uno card. I was following the most simple of examples that I could find, but nothing has worked so far. I have attached my minimal example. I thought it should work really that simple...

    The thing is:

    -Serial with my arduino works in principle. He does what he must do by using the Serial monitor to come with the Arduino IDE

    -With the help of my vi, that nothing happens

    -The number of return always 0. I thought that it should show the actual size of the buffer. If my conjecture is that the vi is simply not written anything in the buffer.

    I know that there are tons of other articles on serial communicationvia visa between labview and ardunio, but I could understand them just how I use the screws should actually work.

    Anyone can see my mistake?

    OK, nevermind. Of course, just after the announcement, I tried the thing that has helped: you can't have the Arduino IDE and LabView open at the same time. Both try to access the same port COM does not work... As I see it, it's my problem. Sorry for the gene :-)

  • 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.

  • Communication problem with the printer

    I'm trying to print on a printer Lexmark 1200 series of a Toshiba laptop. Laptop computer identifies the printer is the printer is displayed in the control panel. Whenever I try to print even if I get a message that says: "communication problem with the printer. Any help is appreciated.

    Hi Nick,

    1. What is the exact model of the printer number?

    2 is this problem limited to any specific application such as Internet Explorer, Microsoft Word etc.?

    It seems that some of the 1200 Series printers is not compatible with Windows 7. You can enter the number of exact model and research for more information.

    http://www.microsoft.com/en-us/windows/compatibility/win7/CompatCenter/ProductViewerWithDefaultFilters?TempOsid=win7&Locale=en-us&TextSearch=lexmark%2B1200%2B&Type=Both&CurrentPage=0&TotalPages=1&ShowCriteria=0&SortCriteria=Relevance&Compatibility=Unknown&LastRequested=14

    If the printer is compatible and you are always faced with the question, you can proceed with the steps.

    Method 1:

    Run the troubleshooter and update printer drivers.

    Solve printer problems

    http://Windows.Microsoft.com/en-us/Windows/printer-problems-in-Windows-help#fix-printer-problems=Windows-7&V1H=win8tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    Method 2:

    If the problem persists. I suggest you perform the steps described in the article.

    "Communication not available" or "Document Failed to Print" Error Message and the print job hangs in the print queue

    http://support.Lexmark.com/index?page=content&ID=SO4473&locale=en&UserLocale=en_US

    Note: Antivirus software can help protect your computer against viruses and other security threats. Have a computer without any security software can cause a potential danger to your computer. Therefore, make sure to activate the firewall and security software once you are finished with the test.

    Hope this information helps. Response with status so that we can help you.

  • How to convert a table control connects with VISA

    As VISA can accept only string buffer, how can connect us a "Control Panel with VISA?


  • HEIDENHAIN ND-287 connect with VISA

    Hej

    I am a student and I want to connect the ND 287 of heidenhain with VISA and labview is it possible?


  • play sounds temporary and file of your choice when reading data with VISA functions?

    Hello.

    I read the function of reading data with VISA and then I use as multiple functions to display data on the graph. everything is OK.

    now, I want to play a sound specified (like a song in my desired folder 3s) signal which cross above the specified value range. then after the desired time, it will wait still new cross above the specified value and this repetition of the procedure until I stop the program.

    Data MCU is from and it does not stop when his game system and what system of incoming data for this part (his play) will ignore them pending that outdated.

    I use this for reading data and part VI mentioned which belongs to her is empty and I don't know what I have to do?

    altougth I use an another while loop for his apartment because I want to save time CPU.

    Thank you.

    I recommend you do the data type of the notifier a cluster that contains a path and a numeric (double).  The path indicates the reader what file to play.  Digital is the duration.

    Now in a way a bit complicated, but really good stop your second loop.  Do not use a second notification.  Instead, send the normal notification but not use a path for the path in the cluster.  Your second loop can write a check for the path of a not and stops when that is received.

  • 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.

Maybe you are looking for