Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

i am unable to read from serial port using rs232.

i want to collect data from an equipment which communicates through rs232. i am using visa. my code has file open, read n close with serial port and read from serial port. my data files are blank. i m sure that either i havent configured properly or there is a problem with my cde as the software along with equipment displays the graph whose data i require.
0 Kudos
Message 1 of 3
(3,415 Views)
Have you duplicated the procedure with a program like hyperterm or VISAIC? Also, some instruments require a command to be received prior to sending data. Do you need to add a VISA write before the read?
0 Kudos
Message 2 of 3
(3,415 Views)
One of the most common problems in serial communication is the need for an adequate timing: how much time is expected your device to spend before answering? Have you put and adequate pause in your code before reading from the serial port?

Hope this helps
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 3
(3,415 Views)