Hello Frederic,
Please take a look at the LabVIEW shipping example called "niScope EX Binary Acquisition.vi", which can be found through the LabVIEW example finder or directly in the LabVIEW examples directory. This example fetches binary waveforms from a multi-record acquisition and then scales the data using the gain and offset returned in the "wfm info".
I have tested this example with both the 5112 and 5122 digitizers and have found that the "wfm info" appears to return the correct gain and offset values during each iteration of the acquisition loop (they remain constant). If you would like to query the gain and offset values after the loop, you can add an additional fetch vi anywhere before the scope session is closed.
The gain and offset v
alues are typically very small numbers, in the range of ~1e-4 for the offset and ~1e-3 to ~1e-2 for the gain, for an 8-bit digitizer (5102, 5112). The values are even lower for the 5122. It is possible that the front panel indicators are set to display an insufficient number of digits and display is rounding to 0.
Regards,
Brent R.
Applications Engineer
National Instruments