Multifunction DAQ

取消
显示结果 
搜索替代 
您的意思是: 

Using DAQ from National Instruments

Hi, I am looking to read analog input readings using USB-6353. Does this have python support for automated logging? If so, I have installed nidaqmx but receive an error about not being able to load "nicaiu" module. I am using python 3.9 and would like to use this.

0 项奖励
1 条消息(共 8 条)
2,497 次查看

I did download the hardware package but now see the error raise DAQError or DaqError(error_buffer.value.decode("utf-8"). I have tried running the following code:

 

import nidaqmx
with nidaqmx.Task() as task:
    task.ai_channels.add_ai_voltage_chan("Dev1/ai0")
    task.read()

 

 

0 项奖励
2 条消息(共 8 条)
2,431 次查看

I have downloaded hardware package and now do not see nicaiu missing module error. Can someone point me to link where I can read python analog voltage example? I get raise DAQerror when trying to add ai voltage chan on Dev1/ai0.

0 项奖励
3 条消息(共 8 条)
2,465 次查看

Please provide all the missing information.

 

OS, bitness, DAQmx driver version, programming language etc.,

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution
0 项奖励
4 条消息(共 8 条)
2,443 次查看

Hi, OS is windows 10/64 bit system and programming language is Python with visual studio. I downloaded DAQmx using pip install nidaqmx and have version 0.6.4 ,NI-DAQmx Python API

 

I am running python code on this page: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Pf1SAE&l=en-US

 

But see daq error with error code Hex 0x80040301

 

下载全部
0 项奖励
5 条消息(共 8 条)
2,417 次查看

The problem may be there is no name assigned to device as you can see in image attached above. How to add name?

0 项奖励
6 条消息(共 8 条)
2,393 次查看

@ghsnc765 wrote:

The problem may be there is no name assigned to device as you can see in image attached above. How to add name?


Looks like DAQmx driver is not installed (not just the Python package). Did you install DAQmx driver from https://www.ni.com/en-us/support/downloads/drivers/download.ni-daqmx.html#460239 ?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution
0 项奖励
7 条消息(共 8 条)
2,375 次查看

Hi, yes that was installed

0 项奖励
8 条消息(共 8 条)
2,372 次查看