Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

serial labview examples

Hi, i'm wanting to talk to an instrument (AERA ROD-4) which uses rs 232c. I have a program that i use in labview to do this, but in general i am having trouble just talking to it. it use this sort of command structure stxKKBBBparameterCR. Has any body got any good examples serial communcation labview programs, or examples of the commands used (any commands just so i have an idea)or any advise in general. Please can any examples be in labview 6.02. any help much appreciated.

Thanks stuart
0 Kudos
Message 1 of 4
(3,997 Views)
Hi,

You can get some entry point information on serial communication at the serial support site:

http://www.ni.com/support/serlsupp.htm

Here are some useful links:

Serial Communication Starting Point
Loopback Test for Serial Port

Adding Termination Characters to a String for Serial Communication in LabVIEW

We recommend
using VISA for serial communication, since it makes your VI easily protable to other buses if needed. Serial communication using VISA is very simple. Just set the port configuration using the VISA initialize VI and then Read and write using the VISA VIs.

The data used by the VISA VIs is typed as string. This doesn't mean that the serial or VISA VIs are limited to sending visible ASCII characters. You can use the different display modes or the Binary array to string VI to send binary data.

Hope this helps.

DiegoF
National Instruments.
0 Kudos
Message 2 of 4
(3,996 Views)
Hello,

I have also a ROD-4 unit and we are also searching for a solution to talk to the ROD-4 using a serial link.
But till now I have no solution.
Here is my VI but it won't work!

I keep searching.
Greetz.
0 Kudos
Message 3 of 4
(3,964 Views)
Open up your block diagram and right click on your string constant that contains the text \0201SFD50.5\r, then select '\' Codes Display. You will notice that your string will change to \\0201SFD50.5\\r. If you are not trying to send the ASCII character '\' remove the additional slashes. This is the difference between an ASCII character display and ASCII code display.

-Josh
0 Kudos
Message 4 of 4
(3,956 Views)