VISA resource name control will not function in my compiled application

Hi
I am having a great deal of difficulty.
I have compiled my application which drives an instrument over a serial interface. 
In my uncompiled top level vi I can easily change the VISA control to a port the PC recognizes (the control has a drop down list of available ports).  Unfortunately in the compiled version this control is disabled.
I really can't figure out what the problem is.  One thing to note is that when I run the complied application on my PC which has the full development version of LabVIEW (LabVIEW version 7.1) the control will work.  It is only when I try to run the compiled application on other PC's which have only the LabVIEW run time engine installed.  (Note: I know that the communications link is OK on these other PC's as I am still able to send commands to the instrument over HyperTerminal).
I hope somebody can help, I am really stumpt on this one.
Many thanks
Ash

Hi,
  you've said that you've built the installer, and are installing the serial driver, but have you installed the VISA run-time on the target machine?
Thanks
Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer

Similar Messages

  • Built Application containing VISA resource name control in Labview 7.1 not working

    Very new to Labview (student). I built an application (my first)that uses VISA serial in Labview 7.1. The application contains a VISA resource name control. The program worked when silmulated, but not when built as app. When I removed this control from the application and made it a constant - the app worked. Any reason for this? A way around it perhaps? Would love an answer. I did make sure the Run-time engin is correctly installed and that it is not the problem. Thanks, Madri

    You need to install visa runtime engine on the machine where your exe is installed
    Doc-Doc
    Doc-Doc
    http://www.machinevision.ch
    http://visionindustrielle.ch
    Please take time to rate this answer

  • A "VISA Resource Name" control

    In LabVIEW there is a"VISA Resource Name" control which lists all the VISA resources, is automatically updated when devices are plugged or un-plugged, and has a Browse functionality.
    With CVI you can use NIDAQmx_NewDeviceCtrl( ) on a string control, but this lists only the DAQmx resources.
    Is there another function I can use to have all the VISA resources listed?
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded
    Solved!
    Go to Solution.

    there is the function viFindRsrc which you can use to programmatically find all available resources.
    I didn't write in my post, but I've already looked at this function.
    The problem is that I have to write code to update the VISA resource list, periodically calling this function.
    I prefer an automatic function.
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

  • Using Visa "resource name" control with GPIB example

    good morning
    I have in my pc two resources of GPIB (Ni-Enet and HP-HPIB card) each one has differet VISA name (ie:GPIB0,GPIB1)
    means Ni-Enet is GPIB0 and HP-HPIB card is GPIB1.
    I tries to use the example Labview<>GPIB to communicate with GPIB1 but it failes
    because the address given (string), to the gpib write object is a string and it recognized only the GPIB0 addresses
    i tried to use the "visa resource name" control (used in the example Labview<>Serial)
    in the Labview<>GPIB example but it failed. ("visa resource name" shows all resources includes GPIB0 nad GPIB1)
    tell me pleae how to use the Labview<>GPIB example to communicate with the equipment addresses used in GPIB1
    a bit long , but hope the issue is clear enough..
    thanks in advance
    Happy new year.
    Simon

    You can't use that example with an Agilent GPIB board. The GPIB functions are only for NI boards and the NI-GPIB driver. You should be able to convert it to VISA but you'll have to replace the GPIB Writwe/Read with VISA Write/Read as well as changing the GPIB Address String to a VISA Resource Name.

  • Is it Possible to change the Name ' ASRL3::INS​TR' to COM3 instead, in a' VISA resource name' Control ?

    Hi all.
    Is it Possible to change the Name ' ASRL3::INSTR' to COM3 instead, in a' VISA resource name' Control.
    see attached  pic.  is there a control  propertie that can change this View eks.  "ASL3::INSTR"  To "COM3"?
     HFZ
    HFZ
    Attachments:
    VISA INSTR.JPG ‏12 KB

     With Measurement&Automation explorer you should be able to modify the serial port ALIAS to "COM3"
    see jpg
    CLD - Labview Certified Developer

  • VISA resource name control: want to refresh list of COM ports programatically

    When the app is running, and you first click this control, it takes 2-5 seconds to respond and populate the list for the first time.
    Therefore, I want to auto populate the first time the application is loaded. Can I do this?
    Solved!
    Go to Solution.

    Hi,
    I'm joining in here since the thread addresses delay problems when using VISA resources.
    I would like to share my experience when using VISA on real-time targets.
    The hardware I use is a cRIO NI-9074 with two NI-9870 (4 x RS232 each) and one NI-9871 (4 x RS485). These modules are used in scan mode to avoid excessive port programming in FPGA.
    My first problem was that the twelve COM ports of the NI-9870/9871 modules did not show up in the list of available VISA resources when placing a VISA resource control on the front panel or a VISA resource constant on the block diagram. However, the workaround using "VISA Find Resources" seemed to work fine. When starting the real-time program from the development machine, the list was populated and by indexing the list I was able to use the port.
    BUT: When building an RT executable from this VI, deploying it to the RT target and setting it as startup, nothing happened. It took me some time to find out, that there has to be a significant delay (in my case about 10 s) before calling the VISA Find Resources function. Otherwise it will not give the correct output. By some reasons, the ports do not seem to be available when the RT startup application begins to run. I tried to play with the delay and found out that the resource list would be empty when calling the VISA Find Resources function almost immediately on startup, after a few seconds it would return the ports of the first NI-9870, after seven seconds the ports of two modules, and after about ten seconds all ports would be available.
    I would appreciate if somebody could tell me what happens since it was quite a pain in the ass to solve this issue.
    Best regards,
    Karsten

  • VISA Find function to VISA Resource Name

    Hi,
    Can anyone help me with this VISA question. I'm kind of new to
    instrument control, but have been using LV for quite a long time. I'm
    using version 6.02. I discovered the VISA Find Resource function, and
    thought it would be really neat to find the instruments that are sitting
    on my GPIB bus, and then make sure they are the ones I need for my
    testing. The Find resource works great, and returns an array of strings
    that are the resource names of the instruments. i.e. GPIB0::5::INSTR.
    However, the VISA Open (and all the other VISA functions) require a VISA
    resource name control (One of those pruple doohickies with I/O in it).
    I haven't been able to figure out how to get that string from the find
    function into the VISA resou
    rce name control (It looks like a pulldown
    on the front panel) so that I can do a *IDN? query to find out what
    instrument is actually at this address. I've tried property nodes, even
    looked at the invoke node, but to no avail. By the way, the property
    node DID have the VISA resource name, but it was read only.
    Thanks in advance for any help you folks might be able to provide.
    David Dupont
    Airvana Inc. http://www.airvananet.com

    Hello, David!
    I'll do my best to answer your question.
    In LabVIEW 6, you have to assign VISA aliases in Measurement and Automation Explorer. You can assign meaningful VISA Aliases to your instruments that you control using VISA in the Devices and Interfaces section in Measurement & Automation Explorer. The aliases can be used in your LabVIEW application development to refer to your instrument.
    Once you have assigned aliases in MAX, you simply place a VISA Resource Name Constant in your block diagram. Type the alias name into the resource name constant and wire the name constant to the VISA Resuorce Name input of the VISA Write and VISA Read functions to control your instrument.
    I hope this helps.
    Mark Ridgley

  • Visa Resource name does not list anything

    Hi,
    I recently installed a Agilent 82357B GPIB and along with it I also installed Agilent IO 16.3. This GPIB is hooked up to a power supply. I am able to find and query the device in MAX and Agilent IO, but when I use the Visa Resource Name control in a VI, it does not list anything. Before I used to see LPT1 and COM1, but now even they have disappeared. All these are present in Device Manager. Even VISA interactive control throw an error. Attached are screenshots for some reference.
    HP_GS
    Attachments:
    VisaResource-Refresh.png ‏2 KB
    Visa-IC.png ‏7 KB

    Hi there,
    You might want to read this post about the specific error.
    Also you need to make sure the right class is slected for the visa resource (right click):
    Hope that helps, regards W

  • Old visa open, error code 1073807343, using VISA with a GPIB device, and VISA resource names

    Hi everyone,
    I'm trying to get a SRS model SR720 LCR meter (manual on this page) working with LabView, connecting it to my PC with an Agilent 82357A GPIB/USB interface (manual on this page). I'm running MAX version 14.0, and NI-VISA version 14.0. I'm running LabView version 13.0f2, 32 bit.
    I followed the directions on this page, and I'm pretty confident I can communicate with my LCR meter, because I can go to NI MAX->GPIB0::17::INSTR under "devices and interfaces", then go to the VISA test panel, go to the I/O tab, and I can enter a few commands from the SR720 manual, like changing the frequency, and I see the light on the LCR meter change to what I just told it to do. Here is a picture, just to illustrate it:
    Also, if I do the *IDN? command, it returns "
    9: Write Operation (*IDN?)
    Return Count: 5 bytes
    10: Read Operation
    Return Count: 41 bytes
    StanfordResearchSystems,SR720,08087,1.03\n
     So, that's good too. I also made the alias of this device "MyLCRmeter", but that shouldn't matter for now.
    Now I'm trying to get it to work in a more usable way. The SR7xx drivers that LabView found for me came with a couple sample programs, one called "Getting Started.vi". I tried to just simply see if it worked, changing the "instrument descriptor" field to "GPIB0::17::INSTR", since that's the one that seemed to be the right device in MAX. Here is a picture of the front panel of "Getting Started.vi":
    Trying to run it like this gave me this error (code -1073807343):
    Old VISA Open in SR715/720 Initialize.vi->SR715/720 Getting Started.vi
    Doing a bit of searching on these forums, I found these few threads (1 2 3), which seem to tell me that, since this program was written, the way you open VISA has changed. In the 2nd of those links, one guy said:
    You just have to replace the Old VISA Open function with the VISA Open that is on the Instrument I/O>VISA>VISA Advanced palette. When you do that, the wire to the string that was used for the resource name will be broken. Delete the string and make the actual VISA Resource Name visible on the front panel. Wire the VISA Resource Name control to the connector pane where the string control was (upper left connection).
    So, I went into the sub-VI Initialize.vi, and did that. Here is a picture of what the front panel and block diagram of the sub-VI Initialize2.vi (I changed the name in case I screwed things up, but I'm pretty sure the new one is the one being called by Getting Started.vi) looked like before I changed anything (you can see the Old VISA Open):
    and here it is after replacing that with the regular VISA Open, deleting the instrument descriptor string and replacing it with a VISA resource, and connecting that to the VISA Open:
    However, as you can see in the image above, and it seems like someone else had this problem in the 2nd thread linked above, I don't see my device listed in the drop-down menu (even if I refresh), only "LPT1" (I don't even know what that is):
    No, I wasnt able to select the visa resource from the pull down menu. somehow it seems disabled or something.
     If I just enter the VISA resource name from MAX manually, GPIB0::17::INSTR, and save and try running that, I get the error(code -1073807346):
    VISA Open in SR715/720 Initialize2.vi->SR715/720 Getting Started.vi
    So I'm not sure where to go from there, or why it's not in the drop down menu to begin with. I'm sorry if I've missed something but I've searched about as far as I can go. If I had to guess, maybe one thing could be that in MAX, under Tools->NI-VISA->VISA Options->My System->Conflict manager, I have both Agilent VISA and NI VISA enabled; I know sometimes problems arise from conflicts between different software fighting over the same hardware. Is this okay, or do I need to change it?
    Thank you and please let me know if there is any other code/screenshots I could provide that could help!

    Hi, I did indeed enable NiVisaTulip.dll under MAX->Tools->NI-VISA->VISA Options->My system->Passports->List of passports. Sorry, I should have mentioned that explicitly.
    By install as primary, do you just mean as it is here, where it is selected as the "Preferred VISA"?
    Or somewhere else? I installed NI-VISA first I believe, and then the Agilent one, and during the installation of the Agilent one, I'm pretty sure I made it not the primary. Here's what I have in the Agilent (it's called Keysight now) Connection Expert software:
    I also have this under the "Keysight 488 options" tab:
    Should that be checked? I don't actually know the role of VISA vs 488 here...
    What could I try?
    Thank you!

  • How I can saving visa resource name in windows registery and load it again?

    I use visa functions in my program for serial communication , I want to save selected resource name in windows registery and next time that i run my program, i want to read it from registery and assign it to my visa resource name control.
    example:         My visa resource name control value = COM2
                            I close my program with this value (how i can easily save COM2 to windows registry key ?)
                            I open my program again (how i can load COM2 in my resource name control from registry Key?)
                            How i can access to visa resource name list? example: COM1     COM2      LPT1     COM56     COM255
    Thanks.
    Solved!
    Go to Solution.

    I guess I don't understand your problem. All you have to do is ready the key containing the desired resource name and wire the resulting value to the appropriate terminal on the open VI. That's as hard as it gets...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • What determines which inputs you can select from when you're creating a VISA Resource Name Constant?

    Hey, I'm trying to write a labview driver an instrument. I have another instrument which came with labview drivers, and I had hoped that by looking at how they did it, I could write my own for this piece of equipment.
    However, the problem is they use the old visa open method. That is, they input a string, "GPIB::6", and it outputs a visa session.
    The new Visa open requires that you have an input resource name, and the constants only let me pick from "COM1" and "LPT1", but the GPIB interface card in this computer is in a PCMCIA slot.
    What determines what choices you get when you select the value of the constant?
    Thanks,
    -Dobbs

    If you created a VISA Resource Name control, right click on the control and select "Allow Undefined Names".
    I haven't programmed directly using VISA on LabVIEW 6 but it apppears that if you select from the drop-down menu, it shows the devices that is defined in MAX. Thus, you should be able to select your GPIB resource name if it has been properly installed.
    Nevertheless, it still allows you to override the control by selecting "Allow Undefined Names".
    I hope that helps.
    Shan Pin Koh

  • How to convert a string to visa resource name

    I have a string , like "visa://192.168.123.212/RIO0::INSTR", how can I convert it to a Labview visa resource name? The resource name is going to be used for "Open VI reference" control.
    Also, a related question is , is there a special vi control for ip address input?  How do I check whether the input ip address is in valid format or not? 

    Just wire it up. A string will coerce to a resource name.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How use USB with VISA resource name?

    Hi, 
    I'm new at LabVIEW and I'm working on a code that has to acquire data from a measurement device.This device only has a USB output so I have to work with it. As far as know the block that is used to refer a external port is VISA resource name. I have installed a driver that recognizes the serial ports, and they appear in the list of VISA resource file at front panel. So I figured that installing the product's USB driver so the USB's ports would appear. I installed and nothing of USB ports. I don't know it is that simple or working with USB ports is a little bit harder. I've tried a lot of things and nothing worked so here I am.
    PS: I have noticed that the driver's version is 64 bits (my pc is 64 bits)  and my LabVIEW version is 32 bits, so could that be the problem?
    The device by the way is Digital Analyzer WT500, Yokogawa.
    Thank you.
    Solved!
    Go to Solution.

    Victor,
    the suggestion of Instrument Driver is to make more easy using the instrument. 
    Normally, you should install a windows drive from manufacturer (if it isn't installed, the instrument will appear like a pendrive in device manager) and the NI VISA. But for some instruments, the manufacturers have API's that uses NI VISA to communicate with your equipments.
    So check if your instrument appear correctly in device manager (as indicated by Yokogawa). If not, check if Yokogawa has an appropriated driver for this instrument and install it. 
    Is it clear?
    If you prefer, contact NI Brazil Support by website or by phone (11)3149-3149 Ext 3.
    Ricardo Ramos
    Engenheiro de Vendas - Sul
    National Instruments Brasil

  • How is VISA resource name & COMport name mapping done?

    I want to give names like COM1 etc. on front panel. On diagram how to convert it to VISA resource name, in order to be able to give it as I/P to open VISA session vi.

    You may want to use the friendlier names that NI-VISA can give you. I'm attaching a VI that gets those names for you in both LabVIEW 6i and 6.1, since you don't mention your version.
    Starting with NI-VISA 3.0 (coming soon), you'll also be able to use names like "COM1" even if MAX is not on the system. However, that is a feature for only Win32 and LabVIEW RT, since those names do not exist on Unix systems. So a VI making use of that feature will not be completely platform independent.
    Dan Mondrik
    Senior Software Engineer, NI-VISA
    National Instruments
    Attachments:
    FindSerial60.vi ‏29 KB
    FindSerial61.vi ‏29 KB

  • How do I convert visa resource name into string?

    Could please anybody help? I have an ergent need. How do I convert visa resource name into string?
    Thank you in advance.

    Most times you do not need to convert it. Just wire it stright into what ever string input.
    See "Format Into Srting" or "Type Cast" functions
    Omar

Maybe you are looking for

  • How can I open a blob (PDF) in new window.

    The BLOB (PDF) that is in the database is being displayed by a column link. Since the field is a blob link I haven't found any way to open it in it's separate window. There have been several postings where others have asked this but I've yet found on

  • How do i get my email footer to show in the email

    I want to send emails and have my email footer appear at the bottom of the email.  What actually happens is my email footer appears as an attachment!  Its really annoying.  How do i make it so that my footer appears at the bottom of every email?

  • TS1286 iPad sync problem

    Half way through syncing my iPad, I get a message saying the iPad has disconnected.  It hasn't as far as I can see.  Any ideas?

  • MVKE table updation through MM17 mass maintainence.

    Hi Experts, I need some input regarding mass maintenance of material. The input field 'Product Hierarchy' is present in 'Basic data' (MARA-PRADHA) and in 'Sales View' (MVKE-PRODH). As per standard SAP if I do changes through MM02 in Basic data, the f

  • Photo Stream Folders

    I think I already know the answer since I'm not able to get it to work but just wanted to confirm that Photo Stream will only sync individual files and not folders, correct?  I have set my sync folder to My Pictures on my PC but when I import my phot