Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69019

Can you trigger data acquisition through Modbus TCP/IP PLC communication without using a for loop?

$
0
0

Hello,

 

I am trying to communicate with a facility plc through Modbus TCP/IP communication. I am new to this method but the idea is that the facility will send logical (boolean) 1 bit values over ethernet to my workstation which read it and will then begin data acquisition. Essentially I just need a triger to come to my pc. I have placed my data acquisition vi inside a T/F case structure which will execute depending on the signal it receives. However, to have it constantly waiting, I put all of that into a for loop. The vi works but the reading of the signals sometimes lags due to the for loop. If I take the for loop out and just run labview continuously it works perfectly but I know that option is only for debugging and should not be used. So my question is, Is there a better way to wait for an incoming signal?


Viewing all articles
Browse latest Browse all 69019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>