Find VISA resources

I have trouble finding VISA resources properly. I have no problem detection instruments that are connected on the GPIB, but after that they have detected once LabVIEW is convinced that they are there for ever more, even if I unplug and disconnect the device! The only way that the list of the connected instruments is reset completely out LabVIEW and restart it. Why is this?

I'm using LabVIEW 6.1 (but who can not make a difference) and I attach a VI with two ways to detect if one of the four possible instruments are connected. The Subvi is used to give a command to one of the instrument, and it is able to return an error if the instrument is not connected, regardless of the situation. How can it detect the instrument as expected, but the other methods not?

In this VI, I need detect how much, if any, and that out of four possible instruments are connected. Simple, but amazingly difficult!

Any help please?

James

Well, now that you say is starting to make a little more sense. I misunderstood what you were asking before.

Jeff Bohrer wrote: what is the selection if you look at "tools > Options > various... > automatically close VISA sessions?

Help: "automatically close your left VISA open sessions by the application when the first level VI becomes idle. This check box is cleared by default. "This was added at some point (don't remember when), and the default value is True. It caused a lot of sorrow and complaining from users (I was a), so NEITHER changed the default value false.

As Dennis has pointed out, there is a distinction between the resource and the instrument. When you perform an initial analysis resources will be created. There is no mechanism that automatically detects that an instrument is no longer there. In fact, when you scan for instruments of MAX, she sends * IDN? queries to find instruments. So, you must check for the presence of an instrument by actually trying to talk to her.

Tags: NI Software

Similar Questions

  • visa resources Finder will find PXI-4070

    Hello

    I use LV 2015, 32-bit on windows 7 x 64.  I have an SMU-1065 OR connected to the PCI computer bus.  I have several instruments in the PXI chassis included some switch cards, a scope and a PXI-4070 DMM.

    When I run the VISA resource finder, the result will show me all PXI cards in the chassis (as well as the serial port of the computer), but it won't find the PXI-4070 module.

    MAX shows the map I can run self test and open the interactive panels in MAX I saved (no alias) NAME of the PXI-4070 as "PXI-4070.

    I can also use the DMM OR-DMM pilots very well.

    the PXI - 4070 Max address is: PXI24::15:INSTR

    I must be able to detect programmatically PXI/SMU cards are in my frame so that I can put them up as system in the configuration it is in.  can someone help me understand why the finder resources VISA see the PXI-4070 module and report?

    Hey Reece,

    Have you tried to use the Configuration API of the system NOR? It allows you to programmatically query the hardware on your system. Here is some additional information on the API:

    http://zone.NI.com/reference/en-XX/help/373107J-01/nisyscfg/introduction

    https://decibel.NI.com/content/docs/doc-13216

    https://decibel.NI.com/content/docs/doc-29606

  • VISA resource name strings

    Hello

    I have a control "VISA Resource Name" on my front, according to the guidelines of the attached screenshot, which should automatically fill with the names of all the VISA resources that the PC can see.

    Is it possible to get a picture of these names as strings (via a property node, or other) programmatically?

    Thank you very much

    Dan

    In the schema click Instrument of e/s > VISA > VISA advanced > VISA find resources. This VI returns an array of strings. You can type cast the string in a resource VISA type.

  • visa resource name function

    Hi good day to everyone!

    I am a beginner to LabVIEW, and currently I'm testing on a single project.

    Store device data in Server series of STS (which has 16 com ports).

    But I need to use 7 series STS server com ports. I need to read that data 7 com ports and save in a file.

    Each com port has a different function (for example the reading of data or display).

    My question is,

    (1) VISA resource name operation function for 7 com ports at the same time to a VI?

    (2) how can I choose different com ports to different functions?

    Kind regards

    Control of resources of e/s of VISA will show you all the com ports you have on your computer.

    So you just need to make 7 copies of that control and the value of each of them to another com port and use for each VISA entry and read the series of functions that you do.  (Have you looked in the example Finder to get examples of serial port?)

  • A control "VISA Resource Name.

    In LabVIEW, there is a control "VISA Resource Name" which lists all the VISA resources, is automatically updated when devices are plugged or not plugged in and has a navigation feature.

    With CVI, you can use NIDAQmx_NewDeviceCtrl () on a control of the chain, but it lists only the DAQmx resources.

    There is another function that I can use to have all resources VISA listed?

    Hey Vix,

    It seems to be the only solution. Here you will also find an example.

    I hope that helps!

    Bye,.

    Licia

  • How a cRIO can access remote systems VISA resources?

    I have a NI 9871 RS485 module on an ethernet 9148 RIO.

    I have also a laptop and a cRIO 9073.

    I can access each of the 9871 serial ports on the computer but not the 9073.

    When you try to access it from the cRIO, I get error:-1073807192, VISA: (Hex 0xBFFF00A8) is denied access to the resource or to the remote machine. This is due to the lack of sufficient privileges for the current user or the machine.

    How the cRIO can access the serial ports of the module 9871 on the ethernetRIO?

    Or how a remote access cRIO visa resources?

    Or how a cRIO can have sufficient privileges to access remote resources from visa?

    Thank you for your help.

    LabVIEW 2010 & VISA 5.1 on pc

    NOR-RIO 4.0 and 5.1 VISA & NI 9871 SERIES scan engine support on cRIO and eRIO

    Hi Woss,

    It is possible that your RIO Ethernet has some parameters of active access which is to prohibit the connection to serial ports.  You can change these settings in a position and Automation Explorer (MAX) for your device by going to the device under remote systems, expanding the category of software under it and choosing NI-VISA.  There will be a tab in the right pane of MAX called Options of VISA.  In this tab, select Server VISA > security to access these settings.

    From there, you should be able to add the IP address of the RIO device that needs to access the VISA on the RIO Ethernet server.  Once you have changed these settings, just click on register at the top of the window and allow the unit to restart.  Let me know if that helps!

  • How to create names for VISA resources

    Create a VI to interface with a Tektronix Oscilloscope. Tek drivers all use and transmit handles instrument VISA Resource Name to the format.

    Yesterday, I simply plugged a text string with the characters of text on the Tek pilot and it's happy. String = "GPIB::12:INSTR".

    Today, LabVIEW dislikes this incompatibility of format, and I get an error of the pilot.

    My format of the string looks OK, but I have to do something wrong. None of the tools VISA simplty interrogate the device for his VISA resource name. How to do it?

    Thank you.


  • VISA resources between the loops with the queue

    Hi all

    I am just be familiar with the queues and the producer/consumer model, and I am facing difficulties to pass data between the loops using queues, including data of the type "VISA Resource Name.

    Indeed, it seems impossible to cable "VISA Resource Name" as an entry of the item in the queue, as an output of the Dequeue item.

    These screws can I always try to convert something of this type can accept? Or should I take a different approach and that one?

    Thank you very much for your help.

    Florian


  • Find a resource catalogue vRA by its request ID.

    I'm trying to use it to find a resource by its requestId catalog but I get an error saying "invalid access to data to use API exception raised during the data recovery".  Here's how I implemented the request:


    var service = host.createCatalogClient () .getCatalogConsumerResourceService ();

    filter var = new Array();

    filter [0] = vCACCAFEFilterParam.equal ("requestId", vCACCAFEFilterParam.string (requestId));

    var query = vCACCAFEOdataQuery.query () .addFilter (filter);

    var = service.getResourcesList (new vCACCAFEPageOdataRequest (query)) items

    No idea why this up this error?  Looks like it should work.

    I also tried to use the request function

    requestService var = host.createCatalogClient () .getCatalogConsumerRequestService ();

    var resource = requestService.getResourcesProvisionedByRequest (requestId);

    But I do not know where to go with the result.  The result is a com.vmware.vcac.platform.rest.client.services.PagedResourcesWrapper which I do not know how to handle.

    Hello

    I could be wrong, but it seems that you forget ', null "here resources var = requestService.getResourcesProvisionedByRequest (requestId);

    My understanding of your needs yo, u must go to this (https://www.helloitscraig.co.uk/2016/03/get-resources-provisioned-vra-request.html and vRO API Explorer by Flores and Dr. Ruurd of ITQS):

    /*

    Name: getResourcesProvisionedByRequest

    Entry: vCACCAFEHost - vCACCAFE:VCACHost

    Entry: requestId - String

    Released: void

    Description: Catalog agree point resources provided from an application

    */

    var _requestId = "bc147f2c-1995-442b-8fc9-c769ec9bf9f4";

    Create an instance of vCACCAFECatalogClient

    var _client = vCACCAFEHost.createCatalogClient ();

    Create an instance of vCACCAFECatalogConsumerRequestService

    var _requestService = _client.getCatalogConsumerRequestService ();

    getResourcesProvisionedByRequest returns the type vCACCAFEPagedResources. getContent() will return an array of vCACCAFECatalogResource

    var _resources = _requestService.getResourcesProvisionedByRequest (_requestId, null) .getContent ();

    Browse results

    for (var i = 0; i)< _resources.length;="">

    System.log ("Id:" + _resources [i] user.user);

    System.log ("Name:" + _resources [i] .name);

    }

  • Matter of finding the resources function VISA after COM port disconnected

    I have an application in which I use two COM ports for communication, both only is active.

    Between testing a com port gets connected and disconnected dynamically. I am able to connect and disconnect without problem.

    Now after my com port dynamic disconnected, its not visible in device as Manager, but if I search all the com port available using VISA find resource once it disconnects, then dynamic port COM is also visible in the list.

    Name of the USB interface is USB Serial Port and the com port is dynamic which will be disconnected. VI attached

    Any suggestion please


  • Output of find VISA VISA open resources

    VISA find resource returns an array of strings. When I have one of the elements of wire to VISA Open there is a point of constraint.

    Is there a function which should be used so that the point of constraint goes?

    Try attached.  You can ignore the point in this case as well.

  • visa resource can't find ports

    Hi all

    I'm having some problems with access to my COM-Ports: they are not only apperar in the drop down "Resource Visa..."

    There should be a USB adapter to series, which has been installed correctly (appears in devices and printers as COM4) and has so far worked correctly with labview on other computers.  Also, I added just a Dev series, but also who is not recognized...

    I've just updated my computer from windows xp to 7 and labview 2011 to 2012 if it is of no relevance.

    Before updating the series on the same computer USB adapter worked very well... (The card series however was not recognized backthen either..)

    I am very grateful for any idea you may have!

    Thank you very much in advance,

    Keksbold

    In MAX, under 'Software '. NI-VISA would be on your hardware driver DVD you got with the distribution of LabVIEW. Or download it (click on the help link at the top of the page).

  • GPIB-USB-HS is not correctly recognized NI Max and impossible to find NI VISA resources

    Hello

    I use a laptop Lenovo T400 with Windows XP SP3 and NEITHER 488.2 14.0 installed top. I plugged the laptop GPIB-USB-HS. It can be found in Device Manager normally but may not be properly recognized OR max. In addition, it is not found in resource NI VISA either. Please see attached picture. I reinstalled OR 488.2 and NI VISA. The problem is still there. Advice please? Thank you very much.

    Sincerely,

    James

    OR GPIB enumeration Service is not started. The problem disappeared after the service started. Thank you.

    rqg0717 wrote:

    Hello

    I use a laptop Lenovo T400 with Windows XP SP3 and NEITHER 488.2 14.0 installed top. I plugged the laptop GPIB-USB-HS. It can be found in Device Manager normally but may not be properly recognized OR max. In addition, it is not found in resource NI VISA either. Please see attached picture. I reinstalled OR 488.2 and NI VISA. The problem is still there. Advice please? Thank you very much.

    Sincerely,

    James

  • Find the resources gap visa?

    When I develop the VI to my office and not at the station to test PC, the resource VISA name is empty.

    Once the VI is moved to the station test PC, the user can select a jury VXI.

    How to make sure that the user has selected a VISA before continuing?

    I can wire a comparison to check the empty string, and that works. But is there a method I should use?

    Try not 'a road/number/Refnum ".

    Or try opening the Refnum and trap for errors and the feedback loop to create a user select again.

  • Control of VISA resource name: to refresh the list of COM ports programmatically

    When the application runs, and you first click this control, it takes 2 to 5 seconds to respond and complete the list for the first time.

    I would like to auto fill in the first time that the application is busy. Can I do this?

    Before allowing the user to click & Select resource VISA name, first use the 'VISA find resource' in your program to do the same thing & then allow or prompt the user to select resources.

    Given that loading EXE, it will execute the FIND VI-first & Labview will inform the resources available.

Maybe you are looking for