2 Network Analyzer over a single GPIB-Enet

I've some trouble using a single GPIB-Enet interface to control two different Network Analyzer simultaneously. It looks like to be not possible (commands are sent to both the instruments even if they have different gpib addresses!). I'm trying to do this with Labview 6.1 under Windows XP. The goal is to make two different measurements and collect data on two different PCs at the same time. Thanks a lot.

This should be possible for you to do. Many GPIB-based applications do this type of thing. Here's what I imagine you would do to get this sort of thing setup.
1. Send data to instument A and instrument B to get them setup to take a measurement. While doing this, you can usually get them setup to start the measurement when you send a Group Execute Trigger (GET) command on the bus.
2. Send the group execute trigger. Note, because you're using two instruments here, you may want to use the TriggerList vi to trigger more than one instrument.
3. Read data from the two instruments.
While you won't actually be sending the data across the bus fully simultaneously, it should be sufficient for your needs. I'd recommend using the 488.2 style vi's in
LabVIEW, as these may be safer for avoiding re-addressing problems that you could run into if you were using all board-level calls.

Similar Messages

  • How do I interface a computer to the HP8753D Network Analyzer (NA) via a GPIB cable using Labview?

    Hi,
    I am a new beginner to LabVIEW. Right now, I am trying to acquire data from the HP8753D Vector Network Analyzer (VNA). However, I don't think I even managed to get past the first step.
    I tried to create a simple VI with only a single READ GPIB and a WRITE GPIB both to the address 16 (default for HP8753D) with the command IDN?;. I output the result from the READ GPIB to the a string indicator but the front panel displayed boxes and unrecgonized characters.
    The NA didn't even showed that it was communicating to the computer at all (No LED lit up).
    I have also varied the byte size from 200 to 2000 but I still did not get the res
    ult.
    I really need help on how to interface the VNA and my computer together. I have a strong feeling that the VI I constructed is too simplified (attachment below). If you know the solution, please help. I really would like to get past this first stage of first getting the computer and the device to communicate first.
    Thank you.
    Attachments:
    LabVIEW_VI.gif ‏4 KB

    Hello,
    There are several things to check. First make sure that you are using the correct GPIB or VISA resource name. If you are using GPIB the name that you use should be something similar to:
    GPIB0::2::INSTR where 2 is the primary address and 0 is the device number.
    Then you need also to check which commands are accepted by your device. It is a good idea to start in MAX (Measurement and Automation Explorer) by right clicking in the device.
    Another thing you might want to try is to download the driver the instrument driver for this HP8753D that you have.
    You can find it in the following address:
    hp8753D Instrument Driver
    H
    ope this helps
    Ricardo S.
    National Instruments
    Message Edited by Support on 12-08-2006 01:36 PM

  • Labview GPIB-USB-HS and Network Analyzer

    Hi, I have a quick question; I am currently working with an older Vector Network Analyzer and Labview for controlling antenna array measurements. Currently, we have two Labview VI's that work independently, but we would like to combine them into one to further automate our process. What I am having trouble with is writting to the VNA with the two VI's combined. I have copied the working VI and have setup the same control logic for it in the combined module as it has in the working VI, but it does not seem to work when added with the other .VI.
    I am new to Labview, so it is probably a simple error, but if someone could look over what I'll attach and see if there is a solution, I would greatly appreciate it! Currently, in the combined module, there are no errors, and the first part, writing the sequence to the parallel port works, but that writing to the parallel port does not seem to trigger the VNA to become active and write the data. I can provide more details if necessary, but here are the files. The calib1.VI is required to run the VNA_Try, but nothing needs to be changed there; the VNA_Switch_Combine is the one that is not currently working.
    Thank you for your help!
    Attachments:
    VNA_Switch_Combine.vi ‏49 KB
    VNA_TRY7.vi ‏27 KB
    calib1.vi ‏29 KB

    Now I was able to get the program working, but while it was running yesterday, it stopped in the middle of an experiment, and I have not been able to get it to work again.
    The error that I am receiving is the following:
    VISA: The connection for the given session has been lost.
    Previously, when I received this error, I would try a combination of restarting the computer and re-calibrating the VNA, and this would fix it. Now, however, it has been almost two days that I have not been able to get this to work. I have tried using NI MAX to detect the instrument, and sometimes it does detect it, but when it does, I still get the same error. There are other times when NI MAX does not detect the GPIB controller, but there does not seem to be a consistent reason as to why the GPIB device is or is not detected by NI MAX.
    What could have gone wrong? The code remained the same, and has not changed since it worked.
    Thank you.

  • Polling gpib/enet unit over tcp/ip using java

    I understand that there is a linux driver for the gpib/enet product. Since I assume this device is polled over a tcp/ip connection, do I need to do this in C, ot can I establish a socket connection using java ? If so, what is the driver for ? is it just to assign an ip address and other setup functions ?
    Thanks
    John Adams

    Hi John,
    You do not need to do this in C. In fact you can do it in just about any language. The librarys are exported to a shared object, so as long as your language can make calls to a .so, you are good to go. I am positive that java has this capability.
    Hope this helps out! If you need the driver, it is available at www.ni.com/linux.
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • Is there a way to communicate across subnets with the GPIB-ENET/100?

    I have a GPIB-ENET/100 that I am using. It is sitting on my engineering subnet. My PC is sitting on my corporate subnet and I am trying to communicate between the two. I can ping the device from my PC but the MAX cannot discover it. I noticed there is a message saying that this utility will only discover devices on the same subnet but was wondering if there has been any work arounds done or s/w upgrades available that will allow this to work?

    MAX will certainly not discover it because it does so by sending out a broadcast packet and routers between subnets are designed to ignore broadcast packets (rightfully so, otherwise all broadcast packets from every subnet in the world would propogate over the entire internet).
    I believe that you will be able to get this working by manually specifying the IP address (or hostname) of the GPIB-ENET/100 once you have it setup in MAX. If it is setup as, say, GPIB0, right click on that in MAX, go to Properties, and go to the Network Settings tab. In that field you can specify whatever IP Address/hostname you'd like. As the text points out, you cannot auto-discover using the "Search" utility since you are on a different subnet, but if you know your ENET/100 IP add
    ress then you should not need that.
    Let me know how this goes.
    Scott B.
    GPIB Software
    National Instruments

  • Extracting .s2p files from 8722A Network Analyzer?

    Hi,
    I wish to extract .s2p files from my HP 8722A Network Analyzer.
    I could not find a driver for it. It is connected to my computer over GPIB.
    I am quite new to this, so if anyone could explain the overall process to extract .s2p files from a network Analyzer, that would be much appreciated.
    I imagine that one takes a measurement, stores it under a certain filename, then a command retrieves it and sends it to the computer?
    Thank you so much,
    Nicolas
    Solved!
    Go to Solution.

    Nicolas,
    Instead of extracting the .s2p files, which because of the age of the device (manual I found said 1991), could be very difficult, I think we would be better served communicating with the device directly and not using the files it creates. Instead of the process you described, we could set it to take a measurement, send the measurement to the computer, and have the computer do any manipulation/saving it may need.
    This manual discusses the basics of communication over GPIB with that device in chapter 12:
    http://cp.literature.agilent.com/litweb/pdf/08720-​90135.pdf 
    GPIB communication is typically pretty simple. The computer will just send the device in question the command or series of commands then wait for the response back, much like the GPIB examples in labview (Example finder>>Hardware IO>>GPIB).
    Unfortunately for us, the Agilent website here:
    http://www.home.agilent.com/agilent/product.jspx?c​c=US&lc=eng&ckey=8722A:epsgro&nid=-536900197.53690...
    only has the operating and service manuals, and not the programming reference manual.  You may want to contact agilent to get the programming reference manual, as that will list all of the commands you need to send the device.
    Regards,
    Kyle Mozdzyn
    Applications Engineering
    National Instruments
    Regards,
    Kyle M.
    Applications Engineering
    National Instruments

  • Does GPIB-ENET/100 also use RARP?

    Our existing UNIX network has several older GPIB-ENET devices which get their IP addresses from our server using RARP. We are going to add several new GPIB-ENET/100 devices. The Getting Started manual states that the new devices use DHCP to get their IP addresses.
    My question: If we don't have DHCP enabled on our server, will the newer GPIB-ENET/100 devices "default" down to using RARP to get their addresses?

    Thanks for your reply. Yes, our fallback plan is to use static IP addresses. We are going to have a mix of older units and new units at the same time in the system we are maintaining. I was hoping that the new units would use RARP such that all the units would work equivalently. I have since found that RARP and DHCP are quite different, so I will investigate configuring DHCP.
    Using static IP addresses has several drawbacks for us. The units are located in remote areas which makes static programming difficult. If a unit fails and a spare unit has to be dropped in, it's much easier (with RARP) to just slap in the unit and update the /etc/ethers file. With a static address we'd have to make sure the unit is in programming mode and then set the static value
    s. Not difficult for us, but the end users will need very exact procedures.
    Based on how difficult DHCP is to configure/update/maintain we'll make a decision whether to use that or go with static addresses. Of course then we'll have to decide whether to switch the older devices over to static addresses for consistency, etc. That's progress for you!

  • How long does it take to write data from network analyzer

    I am using LabVIEW to control two DC power supplies through GPIB-USB and I have a DAQ-6008 generating 8-bit digital output. I am connecting two DC power supplies and the 8-bit digital signal to my circuit and want to measure s parameters (all S11, S12, S21, S22) and write their magnitude and phase to a .txt file in my laptop. It worked but took about 1.5 minutes to write data (magnitude and phase of four s parameters) for a fixed DAQ output and fixed DC voltage by only sweeping 6 points. Is it a reasonable time? Because eventually I will have more than ten thousand combinations and need to record s parameters for all these combinations and it will take too long. I would like to know which part spends more time or how I can reduce the time to write four s parameters. Thanks a lot.
    Attachments:
    Agilent E3631 Output 2 DC Volts_for loop.vi ‏22 KB
    Agilent PNA Series Config And Read Data_test(4).vi ‏32 KB
    Main(2).vi ‏30 KB

    Hello yll,
    -So you mean I should delete some of the controls
    in the front panel  and make them a fixed value or default in the block
    diagram to reduce the front panel controls
    What Dennis is saying is that your front panel controls are only read once by your program.  The are read at the beginning and the value is passed into the while loop.  This is the value that will be used, even if you change the front panel.  You can verify this by using highlight execution. 
    -What does it mean that I am
    resetting the instrument each time?
    Everytime you call the initialize VI, you send a command for the instrument to reset.  This is not necessary, since you want your settings to remain for the entire program.  You can reset it when you "first" start using it, but as your program keeps going, you do not need to reset it.
    -Do I need the initialize VI and
    close VI in every iteration or I should have them out of the loops so
    all the instrument are initialized and closed only once throughout the
    entire process?
    That is exactly what you should do.
    -For the network analyzer, when you said I only need the
    VIs from initialize.vi to read data.vi (the second one from the end),
    do you mean that I can delete the close.vi? and why does it make the
    program faster?
    You should probably add the close outside the loop, as good practise.  I would still put the initialize outside the loop.
    I hope this helps.
    O. Proulx
    National Instruments
    www.ni.com/support

  • Dell Laptop Won't Communicate w/GPIB-ENET/100

    I have a GPIB-ENET/100 that works great when controlled from a desktop computer on our network, yet when I try to control it with a laptop, it won't pass the third test (GPIB Interfaces Sequentially Verified) in the MAX NI-488.2 Trouble-Shooting Wizard. NI-Spy reports iberr EDVR(0):
    > 1. ibfind(GPIB0)
    > Process ID: 0x000007FC Thread ID: 0x00000360
    > Start Time: 09:18:36.876 Call Duration: 00:00:02.323
    > ibsta: 0x8000 iberr: 0 ibcntl: -519700367(0xe1060071)
    The laptop is a Dell Latitude C510/C610 running Windows XP and NI-488.2 2.10. I've also verified that I have the latest BIOS and drivers.
    Has anyone else ever seen anything like this?
    Thanks!
    Matt

    Hello gpibtester,
    That was it, although I could swear that was one of the first things I checked, and neither the hostname nor the IP address seemed to work. I must be losing my mind. ;-)
    To summarize, it appears that although a hostname can be specified in the "Device Configuration" via...
    1. Invoke MAX
    2. Right-click on the GPIB-ENET/100 in the Devices & Interfaces list.
    3. Select "Device Configuration" from the drop-down list.
    4. Select the IP address/hostname of the GPIB-ENET/100 in the new window that appears.
    5. Click the "Properties" button.
    ...it cannot be used to address the device in the "Network Settings" accessed in the 5 steps you described above. I had to use the actual IP address of the GPIB-ENET/100.
    Th
    anks again!
    (I've attached screen shots of the device configuration and working and non-working network settings for anyone else that may have the same problem I did.)
    Matt
    Attachments:
    GPIBENET100_device_config.gif ‏9 KB
    GPIBENET100_net_settings_not_working.gif ‏8 KB
    GPIBENET100_net_settings_working.gif ‏8 KB

  • Questions re: GPIB-ENET, LabView 5 and 7, license and Win XP

    We have a full development version of LabView 5.0 on a Win 98 SE machine, and just acquired a GPIB-ENET box that came with Solaris drivers. I loaded the GPIB and VISA software on LabView 5.0 and tried to connect to test the setup to no avail. It appears that all of the drivers are present. I believe that my problem is that I can�t get the IPAssign network driver bound to the 3Com ethernet card. When I load it in network properties, it doesn�t offer any hardware to bind to it. If I run IPAssign anyway, it claims the only networking hardware available is dialup, and sits forever (probably waiting to connect to a dialup line).
    The ultimate plan is to upgrade to LabView 7, and install it with the GPIB-EN
    ET box on a Win XP system. I have a demo version of 6.1, so I loaded that on the XP machine and tried again. LabView 6.1 appears to be missing drivers for GPIB-ENET, and looking through the knowledge base tells me a driver bug leaves Win XP incapable of assigning an IP address to GPIB-ENET anyway.
    My questions are:
    1. Should it be possible to get LabView 5.0 with 98SE talking to the older GPIB-ENET box, at least to set the IP address? Is this failing because I need to download the license (p/n 778258-02)?
    2. If I order LabView 7 and install it on Win XP, will I still need to download the license to run it, or is that included in version 7?
    3. Once I get LabView 7 and the driver and the license (if necessary) will I be able to assign the IP address with this setup?
    4. If the answer to #1 is �yes, with a license� and to #3 is �no�, then can I download the license, use it to assign an IP address on LabView 5 and transfer it to LabView 7/ Win XP when I get it to use the GPIB-EN
    ET box?
    Thanks.

    Hello,
    Which version of the GPIB drivers are you using? We recommend using NI-488.2 v2.0 for your GPIB-ENET device (for Windows XP and Windows 98).
    1. Should it be possible to get LabView 5.0 with 98SE talking to the older GPIB-ENET box, at least to set the IP address? Is this failing because I need to download the license (p/n 778258-02)?
    A: If you have version 2.0 of the drivers, you should be able to assign the IP okay. Do you see a pattern in the LEDs flashing? Check the READY LED and see if you see a pattern, as this indicates an error code. The following formula can be used to find the error code:
    error code= (long flashes-1)(short flashes-1)example: 3 long flashes, and 9 short flashes = (3-1)(9-1) = 28
    If the READY LED does not stop flashing, it indicates that the GPIB-ENET does not have a valid IP address assigned to it. According to this KB:
    The problem is the Ethernet address. The field for the Ethernet address in the IPAssign Utility is meant for the last four digits of the Ethernet address on your GPIB-ENET (the first part of the address is the same for all GPIB-ENETs, so it is pre-filled for you). If you run the IPAssign Utility again and fill in the last four digits of your GPIB-ENET's Ethernet address (in the format: xx:xx), then you should be able to assign it an IP address successfully.
    More details: The Receive LED flashes because the Ethernet header for the packet is correct and the GPIB-ENET recognizes that; However, the header was actually duplicated when you entered the Ethernet address in the IPAssign Utility, so it did not match the exact Ethernet address of that particular GPIB-ENET. The only numbers that need to be entered into the Ethernet address field in the IPAssign Utility are the last 4 numbers in the format: xx:xx.
    Note: The user must decide what the IP address is going to be. Your IT department could probably help.The Ethernet Address however, is statically programmed into each ENET. It's usually labeled at the bottom of the unit.
    Also, refer to this KB regarding some IP issues we've had with some of the older GPIB-ENET devices.
    2. If I order LabView 7 and install it on Win XP, will I still need to download the license to run it, or is that included in version 7?
    A: You should uninstall and reinstall NI-488.2 v2.0. If you already have this driver, you will not need to re-license it. The driver is not included with LabVIEW 7.0 by default.
    3. Once I get LabView 7 and the driver and the license (if necessary) will I be able to assign the IP address with this setup?
    A: You should be able to assign the IP fine. Look at the response for first question above to make sure you are assigning the IP correctly.
    Anu Saha
    Academic Product Marketing Engineer
    National Instruments

  • Network analyzer sees all traffic on the switch

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:Standaardtabel;
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    A client of us is having a very strange issue. They see a very load (initially just by watching the LEDs en got a software analyzer run on it. Now a software analyzer on a single port, even in promiscuous mode should only get its local data on a single switch port. The switch should only deliver local data to that port (thats why its switch, not a hub yes?) But to our surprise the analyze sees all the traffic, even the traffic that should get on to that specific switch, let a lone that port on the switch. It looks like everything is working like a big hub.
    Hereunder is a screenshot of the installed network analyser:
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:Standaardtabel;
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    Can anyone assist in finding where this is going wrong?
    units in use:
    SGE2000-EU
    SRW224G4-EU
    SRW224G4P-EU
    SRW248G4-EU
    Kind Regards

    Hi RONVER-Systems,
    I cannot see the first image, just doesn't want to come up.  Knowing the behavior of a switch I can imagine "broadcast' traffic being received on each port.
    It would be more relavvnt if you could use wireshark (a freeware 'sniffer' program)  and try the same capture again and post the capture file as a .cap file.
    But you obviously will see broadcast traffic arrive at each switch port. The switches will route at Layer 2 any unicast traffic.  But lets check out the capture file you send in again.
    Sorry for this bother, I just can't see the first image you posted.
    regards Dave

  • Sometimes unable to talk to device with GPIB-ENET

    I am using a NI GPIB-ENET device with my own application on a VMS Alpha computer. It is issuing commands to the device correctly but if I restart quickly the application it sometimes does not work.It seems that if I wait long enough the it works ok. Are the sockets on the GPIB-ENET configured to linger ?

    Hi zemaitis,
    The GPIB-ENET device is not "configured" to linger, but it does have more lag time than, say, a PCI GPIB card. The reason is that you have an increased amount of lag time due to the time it takes to transmit data over the ethernet cable. Here is a link to a Knowledge Base article that does not address this issue directly, but does point out that the ENET device has a larger lag time than other GPIB devices:
    Knowledge Base 38M9C9FJ: Execution Difference Between GPIB-ENET and PCI-GPIB
    Because of this extra communication time, you may not be able to restart your application extremely quickly. I hope this information is useful to you. Have a g
    reat day.
    -John M

  • Download .jpg image from Network Analyzer 8722es to PC

    I Have an Agilent 8722ES network Analyzer and I need to get the image, to save it with the test report.
    I can get the data and put in in a graphic but I prefer to put the real image as the Network Analyzer diplay, inlcuding the Markers, real frequency, colors, settings, etc.
    the Network Analyzer is capable to save the image as .jpg using the integrated 3.5' disk drive, but I need to save in real time the result and the picture.
    Do any body has an aplication than can help me with this? I tried to find something over net and in the Programming manual , but I can't find any.
    Thank you for your help guys...

    Imontoya
    I took a look at the manual for the 8722ES and as you stated the only way to get a jpeg file is to save it to floppy.
    From here I can see two options
    1. Call Agilent support and see if there is a VISA command to save the image. If there is a VISA command we can call it from LabVIEW.
    2. Use the Instrument Driver to import the raw data and create your own display in LabVIEW that looks like you want. You can then you can take a screenshot and do whatever you want with it.

  • Network analyzer

    I am using GPIB-USB-HS to read the s parameters from E8361A network analyzer. I downloaded the instrument driver and ran the examples "catalog measurement" and no matter which s parameter I am measuring by network analyzer, when I clicked "run" in front panel, it went back to S11 in network analyzer and the front panel shows the measurement parameter is S11. I also tried to use the example "config and read". I am able to read S11 data correctly but I could not read other s parameters (S21, S22, S12). I tried to change the measurement type from 0 (s11) to 1 (s12) but then I could not run it. There is an AGPNA error query; requested measurement not found". Can anyone help me with it?

    Hi yll,
    Which version of LabVIEW and NI-VISA and NI-488.2 are you using?  If you don't have these drivers, you can download them here.  I look forward to hearing from you soon.
    Regards,
    Todd V.
    National Instruments
    Applications Engineer
    NI Prototyping Community

  • What is blinking code 88 on GPIB-ENET/​100 mean?

    Hi,
    This is a continuation of the post "What is EDVR error 0xE1060077?" from a few days ago, which is still unresolved. I have recently noticed that the GPIB-ENET/100 was blinking code 88. Thinking that it might be code 89, I updgraded its firmware to C.9. However, this has not changed anything. I still get EDVR error 0xE1060077 using ibic. There are very brief (a minute or two) moments when it seems the GPIB-ENET/100 is working fine. Otherwise, it fails in the NI GPIB troubleshooting program. As for blinking code 88, I haven't spotted it yet; but I only saw it once before the other day, after leaving the GPIB-ENET/100 on for a while.

    coopee,
    Is your device still displaying an error code, or did it go away after you upgraded the firmware to C9? Error code 89 was a common error with the GPIB-ENET/100 which is why we released the C9 firmware. I would imagine that if you haven't seen an error code since you upgraded the firmware that you actually saw error 89. If you are still seeing an error code verify that it is indeed 8 long pulses, and 8 short pulses.
    As far as your EDVR issue and sequentially verified failing. Is your GPIB-ENET/100 configured with DHCP, or a static IP address? Since you have two ENET/100s, and one is working, check to see if there is any difference in how they are configured. Are they both configured with DHCP or static? Are they both on the same subnet as your computer?
    I suspect like Scott suggested that you are experiencing a networking issue.
    Shawn B.
    National Instruments
    Use NI products on Linux? Come join the NI Linux Users Community

Maybe you are looking for