LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

No read version of NISysCfgRenameResource?

Hi all,

 

I see that you can rename a resource with NISysCfgRenameResource, but you can't read that name?  At least that's what it looks like while browsing NI System Configuration Function Reference.  I don't see a property that you could use with NISysCfgGetResourceProperty() either.  Has anyone seen something I haven't?  Thanks!

0 Kudos
Message 1 of 4
(3,773 Views)

You can check out the Resource Property Descriptions page to see all of the different properties that you can use with NISysCfgGetResourceProperty()

Renaming the resource updates the NISysCfgResourcePropertyProductName property.

0 Kudos
Message 2 of 4
(3,748 Views)

Wait, so NISysCfgRenameResource() changes the product name?  I thought it changed the "Dev1", "Dev2", etc. name.  Are you sure about this, because the product name property is listed as read-only?  If what you're saying is true, do you know how to changed the name that shows up in MAX that you use to actually refer to channels on DAQ hardware (like Dev1/ctr0)?

0 Kudos
Message 3 of 4
(3,713 Views)

You'll have to forgive me; you are correct in the fact that the RenameResouce() updates the "dev1" names.

 

The displayName property is found in the ExpertInfo container. (In LabVIEW this would be under a System Hardware Property Node » Expert Info » Alias Name)

NISysCfgNextExpertInfo takes in an expertEnumHandle and returns information (including the displayName) of the 'next' Expert in the expertEnumHandle's list.

NISysCfgInitializeSession initializes a session with your device and also returns various information, including the expertEnumHandle.

 

Essentially, once you get the expertEnumHandle from NISysCfgInitializeSession, you will have to iterate over it using the NISysCfgNextExpertInfo until you find the device you were looking for.

0 Kudos
Message 4 of 4
(3,691 Views)