LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Popup User Interface

Solved!
Go to solution

Hello,

 

I am trying to do some pre-design for a continuous data collection application that has the main goal of being as "user-proof" as possible. I've been asked to have a popup window upon opening the *.exe fileasking for values for the project ID, sample ID, date (which I can just do automatically), and the file path to save the data into excel. After the data is entered, I want to have an enter button close the popup. The user would then be directed on which button starts and stops data acquisition with a one-button dialog box (simple enough) before being allowed to start using the actual data collection functionality. Can anyone advise me on which sample program structure would be best for this type of VI?I know LabVIEW does not use variables like most programming languages do, so any tips on how to store those values would be great, too. 

 

Thank you!

0 Kudos
Message 1 of 4
(3,329 Views)

The only thing you need is an event structure.

 

Make sure your VI has error in and error out as well, so you can make the rest of your application wait until the Pop Up finishes execution. The event structure just needs to be triggered by your "OK" button and then output the cluster of data that the user input. In the VI settings you can set it to "open when called" and "close after if originally closed" which will give you the pop up you desire.

 

Edit: Also, I believe you want to set it to "modal" so that the user cannot click behind the popup.

Message 2 of 4
(3,326 Views)
Solution
Accepted by try_guy90

Hi try guy,

 

I've been asked to have a popup window upon opening the *.exe file … After the data is entered, I want to have an enter button close the popup. The user would then be directed on which button starts and stops data acquisition with a one-button dialog box (simple enough) before being allowed to start using the actual data collection functionality.

So you have several steps, one after the other. No way for the user to change this way.

I would use some subVIs, connected with error cluster wires to enforce DATAFLOW and execution flow…

 

(One might argue for a state machine to be able to change the number of steps and their order later on quite easily…)

 

so any tips on how to store those values would be great, too. 

THINK DATAFLOW!

You store data in wires and shift registers…

 

You probably have heard of those FREE online resources offered by NI on their website to help LabVIEW beginners starting to code in LabVIEW?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(3,321 Views)

Thanks, I am a bit beyond those free courses you talk about, I just wanted to poll the experts for any caveats I might have missed before they happened. Also I couldn't decide between the state machine and producer/consumer designs. 

 

Good point about the order of events staying the same, though. I will go with the latter. 

0 Kudos
Message 4 of 4
(3,317 Views)