Connecting a power meter to PC via GPIB

I'm trying to use LabVIEW to control an E4419B power meter using GPIB. When I connect it using the cable and bring up MAX, should the connection appear straight away or does further action need to be taken?

Laura,
Some devices need to be set up to communicate with the instrument on its support interfaces i.e. gpib, usb, serial etc. Make sure the device is configured for this. After scanning for instruments you should then be able to communicate with it by performing simple supported commands.
Check the spec of the instrument and the supported implementation of the 488 standard. If this is a NI card use the utilities in MAX (NI-SPY/NI-Analyzer (if its a GPIB+ board) to see whats going on.
Do you have VISA installed?
Kind Regards
Steven Bird
Applications Engineer
National Instruments

Similar Messages

  • Why when I use Power Meter I have many message of error?

    I use Power Meter NRTZ43 of Rohde &
    Schwartz, but I have a driver, but when i put icon of Getting
    started on desktop compare this message:
    "RSNRTZ Application Measure Power.vi
      Virtual Instrument
    - The subVI expected to be at "C:\work\RSD\drivers\rsnrtz\lv6_vi\RSNRTZ
    Reset.vi" was loaded from "C:\Program Files (x86)\National
    Instruments\LabVIEW 7.1\instr.lib\rsnrtz\rsnrtz.llb\RSNRTZ Reset.vi".
    RSNRTZ Config Measurement.vi
      Virtual Instrument
    - The subVI expected to be at
    "C:\work\RSD\drivers\rsnrtz\lv6_vi\rsnrtzu\RSNRTZ Write And Read
    Response.vi" was loaded from "C:\Program Files (x86)\National
    Instruments\LabVIEW 7.1\instr.lib\rsnrtz\rsnrtzu.llb\RSNRTZ Write And
    Read Response.vi".
    RSNRTZ Error Query.vi
      Virtual Instrument
    - The subVI expected to be at
    "C:\work\RSD\drivers\rsnrtz\lv6_vi\rsnrtzu\RSNRTZ Write And Read
    Response.vi" was loaded from "C:\Program Files (x86)\National
    Instruments\LabVIEW 7.1\instr.lib\rsnrtz\rsnrtzu.llb\RSNRTZ Write And
    Read Response.vi".
    RSNRTZ Initialize.vi
      Virtual Instrument
    - The subVI expected to be at
    "C:\work\RSD\drivers\rsnrtz\lv6_vi\rsnrtzu\RSNRTZ Write And Read
    Response.vi" was loaded from "C:\Program Files (x86)\National
    Instruments\LabVIEW 7.1\instr.lib\rsnrtz\rsnrtzu.llb\RSNRTZ Write And
    Read Response.vi".
        - The subVI expected to be at
    "C:\work\RSD\drivers\rsnrtz\lv6_vi\rsnrtzu\RSNRTZ Utility Default
    Instrument Setup.vi" was loaded from "C:\Program Files (x86)\National
    Instruments\LabVIEW 7.1\instr.lib\rsnrtz\rsnrtzu.llb\RSNRTZ Utility
    Default Instrument Setup.vi".
        - The subVI expected to be at
    "C:\work\RSD\drivers\rsnrtz\lv6_vi\RSNRTZ Reset.vi" was loaded from
    "C:\Program Files (x86)\National Instruments\LabVIEW
    7.1\instr.lib\rsnrtz\rsnrtz.llb\RSNRTZ Reset.vi".
        - The subVI
    expected to be at "C:\work\RSD\drivers\rsnrtz\lv6_vi\rsnrtzu\RSNRTZ
    Utility Clean Up Initialize.vi" was loaded from "C:\Program Files
    (x86)\National Instruments\LabVIEW
    7.1\instr.lib\rsnrtz\rsnrtzu.llb\RSNRTZ Utility Clean Up Initialize.vi".
    RSNRTZ Measure.vi
      Virtual Instrument
    - The subVI expected to be at
    "C:\work\RSD\drivers\rsnrtz\lv6_vi\rsnrtzu\RSNRTZ Write And Read
    Response.vi" was loaded from "C:\Program Files (x86)\National
    Instruments\LabVIEW 7.1\instr.lib\rsnrtz\rsnrtzu.llb\RSNRTZ Write And
    Read Response.vi".
    RSNRTZ Select Forward Measurement Mode.vi
      Virtual Instrument
    - The subVI expected to be at
    "C:\work\RSD\drivers\rsnrtz\lv6_vi\rsnrtzu\RSNRTZ Write And Read
    Response.vi" was loaded from "C:\Program Files (x86)\National
    Instruments\LabVIEW 7.1\instr.lib\rsnrtz\rsnrtzu.llb\RSNRTZ Write And
    Read Response.vi".
    RSNRTZ Select Reverse Measurement Mode.vi
      Virtual Instrument
    - The subVI expected to be at
    "C:\work\RSD\drivers\rsnrtz\lv6_vi\rsnrtzu\RSNRTZ Write And Read
    Response.vi" was loaded from "C:\Program Files (x86)\National
    Instruments\LabVIEW 7.1\instr.lib\rsnrtz\rsnrtzu.llb\RSNRTZ Write And
    Read Response.vi"."
    What's means???
    Maybe I have old driver for LabVIEW6? Can u help me to find correct driver?
    Respond me soon please...
    Thanks,
    Vanny
    Sweet, Beautiful and Young Female Physicist (SBYFP)
    (I speak a not very good english, so If U are Italian LabVIEW expert speak in Italian, if U speak in Eglish... please speak easy )
    My e-mail for personal contact: [email protected]_NO_SPAM_PLEASE

    OK, I see what's happening. When the driver was originally saved it was saved from a working directory instead of from the instr.lib. It's still OK. LabVIEW updated the links. Just re-save the VIs once they open.
    I have seen that there are also a driver "Virtual NRT for Power Meter NRTZ43", but I have the version for WIN 95/NT. And I don't find a version to WIN XP. Can u help me to find the correct version for my pc?
    That's an application that Rohde&Schwarz wrote. I think the latest version is here: http://www2.rohde-schwarz.com/file/NRT_ZV2_1.EXE.
    vanny wrote:  I have connected Power Meter to this port:
    but I haven't istalled my Power Meter. I have only put in instr.lib the folder of driver taken by site of Rohde & Schwartz.
    In the manual (if u want to help me really with heart read please) there is write that I must set the PORT COM, but when I have seen in Panel Control of Windows and after in System the Power Meter is unrilevated (NOT DETECTED). But with labview I have illogical miasurement.
    If I find the program to see the power in and reflected maybe I can understant if labview function is correct.
    I wait you... but now Are u sleep? Eheh, kisses...
    If you connected the power meter to the computer it's installed. The power meter will not be detected because it's a serial connection. An instrument connected over the serial port cannot be automatically detected in MAX (Measurement & Automation Explorer) like a GPIB instrument can. In LabVIEW you have to tell it which serial port you connected it to.
    In MAX you will see the COM ports:
    In the LabVIEW driver you set the COM port this way:
    COM 1 --> ASRL1::INSTR
    COM 2 --> ASRL2::INSTR
    Message Edited by smercurio_fc on 01-15-2010 04:25 PM
    Attachments:
    MAX serial.png ‏49 KB
    Power meter VISA resource control.png ‏26 KB

  • Difficulty in reading GPIB device(power meter)

    I am using the following Vi attached. i am generating array of frequency writing it to the signal generator with GPIB address 28.afterawards reading powermeter with GPIB address.and finally writing it to the file.
    the problem is some times this GPIB read does not work properly. i get error from the power meter. in the read array it displays trigger or Nrvs or some thing different. i thought may be it is due to initializing of power meter. i send SC1 command for power meter initialization. but it does not work. why ? i attached the manual of power meter and signal generator.
    thanks for some help
    Attachments:
    27_10.zip ‏57 KB
    manual.zip ‏13855 KB

    yes you are right.but if i just execute this driver and afterwards i execute my VI i get some reading from power meter in the form of an string array. it is like this i write an array of frequencies to signal generator at GPIB address 28.and then other device(power meter) is connected at GPIB address 13.
    this device returns reading in the form an array string. i thought that i must send/write some command to GPIB 13 device (power meter), so that it starts sending data.this is i am doing in my VI by sending SC1 command. may be i am using wrong command or may be i must send some sequence of command.
    the problem with executing the driver, that you mentioned is that i have to execute this driver VI all the time just before my VI.if i execute this driver VI/DL
    L then every thing is fine and my VI sends and read reading according to my wish. but what happened if all these devices are initialized or reset,my VI does not run any more. and because i dont know which part of this driver VI cause this activation to react, i just have to blindly execute the driver every time without understanding what should i do in my VI that i dont need to execute the driver any more and this VI would be independent of driver VI.
    thanks

  • I have a 27" thunderbolt display NOT the iMac, and I'm trying to connect my xbox 360 to it via the Belkin AV360. I plug everything in and it does not work? I check all the power cables and and connections and still not he issue. Iv'e tried C-F2 also. Help

    I have a 27" thunderbolt display NOT the iMac, and I'm trying to connect my xbox 360 to it via the Belkin AV360. I plug everything in and it does not work? I check all the power cables and and connections and still not he issue. Iv'e tried C-F2 also. has anyone used this devive (AV360) on there own 27" thunderbolt display (not the imac) and gotten it to work? If so I'd appreciate the help.

    There are multiple reasons that lead to issue. You should read the troubleshooting guide to get the right solution to solve the issue: iPhone, iPad, or iPod touch not recognized in iTunes for Windows - Apple Support

  • Connecting PCs via GPIB in Labview

    Is there a way to connect two PCs via GPIB, both running a Labview program? I just want to excange text files between them. The GPIB cards are PCMCIA-GPIB cards from NI.

    You can, but you might not enjoy it.
    I don't have the specifics for your GPIB cards, so I don't know how to do it for them, but in a previous job we put one of the GPIB cards in a non-System Controller mode. Then we could make it look like an instrument. Sorry I can't provide more details as it has proprietary code in it. But hopefully it gives you a place to start.
    Les Hammer

  • I am doing one Labview project. so my project is about design a interface in labview which one collect the data from keithley 2400 via GPIB connection.

    i am doing one Labview project. so my project is about design a interface in labview which one collect the data from keithley 2400 via GPIB connection. any suggestion please

    Your first task should be to just be able to send commands to the instrument.  Do as Dennis suggested and download the drivers for the instrument and get familiar with them.  Build up small VIs that do little tasks with those drivers so you can get used to them.  Then worry about your main interface.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Data log directly from Norma 4000 power analyser rather than via Keithley 2700 data logger

    Hello fellow LabVIEW users
    My Norma 4000 power analyser is connected to my Keithley 2700 data logger from which it logs data via GPIB using the attached VI.
    Prior to making this VI I was not aware that the Norma 4000 could also log data values directly using labview which I found in the following LabVIEW post.
    http://forums.ni.com/ni/attachments/ni/170/536731/1/LV9.zip
    The Keithley logs the values into a *.txt file that can be opened in excel for analysis of the data. There are 7 values that are pulled from the power analyser and 1 from a radiometer and 1 from a temperature sensor. I essentially want the 7 values from the data analyser be directly input into the save file i/o rather than going via the Keithley which it is doing now. Some the signal is lost due to noise etc when going from ADC then DAC. Which is why certain values pulled from the Keithley have been multiplied before being put into file i/o.
    Since these are popular instruments of choice I was wondering if anyone can direct me to any links to LabVIEW VIs that have already been made that DIRECTLY logs data values from the Norma 4000 into a *.txt file as in the attached VI. Or point me in the right direction perhaps. The LNOPA01 Getting Started.vi only shows current values. I want the data values to be logged into the *.txt files at certain time intervals with the corresponding signals from the radiometer and temperature sensor.
    The Keithley drivers can be found in the following link
    http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E93BC659CE034080020E748...
    Thanks for all the help beforehand.
    Attachments:
    Data Logger_Final Version.vi ‏57 KB

    Hi,
    I was not able to find an example that will directly log data from the Norma 4000. I looked at the LNOPA01 Getting Started.vi and it seems like, with a few modifications, you could use this to log data. You would have to open a file, write the collected data to the file, and then close the file. You are already doing something similar to this in the VI you attached.
    If you only want to measure data at certain times, you could use a case structure in the while loop and only write to file when a certain condition is met. If this isn't an option for you, could you please elaborate on what difficulties you are seeing?
    Thanks,
    Paul B.
    Motion Control R&D

  • Programming optical power meter 1931 c on labview.

    I have very less experience with labview and need help programming. I have installed the drivers, how should i figure out the block diagram?

    Hello to all who read this,
    I think I can attest to the thread starter over his frustrations. But i i would like to borrow this thread to highlight some 'quirks' with Newport devices.
    I am personally using Newport's 1935-C Power Meter with 918D Photodetector IR OD3 (A newer variation of the 1931-C). I have attached the user manual and LLBs that came from Newport FTP website. The power meter basically can communicate via RS232 or USB (square port on device) to USB flat port(on PC). The Power meter i believe is not a USBTMC class of instrument and thus can only be recognised in MAX via use of VISA driver creation method for USB Raw device.
    Try out #1-> USB RAW Talking: I did follow NI's tutorial on creating the USB INF files for this power meter via the VISA Driver Wizard. However, this will require complicated development of the VI for say extracting the value the power meter is measuring throught the PMOWER? command.
    Try out #2-> Going through tutorials on various levels of communicating with instruments, I understand that you could have Direct I/O, PLug and Play Drivers etc. which translates to shortest development time to longest development time and consequently varying functionality sophitication. Since Try out #1 was complicated, I decided to go with the I/O Instrument Assistant method of building a simple VI to extract the measurement. Of course this has to be done via RS232 Serial port. (I have tried using USB Raw drivers done by the Driver wizard, and having Instr I/O Asst. to find my USB instrument but it could only show me GPIB and Serial. MAX did detect the USB device.)
    As I have learnt from my course instructor at NI Singapore, based in Ngee Ann Polytechnic, I set the approapriate parameters of baud rate, bit parity etc in MAX-> Serial and validated it. It was fine. I opened VISA Test panel but failed to get any explicit response from the Newport device.
    I use the Instr I/O Asst to run a Query and Parse step on the COM port of the RS232 where the Newport instrument is connected. It return the bites and ASCII string. However, it was not the appropriate response as set out by  Newport's list of commands in their user manual. (I have attached a screen shot of it)
    Ultimate Try out-> At wits end, I managed to find the sample drivers designed by Newport themselves and place the LLB (also attached) in my instr.lib folder. The Sub VIs in the Instrument Drivers for Newport showed a few icons like Query icon, Parse Icon, Send, Read. I looked at the Hierachy diagram and noticed they use case structures and sequence structures to pass from Write to Read. But I have do not fully understand the principles behind their Sample Query VI. The Sample Query VI on its own does work off hand, but it merely alows the user a interface to query the instrument and extracting the readout.
    So I would like to ask NI,
    1. Could the weird Query and Parse observation be due to hardware or the lack of support by NI's Instrument I/O Assitant? (version 2.4 was used). The conclusion i have is that I am not getting the appropriate response after parsing (evident when the byte index is 0, ASCII string is the command i sent out). If the Instr I/O Asst. were to work as it would have, then things will be simpler in developing the VIs for my purpose of extracting readouts at fixed intervals and plot on a Graph chart within Labview. 
    2. How can I proceed from here after "banging" walls in trying to communicate with the device? Newport has no proper step by step into using their sample Labview drivers.
    Appreciate it if someone could provide some input.
    Andrew
    Nanyang Technological University
    Attachments:
    1935_2935_Power_Meter_User's_Manual.pdf ‏4776 KB
    NP_GeneralDrivers_LV8.llb ‏226 KB
    Instrument IO Asst queried after parsing wrong response.JPG ‏125 KB

  • How to connect my macbook air to internet via cable ethernet?

    Hi,
        I tried to connect my macbook air to internet via lightning to ethernet adaptor. I am having cable internet, and my windows laptop normally connects to internet without anything to set in it. Anyone can help in this aspect...
    Thanks in advance..

    Finally, it got connected....
    The solution is, may be simple, but it took 3 days...
    Switch off (plug out the electrical connection to the modem), and power again the cable modem...
    it got connected...
    Thank you Diesel....

  • Is it possible to virtually bypass the battery on a macbook pro (retina 2014) and power the mac directly via AC power?

    Is it possible to virtually bypass the battery on a macbook pro (retina 2014) and power the mac directly via AC power?
    E.g. Dell allows you to plug the laptop into AC power but prevent battery charging.
    Note: I do not want to physically remove the battery.
    If there isn't an option on Mac OS, is there anything I can download to bypass the battery when I want?

    Thanks for linking me! Wow I had no idea the clock speed would be cut so severely! What a bunch of rubbish, as if the AC won't provide enough power!
    I guess the only solution to my question would be an app which virtually disconnects the battery but tricks the mac into thinking the battery is still connected. I'm just surprised Apple haven't yet started to build prisons for the government - considering how well they lock up their software and hardware!

  • Can't get IVI Power Meter error query to work properly.

    I have been trying to use the IviPwrMeter Error-Query.vi to read possible errors coming from the Power Meter.  However, I have found that no errors can be detected using this vi.  This is because the returned value 'status' is wired over to the 'error code' input of 'IviPwrMeter Error Converter.vi' and the status value will always be equal to VI_SUCCESS as the attached code signifies.
    All of this code was generated by either LabWindows/CVI and/or LabView.
    If I wire the error code output of 'IviPwrMeter_error_query' function to the error code input of 'IviPwrMeter IVI error converter.vi', the errors on the Power Meter is at least detected.
    Am I doing something wrong here or are there other work arounds?
    Source listing of driver call:
    ViStatus _VI_FUNC age4418b_error_query (ViSession vi, ViInt32 *errCode,
                                            ViChar errMessage[])
        ViStatus    error = VI_SUCCESS;
        checkErr( Ivi_LockSession (vi, VI_NULL));
        if (errCode == VI_NULL)
            viCheckParm( IVI_ERROR_INVALID_PARAMETER, 2, "Null address for Error Code");
        if (errMessage == VI_NULL)
            viCheckParm( IVI_ERROR_INVALID_PARAMETER, 3, "Null address for Error Message");
     if (!Ivi_Simulating(vi))                /* call only when locked */
         ViSession   io = Ivi_IOSession(vi); /* call only when locked */
         checkErr( Ivi_SetNeedToCheckStatus (vi, VI_TRUE));
         viCheckErr( viPrintf(io, "YST:ERR?"));
      viCheckErr( viScanf (io, "%ld,\"%256[^\"]", errCode, errMessage));
     else
             /* Simulate Error Query */
         *errCode = 0;
         strcpy (errMessage, "No error.");
    Error:
        Ivi_UnlockSession(vi, VI_NULL);
        return error;

    Dennis,
    I get the same results as you if I don't have a power meter connected.  However, this doesn't supprise me because the session handle is probably checked at a higher level.
    The calling hiearchy is as follows (I think, because I don't have all of the code)  IviPwrMeter Error Query.vi -> IviPwrMeter_error_query (IviPwrMeter.dll) ->age4418b_error_query (age4418b.dll).  I would guess that the session is validated in the second layer and not the bottom layer where the actual instrument error query is happening.
    Something you may try.  If you have any instrument, write a simple program to get a valid handle then call the error query using the error cluster to link them together.  Set a breakpoint before the error query, run the program, use MAX to send an invalid command and create an error.  Then resume your original program and see if an error is reported in the error cluster after executing the IVI error query.
    Bob

  • No light showing on my Apple Tv when i connect power lead. I have restored ATV with I tunes but still no luck when connected to power.

    No light showing on my Apple Tv Unit when connected to power source. I have restored and updated via i tunes light comes on whilst in this mode but as soon as i connect power cable and plug in nothing happens?

    Welcome to the Apple Community Tony.
    Are you able to try another remote.

  • Modem relay or passthrough? Power meter trying to be read...

    Hello Everyone!
    I am stuck with a problem and don't know how to proceed.
    Our power company has a modem (old as cold) in their power meter. We have a PRI hitting a VGW (2921 router), this VGW hands off the call to a VG204. They are negated to upgrade their equipment and we need to provide them a "functioning" line through which they can read their data.
    The call connects, but no data is transferred.
    The dial peers involved are as follows:
    dial-peer voice 3003 voip (outgoing at 2921)
     description Power-Meter
     translation-profile incoming PRIInbound
     destination-pattern 6257
     modem passthrough nse codec g711ulaw
     session target ipv4:10.71.10.11
     codec g711ulaw
     fax-relay ecm disable
     no fax-relay sg3-to-g3
     fax protocol none
     no vad
    dial-peer voice 3000 voip (incoming at VG 204)
     modem passthrough nse codec g711ulaw
     session protocol sipv2
     incoming called-number .
     codec g711ulaw
     fax-relay ecm disable
     no fax-relay sg3-to-g3
     fax nsf 000000
     fax protocol none
     no vad
    dial-peer voice 1103 pots (dp for voice port)
     description Power-Meter
     destination-pattern 6257
     incoming called-number .
     port 0/2
    Please find debugs attached.
    Thank you in advanced.

    Hi SgtPeprLHCB!
    I recently buoght a usb adapter to rs-485 ( see attachment)and will try it as soon as I recive it, and then try the example you linked. Since my last configuration did not work.
    But this time I think it will, the only thing I see as a problem is to get the right information from the power meter.  I know a should use a VISA write function to send the adress that I want to acess but I don't know how to convert the "Modicon adress" in my power meter protocol to a ASCII adress.
    Beacuse just using a simple VISA read/write example won't give me what I want unless I tell it to do so.
    What is the best way to do this? Maybe I want more tabs of information that gives me "KWh" and "var" and so on, then I must write more adress at the same time.
    In short, I don't know how to get the right adress code from my powermeters modbus protocol ( see attachment).
    Best regards Maurlind!
    Attachments:
    UPort1100_eng_datasheet.pdf ‏748 KB
    Protokoll WM14 A and CPT A v2r2 ENG 0108.pdf ‏342 KB

  • I am having trouble connecting to my in-home internet via wireless router. It says it is connected, but when I try to open email, no connection is found. This also occurs for Safari and Facebook. I am connected by Charter Cable.

    I am having trouble connecting to my in-home internet via my wireless router. The IPad says I'm connected to the router, but I am unable to receive email, Facebook and Safari. I run through Charter Cable.  This only occurs on my IPad. My desktop works fine.

    Although it may ultimately be necessary to perform a Factory Default Reset on the AirPort Extreme and start over with a new configution, we can first try to see if things will work with the existing settings on the device.
    Push the reset button (if present) on the cable modem
    Power off the modem by pulling the power cable
    Remove the internal battery from the modem (if easily accessible)
    Power off the AirPort Extreme and every other device on the network....order is not important
    Wait at least 20 minutes....longer is better
    Re-install the battery in the modem if it was removed previously
    Make sure that the Ethernet cable from the modem is connected to the WAN port (circle of dots icon) on the AirPort Extreme
    Power up the modem and let it run 4-5 minutes buy itself
    Power up the AirPort Extreme and let it run 4-5 minutes
    Then power up each other network device one at a time about a minute apart
    Check for a good Internet connection on the network with all devices
    If still no luck, you will need to perfom a Factory Default Reset on the AirPort Extreme as follows:
    Pull the power plug from the back of the AirPort Extreme
    Hold in the reset button and keep holding it another 8-10 seconds while you simultaneously plug the power back in to the AirPort Extreme
    Release the reset button and allow 25-30 seconds for the AirPort Extreme to restart to a slow, blinking amber light
    Then open AirPort Utility end reconfigure the AirPort Express again.

  • Read dispaly of a 6960b POWER METER

    Hi am attempting to read a measurment from a Marconi/IFR/Aeroflex 6960B power meter.
    I have had a good look in the manual but am unable to see what the GPIB command is to read the display.
    Would anyone have a example VI or know the command to do this would be greatly appriciated?
    Thanks
    C

    Hi Cally,
    Have you considered using the Instrument I/O Assistant in LabVIEW?  If you know the commands or if the vendor can give you some direction, then the Instrument I/O Assistant may be a good way to get you started.
    LINK:
    http://zone.ni.com/devzone/cda/tut/p/id/4663
    Best regards,
    Tony_G

Maybe you are looking for