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

Programatically create a multi-channel DaqMX task

已解决!
转到解答

Is there a way to create a multi-channel DaqMX task programatically, without having a task to copy?

0 项奖励
1 条消息(共 4 条)
4,452 次查看
解答
已被主题作者 JaNeily 接受

Yes and there is an easy way to figure out how to do it.

 

Start by creating a task in MAX (But Ben I want to avod MAX! Have no fear this is just a one time event that will let us learn what is involved)

 

Go to a block diagram and drop a DAQmx task constant on the diagram and choose the task you created in MAX.

 

Right-click it and select "create configuration and example". LV will create the code that goes with the taks.

 

Study the config VI that was created. It will show what needs to be done to create a task without MAX.

 

I hope that helps!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
2 条消息(共 4 条)
4,448 次查看

It is a thing of beauty. You are truly a gentleman and a scholar Sir Ben! 

0 项奖励
3 条消息(共 4 条)
4,440 次查看

@JaNeily wrote:

Is there a way to create a multi-channel DaqMX task programatically, without having a task to copy?


The DAQmx Create Virtual Channel is what is used to add channels to a task.  There is also a DAQmx Create Task which creates and empty task that you can add the channels to.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 项奖励
4 条消息(共 4 条)
4,439 次查看