Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

serial program verification

hi i m just new to labview , i have designed some sort of program in order to interface serial port connected to micro controller , but this program is not working , the program has to receive data coming from micro controller connected to serial port serial cable at other end, please let me know what wrong with this program but however my hardware is correct and i m receiving data on other serial port terminal software. 
0 Kudos
Message 1 of 4
(4,297 Views)
What exactly does 'not working' mean? Do you get an error (what error #), data is incorrect, something else?
0 Kudos
Message 2 of 4
(4,287 Views)

thanx dear i have made his program for reception of data from microcontroller connected to serial port on labview the problem is this that i m unable to receive any sort of data on labview the program built without errors but im unable to get any sort of data on labview but however im able to receive data on other serial port terminal but there is no any data on labview , i would like if u approve this program for reception of data from serial port connected to microcontroller b/c i cant verify whether this is write or wrong i even dont perfectly knew whether any thing missing or not , but upto my knowledge it is fine .

 

 

 

0 Kudos
Message 3 of 4
(4,275 Views)

Even though you did not provide the information I asked for, let's assume that you are getting error -1073807339. Since you did not wire up the error in/error out connections, make sure you have automatic error handling turned on.

 

I don't see anything obvious in the code. You should have the VISA Read inside a loop so that you can do more than a single read and using a VISA Bytes at Serial Port instead of a fixed count might make a difference. In the terminal emulation software you use, you don't have to send anything before you start to receive data?

0 Kudos
Message 4 of 4
(4,265 Views)