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

Similar Messages

  • 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

  • How to convert a VISA Resource Name to String?

    I would like to convert a VISA Resource Name (invalid reference) to string so I can open a session to a GPIB instrument.

    You can typcast the VISA Resource Name, but I usually just treat it like a string. You can connect it directly to string indicators or to any VI that takes a string input. You can even search, concatenate and split it like a string. You can also feed strings into the VISA Resource Name inputs of the VISA functions.
    Rob

  • 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 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 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

  • No coms ports in VISA resource name on VISA resource name VI but I can see COM4 it in my devise manager.

    I am trying to use a USB to RS232 device. I can see COM4 it in my devise manager but nothing in VISA resource name on VISA resource name, even when I hit refresh.
    Thanks
    Dan

    If you can see the device in Windows Device Manger, that is a good sign.  The next step is to recognize the device in Measurement & Automation Explorer, then ultimately LabVIEW.  The following two knowledge base articles should point you in the right direction:
    How Can I Communicate With a Device Using NI-VISA USB RAW Mode
    USBTMC and How Can I Communicate with My USB Instrument
    Regards,
    Alexander M,
    Applications Engineer
    National Instruments.

  • Can't find VISA resource name

    I am trying to run an example code, provided by the manufacturer with a Keithley 2420 3A SourceMeter.  It is powered on, and set up for 488.1 GPIB Protocol.  It is hooked up to my computer using a KUSB-488A GPIB cable.  On the front panel of the example program, there is a drop-down menu labeled "VISA resource name."  The two options available to me are LPT1 and COM1, but I don't think either of these are the right resource name.  Does anybody know what VISA resource name I should be using with the Keithley, or how I can find this out? If it helps, I provided the example program I am using. Thanks in advance!
    Solved!
    Go to Solution.
    Attachments:
    Keithley 24XX Read Single.vi ‏41 KB

    If you read the intructions that come with the Keithley USB-GPIB converter they enclude installation instructions to install the National Instruments compatable version of their driver.
    Yup, just read and follow the set-up instructions.
    Jeff

  • 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

  • Visa resource name can't find

    I'm running a example, visa resource name list couldn't find the port, only com port list, added USB cable (FTDI TTL-232R-3V3-WE) into visa, change visa class I/O session to USB raw, then can see it, but in configure serial port vi, I got this pic. Did I do something wrong or any suggestion? 
    thank you
    Attachments:
    2.PNG ‏32 KB

    Do NOT change the I/O class to USB RAW if you want to use the device as an RS-232 port. If the device does not show up in MAX as an additional com port, first verify that you installed the correct driver that came with the device. Then, see if it appears as a com port in windows device manager. Post back If it shows up in device manager and in Hyperterminal as a com port but MAX still does not list it.

  • 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

  • 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.

  • 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!

  • Visa Resource Name in cluster passed to Network Stream writer causes error 42.

    If I try and pass this "motor data" cluster with an embedded VISA resource name:
    to a Network Stream Writer in this manner:
    Then I get this error from the "Write Single Element to Stream" VI
    If I change the motor data cluster TypDef so that a string control is used instead of the VISA reference, the error disappears and the data passes over the Network Stream without problem.
    Is this expected behavior? 
    I thought that the "data in" (type = "POLY"?) like the one found on the "Write Single Element to Stream" VI was supposed to accept pretty much anything...
    Solved!
    Go to Solution.

    Doug
    I would consider this a bug, as the memory location (more precisely the VISA refnum or session) of a VISA resource means nothing on a potentially remote system. Also I was under the impression that most streaming methods like binary file IO, but also the network streams would use the LabVIEW flattened format for data clusters and for that the VISA resource name would be the only logical choice instead of the underlaying VISA refnum, but I might be wrong in this specific case and the default behaviour for flattening VISA resources might always have been to the VISA refnum.
    Considering that the VISA control can resurect the VISA session from a VISA resource name if it is already opened, flattening to the VISA resource name instead would be more logical, but using a string control in the cluster type definition is a reasonable work around of course.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • 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

Maybe you are looking for

  • Manually manage music and videos of iPhone 4s using pc

    My computer crashed and clean reinstalled the operating system on my PC, I had to reauthorize the computer. Now I installed iTunes and when I check Manually manage music & videos, it tells me: that it's synced with other another iTunes library. The O

  • Configuration Problem Oracle Enterprise Manager 9i

    Hello Friends, I have installed oracle 9i on windows 2000 server, But when I run oracle enterprise manager it asks me the userid and password. Anyone could tell me what is the userid and password i should provide, and any other necessary configuratio

  • Passing a context value to BAPI Import parameter in WebDynpro!

    Hi All, I have a small doubt here! I am trying to create a sales order using Webdynpro through BAPI. There i want to hard code the value of order type like, i want to fix the value before running the porgram itself i.e., statically i want to pass the

  • UC560 upgrade questions

    With the release of 8.6.2 I am looking to upgrade our 560.  I have some questions though. Back in Dec 2012 we got bit by the VM bug that wiped our entire VM/AA setup.  During the resolution iwith TAC we upgraded the CUE to 8.6.1 but we did not touch

  • Lightroom cc 2015 problems

    Hi there. To keep it short. I am trying both Photoshop and Lightroom. Updated lightroom to the new version with still 19 days to go, and now it does not open. I'm more than willing to buy the photographer monthly package. I just wanted to be sure tha