Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

get bytes available at serial port

I'm using the CNiVisaSession wrapper class for serial communication. Is there a way to get the number of bytes available at the serial port using this class like there is with the ActiveX object CWSerial.GetBytesAtPort() method?

Thanks,
Lyle
0 Kudos
Message 1 of 2
(2,958 Views)
Yea, you just call GetAttribute on the object with an attribute of VisaSerialBytesAvailable, its a uInt32.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,958 Views)