ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic VI Problems

Yes it will run OK on its own.

0 Kudos
Message 11 of 14
(1,193 Views)


 

Any ideas would be greatly appreciated!

 

 


Have you tried this on the "problematic" VI:

 

Skärmklipp.JPG

 

Perhaps this before calling the VI?

 

Skärmklipp2.JPG

 

Not sure if it helps though.

 

Br,

 

/Roger

 

0 Kudos
Message 12 of 14
(1,192 Views)

Make sure "Remove Front Panel" is not checked under Source File Settings in the Build Properites.

 

And can you post the code?

0 Kudos
Message 13 of 14
(1,177 Views)

Thanks for all of the suggestions.

 

I think I may be suffering from some kind of compiler bug. By process of elimination I worked out that there was something on the front panel/block diagram that was causing the problem.

 

If I create and call test.vi (instead of datalogger.vi) and just have a loop with delay and stop button, the main code will call and display the subvi as expected.

 

If I copy the block diagram code from datalogger.vi and paste it into test.vi then it stops working.

 

I have slowly been deleting section of code until it worked and there are two X-Y graphs that seem to be causing me a problem. If I delete one, it still does not work. If I reinstate that graph and delete the other, it does not work. If I delete both of them it works!!!

 

Very bizarre.

0 Kudos
Message 14 of 14
(1,152 Views)