From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cDAQ Module Serial Numbers

Solved!
Go to solution

I have searched the forums for different ways to read the serial numbers of cDAQ devices programmatically in LabVIEW.  All of them output an integer (example: 19761168).  Of course, in NI-Max it comes up as a string that matches the sticker on the module (example for same module: 012D8810).  If anyone knows how to correlate the two, or just read the string, then please let me know.  LabVIEW, and just posting on the forums these days, requires a great deal of Ibuprofen.

0 Kudos
Message 1 of 4
(2,912 Views)

For the example you gave, the 19761168 is an integer in decimal notation.  The 12D8810 is the same integer in hexadecimal notation.

 

So it would seem that cDAQ modules fundamentally have an integer serialization, but the labeling is rendered in hex, likely for compactness' sake.

 

Format Into String and Scan From String (with some variation of %x as the format specifier) would be my go-to functions for any further effort.

 

Dave

David Boyd
Sr. Test Engineer
Abbott Labs
(lapsed) Certified LabVIEW Developer
Message 2 of 4
(2,891 Views)
Solution
Accepted by topic author hefengloven

Here's the Solution (but you need to figure out the "trick").  This is the entire Block Diagram:Model ID BD.png and here is the Front Panel.  You can also, of course, make it go the other way, Serial # to Model ID.  What's the trick?

Model ID FP.png

 

Bob Schor

Message 3 of 4
(2,877 Views)

Thank you both for your help.  I did not see how the integer serial number would get to hex but I should have just tried the "right click - properties" for the control or indicator.

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