Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How does the integer array pattern relate to the output of the Digital 1D U32 1 Chan NSamp DAQmx VI?

I'm attempting to use the "Cont Write Dig Pot-Ext Clk.vi" example to generate a square wave signal.  I am using LabVIEW 8.2 and the onboard clock with a sample clock rate of 500000 Hz. 
 
How does the U32 integer array pattern relate to the output of the Digital 1D U32 1 Chan NSamp DAQmx VI?  I know that each element in the array corresponds to a point of data to write to the channel, but I don't understand exactly how.  I've attached screenshots of the front panel and block diagram.
 
Currently the U32 array pattern is set to [1,2,4,8,16,32,64,128] and it produces a square wave.  Is there any way I could specify a higher duty cycle so the signal is high around 90% of the time?
 
Thanks,
Joe
Download All
0 Kudos
Message 1 of 2
(3,284 Views)

Hi,

Thank you for posting to the National Instruments Discussion Forums.

I would look at the Write Dig Chan-Ext Clk.vi example instead. This example uses a digital waveform instead or an array. The digital waveform is a data type in LabVIEW that allows you to define custom waveforms with timing information. You can replace the Create Digital Waveform.VI with a VI digital waveform palette - here you can find VIs to define your digital waveform to have any duty cycle, rate, etc.

You can change the timing mode to Continuous instead of Finite to make this a Continuous task.

 

Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
0 Kudos
Message 2 of 2
(3,247 Views)