LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView NiDAQ Communication not established

Hi to all,

 

I brought an old application (LabView 2013 upgraded from 5.1) to a new computer, I installed the NiDAQ driver 9.8.x and the Labview Runtime 2013. So far I saw the PCI-MIO-Device was configured by the NiMAX correctly, but I do not get the channel values into my Application.

Is there an additional configuration I forgot?

Thanks for replying.

0 Kudos
Message 1 of 2
(2,418 Views)

I assume you are using the February 2014 Device Driver DVD (released with LabVIEW 2013 Service Pack 1).  In addition to NI-DAQmx, you need to install the Device Drivers for your NI Devices.  You say you see your device in MAX (that's good -- you probably have the Drivers).  Have you tried running a Test Panel in MAX?  That will test that you can actually use the device.

 

If you are new to DAQmx, I strongly recommend reading the White Paper Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications.  I suggest that you do the following:

  • "Play" with your Device in MAX, learning how to set up one or multiple channels, including renaming them to more mnemonic values (X, Y, Z for acceleration axes make more sense to me than AI0, AI1, AI2).  Also set the Range, Sampling mode, and Sampling parameters (Rate, # samples) and run a test with either a real input or just "noise".
  • Once you know what settings you want, build a Task in MAX to mimic the setup you just configured.  Choose Channels, Channel Names, Gains, Sampling Params, etc.  Make a more mnemonic name than MyVoltageTask.  Save the Task.
  • Now, in LabVIEW, drop a Start Task function from DAQmx on your Block Diagram.  Right-click the upper-left connector and choose "Create Constant", which makes a blank I/O Constant.  Click the little selector Arrow and your DAQmx Task created in the previous step should appear.

Note that this procedure, while it is robust, simple, and easy to use, requires MAX and a MAX Task.  As you get more expert in DAQmx, you can use some of its more advanced features to build and configure a task "on the fly", which (as I discovered for myself) is sometimes not only desirable but necessary when dealing with more complex setups.

 

Bob Schor

0 Kudos
Message 2 of 2
(2,386 Views)