nidaqmx

Triggering an output task with NIDAQmx

社会主义新天地 提交于 2021-02-19 09:00:24
问题 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 second. I'm trying to use the nidaqmx Python API, but haven't been able to clear up some of my basic questions with the documentation. https://nidaqmx-python.readthedocs.io/en/latest/ If anyone can offer any thoughts about the code or the basic logic

Continuous Acquistion with nidaqmx

末鹿安然 提交于 2020-05-18 03:27:17
问题 I am not being able to acquire continuos data from NI DAQ using nidaqxm on Python 3. I already acquired finite data with a similar code, although I can't understand what I need to change to acquire data continuously. import nidaqmx from nidaqmx import constants from nidaqmx import stream_readers from nidaqmx import stream_writers import matplotlib.pyplot as plt #user input Acquisition Ch00_name = 'A00' Sens_Ch00 = 100#sensibilidade em mV/g Ch01_name = 'A01' Sens_Ch01 = 100#sensibilidade em mV

nidaqmx co_channels can't write sample

放肆的年华 提交于 2019-12-23 04:23:43
问题 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") sample = CtrTime(high_time=0.001, low_time=0.002) print('1 Channel 1 Sample Write: ') print(task.write(sample)) But after I run this script, it generate some errors as shown below: raise DaqError(error_buffer.value.decode("utf-8"), error_code) DaqError: The task is not

Estimate transfer function from input output data

偶尔善良 提交于 2019-12-03 14:19:55
问题 I have a two-column matrix of data obtained from NI-DAQ. The first column is the output data of a motor-generator set (with driver) and the second column is the input data (square wave). I want to find the transfer function using tfest without Simulink. Is it possible? I have System Identification Toolbox . How can I attach a .mat file to this post? My data on gist https://gist.github.com/anonymous/6484844 回答1: You already got the right idea, I don't know where you got stucked. Here is the

Estimate transfer function from input output data

天涯浪子 提交于 2019-12-03 03:33:13
I have a two-column matrix of data obtained from NI-DAQ. The first column is the output data of a motor-generator set (with driver) and the second column is the input data (square wave). I want to find the transfer function using tfest without Simulink. Is it possible? I have System Identification Toolbox . How can I attach a .mat file to this post? My data on gist https://gist.github.com/anonymous/6484844 thewaywewalk You already got the right idea, I don't know where you got stucked. Here is the code which solves your problem, I tested it, its works fine. Be aware that a simpler input