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

Estimate transfer function of dc motor

I have a motor generator set-up (two shaft coupled RS380PH DC Motors) and a driver circuit (TL071CP). I want to estimate their collective transfer function using MATLAB, a NI-DAQ. I think the best way to do this is using the function sys =…
Matt1993
  • 105
  • 1
  • 3
  • 8
1
vote
3 answers

fwrite() dynamic array to a file

I'm trying to save a dynamic array to a file but I'm having some issues. This is my current code: /********************************************************************* * * ANSI C Example program: * Acq-IntClk.c * * Example Category: * AI * *…
Johnathan Brown
  • 713
  • 12
  • 35
1
vote
1 answer

NI USB 6211 Reading Analog Voltage Input

I'm trying to read a voltage input into my NI USB-6211 via a C program. To that end, I tried using some of the example programs that came with the installed program, to no avail. I've looked at the documentation, but to be honest it doesn't quite…
Johnathan Brown
  • 713
  • 12
  • 35
1
vote
1 answer

Two Class instances in Python not different

I'm working on another data acquisition project, which has turned into an object oriented programming question. In “main” at the bottom of my code I make two instances of the Object DAQInput. When I wrote this, I thought my method .getData would…
Carl Houtman
  • 155
  • 1
  • 10
1
vote
3 answers

Is it possible to customize the signal returned by a NI-DAQmx simulaled device?

NI-DAQmx has a "simulated driver" feature. In the case of an AI, the returned signal is a noisy sine. Is it possible somehow to change this behavior in order to have any type of the signal? And if not, are there some alternatives to simulate…
luc
  • 41,928
  • 25
  • 127
  • 172
1
vote
0 answers

DAQ with NI board: Matlab & Win64

In a moment of uninformed arrogance, I decided that my new data acquisition computer is going to be an x64 running win7. I have matlab 2012a running on the computer and a NI PCIe6363 card doing the data acq. My question is about the new daq.Session…
bas
  • 209
  • 2
  • 10
1
vote
1 answer

mingw w64 labview build error

I have been trying to get this to work for the last 2 days but cannot. Maybe someone can help me. Let me explain my setup first; windows 7 64bit nidaqmx 9.1.7 mingw 64 bit Netbeans 7.1.2 I created a def file (from C:\Program Files (x86)\National…
CPL
  • 161
  • 2
  • 10
0
votes
0 answers

Is it possible to read from the NIDAQ card's clock system using Python?

I'm new to the nidaqmx library, and I wondered if there is a way to read from the default sample clock in the NIDAQ(USB-6346) card. I want to do this to figure out the time it takes to collect a particular number of samples. Any responses/solutions…
0
votes
0 answers

how can i include nidaqmx.h in visual studio

I would like to write nidaqmx provided by ni in language c. However, there is a problem with quoting the header file. I wonder if this is the right way to write in the contents after #include. And when it is executed in this way, there are no other…
0
votes
1 answer

NI 9207 with nidaqmx with Python, how do I configure sample rates and achieve continuous sampling?

I have worked with nidaqmx in the past. I worked with an NI 9229 (using a usb cDAQ-9171 single slot chassis) which is capable of simultaneous sampling. I could set the sample rate and also continuously sample the buffer with my tkinter…
Chazzo
  • 21
  • 3
0
votes
1 answer

Labview adquisition speed

I am using LabVIEW with DAQmx to read data, and I need to read the chart every 100ms. I have the number of samples and the sampling rate, and I am using continuous acquisition mode. To read every 100ms, I need to adjust the number of samples per…
Hrathen23
  • 37
  • 5
0
votes
0 answers

nidaqmx installation in Jupyter and spyder

I am trying to install nidaqmx in Jupyter and spyder. It seems that it does not work. there is no output of the simple example to get a voltage value in Jupyter. In IDLE the same simple code works. %pip install nidaqmx Defaulting to user…
0
votes
1 answer

How to read Interleaved samples using nidaqmx API

I am having trouble trying to read interleaved data using a NI-USB 6353 device. I’ve looked through the Python nidaqmx API documentation to see if there is a way to do that, but there is no mention of that. Is there a way to read interleaved data…
Darth_Yoda
  • 37
  • 3
0
votes
0 answers

How to write nidaqmx data to a file without overflowing buffer

I am trying to record data from an accelerometer that is connected to a NI DAQ using the python nidaqmx library and APIs. I am starting and stopping the task from a tkinter GUI, so I am using the AnalogMultiChannelReader so that the data_read is not…
mickey
  • 476
  • 5
  • 18
0
votes
0 answers

Task closing with continuous sine signal

I wanted to use a NI card USB-6216 to generate a continuous sinus signal via analog output for a long time (hours, until my measurements are done) and in my measurement routine, I also wanted to read my analog inputs. My questions are now: Is this…
nico.wagner
  • 125
  • 4
1 2 3
8 9