12-16-2009 04:43 PM
What I would like to do is: display a data point every 1 sec but record the a data point every 10 sec.
I have been playing with the event case and loops to achive these but no mather what I get one or the other; I either record and display every sec or every 10 sec.
Thanks...
12-16-2009 04:48 PM
12-16-2009 04:48 PM
12-16-2009 05:28 PM
12-17-2009 12:58 PM
It works pretty good, but what about doing it with and event structure?
I try a couple things like creating and event for when the reminder is zero but that didn't work.
12-17-2009 02:32 PM
Assuming you have a timeout case in your event structure, you can check the status of the remainder every iteration. Make a value change event case for a boolean, and whenever your remainder equals 0, just set the boolean's value using value signaling to generate the value change event.
12-17-2009 07:06 PM
12-17-2009 11:34 PM
Let me rephrace that... for some reason the event (for boolean value change) doesn't execute.
12-18-2009 02:41 AM
hey roddy..
Just a question .. Does the VI actually stops when the stop butoon is hit....
I DONT THINK SO....
Guru
12-18-2009 03:40 AM - edited 12-18-2009 03:43 AM
Guru,
why doesn't it stop?
The timeout is connected with 1000ms so it will stop after 1 sec, doesn't it?
roddy,
it's right that the event-structure does not execute if you connect the control directly (as you did).
Try to connect the control using a property node and its property value (changed).
This will trigger the event-structure.
(Maybe you should use the LabVIEW help. I'm pretty much sure there is an example in it how to programatically trigger event structures)
IMHO it's not a smart solution anyways. The idea of a event structure is to capture user events (i.e. the frontpanel activities).
In your case it'maybe better to use a timed loop with 1000ms loop time, replace the event-structure with a case-structure, take the Rest from your modulo division and connect "Sine2" inside the case "0" of the case-structure.
When the Rest of your modulo division is != 0 then nothing happens.
Best regards,
Rainer