Data Acquisition Idea Exchange

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

Copy and Paste tasks in NI-MAX

Status: New

Counter tasks can only take 1 channel, due to the nature of timed signals, obviously. When setting up a system with 16 DUTs with counter outputs, this requires 16 tasks. Every single one has to be painstakingly created and configured. (As an aside: Defining a tabulator sequence still seems a mystery to NI's programmers, even though LabVIEW supports this)

Wouldn't it be nice to have a Ctrl+c,Ctrl+v sequence for tasks and then only modify physical channel? IMHO: yes.

 

KR

nimic

5 Comments
TomOrr0W
Member

If you use Global Virtual Channels instead of Tasks, you can right-click and choose duplicate.  This will bring up a dialog allowing you to choose the physical channel for the new virtual channel.  You can then create tasks that use those Global Virtual Channels.

 

This will allow you to avoid redoing the channel-specific configuration.  Unfortunately, the timing and triggering is still task-specific.

nimic
Member

Thank you TomOrrow for your comment.

So I tried and I can confirm that while a copy of a Virtual Channel is created, still the individual timing config remains the same nuisance as with tasks.

 

Hence I still see it as a viable idea..... Kudos apreciated 🙂

TomOrr0W
Member

I will add a Kudos, but I am somewhat torn on duplicating tasks.

 

Tasks normally have a large number of channels associated with them.  The interface to remap them on copy/paste or duplicate would likely end up being significantly more complex than the one for channels.

nimic
Member

Thanks for your reply, TomOrrow,

You make a valid point in the notion of multichannel tasks. However, in my line of work, I often encounter DUTs that work with PWM signals in either direction and preferably with 8, 16 or more DUTs.

Analogue and digital tasks use common timing for all of their channels. But since counter pulses come with their implicit timing, only one channel per task is permitted. 

Of course, I could start with an iterative LabVIEW construct to define the tasks within the VI. Or use the Global Virtual Channel C'n'P and change only timing parameters in a loop. So it may a little bit of laziness, wishing for a C'n'P solution.

Brad_K
Active Participant

Another workaround:

  1. Use File » Export... to export the task to an INI file or a CSV file.
  2. Edit the INI/CSV file or rename the original task.
  3. Use File » Import... to import the INI/CSV file. Now you have two copies of the task.
---
Brad Keryan
NI R&D