06-17-2008 12:02 PM
06-18-2008
09:54 AM
- last edited on
08-10-2026
08:57 AM
by
Content Cleaner
Hello,
You have to close each session separately. Please refer to the Basic 2 Port Serial Write and Read.vi located under LabVIEW Help » Find Examples » Hardware Input and Output » Serial. Run the example program and if you are still experiencing problems, reply back with a NI Spy Capture. The following KnowledgeBase article shows how to perform a good NI Spy Capture.
Performing a Good NI Spy Capture for Debugging/Troubleshooting
Thank you,
06-20-2008 12:11 PM
Hi,
Closing the port after the receive is not an option since the incoming message data is asynchronous to the LV program and the length of the receive string varies, depending on the response message.
I was able to solve the problem by closing the port only after the send sequence, but leaving it open following the receive.
Thanks again.