LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-DAQmx Task copy and rename

Hello:

How can I copy a NI-DAQmx Task and rename it from within MAX?

Thank You!
0 Kudos
Message 1 of 14
(6,879 Views)
There is no way to do this directly in MAX, but you can do this through the DAQ drivers with any programming language. You use the DAQmx Save Task function to do this.

If you have labview it's incredibly easy. You use the "DAQmx Save Task.vi" and create a constant for the "Task/Channels In" and another constant for the "Save As" input. Choose the Task that you want to replicate in the "Task/Channels In" input, then give it a new name in the "Save As" input. When you run this simple VI it will replicate the task in MAX.

-Matthew Slaughter
-National Instruments

LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
Message 2 of 14
(6,872 Views)
I recently had this same question and had already tried the solution shown. But, it didn't copy it exactly. For example, my pulse train output went from "N pulses" to "1 pulse". Ok, no problem I can change that in MAX.

Then, when I save the task I get: "DAQ Assistant Error", "Warning 74 occurred at DAQ Assistant". The possible reasons field was blank. Searching on Warning 74 didn't yield anything.

Thoughts?

Using LabVIEW 8.2.1 with its latest drivers (DAQmx 8.5.0f5, MAX 4.2.1.3001, etc.).

Message Edited by antennaguy on 05-04-2007 09:21 AM

Certified LabVIEW Associate Developer
Message 3 of 14
(6,722 Views)
I found a workaround for this - if you export the task in MAX as an ini file, then you can do a search-and-replace on the ini file and change the names. Then you just re-import it and it comes in correctly. Hope that helps.
0 Kudos
Message 4 of 14
(6,703 Views)
Thanks, Andy - good brute-force solution :).
I'll try that next time. Had already just entered them manually again for now.
Certified LabVIEW Associate Developer
0 Kudos
Message 5 of 14
(6,696 Views)
When configuring voltage channels for PCI-MIO-16XE, I received Warning 74.  What is this warning and can it be ignored?  I know very little about NI board configuration.

Thanks,
Eric
0 Kudos
Message 6 of 14
(6,624 Views)

Hi Eric,

I have some questions to help troubleshoot this issue. What steps did you follow to get up to this error code? What message do you see when you receive this warning? Can you post a screenshot of the pop-up? What version of the driver (NI-DAQmx or Traditional DAQ) are you using with this board?

Regards,

Missy S.
Project Engineer
RoviSys
0 Kudos
Message 7 of 14
(6,607 Views)
I opened up the DAQ Assistant sub .vi in my Labview .vi.  Then I clicked OK.  A window popped up that said, "This task currently has an error.  You can continue, but it will not run until all errors have been fixed.  Press "Yes" to continue anyway, or "No" to cancel and show the error>"  Then when pressing Yes or No, the Warning 74 window pops up and says, "Warning 74 occurred at DAQ Assistant.  Possible Reason(s):"

Basically, I had a Labview .vi running perfectly on an old computer with Labview 7.1.  I transferred the PCI-MIO-16XE-50 to a new computer and installed Labview 8.0.  I also am running DAQmx and not Traditional DAQ.  Should I have installed traditional daq?

I will try to post a screen-shot as soon as possible.

Thanks again,
Eric
0 Kudos
Message 8 of 14
(6,586 Views)

Hello,

Are you able to see your PCI card in Measurement and Automation Explorer?  This would be the first step.  If you cannot see it under devices and interfaces there, you will want to power down the PC, take the card out, reboot, and download the DAQmx drivers from ni.com/downloads.  If you can see the PCI card in MAX, open up the DAQ Assistant and make sure you have specified the PCI card as the device.  If you have done this and still get the warning, post a picture of the error so we can have a look at it.  Thanks!

Reggie R.
Applications Engineer
National Instruments

0 Kudos
Message 9 of 14
(6,563 Views)
In the MAX, my PCI-MIO-16XE-50 is listed.  From examining the errors in my VI, it appears that all the errors refer to an error in the channel configuration.  They all say "DAQmx Create Channel..."

I'm trying to measure two voltages, so I set up my device to measure the voltages through ai2 and ai3 in a BNC-2080 board.

Here's how the MAX describes my MIO card:

Name                              Value
Serial Number                 0x0
Socket Number               0x2
Bus Number                    0x5
Memory Range 1            0xECCF8000 - 0xECCF8FFF
Memory Range 2            0xECCF9000 - 0xECCF9FFF
IRQ Level                        0x12

Also, when examining the properties of the MIO-16XE, when selecting an accessory, there's no choice for the BNC-2080.  The lowest option is the 2090.

Please let me know what other information I can give you.

Thank you very much,
Eric
0 Kudos
Message 10 of 14
(6,543 Views)