Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

FPGA USB-7855R - Setting input voltage range has no effect.

Solved!
Go to solution
Highlighted

Hi!

 

It seems that setting the IO range for my FPGA (USB-7855R) in the project explorer has no effect; When I terminate AI0 with a resistor and measure the 0 Volt baseline with a frequency of 0.5 MHz, I get a standard deviation of 0.3 mV and a quantisation of 0.3 mV/bit, consistent with the 10 mV range, both when I select this range and the 1 +/- V range. Does anyone have any thoughts? The graphs below show measured voltage and the corresponding histogram, which look the same for all voltage ranges.

Capture.PNG

Cheers,

Marco

0 Kudos
Message 1 of 6
(302 Views)

Are you recompiling between tests? Some code would be helpful so we can see where the scaling is coming in

0 Kudos
Message 2 of 6
(284 Views)

Hi,

Yes, the Labview IDE forces a recompile after changing the IO range through the project explorer, which is the only place I (know of to) change this setting; I don't do it anywhere in the code. (For clarity, this is when you right-click on the target and then click 'Change IO settings', which brings up a pop up where you can set the ranges for each individual IO channel.) Will be happy to post some code tomorrow however if you think this could be helpful.

Cheers,

Marco

0 Kudos
Message 3 of 6
(278 Views)

Hi again,

 

This is the target code (not very exciting!)

image.png

And this is the host code:

image.png

As you can see, there's nothing spectacular happening here Smiley Surprised). I've attached a zip file with the project files.

0 Kudos
Message 4 of 6
(268 Views)

Hi again,

 

This is the target code (not very exciting!)

image.png

And this is the host code:

image.png

As you can see, there's nothing spectacular happening here Smiley Surprised). I've attached a zip file with the project files.

0 Kudos
Message 5 of 6
(267 Views)
Solution
Accepted by topic author mwisse
03-14-2019 08:32 AM

It sounds like an NI bug propagating the settings. Try this—instead of changing the input range from the project you can use a property node in the FPGA code.

http://zone.ni.com/reference/en-XX/help/371599P-01/lvfpga/io_property_node/

http://zone.ni.com/reference/en-XX/help/371508V-01/target2devicehelp/ni_usb-7855r_oem/

0 Kudos
Message 6 of 6
(252 Views)