LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

polling on serial port

Solved!
Go to solution

Hello

I need to poll on serial port to receive some characters(it is 66 bytes). If I receive that characters then I will have to recieve next 1000 bytes. These total 1066 bytes come together in the port. I am having problem with timeout and buffer property of VISA serial read. Kindly tell me how can I approach.

 

Thanks in advance

0 Kudos
Message 1 of 3
(4,216 Views)

What is your timeout, what is the bytes timing, can you post your code and be more precise where your problem is ?

 

0 Kudos
Message 2 of 3
(4,213 Views)
Solution
Accepted by topic author somnath

Hi somnath,

did you see the shipped examples (Basic and Advanced Serial Write and Read)? You can use a loop and read the "Bytes at port" property. There you can count how many bytes you already have received. After you have your data, you can leave the loop, depending on what you need then.

 

Mike

0 Kudos
Message 3 of 3
(4,212 Views)