I am trying to use VISA to control my RS232 device as a beginner.
I would like to know how I can implement a fuction 'WaitCommEvent' of VC++ in VISA. The usage is as follow(You can check it in MSDN):
WaitCommEvent(hFile, lpEvtMask, NULL);
The function waits until any event happens in RS232. For example, if a character is available in buffer, the function stop.
If I open RS232 connection with CNiVisaSession, what corresponds to 'hFile?.' Or, how I can implement the function in VISA?
Thank you very much.