Solution
The NI-DAQmx property DevSerialNum returns a 32-bit unsigned integer. LabVIEW displays this value in decimal format by default, while NI MAX displays the same value as an 8-character hexadecimal number. The values shown in both applications represent the same underlying number using different base representations.
If the same hexadecimal value is repeated for multiple modules, the hexadecimal conversion is typically performed outside the module iteration loop, or the dataflow wiring does not preserve a unique conversion for each module.
To display serial numbers in the same format as NI MAX:
- Open the VI block diagram that iterates through the cDAQ modules.
- Place the NI-DAQmx DevSerialNum property node inside the loop.
- Convert each serial number to hexadecimal format inside the loop using one of the following methods:
- Use the Number To Hexadecimal String function.
- Wire the DevSerialNum output to the function input.
- Wire a numeric constant of 8 to the width input.
- Use the Format Into String function with the format string:
%08X - Connect the hexadecimal string output to an auto-indexed tunnel on the loop boundary.
Output the resulting array of 8-character hexadecimal serial number strings.
This formatting preserves leading zeros and produces serial number strings that match the format displayed in NI MAX.