Jump to content

problems using daq MX vs. traditional


goran

Recommended Posts

Im using labview 7.1 and I have used traditional daq but Im going to switch to daq MX for sampling data. I have created 2 vi's, one for MX and one for the traditional daq, but they dont give me the same values/data. Any ideas how I can fix this? Se attached files for the block diagrams and front panels for the vi's.

Link to comment

What kind of DAQ-hardware are you using? (Always good to know).

What kind of signals did you connect to your analog-inputs? The difference does not seem to be very large. Perhaps your inputs are drifting...

Also, you explicitly chose RSE for DAQmx, but not for your Trad-DAQ example.

Regards, Jens

Link to comment

The test above is on a NI PCI-6036E daq card.

I choosed NRA becuase it gives the closest result. How can I check what method the trad-daq example uses?

I dont think its a drift in the hardware, it doesnt matter if I let the examples runs 3s or 10min, the result is the same.

We have connected pressure sensors to the daq hardware.

In column 3 for example, the result in traditional example is about 16511 and in the mx example 17320, i think that is a big difference. The 2 first columns is the preassure and the rest is voltage.

On the traditional vi 'AI Read.vi' I can get both unscaled (what im using in the examples) and scaled data, how can I scale the unscaled data from the MX vi 'DAQmx Read (Analog 2D I16 Nchan NSamp).vi'?

Link to comment

There is difference where DAQmx gets the 'raw' data from, it should be mentioned in the help for that function. But the I16 output is not the raw data for an E device (it is different for an M device), to go from I16 to float you should get an array from the 'Device Scaling Coefficients' that returns per channel the polynomial components for conversion from I16 to engineering units.

post-2399-1243500403.png?width=400

Ton

Link to comment

I'm not sure why your comparing raw values. Why don't you use scaled values and compare those? Use a 1.5V battery connected to a channel and compare that with both codes. I'm sure it will read the same.

Raw DAQ values are only useful when you are doing extremely high-speed DAQ and you would rather scale the values post-data acquisition. For anything less than 1kHz sample rates its unnecessary.

N.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.