LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with rs232

Hi, my problem is that I’am using rs232, but not had much experience with rs232 in labview. I use the rs232 port to send commands to an instrument to control what happening all done through labview. What I’am wanting to do is when data strings are sent back, I want to be able to retrieve a variable from the outputted data string. So for instance if I get a string with a voltage data value within it I want to be able to remove the voltage value and throw away the rest. Can anybody advise me or give me any examples of how to do this. Any help greatly appreciated.

Thanks Stuart
0 Kudos
Message 1 of 5
(3,182 Views)
Hi:
see the attached VI, which explains use of serial commands and string manipulation functions. Configure the serial ports as per your application and change the commands as needed for communicating with your device.
Message 2 of 5
(3,182 Views)
Hi, Thanks, but can u save it as an earlier version for as i forgot to say i'm using labview 6.02, due to upgrade labview very soon.

Thanks Stuart
0 Kudos
Message 3 of 5
(3,182 Views)
Look for Extract Numbers vi under LabVIEW string examples to get the voltage.
0 Kudos
Message 4 of 5
(3,182 Views)
Stuart,
Here is the VI saved in 6.0.2, with the VISA subVI modified to match the one used in 6.1 version.

Zvezdana S.
Download All
0 Kudos
Message 5 of 5
(3,182 Views)