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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Magic Diagram Disable Structure?

Hi James, 

 

I have been in contact with various people in NI and we believe that most of the problem is due to the way which you are measuring the VI. 

Attached is a revised project.

There is also an example which shows the way to time a VI - C:\Program Files (x86)\National Instruments\LabVIEW 2012\examples\general\structs.llb\Timing Template (data dep).vi

 

An additonal feature would be to change the compiler settings in Tools >> Options >> Environment  >> Compiler. Setting this to 10 which should keep optimization at rarely limit.

This should avoid any major fluctuation in compile and the time which the VI takes to run. 

 

Regards,

Nathan
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 11 of 12
(271 Views)

Hi James, 

 

In addition I have tested this code and the results suggest that although more often than not, the VI with the disable diagram runs faster, there are also instances where the VI without the structure runs quicker.

As well as this, the code is a lot closer in execution time and is highly unlikely to run twice as fast with a structure around the code.

 

Can you confirm that this is the results which you are seeing as well?

 

Thanks

Nathan
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 12 of 12
(263 Views)