LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pulse Generation without CTR for 30ms then stop

Hello everyone!


I'm having quite a lot of trouble generating a pulse for 30ms, if a specific voltage value is reached, and then stop it.

I don't have much experience in LabView, so any help would be appreciated. So far I can read the value and compare it to a specified value. As well as save that continuously. Now I want to add a function, that waits 30ms after the program compared the value, generates a pulse or voltage of let's say -1V for 30ms, and then stops it for 40ms.

I have two examples. The first one without a signal generation, the second one generates a square wave. I can modulate the frequency and amplitude, but if the program reaches the if statement it runs the square wave continuously.

But like I said above, I would like it to wait 30ms, then generate it for 30ms, then stop for 40ms. And then start again if the specified value is reached again. I'm basically measuring a triangle wave with a hold time of 100ms when the wave reached it's minimum. And I also would love to control the generated signal more exact than with the amplitude and frequency.

I hope I explained it well. I also attached the two VIs, if you have any more questions, please ask!

Also: I'm running on a NI PCIe-6353 with a BNC-2120. And I would like to generate the signal through a BNC cable output.

Download All
0 Kudos
Message 1 of 1
(1,027 Views)