Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

DACmx Configuration Export/Import with C#

Solved!
Go to solution

Hi

 

Is it posible to export/import DACmx configuration via  C# .net ?

 

Best Regards

0 Kudos
Message 1 of 5
(2,787 Views)

Depends on what exactly you want to export. For Tasks/Channels/Scales/etc. (basically everything you can export from inside NI MAX as well) there are functions to do so. You can find documentation on them in the "Storage" section:

 

NI-DAQmx C Reference Help » NI-DAQmx C Functions » Advanced Functions » Storage

 


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
0 Kudos
Message 2 of 5
(2,761 Views)

I am looking for at function like the File-->Export/Import menu in NI MAX.

As I understand the functions under Storage they stores e.g. a task to MAX but not to a .nce file.

 

0 Kudos
Message 3 of 5
(2,747 Views)
Solution
Accepted by topic author Rasmussen

As far as I know DAQmx C API does not provide such a high-level function.

 

However there might be a way: LabVIEW has a VI to export the configuration of a target (including "localhost"): Export (VI) - NI System Configuration API 17.0 Help. See Import and Export a MAX Configuration Through LabVIEW for a bit more information. This VI is not much more than a wrapper of a dll's function:

2018-04-23_16-09-25.png

You will find the corresponding header typically in C:\Program Files (x86)\National Instruments\Shared\CVI\include\nisyscfg.h. Do you think you will be able to use this dll to achieve what you are trying to do?


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
0 Kudos
Message 4 of 5
(2,725 Views)

Thanks ikaiser  

I will try to look into your suggestion. It sounds promissing.

0 Kudos
Message 5 of 5
(2,701 Views)