Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 67048

How to start data collection through digital trigger OR user input

$
0
0

Hello,

 

I have a vi with which I would like to collect data. It is set to start collecting when the start-trigger is sensed, which works perfectly, but I would also like to have the user be able to start the data collection process by pressing a button instead of applying the trigger. I'm at a loss on how to do this. I thought the event structure would work well; however the trigger has no boolean value with which I can associate it. If it did, I could then perform a logical comparison between the trigger and button to determine whether data collection ought to start.

 

So, how can I represent an activated trigger as a boolean? Or is there a better way to accomplish my goal?

 

I think I can make things clearer by expressing in linear programming what it is I'm trying to acheive:

 

if (trigger == true || button == true){

start data collection

}

 

I've attached my vi in case anyone feels it would be useful.


Viewing all articles
Browse latest Browse all 67048

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>