Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Migrating a lot of DAQmx Global Virtual Channels

Solved!
Go to solution

I have a project with 200+ DAQ global channels. I now have to migrate the system from SCXI over to PXIe. I would like to keep the same channels and just swap the physical channel in the virtual channel. This works fine in NI MAX one by one but I was wondering if it would be possible to do programmatically.

0 Kudos
Message 1 of 4
(2,537 Views)
Solution
Accepted by hfettig

Maybe exporting the channels into a TXT file from NI MAX, then using RegEx or just a search and replace for each channel in LabVIEW, and re-importing them in NI MAX?

 

2020-03-17 21_58_32-Clipboard.png

 

Let us know what works for you,

Message 2 of 4
(2,500 Views)
Solution
Accepted by hfettig

To the OP: I did something like this a long, long time ago and it worked out pretty well.  I did my search & replace with a text editor (probably Notepad++, maybe plain old Notepad) so I could see and confirm the changes.

 

For future reference: the *default* option for exporting a MAX config is a special (binary?) format with a ".nce" extension.  You need to manually choose one of the text-friendly formats.

 

As I recall, the .nce format is more comprehensive,  while the text format exported all the first-level stuff I cared about but not quite *everything*.  It was more than a decade ago though, so the text format may have gotten more comprehensive in the meantime.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Message 3 of 4
(2,489 Views)

Thank you for pointing me towards the ability to export in text format.

I used the export as INI format, used search and replace, and then imported everything again. Worked like a charm 🙂

0 Kudos
Message 4 of 4
(2,477 Views)