Questions tagged [daq-mx]

NI-DAQmx driver software goes far beyond a basic DAQ driver to deliver increased productivity and performance.

40 questions
3
votes
2 answers

nidaqmx.Task: (OSError: [WinError 126] The specified module could not be found)

The following code for data acquisition gives the below error import nidaqmx with nidaqmx.Task() as task: nidaqmx.Task.ai_channels.add_ai_voltage_chan("Dev1/ai0") task.read() OSError: [WinError 126] The specified module could not be…
3
votes
1 answer

This statement is not inside any function

I get a parse error on line 51 (starting with startw = input('Enter starting wavelength: ')) but I have no idea why. The error reads as such; Line: 51 Column: 1 This statement is not inside any function. (It follows the END that terminates the…
Harry Spratt
  • 179
  • 11
3
votes
0 answers

Continuous analog read from National Instruments DAQ with nidaqmx python package

Inspired by the answer to this question, I have tried the following code: import nidaqmx from nidaqmx import stream_readers from nidaqmx import constants import time sfreq = 1000 bufsize = 100 data = np.zeros((1, 1), dtype = np.float32) #…
3
votes
1 answer

How to get the time elapsed time after using the reset of the "Elapsed Time" component?

I am calculating the capacitance of a circuit using LabVieW. I have tried to get the time after the voltage across it reaches 2.5V. I am giving a supply of 5V. I used a logic operator and connected it to the reset to the elapsed time component. But…
Althaf1467
  • 281
  • 1
  • 14
2
votes
1 answer

Is there a way to enumerate interfaces using NI Daqmx

I have a C++ application interfacing with a NI DAQ card, however the name of the device is hard coded and if changed in the NI Max app it would stop working, so is there a way to enumerate connected devices to know the name of the cards that are…
UbiMiles
  • 71
  • 7
2
votes
1 answer

labview daq-mx dynamic buffer size

I want to record large amount of data in continuous mode, using a PCI 6110 and DAQ-assistant VI. At this point, I'm thinking how to dynamically change the buffer size, but I'm not sure if this is possible or if it will affect how data will differ…
Darius
  • 71
  • 5
2
votes
2 answers

Labview: I can't read the voltage from more than one channel (DAQmx read)

I have a SCB 68A connector from National Instruments and I want to read out the open voltage from it. So I used the example code provided by National Instruments (https://decibel.ni.com/content/docs/DOC-28502): I got 5 mV which is a reasonable…
user2738748
  • 1,106
  • 2
  • 19
  • 36
2
votes
1 answer

NI DAQmx -- How to configure software trigger?

I can't for the life of me figure out how to enable a software trigger using National Instruments DAQ mx. Documentation vaguely mentions properties, or that it can only be used with a switch device, but it's very incomplete. The one example page…
Sonicsmooth
  • 2,673
  • 2
  • 22
  • 35
1
vote
1 answer

How to avoid a Data Missed event in matlab when doing data acquisition from an NI board?

I am receiving DataMissed event(s) in matlab when acquiring waveform data (2 channels) and an analog input trigger (set up in pretrigger mode - negative delay value). Here is the code: sampleRate = 500000; pretrigger = 8; trigger_value = 0.6; ai =…
Ben
  • 305
  • 5
  • 12
1
vote
0 answers

NI DAQ MAX Receiving false results from Task.CIChannels.CreateAngularEncoderChannel()

I have an NI DAQ: cDAQ9185-1E7661EMod1, and I'm trying to read it's data from port ctr1 as a counter channel: AngularEncoderChannel. I'm using NI's C# api. All I receive back is a stream of 0, 0.36, 0.72 in bulks (a few thousand times 0, then a few…
user12618694
1
vote
2 answers

Triggering an output task with NIDAQmx

I'm having trouble carrying out what I think should be a pretty straightforward task on a NIDAQ usb6002: I have a low frequency sine wave that I'm measuring at an analog input channel, and when it crosses zero I would like to light an LED for 1…
kb4444
  • 35
  • 1
  • 5
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
2 answers

How to Periodically Updating Labview chart when collecting multi channel data at a high rate

Looking for some help with a Labview data collection program. If I could collect 2ms of data at 8kHz (gives 16 data points) per channel (I am collecting data on 4 analog channels with an National Instruments data acquisition board). The DAQ-MX…
Azim J
  • 8,260
  • 7
  • 38
  • 61
1
vote
1 answer

How to link analog output and analog input in simulated DAQ device?

I simulate NI PCI-6110 device in NI MAX. In LabView I need to send some signal on AO0 of this device and read THIS signal from the device in other scope (doesn't matter read from AO0 or AI0). How to configure redirect from AO to AI? I could link AI…
CrazyMax
  • 129
  • 1
  • 5
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
2 3