Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Get handle to existing task defined in MAX

LabVIEW 8.2.1 installed
NI-DAQmx 8.5 installed
Measurement Studio Not installed
 
Using C# .Net, is there a method for obtaining a handle to a task which has already been defined in the Measurement and Automation explorer (MAX)?
 
It seems like a lot of duplicated effort to programatically redefine a task that has already been defined.
 
Thanks!
 
Rick
 
0 Kudos
Message 1 of 4
(3,894 Views)

Hi Rick,

There is a DaqSystem Class that contains methods that allow you to access tasks, scales, and global channels stored in Measurement & Automation Explorer (MAX).  If you wanted to load a task from MAX in C#, you could say:

Task

t = DaqSystem.Local.LoadTask("mySavedTaskName");

Hope this helps!

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 2 of 4
(3,873 Views)
Thanks!  That's exactly what I was looking for!

Rick
0 Kudos
Message 3 of 4
(3,867 Views)

Hello,

 

So what if I wanted to do the same in matlab? Is that even possible?

 

 

Thanks

 

H

0 Kudos
Message 4 of 4
(3,211 Views)