08-15-2016 11:31 PM
Hi everyone,
Is there a way to find the resource name assigned by MAX using LabVIEW? I need to use niDCpower Initialise wite Channels VI to initialise a session with PXIe-4143. This VI asks for the resource name assigned by Measurement & Automation Explorer (MAX) of the form 'PXI1Slot3' as an input. I am not sure whether we can use VISA Find Resource to detect the PXI instrument. If yes, the VISA find resource output string is of a different format. How can I get the resource name assigned by MAX from this? Any Ideas?
Solved! Go to Solution.
08-16-2016 12:32 AM
Use the Find hardware vi where the resource out will provide reference for all the devices in MAX, you can filter and use the respective device of your wish
08-16-2016 12:45 AM - edited 08-16-2016 12:50 AM
Did you try connecting a control or constant to resource name?
-Mostly it should be a drop down and it will have the resource name.
-Did you try the example in below link?
http://digital.ni.com/public.nsf/allkb/2342900AED02975A86256BD800764C8B
08-16-2016 01:19 AM
Thanks for the reply:-)
Wiring a constant will not be a suitable solution bcoz I would like to initialise a PXI device that is connected to the system.
The example in the link gives only the slot number. But I need the resource name of the PXI device.
Thanks,
Ramya
08-16-2016 01:19 AM
You can use a DAQmx Device Name constant or control.
Or you can do it programmably:
08-16-2016 01:20 AM
I am looking for a way to get the resource name of the PXI device. I am not sure whether this VI will be useful or not.
08-16-2016 01:31 AM - edited 08-16-2016 01:32 AM
You can filter the reference based on your device type and find the resource name for the reference of your expected device type
08-16-2016 01:35 AM
This seems to be the acceptable solution. Thanks PalanivelT for the help. But I have a doubt. Even if the user changes the name of the device this Resource name will not change. Is this correct or the resource name will get replaced with the new name specified by the user?
08-16-2016 01:38 AM
Resource name remains same as NI MaX.
08-16-2016 01:41 AM
Thanks PalanivelT. Got it.:-)