Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any example of a VISA serial reader and a TCP writer working simultaneously?

Hi,
 
I have implemented two similar VISA serial readers to read two RFIDs from RS232, which works fine.
Since I need to write the read data into another machine via TCP connection, I have also implemented a tcp writer, which works fine, too.
 
Problem is when both sets of modules for VISA reading and tcp writing come together in one vi file, the VISA readers do not work anymore!
could it be because there is no "delay before read / write"  module on the tcp side, and therefore tcp is seeking full resources off CPU?
I have such delay module on VISA readers, so that the time portion can be set how often VISA readers may read.
 
or is there any other reason here?
 
In response, please do not hesitate to leave a working example.
 
 
0 Kudos
Message 1 of 4
(3,705 Views)
Attached is a working example.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Download All
0 Kudos
Message 2 of 4
(3,688 Views)
Thanks for your help, but still it is the same situation, VISA reader does not read!
0 Kudos
Message 3 of 4
(3,671 Views)
Hi there,

I have tried this example code and it works fine on my machine also. It could be a possible resource conflict on your system, but I think that's a long shot! So the VISA read function times out I take it? What happens if you disable the TCP comms, does it then work correctly? this will define whether it's a problem with your VISA comms, or a possible conflict with the TCP.

Can you try the setup on another system at all??

Rob L

NI Applications Engineer

UK & Ireland


It only takes a click to rate this message 😉
Message 4 of 4
(3,629 Views)