LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a signal whose falling edge happens only at the high part of a pulse??

In the file attached, I create two signals. One is 20K Hz pulses using FreqOut channel as sample clock. Another is SD signal, which change from high to low.

 

I want the SD signal falling edge happens only at the high part (1) of 20K Hz pulses. Not random.

 

Is there any way to do this?

 

Thanks

 

 

0 Kudos
Message 1 of 4
(2,736 Views)

Hello,

 

Which DAQ board are you using ?

 

There is something which is not really understandable in your code : why is there a "true" immediately followed by a "false" value generated on SD signal ? Don't you need a delay between both function ? (If you have any available counter on your board that would be better : you could configure a pulse generation).

0 Kudos
Message 2 of 4
(2,724 Views)

You need to trigger the SD signal with the 20KHz pulse signal.  Look at examples that involve triggering.  Basically you would have to export the 20KHz signal to an output pin on that device (use Export Signal function).  Then you have to set up an external input trigger on the SD signal device.   Wire the output trigger to the input trigger.  Setup the trigger to be a falling edge trigger.  You also need a waveform or 1D array for the SD signal instead of just 1 line 1 point.  The waveform should start low, then after some time go hi again.  When the trigger is received, the output will go low, then high, then wait for the next trigger.  You also have to set the timing of the SD to produce its waveform before the next 20KHz pulse.  Lots of work, but I think you can do it.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 4
(2,699 Views)

I am using PCI-6229.

 

I need to create a rising edge for SD signal. Check the reponse of another channel at the moment of SD rising. Thus, there's a "true" immediately followed by a "false" value generated on SD signal.

 

I have two counters. But I need to create a complimentary pulse signal which means the two signal are exactly opposite. So I didn't use counter.

 

Thanks.

 

0 Kudos
Message 4 of 4
(2,689 Views)