05-28-2015 09:46 AM
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
05-28-2015 10:05 AM
One way to do it in an SSH console is: fw_printenv serial#
or if logged in as lvuser: /sbin/fw_printenv serial#
05-28-2015 10:19 AM
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)
05-28-2015 10:26 AM
Thanks for the answers guys
Is there any C API to read the target's serial number?
05-28-2015 10:32 AM
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.