LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Last pulse high for longer period of time

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.....

0 Kudos
Message 1 of 7
(2,677 Views)

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

0 Kudos
Message 2 of 7
(2,671 Views)

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

0 Kudos
Message 3 of 7
(2,659 Views)

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.

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 4 of 7
(2,655 Views)

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...

0 Kudos
Message 5 of 7
(2,646 Views)

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".

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 6 of 7
(2,643 Views)

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

0 Kudos
Message 7 of 7
(2,630 Views)