11-22-2013 07:47 PM
Hi,
How can I generate a specified voltage in a 7852R card. I was trying to generate some voltage through LABVIEW and output it to one of the analog output pins of the 7852R card and then I was trying to measure back the same voltage thorugh one of the analog input pins of the card. I have attached my FPGA vi and the host Vi.
What I get from the output is two values fluctuationg randomly.
Please let me know what am I doing wrong?
Thanks,
Anurup
11-23-2013 09:55 AM
First of all, you should only have a single reference to the FPGA. Secondly, you should not be constantly opening and closing the FPGA. Open the reference and run the FPGA before you go into your loop. Close the FPGA reference after your loop. You can do all of the reading and writing you want inside of the loop from there.
I cleaned up your code and it is attached (saved in LabVIEW 2013).
11-23-2013 02:17 PM
Hello Crossrulz,
Thanks for your answer.
I tried implementing your code. Still then, when I run the host Vi, the input voltage value keeps fluctuating near a value close to 0 and changing the output voltage value has no effects.
I am using a NI SCB 68A board to access my signals and I have wired the AI1 screw terminal to AO1 screw terminal to measure my output voltage.
Any insight on this matter would be appreciated.
Thanks,
Anurup
11-23-2013 02:34 PM
Anurup wrote:I am using a NI SCB 68A board to access my signals and I have wired the AI1 screw terminal to AO1 screw terminal to measure my output voltage.
I'm pretty sure you code is using AI0 and AO0.
11-23-2013 02:47 PM
I had tried with both pairs AO0, AI0 and AO1, AI1. It is still not working.
Thanks,
Anurup