11-17-2015 11:55 AM
Hi
I use C# but any language besides LabView is fine. I would like to programmatically generate a hardware timed pulse of programmable duration from 1µs to 1000 ms in duration. I have a level shifter to bring it to 3.3V. I have PFI12 (cntr0) available. I want both rising and falling edge which is implied by the duration but just to be clear. I was successful at creating an edge but not a pulse. It would be nice, but not necessary to define the number of pulses.
Thanks for your help. There are a number of reasons I choose NI equipment but one of the big ones is the support. Most of the time I get the answer I need the first time. Documentation says to set the timing to finite but I must be doing it wrong as I get only a rising edge.
11-18-2015 03:59 PM
johngardner58,
There are several examples available for text-based DAQ. These examples are located inside the National Instruments install files as opposed to the LabVIEW Example Finder. You can find where your examples most likely installed to at the following link:
Where Are NI-DAQmx Examples Installed?
http://digital.ni.com/public.nsf/allkb/E3BAF6FC4017960B8625755A00525D37
Some specific examples I would take a look at are under Counter > Generate Pulse. The 'Dig Pulse' example will generate a single pulse. If you open the .c files, there will be a description at the top showing what the example can do.
Hopefully these examples help!
-aprillest
11-24-2015 06:55 PM
I am only seeing a single edge when I do the equivalent. I am missing something.
11-25-2015 12:52 PM
Have you tried adjusting the duty cycle of the pulse? If you have it set really high, it could just be a very long pulse so you only see the first edge. Could you include some screenshots to give us some more information?