04-03-2025 11:23 AM
I am running several different test stands on my manufacturing floor and have run into a very similar issue on some of them. Labview will get hung up on some sort of VI while running a test sequence and the operator ends up force closing the application because they think it froze. When they go to launch the VI that runs our sequence again it won't launch the sequence because it says it is missing the station globals file.
Any idea why this happens?
Luckily, I keep a backup of all my station globals on a network drive but sometimes it won't be the latest one so I'll have to go back and re-add the most recent changes I have done.
Just curious if anyone else has this issue?
04-03-2025 12:30 PM
Do those hanging VIs happen to access your StationGlobals via TestStand API?
04-03-2025 02:20 PM
Great question, after some digging it looks like I am using the Sequence Reference in a couple instances. I included pictures of the two times I'm calling it in subvis.
Not super familiar with how the Sequence Reference works as I didn't make this VI, but maybe this has something to do with it, when it is getting forced closed?
04-04-2025 01:56 AM
Those two snippets, you have posted look ok.
It looks like there are Close Reference calls in the right places.
If there are several others, you might want to check, if you can find StationGlobal access somwhere
04-10-2025 06:15 PM - edited 04-10-2025 06:17 PM
@codypro wrote:
I am running several different test stands on my manufacturing floor and have run into a very similar issue on some of them. Labview will get hung up on some sort of VI while running a test sequence and the operator ends up force closing the application because they think it froze. When they go to launch the VI that runs our sequence again it won't launch the sequence because it says it is missing the station globals file.
Any idea why this happens?
Luckily, I keep a backup of all my station globals on a network drive but sometimes it won't be the latest one so I'll have to go back and re-add the most recent changes I have done.
Just curious if anyone else has this issue?
If you have long running VIs, the VIs should implement TestStand Termination Monitor. That way if the operator chooses to Terminate the test, then the VI can respond to the signal. Properly terminating will allow the TSEngine to do the needed cleanup and the StationGlobal file will not get corrupted. Also, the VI can also send UIMessages back to User Interface to give feedback to the user. For example you can send a progress bar update or a progress text update. To do these things just make sure you pass the SequenceContext to the VI.