LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get results without showing front panel of subVI?

Hi, 

 

I would like to ask how to get outputs without showing the front panel? This first picture shows the subVI front panel that show the results, the results then will be concatenated as a string as shown in the second picture. The third picture shows the settings of the subVI from main VI, when I disable the "show front panel when called" the front panel of the subVI is not showing but the results will not be able to get. 

 

Is there more settings to be done to meet my requirement? 

 

Thank you.  

 

Best regards, 

Wing

wing98_0-1611031344014.png

wing98_2-1611032061188.png

wing98_3-1611032169536.png

 

 

0 Kudos
Message 1 of 7
(1,208 Views)

Hi wing,

 


@wing98 wrote:

I would like to ask how to get outputs without showing the front panel?


Save your data to a file to "get outputs without showing the front panel"…

Best regards,
GerdW


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

The subvi (that you failed to attach) is designed to show results interactively. It requires the user click the Close button to terminate.

It does not make sense calling this vi without showing its Front Panel.

No need to show results? Then don't call this subvi and prepare the data array in your main vi.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 3 of 7
(1,171 Views)

Hi, 

 

May I know how to stop event structure without pressing the button? I would like it to display for 10seconds and close the front panel itself after the time. 

 

Thank you. 

 

Best regards, 

Wing 

 

wing98_0-1611052619953.png

 

0 Kudos
Message 4 of 7
(1,160 Views)

Hi wing,

 

use the timeout event case to close/exit the VI after 10 seconds…

Best regards,
GerdW


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

Hi GredW, 

 

Could do show picture on how to do it? Is it as the picture attached where I set to 5s for timeout, however the event structure does not stop. I want the event structure to stop as I want the front panel to close itself after some time. Initially a button event changes will close the front panel as shown in second figure. However, I would like the front panel to close itself after some time. Do you have any suggestions? 

 

Also, I would wonder am I possible to use Property Node or Invoke Node to close the subVI's front panel in the end of it's program? If yes, how to do it?


Thank you. 

 

Best regards, 

Wing

 

wing98_0-1611065562130.png

wing98_1-1611066865542.png

 

0 Kudos
Message 6 of 7
(1,128 Views)

To close the vi, you must wire a True to the conditional terminal of the While Loop exactly as in the Close Value Change event.

Since you are using the Timeout event to refresh data, you will need to measure the time elapsed since the vi was started and wire True only if the time exceeded your threshold. However this would make the dialog frustrating for a user if displayed in interactive mode since the windows would close abruptly. You may want also to check whether the FP is open or not before closing.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 7 of 7
(1,124 Views)