From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-27-2022 11:41 AM
Hello all,
I hope you are all doing well and safe.
I want to convert voltage to physical units.
I use a sensor of illuminance connected with NI9205:
power supply: 16 40 Vdc
Range: 0.2 20klux
Ouput 0 10 V
the results are displayed in volts and I want them displayed in lux
any help please!
Solved! Go to Solution.
07-27-2022 12:03 PM
The scaling factor will be typically provided in the calibration report.
Assuming that 0.2klux is represented by 0V and 20klux is represented by 10V, you can find the rest of the values by the y=mx+c equation (assuming linear scaling)
You can compute m by two-point line equation,
m = (y2-y1) / (x2-x1)
m = (20-0.2) / (10-0) = 1.98 klux/V
c is the offset at 0V, which is 0.2klux
klux = 1.98 x (voltage) + 0.2
07-27-2022 02:30 PM
Maybe this.
07-27-2022 02:48 PM
@santo_13 wrote:
The scaling factor will be typically provided in the calibration report.
Assuming that 0.2klux is represented by 0V and 20klux is represented by 10V, you can find the rest of the values by the y=mx+c equation (assuming linear scaling)
You can compute m by two-point line equation,
m = (y2-y1) / (x2-x1)
m = (20-0.2) / (10-0) = 1.98 klux/V
c is the offset at 0V, which is 0.2klux
klux = 1.98 x (voltage) + 0.2
And since you are using a DAQmx device...
Create the DAQmx Scale for the channel using a linear Scale with your slope and offset and set the scaled units to kLux! (The scaling actually happens just a bit faster inside the DAQmx Read call to the underlying dll.)
07-28-2022 08:51 AM - edited 07-28-2022 08:55 AM
I appreciate your help. Thank you all