Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with reading on basic_serial_write_read.vi

Hi i have a DSLAM connected console through an RS232. I am able to connect and navigate fine through a hyperterminal connection but unable to get a simple read and write to operate smoothly. I have watched the execution throughout the block diagram and see that the problem is with the VISA read. I have also pulled up NI Spy and see that the error is with VISA read.
 
Thanks in advance.
 
Jon
 
I attatched the Spy file and the Vi that i am trying to use.
 
 
 
 
 
 
 
 
Download All
0 Kudos
Message 1 of 2
(3,053 Views)
For one thing, you modified the shipping example incorrectly. You changed the 'String to Write' to Normal display from '\' Codes Display. That would have been fine if you had added something on the block diagram to add termination character (i.e. a CR or LF to your command string). The shipping example uses a '\r\n (CR\LF) and this is what Hyperterminal does for you. The problem is not at all with the VISA Read. It is because you are not sending the correct data with the VISA Write, do you get nothing back.
0 Kudos
Message 2 of 2
(3,043 Views)