07-22-2014 02:02 PM
I am not sure if using an Event Structure inside a WHILE loop is the best thing for this purpose.
I want to have some DAQ tasks running in the background which reads voltages.
I have placed these tasks in the Timeout event and wired it to 100ms. Is this the right thing?
Solved! Go to Solution.
07-22-2014 02:04 PM - edited 07-22-2014 02:07 PM
I would put them in a independent loop.
The timeout will get starved under some conditions. For example if somebody would continuously fire events (by press buttons or changing sliders for example, the timeout will rarely occur. (partial workaround)
07-22-2014 03:36 PM - edited 07-22-2014 03:36 PM
FYI, little known fact: you can also register for some DAQmx events with an event structure;).
07-23-2014 03:54 AM
Hmm. On my computer both Altenbach's and Greg's answers are marked as solutions. Never saw that before.
BTW, Greg, that's a great tip. Does anyone have an exhaustive list of what inputs the event registration node will accept?
07-23-2014 06:33 AM
I think now NI has a provision to mark as solution to more than one post and personally i find it fare.
I dont have an exhaustive list but i found dynamic event registration with case of IMAQ buffer change event and it proved very handy ( eariler we were polling for buffer change , to take new image )
i dont have vision module right now so can not post image.