Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Real-time accurate digital pulsing

We use the NI-6220, and the two on-board counters (which would be perfect for our purposes) are in use for other important devices.  We need to simulate the effectiveness of the counters.  We need to provide pulses of a nearly exact length of time, and software timing is not sufficient.  We want to trigger a digital signal on a clock to have a TTL pulse sequence with software triggering.  By using the on-board clock, we suspect that using DAQmx modules are the way to go--being able to trigger based on counting clock cycles.  Good timing accuracy is very important.  I have no familiarity with these functions and their operation seem clunky and unnecessarily complicated to my untrained eye.  Are there any suggestions on providing a competent means of this pulsing operation?
0 Kudos
Message 1 of 7
(3,684 Views)

Hello,

I was a little confused by your wording.  However, I am assuming that since your two counters are in use that you are wanting to output / generate a digital pulse on a digital line.  Please provide further details about your application if this is not what you want to accomplish. 

To output as pulse on a digital line a sample clock will be needed.  Please refer to the forum post linked below.  This customer is asking a similar question.  The code attached there is writing out a waveform, where each point of the waveform is updated in correlation with the sample clock rate.  This is why the two tasks have the same sample clock rate specified.

You would be interested in changing the Sample Mode to Continuous and changing the waveform points to match your desired pulse.  I have attached a simple example that might work out for you.  Please note that small changes will need to be made to customize this example to you application.

Finite digital generate waveform

 

Samantha
National Instruments
Applications Engineer
0 Kudos
Message 2 of 7
(3,664 Views)
Thank you for your reply!  Sorry for the confusing wording, we do indeed intend on using Digital output (with a clock) as our pulse to emulate a Counter.  It sounds like the discussion you reference is helpful, but we have an older version of LabVIEW and hence I cannot view the VI included.  Could you discuss more the operation of the VI please?
0 Kudos
Message 3 of 7
(3,646 Views)
Hello,
 
What version or versions of LabVIEW do you have?  I can save the code posted on the other forum and the example code I posted here to match your version.
Samantha
National Instruments
Applications Engineer
0 Kudos
Message 4 of 7
(3,629 Views)
Thank you!  We use version 7.0.
0 Kudos
Message 5 of 7
(3,623 Views)

Hello,

The first program attached below is the 7.0 version of the code I previously posted and the second program is from the forum I linked.  I hope seeing the code in 7.0 helps.

 

Samantha
National Instruments
Applications Engineer
Download All
0 Kudos
Message 6 of 7
(3,610 Views)
Thank you very much for your help!
0 Kudos
Message 7 of 7
(3,565 Views)