LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using System Configuration API to Differentiate Network Cards?

I've got a PXI chassis with 3 network cards in it.  I want to configure their IP addresses using the System Configuration API.  My problem is that I can't seem to find a property that I can use to distinguish between them.  I can pull their MAC Addresses, but that won't help because I'm deploying to several PXI and each set of cards gets different addresses.  I was hoping to pull Serial Number, Product Name, or even slot number so I could tell which card was which (I have an 8110 controller, 6682 timing card, and an 8231), but that property doesn't seem to be supported for Network Adapters.

 

Anyone have an idea what property I could pull instead?  Or another method would be fine too, I just need to set their IP addresses to the card in the right slot.  I've tried doing this with RAD too, but it doesn't seem to be able to tell the cards apart either, and sometimes switches the static IP addresses on deployment.

0 Kudos
Message 1 of 3
(2,403 Views)

The example that I am pointing you to is written for GPIB, but could just as easily be for any device.  Look at my initial response for reading the registry data for determination.  https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Automate-changing-of-GPIB-Interface-IDs/m-p/...

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 2 of 3
(2,385 Views)

Thanks for the suggestion, but it looks like I need access to the windows registry to do that.  Is there a hacky way I can get access to that on my Pharlap RT controller 8110?

0 Kudos
Message 3 of 3
(2,380 Views)