Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Analog Inputs and Outputs in PCIe 7852R

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

Download All
0 Kudos
Message 1 of 5
(4,551 Views)

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).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(4,541 Views)

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

 

0 Kudos
Message 3 of 5
(4,533 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(4,530 Views)

I had tried with both pairs AO0, AI0 and AO1, AI1. It is still not working.

 

Thanks,

Anurup

0 Kudos
Message 5 of 5
(4,528 Views)