You can rely on the device numbers from MAX if you are staying on the same machine. Once the boards are installed, the device numbers will not change (unless you change them) as long as the boards are not removed or uninstalled. Reboots, power outages, etc. will not reset device numbers in the configuration.
MAX also lets you set the device number. So if you do have to reinstall or move to another machine, you can go to MAX and change the device numbers back to the scheme you are expecting. Get_DAQ_Device_Info can be used, however, to get the serial number from the boards which is unique, if you want to verify the boards are right in your code.
Best Regards,
Chris Matthews
National Instruments