NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Target Serial Number in Real Time

Hi,

Is there any linux function that returns target (say, NI 9068) serial number and that I can use in real time? And also, is there any SSH command to see the serial number from command prompt in the host pc?

Thanks.

Rushd

0 Kudos
Message 1 of 5
(4,162 Views)

One way to do it in an SSH console is: fw_printenv serial#

or if logged in as lvuser: /sbin/fw_printenv serial#

Message 2 of 5
(3,449 Views)

From LabVIEW, you can use the System Node to get the serial number (if it's running on a VI that's being run on the RT target, you will need to install the NI System Configuration package from MAX to that RT target)

lv_serial_no.jpg

Message 3 of 5
(3,449 Views)

Thanks for the answers guys

Is there any C API to read the target's serial number?

0 Kudos
Message 4 of 5
(3,449 Views)

There is also a C API for NI System Configuration. This thread has some information on it, https://decibel.ni.com/content/thread/28062?tstart=0.

In general, I'd recommend using the System Configuration API over fw_printenv serial# since it abstracts any target differences and will continue to work with future targets. fw_printenv serial# may work going forward, but there is no gurantee.

Message 5 of 5
(3,449 Views)