11-23-2012 09:28 AM
Yes it will run OK on its own.
11-23-2012 09:36 AM
Any ideas would be greatly appreciated!
Have you tried this on the "problematic" VI:
Perhaps this before calling the VI?
Not sure if it helps though.
Br,
/Roger
11-23-2012 02:45 PM - edited 11-23-2012 02:45 PM
Make sure "Remove Front Panel" is not checked under Source File Settings in the Build Properites.
And can you post the code?
11-26-2012 09:03 AM
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.