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
1 answer

Displacement vibration sensor using nidaqmx and python

I'm trying to make a program in python using tkinter. The user should be able to use a displacement vibration sensor or transducer. There are mainly two kinds of displacement sensors used for vibration analysis, the eddy probes, and accelerometers…
Eduardo
  • 45
  • 9
0
votes
1 answer

Replace DAQ Assistant for a voltage input with reading a WAV sound file

I am trying to convert my WAV sound file into data without using DAQ Assistant. For starters I have this code I have to modify and find code compatible with what I want to do, can anyone help ?
0
votes
1 answer

Python nidaqmx stream read does not change on every read

What I'm trying to do is setup 16 analog input channels, sample them constantly at a given rate and read 1 sample from each channel when calling the read function. Ideally I would like to read the newest sample so I can timestamp it when…
user733606
  • 115
  • 4
0
votes
1 answer

Unable to link .lib to VSCode-Undefined reference to `DAQmxCreateTask'

Building a C Code using Visual code studio having a third-party Library file from National Instruments. I have already included header file "NIDAQmx.h" to the code. The library file is still not linked with my code. Please find my code…
0
votes
0 answers

Implementing NI USB-6009 and Optical Sensor for Project

I am currently working on a project where I utilise NI USB - 6009 and an optical sensor to register wheel rotation then from there calculate the angular and linear velocity. My plan is to plot that output in the python GUI (tkinter) and if possible…
0
votes
0 answers

Create a PWM signal based on HI time

I am using a matlab simulink hardware in the loop setup with a DAQ with digital output. It controls an RC servo. It is a 50hz pwm. 90 degrees is a certain time HI, -90 is a different time HI. Correlate to 5 percent to 25 percent duty cycle. In…
Matt G
  • 1
0
votes
0 answers

How to know which is the type of a physical channel

How do I know which kind of data is currently emitted by a physical channel? physical_chan.ai_meas_types gives me the possible type of data (ex: CURRENT, TEMPERATURE_THERMOCOUPLE, VOLTAGE). I would like to know which one are currently emitting. Do I…
tbo47
  • 2,688
  • 3
  • 20
  • 11
0
votes
0 answers

nidaqmx read and write simultanously and fast in Python

this is my first post, so please bare with me. My Situation: I am trying to write a python programm to read_out an analog signal from a diode, while also writing an analog voltage to a device, by using a national insturments card. A very simple…
0
votes
1 answer

NI DAQmx - how to start collecting signals when the amplitude of the wave crosses a threshold (python)?

I am having trouble using Python and the nidaqmx library to properly to read N number of samples. I am using an NI USB-6366 daq. In short, my target is to get a signal of total N samples. Where there will be M pre-triggered samples and (N-M)…
Khan02
  • 1
  • 1
0
votes
1 answer

Build cluster array only produce 1 element

I've been trying to make an array of clusters in LabVIEW, I know I can make it in the front panel but I need to make it from the block diagram because I want to input something into my array of clusters and to make my program function correctly I…
0
votes
0 answers

National Instruments USB X-SERIES with Python-nidaqmx

I am trying to drive 4 independent channels using the python nidaqmx module and the NI X-series 6341 (PN: 781438-01). I have 2 analogue outputs and two digital outputs and I would like all these streams independent of each other. For some reason…
0
votes
1 answer

AC voltage ramp LabVIEW

I am totally new to LabVIEW. My purpose is to create an AC voltage ramp using this programming language like the one showed below. For example, I would like to change the voltage from 0 to 5 V in 2 seconds. How do I do that?
0
votes
2 answers

Optimize data acquisition with HDF5 files in Python

I'm trying to understand how can I write a DAQ in Python where I manage two signals (I and Q from an IQ mixer) from a NI device. My doubt concern two problems: What are the main differences to use h5py instead of pandas? My data are not complex, I…
Frostman
  • 53
  • 1
  • 7
0
votes
1 answer

NIDAQmx Counter input Edge Source change

I'm a little bit confused with my code. I want to read the position of a counter input (edge counter). I can get the Device and the channel but I want to change the Edge Source or the Terminal. If I add the channel the Edge Source is automatically…
0
votes
1 answer

Edit control box can't accept error buffer

Issue I'm attempting to print out an error buffer on a WINAPI GUI. As writtin, my code attempts to read or write memory which has not been allocated causing an error to be thrown. There must be some way to elegantly convert from a character array…
1 2 3
8 9