Programmatically Retrieving VISA Resource Names in LabVIEWPrimary Software: Driver Software>>NI-VISAPrimary Software Version: 4.0 Primary Software Fixed Version: N/A Secondary Software: Driver Software>>NI-VXI/VISA
Problem: How can I retrieve the VISA resource name from Measurement and Automation Explorer programmatically in LabVIEW? Solution: You are able to programmatically get the VISA Resources using two methods: Method 1 You are able to use VISA Find Resource.vi, which will query the system to locate the devices associated with a specified interface. You can use the VISA property node, under General Settings:Resource Name. Please see the attached example which performs the above task for more information. Method 2
The VISA Resource Name control will be a drop down list containing all of the VISA resources including VXI, GPIB, and others. Now if you want to only display in the list certain resource names follow the steps below:
Now that the control is filtered you can then pick which device you want to communicate with instead of typing it in. Related Links: Product Manuals: VISA Resource Name Control Help Attachments:
Report Date: 10/17/2006 Last Updated: 07/01/2009 Document ID: 42GHNJAC |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

