LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding resource name of NI PXIe-4143

Solved!
Go to solution

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?

 

0 Kudos
Message 1 of 13
(6,378 Views)

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 wishFind Hardware.PNG

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 13
(6,363 Views)

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

Thanks
uday
0 Kudos
Message 3 of 13
(6,358 Views)

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

0 Kudos
Message 4 of 13
(6,347 Views)
Solution
Accepted by Ramya12

You can use a DAQmx Device Name constant or control.

Or you can do it programmably:

 

Find DAQmx D_BD.png

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
Message 5 of 13
(6,346 Views)

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.

0 Kudos
Message 6 of 13
(6,346 Views)
Solution
Accepted by Ramya12

You can filter the reference based on your device type and find the resource name for the reference of your expected device typeFind Hardware.png

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
Message 7 of 13
(6,339 Views)

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? 

0 Kudos
Message 8 of 13
(6,333 Views)

Resource name remains same as NI MaX.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
Message 9 of 13
(6,329 Views)

Thanks PalanivelT. Got it.:-)

0 Kudos
Message 10 of 13
(6,325 Views)