11-29-2010 08:12 PM
Is it possible to get the sn of the 5640R using labview?
Rui Huang
NISH AE
11-30-2010 10:04 AM
By "sn" I assume you are referring to "Serial Number"?
-Dan
11-30-2010 12:26 PM
Under the assumption that you were referring to the serial number, I have tracked down the register address that holds that number.
Here is what you will need to do:
1) Open up the ni5640R Read Cal Data Field.vi (which is part of the template)
2) Copy the "Refnum to Session" and the "ni5640R Read EEPROM.vi" from the block diagram.
3) Paste them on your top level block diagram.
4) Wire your FPGA VI Reference wire into the Refnum to Session
5) Wire the Refnum to Session into the "handle in" of the Read EEPROM
6) Create a constant on the "Offset" terminal and set it to 0x804
7) Create a constant on the "size" terminal and set it to 0x4
😎 The "Data Out" terminal will now return an array of u8's that contains the bytes of the serial number. (there should be 4 bytes although the first byte may be zeros)
When you have it finished, it should look like this:
I hope that answers your question.
-Dan