Data Acquisition Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
JÞB

Change DAQmx Generate Code >> Configuration output vi

Status: New

When I drop a DAQmx Task constant on my LabVIEW block diagram, I have the right-click menu option to Generate Code >>Configuration 

 

This scripts out a sub.vi that creates the Task by adding each channel with channel specific properties sequentially, one channel at a time, to repeated calls of DAQmx Configure Channel.vi.

 

I have a hard time saving that vi output!  I have not really learned how to name it properly without Using:  "BLEEP_BLEEP_BLEEP_Configuration_that_cannot_be BLEEPING_scaled.vi"

 

I believe that an autoindexing loop would be much nicer.

 

My grandmother thanks you for improving my manner of speach.


"Should be" isn't "Is" -Jay
1 Comment
Active Participant

There are two templates for DAQmx code generation of the Configuration. One of them produces the output you described:

dsbNI_0-1727009887982.png


The other is a high-channel count template that gets invoked for tasks with 8 channels or more and looks like what you described you wanted:

dsbNI_1-1727009985496.png


The high-channel count template channel configuration section is automatically generated to scale even when you have multiple measurement types:

dsbNI_2-1727010483797.png

 

Most of us would like the scalable option to kick in when channels is 3 or more. It would be nice if developers could decide what their threshold is.

Doug
NI Sound and Vibration