04-08-2005 02:19 AM
04-08-2005 04:35 PM
04-09-2005
05:21 PM
- last edited on
11-16-2025
12:08 PM
by
Content Cleaner
While you could hard code the scaling factor, it will be more flexible if you retrieve the scaling coefficients from the driver. To do this, you need to use the Analog Input>>General Properties>>Advanced>>Device Scaling Coefficients>>Device Scaling Coefficients properties under the DAQmx Channel Property Node. Look at the documentation for this property to see how it can be used to create a polynomial equation for scaling to volts.
Since you are creating a data logging solution, you may want to consider using a compressed data stream from the driver instead of the I32 data type. This will allow you to read the data back as a stream of u8's instead. Since the PXI-4472 is 24 bits, you will only have to write 3 bytes to disk for each sample instead of 4. You can check out the following examples for how to create an application using this compressed data stream. It also shows how to use the scaling coefficients to transform the unscaled data back to voltage values.
04-10-2005 08:16 PM
05-10-2005 01:36 PM
05-11-2005 12:35 AM - edited 05-11-2005 12:35 AM
帖子被hmqi2002在05-11-2005 12:36 AM时编辑过了
05-11-2005 09:27 AM
06-17-2005 01:28 PM - edited 06-17-2005 01:28 PM
Message Edited by cwierzynski on 06-17-2005 01:28 PM
06-17-2005
04:31 PM
- last edited on
11-16-2025
12:09 PM
by
Content Cleaner
CW -
I noticed that you said you are working on a lossless compression scheme. Are you using DAQmx 7.4? The reason I ask is because DAQmx 7.4 already has implemented both lossless and lossy compression schemes.
What kind of aplication are you working on? Are you streaming data to disk? Across ethernet? Just curious....
-Jack
07-07-2005 05:22 PM