From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Solved!
Go to solution

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
(2,434 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
(2,416 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
(2,410 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 :o). I've attached a zip file with the project files.

0 Kudos
Message 4 of 6
(2,400 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 :o). I've attached a zip file with the project files.

Download All
0 Kudos
Message 5 of 6
(2,399 Views)
Solution
Accepted by topic author mwisse

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
(2,384 Views)