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

NI VISA .NET C# Serial Read in a loop

$
0
0

I am trying to build a test tool for a customer's hardware, the hardware will send "Ready" in Hex thru the serial once powered on. I've been thinking how to make the program actively listening this activity at the background. So far for some hours glancing in the library Help docs I could only think about using a loop and RawIO.Read() to constantly read from Serial until it hits the term "Ready". But this is so not elegant and inefficient and I don't see WaitOnEvent have similar functions to it. Anyone can point me into a right direction?


Viewing all articles
Browse latest Browse all 5566

Trending Articles



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