06-12-2012 08:01 AM
Hi guys
Me again with another problem.
I am attaching the VI with the post. Now the VI generating pulses of 100 Hz frequency(clock, which is connected to signal generation block). Now all the 63 pulses are coming correctly but last pulse high for almost 30 mSec. I could not find a solution. Could DAQ task is not be clearing properly??? I am at lost...Any help???? Thanks in advance.....
06-12-2012 08:43 AM
An Analog Output Tasks outputs the last value written as long as the task is activ, so in your case until you call the DAQmx Clear Task.vi.
You have to write a 0 as last value to get rid of the 30ms high pulse.
Christian
06-13-2012 12:09 AM
OK but if you see my VI then you will find that I forcefully make the last value 0 and I also called clear task VI
06-13-2012 01:06 AM
It's early in the morning so this might not be the correct answer, but I see that your array is empty. Will it help if you enter the value 0 in it? Just a thought.
06-13-2012 07:54 AM
How many zero would be needed because I enter 20 zeros but problem persists and also I discovered one thing first 5 time it is okay after that the last pulse is high and that too for 5 series of pulses. Just like cyclic order...
06-13-2012 08:08 AM - edited 06-13-2012 08:09 AM
You have to change the numeric constant (connected to the "Eaqual to")from 63 to 62 in your for loop. Remember that "i" starts with the value 0. Since the for loop runs 63 times you will never get 63 as value for "i".
06-14-2012 02:20 AM
Many thanks everybody but the actual problem was the signal generation block was generating freq of 102Hz and no of sample was 10 so after 5 pulses it would 1 pulse more and again after 5 pulses it would come to same state . If you connect the output of the signal generation block to a graph then you see what I am talking about