LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pwm write to 9401 card

Hi guys,

 

my setup is PXI 8196 as RT and PXI 7813R as FPGA. To the FPGA i have a NI 9401 connected, and i would like to write to one of the outputs from the card a PWM signal. I've been trying to do it with the following code, but it doesn't work. I've been trying to read the DO with a multimeter and with an oscilloscope but i don't get any signal... the output voltage is always 0 V...

 

Could anyone tell me what i'm doing wrong?

 

Inputs to the RT VI is only "Power","Power_MAX" and "PWM_Period" are fixed.

 

BTW: I've been able to send an easy bool out with the card, an easy toogle switch is working without problems...

 

Thanks!

0 Kudos
Message 1 of 2
(2,329 Views)

Quick check of the obvious: is any of this code inside a loop? Otherwise it's only going to execute once which means you won't get a continuous train of pulses. Both the RT and FPGA code need to be in a loop, although the FPGA reference should be opened first before the loop starts.

0 Kudos
Message 2 of 2
(2,308 Views)