LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

generate clocked digital waveform

I'm using a USB-6221.  I need to generate a waveform synchronized to an external clock.  I need to generate it once when a button is pushed.  The data is in the form of an integer, 8 bits.  So if the integer is 12 I want to generate 00110000 on one output channel synced to a clock input on another channel.  I've gone through the examples but I couldn't find how to specify the value of the waveform.  Any help would be appreciated!

0 Kudos
Message 1 of 6
(2,825 Views)
Nevermind.  I figured out a way to do this.

0 Kudos
Message 2 of 6
(2,795 Views)

Hi,

Please post your solution.  It benefits others who view this thread and we can verify if it is the best way to do it.

Regards,

Ima
Applications Engineer
National Instruments
LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
0 Kudos
Message 3 of 6
(2,781 Views)
I started with the Example in the example finder "Write Dig Chan-Ext Clk.vi".  That creates a square wave on 8 channels.  I changed it to just one channel and replaced the square wave (basically counter output) to my 8-bit value.  See the attached GIFs.  The first is my modified "Write Dig Chan" program and the second is the "Create Dig Waveform" SubVI where I read in the 8-bit number I want to output on the channel.

Message Edited by mperdue on 10-23-2007 02:47 PM

Download All
0 Kudos
Message 4 of 6
(2,776 Views)
Thanks for posting your solution Smiley Wink
Regards,

Ima
Applications Engineer
National Instruments
LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
0 Kudos
Message 5 of 6
(2,751 Views)
Thanks, mperdue & Ima. Smiley Happy
- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 6 of 6
(2,736 Views)