From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Additional NI Software Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Redacted

MAX - Allow wildcards for batch renaming channels in tasks

Status: New

NI-DAQmx Tasks can frequently have dozens of channels, sometimes hundreds.  Renaming each channel can prove tedious when the format needs to be more complex than rootname_#, indexed from zero.

 

This change will allow developers to batch rename channels in a more flexible format, saving task setup time.

 

This idea includes:

1. Using rootname as it is now, allowing for all channels to have a common base name

2. Creating wildcards for naming channels.  Each channel would then have the base name, a changeable separator character if specified, and an incremented number or character(s) specified by the wildcard.  Examples include:

a. Current_[001] = Current_001, Current_002, Current_003...

b. Temp [AA] = Temp AA, Temp AB, Temp AC, ..., Temp BA, etc.

c. [05]_Reactor = 05_Reactor, 06_Reactor, 07_Reactor, etc.

2 Comments
JÞB
Knight of NI

Edit the XML file.  (Yup scary but effective)


"Should be" isn't "Is" -Jay
crossrulz
Knight of NI

Jeff, I recently did that with Switch Executive configuration files.  Yes, it was scary, but very effective (especially since I couldn't edit inside of MAX due to being on a deployment licensed machine).


GCentral
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