08-08-2013 07:53 AM - edited 08-08-2013 08:00 AM
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!
08-08-2013 01:57 PM
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.