LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i am looking for an example allowing me to output a digital word while controlling the pulse width of the digital bit

What i need to do seems simple, but I haven't done it before. Does anyone know of an example that will allow me to output 104 digital bits while specifying the pulse width of the bits? i need the widths of each bit to be on the order of .25ms. I will also have to make the bits customizable....maybe by using an array or something of that nature.

Thanks for your help
0 Kudos
Message 1 of 2
(2,483 Views)
Hello,

I don't think I have enough information to really understand your application. For example, are these 104 bits supposed to be transferred serially or in parallel? By "bits" do you really mean pulses? I'm going to guess you want to have one digital line that outputs a total of 104 pulses of variable pulse width and constant frequency.

If so, this is normally called Pulse Width Modulation or (PWM) and there is various NI hardware that can help you with this. Just do a search for "pwm" on our Developer's Zone or our Technical Support page for articles, example programs, and other information.

As you will see, it still depends on the hardware you are using.

I hope thi
s helps!

Russell McMurtrey
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 2
(2,482 Views)