08-13-2014 10:19 AM
Hello eveyone,
When I launch my program, it allows me to do some initial configurations before start analysing a signal. One of that configurations it's one button (boolean) that defines if a event structure triggered with the "key up" event will execute when the program starts (I use this to let the user to save different data with the keyboard). The question is, how can I control the enable/disable of that structure with my boolean control?
Thanks
08-13-2014 10:24 AM
You could look at the boolean inside of the event case and only react if that boolean is set to TRUE.
08-13-2014 10:39 AM
Hello crossrulz, thanks for the answer, but I'm not sure if I understand you, can you explain me a little more please? The idea is that, I want to free change the value of my button, and when I press the START button of my program (in order tu start the program function after the initial configurations), this event structure should be enabled or disabled depending on the value of the button.
I tried to put the whole event structure inside if a case (inside the true case it's the event structure, in the false case nothing), but it's not working: Although my boolean control it's set to FALSE, when I press a key the event structure reacts.
Thanks
08-13-2014 10:43 AM
Can you share some code. It sounds like there is a simple logic error happening here.
08-13-2014 10:58 AM
Don't worry, I solved it while writing an example to you. It was just a data flow issue.
Thanks!
08-13-2014 02:01 PM
@davetrombon wrote:
Don't worry, I solved it while writing an example to you. It was just a data flow issue.
Thanks!
Like I said, it sounds like something stupid. Glad to hear you got it working.