11-27-2007 05:24 AM
11-27-2007 05:43 AM
in your vi you count only one counter.
could you elaborate on the other ways you tried?
as first approach, did you try to duplicate your code for the second counter (2 while loops for 2 DAQmx tasks)?
if it works, then there should be no reason why not imlpement the two tasks in the single event structure.
11-27-2007 06:48 AM
Hello Gabi,
i try it with two counters and 1 event counting (attachment). But it dont works.
What is here the problem?
Regards
Patrick
11-27-2007 06:59 AM
First we have to make sure that you actually have 2 counters on the card, that you can listen to independently.
i suggest then that you first check each independent counter that you can actually count them.
when this step is done, we can try to independently listen to the two counters to see if it works. meaning: keep 2 while loops with 2 event structures, one for each DAQ channel.
btw, in the present vi, you do register for both tasks, however the event structure only listen to the first one. you have to create another event frame for the second task.