Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

nidaq mx vb.net programming compatibility with daqcard-6062e

Hi,

 

I was using the sample code from the NiDAQmx VB.net samples that is on the cd that came with my recent DAQcard-6062E purchase.  i noticed voltage data collected from the card was fluctuating even when the the AI0 port was grounded.  pretty sure something is wrong, i proceeded to open Measurement and Automation Explorer.

 

the version that came with the cd is 5.0, under the "devices and interfaces" section, it shows "NI-DAQcard-6062E 'dev1'".  i clicked on the device, then clicked on the "create task" button on the screen and added a voltage sampling task for AI0.

 

when i ran the task, the voltage continues to fluctuate, then it peaks and flatlines at +10v.  each re-run of the task gives the same result.  not knowing if it's software or hardware issue, i sourced another laptop with Measurement & Automation Explorer V.4.6.1 with the identical daq card.

 

this time, the screen shows two devices under the "devices and interfaces" section.  in addition to the "NI-DAQcard-6062E 'dev1'" that i got prior, i also found a new deviced that's named "Traditional NI-DAQ (Legacy)".  using v.4.6.1, i created a task for both of the devices.  the device "NI-DAQcard-6062E 'dev1'" behaved just like it did with v.5.0 of the software.  but, the device "Traditional NI-DAQ (Legacy)" behaved as it should, showing tiny, almost nonexistent voltage fluctuations that's centered at 0 V.

 

so my question is, why is this happening?  is there some incompabilities for the legacy devices to be used with the nidaqmx drivers?  is there a way for the legacy cards to work with nidaqmx and vb.net? Thanks!

0 Kudos
Message 1 of 4
(3,236 Views)

First, I would check if you see the same voltage values when you use the test panel in MAX for your card.

 

Also, which version of Windows are you using on both the PCs that you've tried this on?

 

Regards,

Brice S.

Applications Engineer

National Instruments

www.ni.com/support

 

0 Kudos
Message 2 of 4
(3,217 Views)

both laptops are running windows xp.

 

i'm not too sure what you mean by check voltage values.... as, one laptop has v.4.6.1, and the other laptop have v.5.0, and the behavior can only be duplicated only for the "dev1", and not legacy.

0 Kudos
Message 3 of 4
(3,215 Views)
Two vital pieces of information that you have not provided is the connection type (RSE, DIFF) and the pins you have wired. The default connection type could be different for the two drivers can but you can select the type in MAX and see if the reading changes.
0 Kudos
Message 4 of 4
(3,209 Views)