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

national instruments pyDAQmx for python 3

Python 3.7 I am writing a Python (3.7) code for National Instruments hardware. There is a python library for Python 2.7. There are instructions on how to convert the library to be with Python 3. I have downloaded PyDAQmx-1.4.1.tar.gz from the…
Valentyn
  • 659
  • 1
  • 7
  • 28
0
votes
1 answer

Export sampling clock of PXI 6251 using python

I want to synchronize two PXI 6251 on a PXI 1000 chassis to acquire 32 analog inputs simultaneously. I am using python with the nidaqmx library. To do so, I want to export the sampling clock of one card on a digital output, route it to a digital…
Rémi Baudoux
  • 542
  • 3
  • 16
0
votes
2 answers

libnipalu.so failed to initialize error for all NI related commands

Already, I’ve installed two DAQ cards on PCI slots of a computer with a Centos 6.9 32-bit operating systems with the kernel version 2.6.32-754.2.1.el6.i686. The first one is PCI-6225 and the second is PCI-6509. I’ve followed all the steps of the…
Soheil Pourbafrani
  • 3,249
  • 3
  • 32
  • 69
0
votes
0 answers

Continuous data acquisition with a PyQt GUI

I am building an application where I acquire data continuously from a National Instruments device and do some real time processing on it. I am trying to hook the acquisition part to a PyQt GUI so that the user can start, stop and configure the data…
0
votes
1 answer

nidaqmx co_channels can't write sample

I try to use Ni-Daq to generate pulse. the example provided by the nidaqmx is like as follows: import nidaqmx from nidaqmx.types import CtrTime with nidaqmx.Task() as task: task.co_channels.add_co_pulse_chan_time("Dev1/ctr0") …
Forrest
  • 51
  • 1
  • 9
0
votes
2 answers

NiDAQMX close all created tasks

I would like to close all the previously created tasks in the nidaqmx-python module. How can I do this? In example, I have a number of previously opened tasks: for i in range(10): nidaqmx.Task() which I did not close. However, I want to close…
blaz
  • 4,108
  • 7
  • 29
  • 54
0
votes
0 answers

LED control of voltage output with multichannels in labview - loops end in LED on all the time

I have a four channel LED system where I'd like to control LED intensity and time-on for each LED separately- with specific number of iterations of this stimulus (see diagram below). We're using an A/O module on cDAQ system to control each…
0
votes
0 answers

Why does some part of acquired signals repeat at the beginning and ending of signal?

I'm acquiring some pulses which repeat at certain intervals. Hardware is Advantech pci1710 (it is like NI multifunctional pci cards), software used is Labview 2013. The problem is: at the beginning and ending of pulses I see some added pulses which…
Hesi
  • 113
  • 2
  • 10
0
votes
1 answer

Toggling between NRSE, RSE and Differential Analog inputs in LabWindows CVI

I'm having some issues reading analog input from a DAQ card in LabWindows CVI; the input configuration seems to be set to "Differential" by default, and I was wondering how I would go about changing that to NRSE.
0
votes
1 answer

PyDAQmx Setting Acquisition Mode to On Demand

I am trying to write a program in PyDAQmx that counts digital edges and outputs a TTL signal every nth edge. I am having trouble setting the Acquisition Mode in PyDAQmx to be "1 Sample (On Demand)" which is what I set while using LabVIEW. I am using…
Richard
  • 45
  • 4
0
votes
2 answers

How to use DAQmx Timing (Sample Clock ) in C#.Net

I'm using Measurement Studio. I need to use the DAQmx Timing VI functionality in my C# application. How to do this. Please Help me. The VIs are here
Thorin Oakenshield
  • 14,232
  • 33
  • 106
  • 146
0
votes
0 answers

NI-6281 Python error

I have problems with data acquisition using National Instruments and Python. I use magnetic field sensors with 3 axes x, y, z, and I am using National Instruments library(Python) to get data. I made the setting to collect 100 data for every 1…
jdub Kim
  • 23
  • 5
0
votes
1 answer

Error -200361 using USB-6356 X-series DAQ board for SPI control

I'm using a USB-6356 DAQ board to control an IC via SPI. I'm using parts of the NI SPI Digital Waveform library to create the digital waveform, then a small wrapper VI to transmit the code. My IC measures temperature on an RTD, and currently the…
chrisb2244
  • 2,940
  • 22
  • 44
0
votes
1 answer

Find valid trigger sources on DAQmx device

Using National Instruments' DAQmx via C++, I would like to present a list of possible physical trigger inputs available on the system to the user. I can set a task to start on an external trigger by calling something like char* trigger_source =…
0
votes
2 answers

Access values in an externally generated array

I am taking voltage readings and converting them into pressure readings. This is my first real experience with C so my code is messy but so far has worked fine. The problem I am facing is making the program count the number of readings (stored in…
NikMif
  • 1
  • 1
1 2 3
8 9