From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DATA AHEAD toolkit support Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

SP7: Optimize Sample rate

Hello,

I communicate with my plc with the vi I sent.

Is it possible to optimize the communication, when I opened the connection at program start.

read/write my data in a while loop and close the connection at the end of my program?

Or will the interface loose the connection while the while loop?

 

regards

Raabun

 

0 Kudos
Message 1 of 2
(2,898 Views)
In general it is better to leave a connection open and read/write in a loop - the same applies here.

Regards,
DATA AHEAD
Kudos are welcome...
0 Kudos
Message 2 of 2
(2,881 Views)