03-17-2020 03:12 PM
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.
Solved! Go to Solution.
03-17-2020 10:01 PM
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?
Let us know what works for you,
03-18-2020 02:16 AM
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
03-18-2020 10:18 AM
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 🙂