02-21-2024 11:49 PM
Hi to all
In my LabVIEW Code Modules I use the Termination Monitor if I use while Loops:
This is nice when you run the Code Module in TestStand. But in the developmemt or debug process I want to use the Code Module as Standalone LabVIEW VI without TestStand.
If I Run the VI Standalone if gives me an Error because SequenceContext is empty.
What is the best practice to use this VI Standalone? I don't want to insert three cases around the Termnation Monitor VI's to disable them.
Best regards
Solved! Go to Solution.
02-22-2024 07:21 AM
The Termination Monitor needs to know which execution to watch, therefore it needs a reference.
If you just compile the example code into a standalone, you don't have this reference, so it will error out of course
02-27-2024 12:36 AM
Hi Oli_Wachno thanks for your reply.
@Oli_Wachno wrote:
The Termination Monitor needs to know which execution to watch, therefore it needs a reference.
If you just compile the example code into a standalone, you don't have this reference, so it will error out of course
That is clear that it needs a reference and that it errors if it don't have this reference.
But my question is how to Build up this vi to use it in TestStand and in LabVIEW as standalone VI?
Best regards
02-27-2024 12:42 AM
You use them in the code modules, that TestStand calls for (long running) tests in order to be able to detect the termination of the master test sequence.
Rather not as a standalone executable.
You can use them in a pre-comiled formn though --> PPL
02-27-2024 12:48 AM
Thanks for your fast reply
In the developmemt and debug process I want to use the Code Module as Standalone LabVIEW VI without TestStand.
I don't want to use it as Standalone executable, just for debug and development I wan't to use it in LabVIEW standalone without the TS overhead.
Best regards
02-27-2024 01:11 AM
In general, this is a good approach. Yet it takes some measures to decouple TestStand and LabVIEW, if TestStand functionality (like the Termination Monitor) is needed in the LabVIEW code module.
Some reference checking and conditional execution of code.
Depends on your concrete use case
02-27-2024 01:39 AM
Thanks for your reply!
I added to the example code a "Not A Number/Path/Refnum? Function" Check:
That seems to work for me thanks for your help!