Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

serial message based device

Hi, I need to read data from serial device. System works by this way: User must send a message by pressing the button on the device physically. So I don't know, when the message is transfered to serial port and when can I read this by function VISA read.

It should work this way: My VI should wait until the data are at the port and then the data should be read. May be it could be done by usage events, but I don't know how to use this function. Thank you for your help.

0 Kudos
Message 1 of 4
(3,564 Views)

search for the function (property node) bytes available.

searching in LanbVIEW can be done by pinning a (block diagram) palette to the desktop and then click on the magnifying glass.

greetings from the Netherlands
0 Kudos
Message 2 of 4
(3,552 Views)
I can't find property bytes avilable. I have found only bytes at port. Is it the right property?I am a beginer in LabView.Can you send me an example, how can I read from serial port in not exactly specified time(with waiting loop)?Thank you
0 Kudos
Message 3 of 4
(3,547 Views)

bytes at port is ok

use the "wait ms" function (watch) to wait, check a moment later the number of bytes available and read only those.

greetings from the Netherlands
0 Kudos
Message 4 of 4
(3,543 Views)