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.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Too slow cycle time when using network variables

I just tested my C++-Application against your example. Works perfectly Smiley Happy

 

So I guess the problem must be in my LabView VI. It looks much like yours - but something must be wrong:

 

Sender VI

 

(Sorry for the external link but image upload does not work -> "HTTP Error")

0 Kudos
Message 11 of 13
(1,302 Views)

sounds great.

 

I can not really tell why your vi doesn't work. Try adding a Timing Delay with 1ms and check again. Mayby it is too much for the system. You always should work with a timing in a while loop, otherwise it is uncontrolled and uses a lot of CPU load.

 

 

0 Kudos
Message 12 of 13
(1,297 Views)

OK, I got it!

The delay did not help (but you're right, it should be in there).

But when I replaced the Numeric-Input thingy with a random number generator the cycle time went down to 1ms. I'm not sure why that is (I'm not so familar with LabView)...

 

Thanks so much for your help!

0 Kudos
Message 13 of 13
(1,294 Views)