06-18-2013 03:46 PM
Hello,
I would like to control an event structure with timed boolean value. I want the boolean value to be true at a specified time, stay true of long enough for the event to exicute and then return to false. (and repeat) I want to design it this way so that eventually to program can run without me having to indicate the case.
Thanks in advance for your help.
06-18-2013 03:57 PM
It sounds like you may need a state machine more than an event structure. The event structure is primarily to handle front panel inputs from users.
In addition any code which takes any significant amount of time to execute generally should not be inside the event structure.
Please give us more specific information about what you are trying to do. What controls the boolean? How are the "specified times" determined? How long will it take for the "event" to execute? How does it know when to stop repeating?
Lynn
06-18-2013 04:01 PM
@HFresearch wrote:
Hello,
I would like to control an event structure with timed boolean value. I want the boolean value to be true at a specified time, stay true of long enough for the event to exicute and then return to false. (and repeat) I want to design it this way so that eventually to program can run without me having to indicate the case.
Thanks in advance for your help.
can you be more specific?
please post your vi to get a better understanding what you want...
06-18-2013 04:13 PM
Thank you everyone for the quick responses.
I am trying to automate a webcam. I want to put the webcam on an arealtram that will run continuously. Since I am new to Labview, I am converting a webcam program that I found here on a NI Forum to better fit my needs. Basically, I want to syncronize when the webcam will take a photo to when the tram motor has stopped. I think that the easiest way to do this is by using the internal clock on the computer. There is already an event structure within the code that I am adapting, which is why I was asking if this is a possibility. My vi is attached (I'm not sure if it will run without all of the subvis though).
Best,
HF
06-18-2013 05:19 PM
look into dynamic events....
06-18-2013 07:08 PM
you could also do value signal....