LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI runs automatically when opened, has an endless while loop, an be closed only be closing the window - how can I open the diagram?

Hi all,
 
a colleague of mine has created a nice little program. It runs automatically when opened, has an endless while loop to restart automatically, and can only be stopped by clicking the "X", i.e. close its window. So far, so good. To make it look professional, however, he also removed the menu bar, the icons, etc. So, there seems to be no way to ever change the code again - or even the window appearance -, since even pressing Ctrl-E shows no effect.
 
Any ideas?
 
Best regards
Matthias
0 Kudos
Message 1 of 5
(2,892 Views)
Hello Matthias,

have you tried Ctrl-. ? If this does not help I would try to stop the vi via vi-server: open a reference to this vi and use the properties "TB.visible" and "TB.ShowAbortButton". This should help, but probably there is a better/easier way.

Your collegue surely has a backup of this vi without autostart enabled? ;-))



Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,889 Views)

Ctrl+. won't work in this case, because the toolbar has been hidden, and it only works if you can stop the VI.

The easiest solution is usually to place the VI as a subVI in another VI. Then, you can double click it to open it.

Other solutions include breaking one of the subVIs or using VI server calls, as mentioned by Gerd.


___________________
Try to take over the world!
Message 3 of 5
(2,884 Views)

hi there

create an empty vi and place the vi as a sub vi. when doubleclicking on the sub vi it should open in edit mode.

best regards

chris

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 4 of 5
(2,883 Views)

Hi all,

yes, the last idea works. Thanks a lot!

 

Regards

Matthias

0 Kudos
Message 5 of 5
(2,875 Views)