What does VISA Find Resource use as source data?

When a Serial Resource (e.g. COM1) is busy with another application, I want to tell the operator this, specifying the COM number in question. It appears the Port Binding (e.g. COM1) is not known until a successful VISA open has exececuted.  Although I could indicate the alias (e.g. ASRL1::INSTR) that is busy, its not very meaningful.  Visaconf.ini has this information. Is it the right place to go for it?

Yes, this file contains the mapping between the VISA names and the System names. It is the section ALIASES you need.
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions

Similar Messages

  • What does initial do when used on a date format field

    Hi,
    When  a check of if initial is done on a date format field , does it check if the field is 00/00/0000 orit checks if its blank?
    Thanks.

    Check is done on value "00000000".
    Please try the following code, put a break-point on IF condition, t_date will have value  "00000000":
    DATA: t_date type sy-datum..
    IF t_date IS INITIAL.
      Write : 'test'.
    ENDIF.
    Hope this helps.

  • Visa Find resource vi does not find GPIB0 board

    The GPIB0 board is appering in MAX device and interface. I can communicate properly with my GPIB0::3::INSTR. While I run Visa Find resource vi it finds all resources like serial and parallel ports, GPIB0::3::INSTR instrument but it does not find GPIB0 board.
    I running my application under WIN-98, Labview 6.0 and NI-VISA 2.6 and NI-VISA 2.6 Run Time are installed.

    Not exactly the same question as not being able to find the GPIB0 board.
    In any case, open MAX, expand Devices and Interfaces, expand the listing under your GPIB board, select your instrument. In the window on the right side, you should see a box labeled VISA Alias. Enter your alias and click the save button on top.

  • Built application can't find DaqMX devices with VISA Find Resource VI

    My application programmatically finds all of my PXI devices using the VISA Find Resources VI with the following regular expression:
    (PXI[0-9]*::?*INSTR){VI_ATTR_S:LOT >= 0}
    This works with my built application on a PXI-8186 controller with LabVIEW installed, but when I created an installer to put it on another PXI-8186 controller without the LabVIEW development system, none of my DaqMX devices show up in my list of VISA resources.  They all show up in MAX, however.  I even tried creating a simple app that just has the routine which gets the resource list.  Ironically, the only PXI device that shows up in the list is a ZT1000PXI made by ZTEC Corp.  I also have a number of PXI-4437s and PXI-6120s in the chassis.  I tried setting the PXI option in MAX to report all PXI devices, not just registered ones, but that had no effect.
    This is a Windows 2000 OS running on a PXI-8186, with DaqMX 8.5.0f3 and NI_VISA Runtime V4.1, and LabVIEW Runtime V8.2.1.
    Does anyone have a clue why this isn't working? I've tried uninstallng and reinstalling NI-VISA Runtime, but it didn't matter.

    Hi wired,
    As I understand it, you built an application in LabVIEW 8.2.1 on a PXI-8186 controller. When you moved to a new controller, one without LabVIEW 8.2.1, the program to find your PXI cards returns only a third party device and not your DAQ cards, despite the devices being visible in Measurement and Automation Explorer (MAX). You have an Installer for your application that installs the runtime engines for VISA and LabVIEW and the DAQmx driver.  Is my understanding correct?
    You mentioned that you had tried setting the PXI option in MAX to report all PXI devices, not just the registered ones. By this, did you mean that you set the VISA option to Show all devices accessible to VISA? If you did not mean this, then I would suggest doing so. In MAX, you can expand the Software tab in the Configuration Tree to the left. By selecting NI-VISA, the VISA options become visible. You should select show all devices accessible to VISA as seen in the attached screenshot.
    If you did in fact select this option already, can I ask if you also enabled the NI-VISA tulip Passport? In order to do this, on the VISA Options page, under General Settings, if you select the Passports option a list of checked boxes appear. Select the Tulips option as seen in the second screenshot and then click the Save button at the top of the MAX window. You will then need to close LabVIEW or your application and restart it.
    I built a simple program to test this post, and until I followed the above steps, the only devices that appeared were my com ports. After doing this I was able to all of my DAQ cards.
    Could you clarify some things for me? When you said that the application works on a PXI-8186 controller with LabVIEW, was this the development machine or just a controller you tried the executable on and it worked? What is in your installer? Is the VISA version on the test controller the same as that on the development machine? And lastly, in MAX, do the DAQ cards appear under DAQmx devices or under PXI systems and can you communicate with them using a test panel?
    Good Luck, Mallori M.
    Mallori M
    National Instruments
    Global Customer Education Program Mananger
    Calculate the time you will save with NI Training
    Attachments:
    Show VISA Accessible.PNG ‏84 KB
    Tulip Passport.PNG ‏15 KB

  • VISA Find Resource primitive runs much slower on OS X compared to Windows

    Hello Everyone,
    We have a large application that is built with LabVIEW 2014 64-bit that calls the "VISA Find Resource" primitive in a While Loop as the basis for automatic hardware discovery.
    On Windows, everything works fine. However, we just started using LabVIEW for OS X to build our application for Mac and I noticed that the "VISA Find Resource" primitive executes about 10 times slower. This causes a handful of issues in our application since things were coded around this assumption that this primitive would execute very quickly.
    I wrote a VI in LabVIEW 2014 64-bit that I've run on both a Windows 7 64-bit machine and several Mac computers running Yosemite. The VI runs this primitive in a while loop which stops after the user-defined number of iterations have been performed and gathers timing statistics. I've attached this VI for reference. Below are the screenshots of the VI after running them on OS X Yosemite vs Windows 7 with the VISA Find Resources running 10,000 times.
    As you can see, the front panel displays the current iteration number (Loops), the current millisecond measurement during a loop, the mean millisecond measurement for the number of loops so far, the standard deviation, and variance. What I can see is that the standard deviation and variance are very similar across both platforms. It's just that for some reason the VISA Find Resources primitive runs slower on OS X Yosemite at about 6.5ms per execution vs Windows at 0.73ms per execution. I've also run this VI on a Mac Mini running Mavericks with nearly identical results (mean time of 6.5ms). As I mentioned before, this primitive taking about 10 times longer to execute really hinders the performance of our application.
    Is this a known issue for LabVIEW or VISA for OS X? Is there any way to get performance comparable to Windows on OS X?
    Thanks!
    Attachments:
    VISA Timings.vi ‏14 KB

    There is one serious difference between these two examples that could at least partially cause some of that difference. On the Mac you have 6 or so resources that satisfy the request, on Windows none. It's not exactly a fair comparison that way.
    VISA Find Resource on Windows can be slow too, if there are quite some VISA resources to scan. In fact I consider 6 ms runtime for VISA Find Resource a damn fast execution time. I had in the past easily execution times of several seconds when searching for ASRL (serial) resources. And that was on Windows.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • VISA Find resource function regular expression

    Hi guys,
    I've been trying to get which Serial port is a GPS receiver connected to using the VISA Find Resource Function with no luck. The idea is to use a regular expression similar to
    ASRL?*INSTR{VI_ATTR_ASRL_BAUD == 9600}
    but instead of looking for baud rate, I want to search the value
    ASRL3 (COM3 - GNSS Receiver)
    as seen in MAX/VISA Test Panel. The attribute name is VI_ATTR_INTF_INST_NAME.
    Something like ASRL?*INSTR{VI_ATTR_INTF_INST_NAME == ASRL? (COM? - GNSS Receiver)} should work, but it's not.
    How should I write the expression?
    Thanks!
    Best regards,
    Néstor
    LabVIEW 2011 + Windows 7 32bits SP1

    Hi Dennis,
    thanks for answering.
    I haven't assigned the name, MAX did it. I just opened MAX and there it was, COM3 (In Devices and interfaces/ASRL3/settings/name). I suppose it gets directly the Windows serial port name, what name do you mean exactly?
    Anyway, what I'm interested in getting is the Port description, that would tell me the connected device in that port. I could build a small loop and look for the interface description of each serial device, but I found the VISA Find Resourde function and it seems a more simple and direct way to get what I want.
    If I can list all serial devices with 9600 baud rate as in the previous example, why not do the same with the instrument name? I clearly see it when I open the VISA Test Panel. I am maybe missing something?
    Best regards,
    Néstor
    LabVIEW 2011 + Windows 7 32bits SP1

  • How to make "visa find resource" working with Agilent device

    I am trying to use Agilent 82357B GPIB device with LabVIEW for instrument control.
    I have checked:
    1.       NI-VISA (ver 5.1.1) is the primary visa by checking visa.dll properties under windows\system32 folder
    2.       Enable NIVISATulip.dll in NI Max Explorer
    3.       Enable the Agilent libraries to work with NI 488.2 in Agilent IO library (ver 16).
    I am able to communicate with the instrument in Max Explorer and talk to the instrument in LabVIEW with VISA write for almost all commands.
    But I can NOT make one particular visa function (Visa find resource) working with Agilent 82357B GPIB.
    With NI USB GPIB device, the same code above can find attached instruments as below, where GPIB1 is the Agilent device and GPIB0 is the NI device.
    I have no clue on how to make “visa find resource” working with Agilent device.
    Please help.
    Solved!
    Go to Solution.

    Quick question.  Did you also enable 488 support in Agilent? 
    If that does'not work try this.  and well see if you found a bug
    Jeff

  • What does this file be used for?

    What does this file be used for: $COHERENCE_HOME/lib/coherence/coherence-client.xml ?
    The contents of this file is show as the following:
    ?xml version='1.0'?>
    <license-document>
      <license>
        <software>Oracle Coherence: Data Client</software>
        <licensee>n/a</licensee>
        <type>production</type>
        <id>0x00A800CC0000011295888F24BC6C730B</id>
        <signature>302C02147737DBFAC8F3931DC9A50EFB78A9DF824414054B0214277CACA4CA2B3D01292FBEB080A18DDCC79DBF0F</signature>
      </license>
    </license-document>What is the difference between $COHERENCE_HOME/lib/coherence/ coherence-client.xml and
    $COHERENCE_HOME/lib/coherence/ coherence-rtc.xml about the purpose of usage?
    Edited by: junez on 30-Nov-2009 08:50

    Hello Junez,
    The coherence-client.xml is for the Data Client.
    The coherence-rtc.xml is for the Real Time Client.
    Please take a look at the following page for more information and let me know if you have anymore questions.
    I am also curious what version of Coherence are you using?
    Best regards
    -Dave

  • What does it cost to use FaceTime?

    What does it cost to use FaceTime?

    It will "cost" whatever data usage you incur while using it, either through the cell network, or wifi.

  • \What command keys do i use to fill data. I need this for return address labels

    What command keys do i use to fill data.I need this for return address labels

    Here's an overly chatty example that will show you what's happening:
    $strContacts = 'Tony Stark', 'Anthony Edward Stark'
    Write-Host 'User names:'
    $strContacts
    Write-Host
    foreach ($strContact in $strContacts ) {
    Write-Host "Start of loop. Processing $strContact now."
    $arrContact = $strContact.Split(' ')
    Write-Host
    Write-Host "$strContact has been split apart into individual array elements based on a space character. The elements are below:"
    $arrContact
    Write-Host
    Write-Host 'Start building filterName variable. Index of -1 gets the last element in the array.'
    $filterName = "$($arrContact[-1]), "
    $filterName
    Write-Host
    Write-Host "Loop through the remaining names in the contact. Need to process $($arrContact.Count-1) names."
    for ($i = 0 ; $i -lt $arrContact.Count - 1 ; $i++ ) {
    $filterName += "$($arrContact[$i]) "
    Write-Host "filterName variable is now $filterName"
    Write-Host
    Write-Host "Now we need to trim off the trailing space character."
    $filterName = $filterName.Trim()
    Write-Host "The final value of filterName is $filterName"
    Write-Host
    Write-Host 'Attempting to get the user object via Get-ADUser now:'
    Write-Host
    Get-ADUser -Filter "Name -eq '$filterName'"
    Write-Host 'End of loop.'
    Write-Host
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • What does "cannot find symbol"

    i got this when i was writing a program
    2 errors found:
    File: C:\Documents and Settings\Project1.java [line: 7]
    Error: cannot find symbol
    symbol : class Scanner
    location: class Project1
    File: C:\Documents and Settings\\Project1.java [line: 7]
    Error: cannot find symbol
    symbol : class Scanner
    location: class Project1
    What does this mean?

    2 errors found:
    File: C:\Documents and Settings\Project1.java [line: 7]
    Error: cannot find symbol
    symbol : class Scanner
    ocation: class Project1try using:
    import java.util.Scanner;or
    import java.util.*;this should work.

  • What does "domain name is used for your typekit fonts & SEO sitemap.xml" mean?

    Why is Muse now asking, on either uploading files via Muse or externally through another ftp, for a domain name that is used for your typekit fonts & SEO sitemap.xml?
    I used Muse for exporting my files to ftp externally a few months back and I could add whatever I liked into the domain name field (which made sense as I could choose an appropriate name). I upgraded Muse this morning and now no domain name I add in here is accepted and on hovering over the info icon I get a "domain name is used for your typekit fonts & SEO sitemap.xml. What does that mean exactly?
    If anyone can help?

    Hi Guys
    Great thread Omniscient! Like Bian, my username is just my name. It's a unisex name and caused a nice little debate in the early days of this forum as to whether I was male or female!
    Kerry is from the Irish meaning 'dark-haired' but I am a blondie (natural blonde when younger, bottle blonde now I am older!) I think my mum just liked the name...
    There are lots of interesting usernames out there - tell us about them and where they come from!
    Cheers
    Kerry
    Retired BTCare Community Manager - StephanieG and SeanD are your new Community Managers
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • What does Application Development Runtime use oraInventory for?

    Hi everyone,
    I am very new to the ADF and JDeveloper toolset, so I apologize if this is a dumb question.
    I am working with Oracle BI Applications. In particular, there is a product called Spend Classification. Part of the setup is to install Oracle Application Development Runtime (http://download.oracle.com/otn/nt/middleware/11g/ofm_appdev_generic_11.1.1.2.0_disk1_1of1.zip).
    During the install for that product, we ran into an error, insuffcient privildges to the oraInventory folder.
    What does this software use the oraInventory folder for?
    -Joe

    The oracle installer uses the oraInventory directory to keep track of what software is installed on a machine
    John

  • What does it mean "cannot contact reliable source" ?

    The downloading stopped and only gave the above info.  What does this mean?  Could my firewall be the problem? 

    Use the installer from http://get.adobe.com/reader/enterprise/

  • When i run labview6.1 on my pc with windows the "DAQ Solution " was gary doesn't work i don't know why ?i don't have a daq board card is that a reason? i want to know what should i have to use labview in data acquisitio​n?

    i am using a platform windows 98 ,and labview 6.1
    thanks in advance

    With the NI-DAQ driver, you can build VIs, but you can not acquire data until you have a Data Acquisition card. You can get these from National Instruments over the web or by calling.
    J.R. Allen

Maybe you are looking for