LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

User Control Data Acquisition

Solved!
Go to solution
Highlighted

Hello,

 

I am looking for a button on the front panel the user can press to start the recording the data acquisition after already pressing the run button. I want to be able to see the data and then press start when they want to start recording (to delimited spreadsheet)

0 Kudos
Message 1 of 5
(175 Views)
Highlighted

Hi Sam,

 


@sambpk wrote:

I am looking for a button on the front panel the user can press to start the recording the data acquisition after already pressing the run button.


Activate the frontpanel window of your VI, then open the boolean controls palette to look for a button!

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 5
(169 Views)
Highlighted

Yes, I got that far. I want to know where I would wire it to if I still want to see the info on the front panel until I hit the start button to start recording it to the spreadsheet.

0 Kudos
Message 3 of 5
(156 Views)
Highlighted
Solution
Accepted by topic author sambpk

@sambpk wrote:

Yes, I got that far. I want to know where I would wire it to if I still want to see the info on the front panel until I hit the start button to start recording it to the spreadsheet.


Well, that depends on the rest of your program and the architecture that you are using. I assume that your program is running in a while loop (I hope that you're not trying to run your program using the Run continuously button - they really should remove that button). Inside the loop put a case structure that is dependent upon the value of the button. Then, inside that case structure, put the code required to log the data.

0 Kudos
Message 4 of 5
(135 Views)
Highlighted

Hi Sam,

 

implementing IF-THEN-ELSE in LabVIEW is done by using the case structure...

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 5 of 5
(134 Views)