11-17-2017 02:04 PM
Hello,
I would like to obtain NI-SCOPE scaling coefficients for raw binary data values. I'm calling "niScope Get Scaling Coefficients.vi" driver function. The function returns an error -1074116037. What could I be doing wrong? I am attaching a test VI (LV2016) for a reference and a screen shot of the error. The scope model is 5922. The code seems to work fine with model 5105.
.
11-20-2017 04:30 PM
Hi Fedor,
Was able to replicate this error with a simulated device. I was however able to get information about the Gain and Offset of the device using property nodes and have attached this example below. Is this the information that you were looking for?
11-26-2017 01:53 PM
Hi 2Shanez,
I believe the properties that you're using belong to "Waveform Measurement" post-processing functionality, not the scaling of the raw ADC inputs.
11-27-2017 12:03 PM
Hi Fedor,
This is the intended behavior. In old versions of the driver, we returned data for the 5922 through this VI, but the data was wrong. We elected to fix this by returning an error.
You can get binary scaling data from "niScope Fetch" as demonstrated in the example "niScope EX Binary Acquisition.vi". You don't need to use the "Get Scaling Coefficients" vi.
11-27-2017 12:31 PM
Hi jay2510,
I was using Get Scaling Coefficients to pre-configure various modules in my design BEFORE data is recorded, i.e. before first Read/Fetch. It works fine with all the other Ni-Scope hardware here, but the 5922 that I tried using recently. I guess I have to re-factor all my architecture now to accommodate that bug that you have mentioned.