Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

mseries board serial number

How do you get the serial number from an M series board? I take it that it is in the eeprom but when I use the code in scale.cpp I do not see any like the value I get from MAX. Any thoughts?

neil

0 Kudos
Message 1 of 13
(11,255 Views)

Hi Neil-

I have attached a modified scale.cpp that shows how to obtain the serialNumber.  The other pertinent change to incorporate is to adjust the wSize to wSize = 12; (as shown in the attached file).

Hopefully this helps-

Tom W
National Instruments
0 Kudos
Message 2 of 13
(11,244 Views)
Tom,

Thanks for the code sample. I have been unable to get anything usefull from it. What I'm confused about is that the eeprom starts at address 1024 while the serial number read is at address 4. All I get are 0xFFs and when I inspect the eeprom dump I do not see anything that resembles the serial number reported by MAX.

neil

0 Kudos
Message 3 of 13
(11,232 Views)

Hi Neil-

If you are receiving 0xFF... then it sounds like your memory is not windowed correctly.  Did you make the change to wSize=12;?  If you would post your scale.cpp here I will take a look.

Thanks-

Tom W
National Instruments
0 Kudos
Message 4 of 13
(11,231 Views)
Tom,

I have finally got it! I was using your code and got the results described above. I found however that if you use wsize = 0x12 not 12 then the serial number pops out!

Thanks for your help,

Neil

0 Kudos
Message 5 of 13
(11,224 Views)

Hey Neil-

Glad to hear you're up and running now.  Thanks-

Tom W
National Instruments
0 Kudos
Message 6 of 13
(11,220 Views)

Hello,

 

I tried the same code using a PCI-6229, but all I got for serial is 0xFFFFFFFF.

Changing the wSize from 12 to 10 (previous setting) did not do anything either.

 

Could anyone also tell me how to read the serial from the PCI-6036E ?

0 Kudos
Message 7 of 13
(11,042 Views)
try changing the number base. ie use 0x12 not 12.

neil
0 Kudos
Message 8 of 13
(11,023 Views)
Neil,
 
Thank you for the response, but it seems that when I set the wSize to 0x12 the EEPROM is completely screwed (all 0xFF).
At wSize=10 & wSize=12 at least the EEPROM gives some data (same data with both sizes).
 
The Serial in all cases reports 0xFFFFFFFF.
 
Michiel
0 Kudos
Message 9 of 13
(11,015 Views)
Michiel,

I'm at a loss. I have had success with both a 6225 and 6259, but with the lack of good docs I have no idea why yours doesn't work. You could try and dump that whole region (instead of just 4 bytes) and see what there is to see.

neil

0 Kudos
Message 10 of 13
(10,992 Views)