Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

NI VISA receiveng data periodically

$
0
0

Hi,

I'm trying to make a VI that receives data from an RS232 source every 100ms (10Hz) at a 9600bauds rate. The serial port configuration includes 8data bits, stop bits 1.0, parity odd, flow control none. The CTS and signals are always asserted. Problem is I need a way to sinchronize data transmission to acquire data in order (from first to last byte). Frames are composed of 28bytes (every 100ms) and do no contain ending or starting characters. If I read data with a timed loop I'm able to acquire all data, but not in order, I need some sort of trigger for this. It would be very helpful to know for example, when exactly I am receiving a byte, and somehow count time between bytes in order to synchronize (or any other way to trigger reads). I need to do this in Windows, not a real time OS. Any help or advise will be very appreciated


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>