LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate a single digital pulse from button press

Is it possible to generate one +ve edge triggered pulse to move my stepper motor just by 1 pulse?

I was thinking of using this example except i that i am not sure how to wire the boolean button to the trigger the pulse.
And after the pulse generation the pulse is sent to an array out to a digital port is it possible to do it? Or do i have to convert the data to ?? before
it enters the array.

Thanks.
0 Kudos
Message 1 of 3
(4,957 Views)
Hi,
 
Thank you for posting to the National Instruments Discussion Forums.
 
Will the following work?
 
 
This essentially places a while loop before you setup the task and run it. This was it will wait for you to press the stop button and then send the pulse.
 
Please let me know if this is what you are looking for.
 

Message Edited by Abhinav T on 06-08-2007 06:04 PM

Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
0 Kudos
Message 2 of 3
(4,910 Views)
The proper solution is to create an event driven VI.

The interface would have two buttons: one to generate a pulse and one to stop the program.

The pulse generation hardware would be initialized before entering the event loop.

Inside the loop: When the generate pulse button was pressed, code would be executed that would produce one pulse. When the stop button was pressed, the code would deinitialize the pulse generation hardware and stop the loop.

Check the examples for information on event-driven programming, then ask more questions is you have any.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(4,890 Views)