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
1
vote
0 answers

NI DAQ M series counter with trigger

I am using a M series DAQ's two counter channel to generate pulse train to control two step motor, but these two channels are not fully independent, when one channel generate pulse, the other channel with change state too. In this link, it…
Forrest
  • 51
  • 1
  • 9
1
vote
0 answers

Generating a continuos signal with matlab and NI device

im working on a transmitter with a Ni Daq and i have a little problem. I generate a period of my signal and i get it out with a queue output and i put a listener to call again the queue output, but this process take 0.1 seconds (call again the…
1
vote
1 answer

nidaqmx: Access an existing task

I am using the nidaqmx-python library for acquiring data. Is it possible to access an existing task, which is already defined in the NI MAX?
blaz
  • 4,108
  • 7
  • 29
  • 54
1
vote
1 answer

PyDAQmx.Task() reises RecursionError

The simple code: from PyDAQmx import Task task = Task() raises: <...> File "C:\Users\Adrian\Anaconda3\lib\site-packages\PyDAQmx\DAQmxFunctions.py", line 28, in mafunction DAQmxGetExtendedErrorInfo(errBuff,2048) ctypes.ArgumentError: argument…
ADR
  • 1,255
  • 9
  • 20
1
vote
0 answers

Make int32 CVICALLBACK DoneCallback() accessible to class

This is an issue of implementing a c function in a c++ environment. National Instruments developed a NIDAQmx.h header file with functions in c. I've been successfully using their functions in a c++ class to control an acquisition device (cDAQ-9174).…
A. Vieira
  • 1,213
  • 2
  • 11
  • 27
1
vote
1 answer

How to set tri-state on NI-DAQ using C#

I have a NI-DAQ 6212 & I am trying to set the digital output in tri-state mode using C#. I am not able to find an example on how to set it aside from this reference http://zone.ni.com/reference/en-XX/help/370473H-01/mstudiowebhelp/html/bd33b0d/ How…
kasrus
  • 13
  • 4
1
vote
2 answers

Using DAQmx with LabView on Mac OSX

I'm working on a project that was created by a coworker, having been built on LabView on Windows. He used a bunch of DAQmx modules, but I'm having trouble opening them on my Mac. I realize that DAQmx on the Mac is basically replaced with DAQmxBase -…
Josh Johnson
  • 563
  • 3
  • 11
  • 29
1
vote
2 answers

NIDAQmx yosemite compatibility

I've installed osx 10.10 ( Yosemite ) and since then the device (NI-USB 6210) is not working anymore. The problem is obviously driver related. I called National Instruments and they confirmed the issue, and they also told me that the problem will be…
holographix
  • 2,497
  • 2
  • 32
  • 46
1
vote
1 answer

ctypes uint64 conversion error

I got the following problem : I load via c types the nicaiu.dll to control a NI-USB6218 Data Acquisition Pad and i have to call several function to initialise it (DAQmxCreateTask(), DAQmxCreateAIVoltageChan() and DAQmxCfgSampClkTiming() ). The…
Gora
  • 61
  • 12
1
vote
0 answers

Error running NI-DAQmx ANSI C example in Windows 7 virtual machine

I am running a Windows 7 guest system with an Ubuntu 14 host, using VirtualBox, and have run into a problem running even the simplest examples provided by National Instruments, using the ANSI C API for NI-DAQmx. The first time the DAQ Device is…
RazvanC
  • 11
  • 2
1
vote
1 answer

Matlab events and listeners: propagate information out of the Event call

I have an object that incorporates an event which is created in my program(specifically, a session based ni daq with a 'DataAvailable' event which fires every time a set number of samples is acquired.) This event will be fired at random times during…
bas
  • 209
  • 2
  • 10
1
vote
3 answers

Strange behaviour when passing values from a float array to a double array (C, C++)

I am developing an application that uses NI-DAQ and below are some methods which were given by the provider. void someMethod(Calibration *cal, float myArray[], float result[]) { …
Mudkip
  • 373
  • 6
  • 27
1
vote
1 answer

Analog output from USB6009 using python and NIDAQmx base on Mac OSX

All, I'm attempting to use Python and DAQmx Base to record analog input and generate analog output from my USB 6009 device. I've been using a wrapper I found and have been able to get AI but am struggling with AO. There is a base class NITask which…
rjb3
  • 39
  • 1
  • 6
1
vote
1 answer

DAQmxRegisterSignalEvent with different callbacks in Qt Creator

Hi everyone and happy New Year! I am interfacing PCI 6259 + BNC2110 with Qt Creator IDE (based on C++). I am trying to sample signal using external triggering. I have a running microprocessor that produces trigger…
Nazar
  • 820
  • 5
  • 13
  • 36
1
vote
1 answer

Matlab Data Acquisition with Continuous Output and Dis-continuous Input

I would like to use Matlab's data acquisition toolbox to continuously send data to a device (sort of like an outer loop that is always running) and collect data from a sensor for a pre-determined duration after some time (the data acquire part being…
1 2
3
8 9