12-06-2011 08:04 AM
Hello,
I am looking for a way to get the mac address of a PXI system by using C-Code e.g. in CVI.
There is the function GetRTSystemInfo but according to the manual, this function is only supported on Windows.
Does anybody know if there is a similar function for RT systems?
I know that there is a VI "Get Target Information" that comes with LabVIEW RT. This VI is able to get the mac address when running on a RT system, which means it is possible.
I am just looking for a simple function that I can call from C-Code to get the mac address.
Thank you,
Christian
12-07-2011 06:36 AM
Hi,
you can use the System Configuration API. I only used it in LabVIEW but this should also work for CVI to get the MAC adress of your RT target
http://joule.ni.com/nidu/cds/view/p/id/2613/lang/en
Cheers,
cheggers
12-09-2011 11:18 AM
Cheggers is right, you should use the NI System Configuration API. I think it is actually installed automatically with CVI, but I may be wrong. It will show up in the libraries as NI System Configuration. The function you will want to use is NISysCfgGetResourceProperty. I was just using this on RT the other day, so it should work.
12-09-2011 11:20 AM
Thank you both.
I have downloaded it today and will try to get it running now.
Christian