Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa Serial port read problem from microcontroller device.

serialport.pngHi

i,m trying to communicate with a microcontroller based device.However i'm facing problems.

by default when i send the string "5N" to microcntoller from any serial terminal(like hypertrminal), the microcontroller based device responds with the
following string.
"1111111111111111111111111E"

this works fine while using hyper terminal.now i want to parse the data from device using Labview.so i created a vi to send 5N and to read out the data from device.But the problem is that it works only sometimes.i have noted that when the vi is executed 1st time in a row, it writes the data, but fails to read the data.the program never exists the loop. then i press abort and run vi again,this time it writes as well read successfully. id dont know what is the problem. check the attached vi. please help. sometimes it shows time out error (but time out set is enough). by the way is it neccessary to send \n\r after each string from the device to labview and viceversa. is there any problem with my loop & open and close visa functions

Electronics and Instrumentation Engineer
Freelance LabVIEW and Arduino programmer.
For projects contact me ; djac791@gmail.com
0 Kudos
Message 1 of 2
(3,997 Views)

Duplicate post.  Keep the discussion in the other thread.

 

Lynn

0 Kudos
Message 2 of 2
(3,995 Views)