Hello,
I wrote a response but for some reason it did not post! I hope this one does because I'd rather not compose a third time
🙂 So, you are using the RS232 library in CVI, and there are at least two possibilities that come to mind based on experience with NI-VISA. First, NI-VISA defines 3 states, asserted, unknown, and deasserted, and perhaps you are seeing the results of a callback indicating transitions to asserted or deasserted from unknown, but where the unknown state itself does not indicate a transition. Another possibility is that some of the transitions occur very quickly, and are not caught. Now, the driver for a native serial port will be Windows SDK (at the user level, or just below) so you could check the microsoft developer network to see how exactly indication of the line state is dealt with. That is, if change indication is all that is returned, it is possible that a fast transition from hi to low to hi would show up as a hi-hi in your application, because the callback may not execute until the line is hi again, and read this back to the user (where of course the toggling of the line was handled in HW faster than the SW could poll the information). A couple questions come to mind, albeit rather practical:
0. What is your desired functionality?
1. Can you achieve your desired functionality despite the current behavior?
2. Have you tried using NI-VISA as opposed to the RS232 library in CVI?
I look forward to your repost!
Thank you,
JLS