Questions tagged [nidaqmx]

nidaqmx is shorthand for National Instruments (NI) Data Acquisition. NI has developed several software products for using their hardware, e.g. LabVIEW. They also have released an extensive C header file and a dll to facilitate use of their hardware in other user software (Measurement Studio). Examples in several flavors of C, visualBasic, and Python can easily be found on the Web.

This tag should be used when questions about using National Instruments hardware under various programming environments. Questions about using National Instruments software packages should likely be directed to their support services.

National Instruments has a large and well-developed library of information at: Getting Started with NI-DAQmx

While NI seems to be pushing people to use their package LabVIEW, they will answer questions from people using the "C" library. Python users have expressed frustration at the lack of native support. A stable wrapper of the "C" library has been developed at: PyDAQmx

134 questions
0
votes
3 answers

c# casting or conversion

I'm doing some work with an NI ADC. I'm currently reading in voltages from the AO and AI into List and I'm having some issues with console.writeLine. I'm using the dynamic type because the program needs to decide what the data should be…
Johnathan Brown
  • 713
  • 12
  • 35
0
votes
1 answer

NI-DAQmx C libs over nodejs

I'm making a nodejs app that have to pull data from a NI USB 6210. National Instruments, gives away a bunch of examples that use their (pure) C libs, since, I'm on nodejs, I thought I could "easily" recycle them into a node module using node-gyp,…
holographix
  • 2,497
  • 2
  • 32
  • 46
0
votes
1 answer

Prevent System.IO.FileNotFoundException when loading running code that uses a DLL from GAC

I'm using a third party API to access some data acquisition hardare (National Instruments hardware with DAQmx driver). To do so, I add a reference to its driver dll. When I run the code on a machine that has the driver installed, no problem. But…
Jonas
  • 1,365
  • 3
  • 21
  • 39
0
votes
1 answer

Error using DAQmxCfgDigEdgeStartTrig

I am trying to sample a 8bit input using sample clock and 'start sampling' trigger. Here's how I configure the…
Nazar
  • 820
  • 5
  • 13
  • 36
0
votes
1 answer

Digital/Analog output generation with NI DAQMX c/c++

I'm struggling to find a way to generate a voltage output from my NI DAQMX, using C/C++. I can't figure out how to use the NI device libraries, and I can't find any helpful examples online. Does anyone have any examples or insight that they can…
Ale
  • 13
  • 1
  • 3
0
votes
3 answers

make a CVICALLBACK a member function in QT creator

I found an NI example on how to use some of the DAQmx functions. It's a simple C-file that contains some of the following: ... // This is a declaration/definition I think int32 CVICALLBACK ChangeDetectionCallback(TaskHandle taskHandle, int32…
Nazar
  • 820
  • 5
  • 13
  • 36
0
votes
1 answer

DAQmx Physical Channel variable to DAQmx Start Trigger source

I have LV application, where user can specify input and output channels for connected DAQ device. I want to synchronise both channels using trigger on the input channel, with analog output start as a trigger source (image on this site shows part of…
Soul Reaver
  • 2,012
  • 3
  • 37
  • 52
0
votes
1 answer

Concurrent multiple external executables and DAQ in LabVIEW

I am using LabVIEW 2009 with USB 6008 for DAQ from accelerometers. Besides, DAQ from the accelerometers, I have couple of other external executables which triggers the two different process (data write). By using System Exec.vi, I can trigger these…
0
votes
1 answer

Why is there no Simulink block for cDAQ devices?

I am currently working on a project involving data acquisition and real-time processing in Simulink. We have inherited some rather swanky DAQ hardware that was bought specifically for this project - namely, a National Instruments cDAQ device (USB).…
wakjah
  • 4,541
  • 1
  • 18
  • 23
0
votes
2 answers

Read-Out of two channels of National Instrument USB 6211 with python

I'm trying to read out two channels simultaneously if an USB 6211 with python. To that end, I tried to adapt the example from http://www.scipy.org/Cookbook/Data_Acquisition_with_NIDAQmx by changing the line CHK(nidaq.DAQmxCreateAIVoltageChan( …
Dzz
  • 543
  • 2
  • 8
  • 18
-2
votes
1 answer

How to record data for distance measurement using Banner Q4XTBLAF300-Q8 laser sensor with NI USB 6008 in Python?

I had connected the analog voltage output to the analog input pin of NI USB 6008. However, the voltage shows no difference when the distance varying. Trying the other ways of getting the analog output data, eg. time flight etc., but don't know how…
Alicia
  • 1
-2
votes
2 answers

Program won't start before stop the program frist?

I'm a newbie using LabView for my project. So I'm developing a program that gathers data from sensors that attach in the DAQmx board and also a spectrometer from STS-VIS ocean optic. At the first developing, I combine both devices in one loop inside…
Kevin
  • 57
  • 6
-2
votes
1 answer

typeError in Python when defining a input chanel of NI-DAQ

Python code for Data Aqusition using NI-DAQ. Had downloaded NI-driver Error Traceback (most recent call last): File "C:\Users\icon\Desktop\DAQ 1.0.py", line 68, in chan = ctypes.create_string_buffer('Dev1/ai0') File…
akshay biradar
  • 61
  • 1
  • 1
  • 6
-2
votes
1 answer

National Instruments Measurement Studio example of VB.NET for analog (v) input & output

Is there a Meas. Studio example for a VB.NET app for inputting and outputting analog values at an NI USB-6343 DAQ? Details: My 6343 has A31&A32 controlling voltage to a LED (THOR LABS LEDD1B), and then A1&A3 inputting voltage from a photo diode…
Doug Null
  • 7,989
  • 15
  • 69
  • 148
1 2 3
8
9