LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial communication timeout

Hi all,  

 

I can able to communicate with my hardware via serial VISA and also i can read the data relative to my hardware operation. 

 

Here where i am having a problem:

Since my hardware continously sending data, if the specified timeout in VISA Serial Port Configure is not sufficient, it is giving a timeout error and application was stopped. I can able to continue my read operation on my next run. 

 

But i want to read data continously until i abort this operation.

 

Please guide me on this.  Awaiting for reply.

 

 

Thanks and regards,

Sriram

0 Kudos
Message 1 of 6
(3,774 Views)

It would be better if you attach code here. My guess is, you did not have any delay time between write operation and read operation. See this link

http://digital.ni.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0

0 Kudos
Message 2 of 6
(3,763 Views)

Thanks for your reply.

 

In my case I am not writing anything to the hardware, instead i am just reading the data.  So i think write operation is not at all required here.

 

0 Kudos
Message 3 of 6
(3,758 Views)

Also i have you that VI.

0 Kudos
Message 4 of 6
(3,757 Views)

Drag out the "VISA serial" intialization VI out of the loop and put only READ visa inside the loop.

0 Kudos
Message 5 of 6
(3,751 Views)

Calling serial VISA init outside the loop is solving my issue. VI was exactly stopped at the specified timeout.  

0 Kudos
Message 6 of 6
(3,737 Views)