LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Force Variable VI is very sloooow

I am seeing execution times of around 500ms for a single I32 forced variable vi call. Is this normal?
0 Kudos
Message 1 of 25
(4,470 Views)
What is a "forced variable vi call"?
Message 2 of 25
(4,462 Views)
Sorry, I should have stated that it is used in conjunction with the I/O Variable Scan Engine to force a cRIO/FPGA resource to a fixed value for testing or simulation purposes. This post belongs in the RT section. BTW, how do you route a LV/RT question directly to the correct forum?
0 Kudos
Message 3 of 25
(4,439 Views)
There is not a special RT forum, the link on the main forum page is mere a search routine.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 25
(4,411 Views)
 
When composing the message, there is a ring control above the subject field (:select Board") that lets you change the target forum. By default it is set to the forum you're currently in.
Message 5 of 25
(4,403 Views)
Unfortunately, yes, this is expected.

May I ask how you are using this VI/functionality?

thanks,
greg
0 Kudos
Message 6 of 25
(4,356 Views)
Currently I am using the Force function just for simple testing. I am build a large scale system and am taking a chance on the new scan engine and am concerned in general about the efficiency, performance and craftsmanship of this new technology. I was really surprised at the lag time I was seeing and wanted to understand where it was coming from.
0 Kudos
Message 7 of 25
(4,349 Views)
The lag time of that VI is because it allows forcing of something local or remote.  In both the local and remote case, it goes through the networking stack.  We could in theory optimize the local case to not go through the networking stack to improve performance in that case.  Are you forcing variables locally or remotely?  If you using the remote case, would it be helpful to have a "batch" version (ie, specify the forcing of a bunch of variables, then at the end say "go!")? 

Thanks for your feedback,
greg
0 Kudos
Message 8 of 25
(4,341 Views)

As Greg mentioned, the forcing VIs are a bit slow on the RT target as we expected the main use case for them to be from HMI app going over the network and did not get a chance to optimize the local access case for this release.  The performance for forcing VIs does not reflect the I/O Variable performance (which should run in the order of 10-15 us).  In addition, the forcing VIs use some internal threads that run at normal priority, so make sure your system has enough idle time for these normal priority threads to get some execution time.

Also, we didn't expect forcing to be used for simulation (it was mostly for remote debugging from system monitoring).  Can you share your use case a bit and tell us how fast of an access will work for you.  For example, how fast of data sampling would you be simulating for your tests?

Thanks

-sadia

0 Kudos
Message 9 of 25
(4,337 Views)
Network Stack? How would that generate a 500ms delay? I think something is definitely wrong here. Perhaps there is some sort of timeout or your software is trying to route via a DNS service in Timbuktu.
0 Kudos
Message 10 of 25
(4,334 Views)