VISA TCP/IP Resources, Aliases & DHCP

I using an alias from my (VC++) application to access a LXI power supply. I've done the VXI-11 scan & alias definition from MAX. I want to avoid the user having to use MAX if the IP address changes.
The power supply has a DHCP assigned IP address, but no hostname. It looks like the alias is nothing more than a mapping to "TCPIP0::129.86.82.157::inst0::INSTR" -- is that the case? If so, then how do I re-bind the aliad to the instrucment if it gets allocated a different IP address? What does the"Validate" button do?
I need to ensure that the alias maps to the correct device / serial number. I'd like to only define the alias once in MAX and then handle any address re-assignment from the applicaiton (with as much handled in VISA, et. al., as possible).
Currently I'm at VISA 4.2, but can upgrade if that helps. (saw something about a new static flag in 4.4)
Thanks,

On my work i use a Agilent PNA who work with lan. In Labview the viFindRsr Box will go find the device only if you record first the IP address on NIMAX. it mean that your IP address of your device must be !!!First!!! Defined staticly (not DHCP). 
If your device must be DHCP there is a other way that i use. 
I have developed a simple soft (dos style) who when i give the IP passerell  adress (Ex 192.168.0.1) he will scan all the adress( 192.168.0.2 to 255) by PING and if the PING success the program stop when the *IDN? command match to my device and write in file the IP adress.  Of course my acquisition program use this file to commicate wth my device. I don’t incorporate directly this code on my principal program, because The PING command to be use fastly, must be incorporate in THREAD and EVENT. It means that can provide crash and bugs if you incorporate directly in your program.

Similar Messages

  • VISA ERROR -1073807239 in NI VISA2.5 for TCP/IP resource

    Hi AEs and Experts
    I m using NI VISA2.5 for communicating with an instrument using TCP/IP resource and its working perfect. Once I read a data block of size more than around 1500 bytes using ViRead(),i m getting ERROR -1073807239. Is there any limitation of VISA while using TCPIP resource?? ViRead() is working perfect for more than even 10MB data read in case of GPIB resource.
    Please through some pointer and soolution for this.
    Regards
    santanu

    Santanu:
    Are you using INSTR or SOCKET? If INSTR, then there were several bugs fixed in the 2.6 release, specifically regarding large viRead operations. You should consider upgrading.
    Also try copying the patches (available from ftp://ftp.ni.com/support/visa/drivers/win32/2.5/patch or ftp://ftp.ni.com/support/visa/drivers/win32/2.6/patch) over the existing NiViEnet.dll on your machine.
    If your problems are when using SOCKET, this is not a problem I have heard of before. You may want to use NI Spy and send a capture file to technical support to see if they can help you further.
    Dan Mondrik
    Senior Software Engineer, NI-VISA
    National Instruments

  • LV6 String to VISA I/O Resource

    I need to translate a string to an VISA I/O Resource. I've tried to do it by linking an I/O Resource control to a Property Node box and selecting Rsrc Name property, but it doesn't change to Write. I want to avoid using Old VISA Open, so...
    Thank you...

    I do this kind of operation all the time. I have included my VI that I use for this. You can look at how it's done or just use it. I found it handy to have a "translation" VI rather than throwing local variables around my diagram.
    Rob
    Attachments:
    String_to_VISA.vi ‏9 KB

  • VISA TCP/IP wait after query

    Hi 
    I found an issue with the driver to MSO-X 2014A TCP/IP scope which was sending the status request too early after the previous query was issued. 
    I have modified the vis, but I was wondering if there is a VISA property node which specifies the wait time after each VISA write is executed?
    In that case I could set it upfront and do not worry about the other vis. 
    thanks

    pawel wrote:
    OK, thanks to all. I was just wondering if I can go shortcut, but I guess not.
    thanks
    The *opc? command IS a shortcut!  Adding it on to the end of a SCPI command turns the previous command into a query.  When the command is done, it sends a "1" (or something similar - I've found different vendors have different interpretations of what a "1" is) to the output buffer that you read so your application only waits exactly as long as it needs to before sending the next command.  You have to look in your programmer's guide to see which of your commands supports this feature.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Visa tcp ip

    Bonjour,
    Je cherche un exemple de visa tcpip simple pour m'aider pour mon premier essai.
    Je souhaite raccorder un MC redlion a mon pc pour faire de l'acquisition de données, j'ai fait mon reseau avec max mais au niveau programmation ça ne marche pas(erreur E/S).Ci joint mon prog avec juste une visa read,le nom de la ressource, le nombre octect et le buffer.
    Merci pour votre aide
    Eric
    Attachments:
    essai.vi ‏9 KB

    ok, tanks for your response,
    the modular controler red lion (model; CSMSTR-SX) have been configured to comunicate in MODBUS / TCP:IP, after consulted to red lion's service center they suggested us to change the controller priority to slave, but wihtout success. in this configuration it is not neccesary to send any command to the device. we'd like to create a VI that permets us to read the data from the controller.
     link to the data sheet: http://www.redlion.net/Products/Groups/ModularCont​rollerMaster/CSMSTRLE/SX/GT/Docs/05033.pdf
    thanks in avance

  • How Can I Communicate with a Moble Phone throgh RS232 or USB mini,Does NI-VISA support these resources?

    Just as we've known, NI LabVIEW or LabWindows/CVI provide us the RS232 Lib for Serial Communication.
    and also NI-VISA supports both ASL and USB resources.
    Mobile Phone(Celler Phone) usually use two kind of ports for data communication: RS232 and USB mini.
    both of which act as serial transmission actually.
    so the question coming up is: Are the rs232 lib or NI-VISA developed to support the overall serial communication
    or it just work well with the standard rs232 com port?
    Phone from differnt vender has its particular port and driver.which relate to communication protocols.but
    the accessory tool Hyper Terminal from Windows OS can communicate with all kinds phone which has
    its driver installed on the system.
    so does anyone can give some idea about low level serial communication?thank you very much.

    NI-VISA's ASRL sessions basically work with virtual COM ports, however NI-VISA ASRL operation is guaranteed only with standard COM ports and NI-Serial devices.  In fact, I have a 3rd party USB-Serial converter that comes with its own device driver providing a virtual COM port such as COM3, and accessing it through the NI-VISA occasionally causes a Blue Screen death.  (It is probably due to device driver.) Therefore using unsupported COM ports from NI-VISA is at your own risk.
    As for low-level programming, a typical way is use Win32 Serial Communication API directly.  Accessing Win32 API is easy for C-language, but somewhat troublesome for LabVIEW.  See the following Platform SDK help:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_functions...

  • I have a MacBook Pro.  My mac can detect wifi.  But will not connect. I did get connected vis TCP/IP settings but I can't connect to any wifi anywhere.  Network diagnostic has a green light for wi-fi and wi-fi settings.  Red light for the rest.

    I have a MacBook Pro.  My mac can detect wifi.  But will not connect anywhere. I did get connected via TCP/IP settings but I can't connect to any wifi anywhere.  Network diagnostic has a green light for wi-fi and wi-fi settings.  Red light for the rest. (Network settings, ISP, Internet and server.)

    Hello NotAppleSavy,
    Thanks for the question. After reviewing your post, it sounds like the computer wont connect to networks. I see you have used network diagnostic. I would recommend that you read this article, there are a lot of other things you can do in this article that may be able to help you resolve or isolate the issue.
    Wi-Fi: How to troubleshoot Wi-Fi connectivity
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • HL7 TCP eWay Resource Usage

    We have a number of HL7 eWays connecting to external systems. If one of these systems goes down and a message is sent through to the collaboration handling the eWay, the entire logicalhost seems to grind to a halt until the connection is remade.
    Has anyone else seen this happen? In the future we may have up to 20 different clients with anywhere between 2 and 10 tcp connections, and for one to go down and kill the whole system is quite disconcerting.
    Cheers,
    Andrew.

    There is a HotFix for this. For Java CAPS 5.1.1 it is 102029. There may be one for 5.1.0. Contact your support reps.

  • TLA APplicatio​n and NI VISA

    Hi,
    I am using LabVIEW 8.2 and NI MAX 4.1
    I am using Tektronix TLA7016 with TLA Application 5.1 SP1. In NI MAX I added VISA TCP/IP resources with IP address of TLA. It detects Mainframe and all the modules of the TLA. But while I open TLA Application, TLA APplication does not reconise TLA modules! Does any body use this and found some solution for this? Could you please help me?
    Regards,
    Vishal

    Hi Vishal,
    I assume you are using TekVISA in addition to NI-VISA. Correct? If you delete the TCP/IP resource from MAX, are you then able to access your TLA modules using the TLA application? I notice you posted in this thread; Are you still having trouble even with just one vendor's VISA installed? Also, does the "switching" utility you mentioned get rid of this issue? Thanks!
    Regards,
    Message Edited by _Belle on 04-23-2007 04:58 PM
    Ebele O.
    National Instruments

  • Set-up configuration of visa driver

    I'm setting up  new device via VISA TCP/IP Resources. my evice is plugged into the physical computer through a COM port which then communicates with the instrument via RJ-11 telephone wire. I can not get VISA to recognize my device

    Hey terbotim,
    If you are connecting to your device through a COM port than you will not be able to communicate with it through TCP/IP.   This document gives a good overview of serial communication: http://zone.ni.com/devzone/cda/tut/p/id/2895 
    This link is a tutorial which gives information about setting up a serial device in MAX.  Please post back if you have any additional questions.
    Regards,
    Kevin
    Product Support Engineer
    National Instruments

  • VISA error: 0xBFFF0011 When trying to connect FBG Interrogator via Ethernet

    Hello, I have a SmartScan Dynamic FBG Interrogator and I've been wanting to switch it over from the proprietary SmartSoft (a suite of labview based applications) to LabVIEW. I have some VIs lying around that seem like they would be helpful in getting a LabVIEW VI with all of the functionality of the SmartSoft package, however they make use of a DAQassistant that references something that isn't there. And so I need to properly connect the device in NI MAX
    I don't know that much about LabVIEW but I was able to find that since the interrogator connects via cross-over cable that I should install VISA and add it in NI MAX. But when I try and do this, the automatic find device option when I try and create New VISA TCP/IP resource finds nothing and the manual entry method doesn't work for me. Now I know the IP address, as it is static and when I open SmartSoft I am able to connect to the device using it; also I have pinged the IP successfully. However, it asks for the port number and I've seen a few possibilities based on a UDP Message Format Guide that was with the VIs that I mentioned I had found earlier. I've tried 'validating' with all of the port numbers the guide lists which are for Diagnostic, Maintenance and Data messages, but I always get the error I list in the topic title. I saw other threads with this error but it was always in regards to serial communication.
    Am I headed in the right direction using NI VISA? And if so, do you have any suggestions on what could be preventing NI MAX from connecting to the device?
    Any and all help would be appreciated,
    Colin

    Well, I didn't really ignore the reference so much as I wasn't sure if it was a VXI-11 instrument or not, so after the other method didn't work I thought I'd try it. Based on that not working I would assume that it is not a VXI-11 instrument.
    And sorry, by manual entry I meant Manual Entry of Raw socket. Which is why I brought up my concerns of whether or not I had the right port number. 

  • NI MAX entry for a Non-NI/VISA Instrument LabWindows/CVI Driver

    Hi All,
    Sorry in advance if this is not the right forum.
    I have created a IVI class and specific instrument driver in LabWindows/CVI for a Video Generator. The generator is a networked, SCPI based instrument. It does not automatically appear in MAX like other NI based instruments.
    How or what do I need to do to MAX to use the instrument? Is it as simple as adding the logical name, driver session and advanced driver entries to MAX? Do I need to create a new instrument in the HW section such that the driver session has a device to point to? I have been playing aroud with the networked instrument section in MAX and nothing seemed to make sense to me.
    Any help would be greatly appreciated!
    Thanks
    Minesh
    Solved!
    Go to Solution.

    Minesh,
    Maybe this Knowledge Base article will help get you started. I think you will need to add a new VISA TCP/IP Resource in Measurement and Automation Explorer.
    How Do I Configure an Instrument to Communicate via TCP/IP in Measurement & Automation Explorer:
    http://digital.ni.com/public.nsf/allkb/D7D8E3E1B682022286256D4A00771A52
    Robert B
    Applications Engineer
    National Instruments

  • Peut-on utiliser le deuxième port TCP/IP de mon NI cRIO pour piloter un appareil de mesure Agilent

    Bonjour,
    J'aimerai utiliser le deuxième port TCP/IP de mon NI cRIO-9024 pour piloter mon générateur de pulses Agilent 33210A.
    Est-ce possible?
    Mon appariel ne possède pas de port RS232, mais seulement du TCP/IP et GPIB.
    Cordialement.

    Bonjour,
    Merci pour votre réponse.
    Je voudrai untiliser le VISA TCP/IP.
    Comme c'est un apareil Agilent il faut activer le passport NIVisaTulip.dll et
    celui-ci n'existe pas sous NI-RIO, il a y des passports nom.out.(Cf pièce jointe1).
    De toute façon dans un premier temps je n'arrive pas à ajouter un nouveau périférique réseau
    à partir de mon NI cRIO (Creat New VISA TCP/IP Resource).
    J'ai activer mon deuxième port avec une adresse IP qui correspond bien avec mon appareil.(Cf pièce jointe3)
    Il faut bien procéder comme cela ? (Cf pièce jointe2).
    Cordialement,
    Attachments:
    Passports.PNG ‏79 KB
    Périohérique réseau.PNG ‏110 KB
    Cartes réseau.PNG ‏27 KB

  • TCP/IP address problem

    Hi all, i am trying to remote communicate with my Thermotron oven that has a 8800 programmer via Ethernet.  I have downloaded the chambers instrument driver files from their web site and would like to use these in my program.  All that i am trying to do is take a temperature reading remotely.
    I have set up max VISA TCP/IP Resources and can communicate that way.  I can also communicate through Thermotrons supplied software and also by using the low level TCP palette (TCP open connection.vi).
    However why trying to use the Labview instrument driver files, eg Initialize vi, i am receiving errors.  I think the problem is the resource name address i am using.  That is "TCPIP0::ipaddress:ort:OCKET"
    Can anyone suggest a fix?

    The problem was that the instrument drivers required IVI engine.

  • How do I find a tcp/ip port number?

    I am trying to connect to a Seimens S7-300 through an ethernet connection.  I have it's IP adress and can ping through command promt but using VISA in NI-MAX requires a port number when using socket connection. 
    How do I determine the port number to enter and start a valid VISA resource?
    Thanks,
    Nick

    I have very little experience with ethernet communication, but have a project that requires it. 
    I am trying to connect LabView to one of our product that uses Ethernet/IP.  Our product currently uses software from the vendor to communicate, and it is buggy and cumbersome, so my boss has decided that we should test this product with LabView. 
    I am trying to establish ethernet communication with our product by following the video at 
    http://zone.ni.com/wv/app/play_doc/p/id/wv-1653/width/800/height/640/autostart/y
    I am able to ping the product.  
    When I create a new device and interface in MAX, choose VISA TCP/IP Resource, both the Manual Entry of LAN instrument adn Manual Entry of Raw Socket require a Port Number. I have entered the port from Wireshark (file included) 546 and also tried 547, but MAX replies with "Could not open a VISA session to "TCPIP0::192.168.0.3::546:OCKET".  Error code 0xBFFF0011.
    By looking at the wireshark screen dump, can you tell me if I am trying the wrong port?  How can I get this working?
    Thanks.
    metzler CLAD
    Attachments:
    wireshark ethernet screen.docx ‏213 KB

Maybe you are looking for

  • How can I convert multiple hidden files into normal files at once?

    I have a folder with a few hundred hidden files that I no longer want hidden.  If I were to change each file separately it would take hours to finish. I was hoping that there was some way to convert all of these files at once with the terminal. Can a

  • To copy data from Sales order to subsequent purchase order

    Hi all, My requirement is to copy Ship-to party address and Incoterms from sales order to subsequent Purchase order. I am using exit EXIT_SAPFV45E_001 for this. My doubt is - in which tables, Ship-to party address and Incoterms for a purchase order a

  • How can i remove the page title above the File,Edit,View,History,Bookmark tab?

    how can i remove the page title above the File,Edit,View,History,Bookmark tab in firefox

  • Error in SQLJ..Please guide :(

    Hello All, Am new to SQLJ and am implementing the first practise project from pdf called "<i><b>Gettng Started with Relational Persistence</b></i>". Am at the step wherein The <i>Data Access Interface has been implemented using SQLJ</i> but am gettin

  • Arbeitsspeicher wird nicht freigegeben

    Ich arbeite mit sehr grossen Dateien (3 GB) und habe 12GB RAM. Nach einiger Zeit wird Ps sehr langsam, auch wenn ich nicht mehr benötigte Dateien schliesse. Ich habe festgestellt, dass Ps nie Arbeitsspeicher freigibt, selbst wenn alle Dateien geschlo