Discussion:
problem of digital waveform generation
(too old to reply)
datoudream
2008-06-10 12:10:09 UTC
Permalink
I want to generate finite pulses by digital
output. Please help me to find the problem of the attached VI.


If I set the write node allowing
regeneration, I find that no matter what the pulse number is( it is alse the samples
number of the digital waveform), 2 or 20,000, the actually generated pulses are
the same. I doubt that the ?wait until done? function doesn?t work.  


If I set the write node not allowing
regeneration, more problems happen. When the digital waveform has less than 130
samples, an error occurs(error -200609). Has digital waveform output buffer to
be bigger than 130? When the digital waveform has more than 130 samples but
still few samples,such as less than 800, Error -200560 occurs, and it seems not
dependent on the rate of the sampling rate.


Anyone tell me about it?


Thanks.

My Device is NI PCI 6281


DO pulse generation.vi:
http://forums.ni.com/attachments/ni/70/8999/1/DO pulse generation.vi


DO-pulse-generation.jpg:
Loading Image...
centerbolt
2008-06-10 12:40:10 UTC
Permalink
There is an example that ships with LV that should do what you want to do.  It is named Gen Dig Pulse Train-Finite.vi
datoudream
2008-06-11 14:40:13 UTC
Permalink
I know the example. But if I use DO to generate pulses, the pulses' width can be changed.And I think the VI has no mistake, but why it runs unexpectedly.
centerbolt
2008-06-11 15:40:10 UTC
Permalink
Altering the Duty Cycle input on Gen Dig Pulse Train-Finite.vi  will change the pulse width.  Maybe I don't understand what you are trying to accomplish. 
datoudream
2008-06-14 00:40:05 UTC
Permalink
This post might be inappropriate. Click to display it.
Continue reading on narkive:
Loading...