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

ModuleNotFoundError: No module named 'nidaqmx'

I'm using a USB-6009-NI to collect 6 digital signals. I'm using LabVIEW to collect the data but, since this is quite a burdensome task and since I need to integrate the output results with classification algorithms, I'm trying to program a piece of…
0
votes
1 answer

Error when deployin a dash app to heroku, Nidaqmx.lib.DaqNotFoundError

I am trying to remotely read data from an accelerometer using a NI9234. I am working in windows, and I am usnig plotly dash and nidaqmx on python. The whole thing works fine on the local host (is able to fetch the data and it's plotting it),…
Eduardo
  • 45
  • 9
0
votes
1 answer

Plotly-Dash with nidaqmx, name 'task' is not defined error

I am using python through windows, and I am trying to read data from a NI 9234 using an accelerometer. I want this data to be remotely read and for that I am using Dash. While for the NI part, I was trying to use nidaqmx, using this example. My dash…
Eduardo
  • 45
  • 9
0
votes
2 answers

Real time NI-DAQ data plot in Matlab

I'm trying to get a real time plot of data I'm acquiring with a NI USB-6008. I tried doing the same with arduino and got a plot exactly as I wanted (see here https://i.stack.imgur.com/08kzU.jpg), and the x-axis would move in real-time, but I…
Teresa
  • 1
  • 2
0
votes
1 answer

Doubts about rate and samples/channel in ConfigureSampleClock

I have certain doubts about how to configure the samples/channel at a determinate rate for a continuous acquisition using the NIDAQmx library in Visual Studio C#. I am acquiring 5 analog channels using the NI USB-6212 board. I want to acquire at a…
0
votes
1 answer

Delayed or overflowed data acquisition with python and nidaqmx

i'm having trouble getting my code running the way I want it to. The code is supposed to acquire data from sensors and store it in a file with time stamps. A linear motor is controlled using one of the sensor values. I use an NI cDAQ 9184 and Python…
0
votes
1 answer

Multi threading using p thread Linux problem

I have two functions, producer and consumer called by two p threads, but the while loop in the function is not running. Its a linux RT system. this is my code. im coding in eclipse. #include #include"NIDAQmx.h" #include…
Altris
  • 39
  • 3
0
votes
0 answers

how to specifiy the terminal of NI USB-6210 with python

I am using NI DAQ USB-6210. I am trying to make the program that can be applied counter output with python. import nidaqmx from nidaqmx.constant import AcquisitionType Counter1 = nidaqmx.Task() counter1 =…
Yuta
  • 1
  • 1
0
votes
1 answer

Flattening Express data to JSON string in Labview

I am working on Labview. I want to flatten the Express data type coming out from my DAQ-Assistent into JSON string. I am using JKI JSON but it is showing an error of unsupported data type: Expressdata. Are there any suggestions?
M.KD
  • 81
  • 9
0
votes
1 answer

Using nidaqmx to trigger signal in line with behavioural task

I am using the python nidaqmx API to instruct a USB-6009 DAQ to output an analog signal when a tone plays. I am trying to use the API guidelines and also the previous stackoverflow question (Triggering an output task with NIDAQmx) but still need…
AR141
  • 35
  • 1
  • 4
0
votes
1 answer

Callbacks: Difference between DAQmxRegisterDoneEvent() and DAQmxEveryNSamplesEvent

Trying to figure out how callback wrappers are called specifically. Our code deals with a slowTask and an onTask. During a slowTask, I deal with the following two lines (specific to this question): DAQmxCfgSampClkTiming(slowTask, "OnboardClock",…
TJ178
  • 45
  • 6
0
votes
1 answer

Download page for niDAQmx base does no longer list macos?

every page about niDAQmx Base on macos x refers to this URL http://www.ni.com/download/ni-daqmx-base-15.0/5648/en/ which no longers provides an OS popup to pick Mac as an option. Is mac support gone, or is has the page moved to another URL ?
0
votes
1 answer

Why is my NIDAQ register_signal_event callback function not getting called?

I'm toggling inputs on an NI-USB6525 and trying to detect the change with a Python script. I'm able to write the lines and read them successfully after the write, but I am not detecting the changes. I put in some prints to demonstrate I can set an…
0
votes
1 answer

Digital trigger for analog output

I want to trigger an analog output from a digital trigger on NI PCI 6713 http://www.ni.com/pdf/manuals/371011c.pdf According to the datasheet I can use PFI <0..9> and those pins are indeed shown in green in NI MAX with ao/StartTrigger My code is the…
Rémi Baudoux
  • 542
  • 3
  • 16
0
votes
1 answer

nidaqmx co_channels can't write sample and write samples continuesly

As suggested in this post nidaqmx co_channels can't write sample I am able to run my python script but when i include this function cfg_implicit_timing() Python throws the error saying that AttributeError: 'Task' object has no attribute…
ask
  • 1
  • 1
1 2 3
8 9