GPIB Query connection

I'm working on a simple VI to test some commands via GPIB (IEEE-448) with an extremely obsolete HP 3562 has dynamic signal Analyzer. My code wants to just expose a few pieces in a register read registry information from a query and then set the front of the Analyzer in Local mode.  Everything seems to work except for the read.  I expect 15 bits (about 2 bytes) of information, but I am obliged to read 15 bytes before arriving at the end of the output string GPIB Read.  (I discovered this value by trial and error).  I also do not seem to get the correct results to my query/playback.

It is first of all, the registry that I want to read.  This information comes from the programming manual.

I am interested in records 4 and 13:

Here's how I hide the bits:

Here is my code:

It works fine, but as you can see above, I have to hard code in the '15' in order to reach the end of the output.  In addition, the output displays 0 when it should show 8208 (4 bits and 13 values added of the first entry).

Here are my results:

As you can see, "eoi" field (end of sense of the output string) is defined in the Statute.  And unfortunately the result is 0 (which seems incorrect or meaningless).

Anyone know how to correct it properly read the bytes of the registry using GPIB Read?

A few comments:

First of all, you're talking to an instrument of HP of all together as possible (and even likely) that the instrument has a bug inside.

Second, the reason for which must be read 15 bytes is because that is how long a response of standard data. Reading is not the result of the State.

Thirdly, the request is 'ISM?', but you send "WHAT? (no "M").

Mike...

Tags: NI Software

Similar Questions

  • Connection of an instrument with GPIB-USB connection.

    I am trying to use a GPIB-USB adapter to control a unit of Source of LabView. However, I have problems my instrument drivers to recognize the GPIB address specified for the device. I have attached an image below the address specified by IO Keysight connection Expert. I am currently trying to initialized the EMS with the GPIB driver I have attached below. Because of my knowledge limited in LabView instrument control, how should I approach of collecting the correct address of GPIB and recognize it in my VI?

    Hi wyattcurtis824,

    Before we dig into the LabVIEW code, I would recommend a Test Panel of max aperture and trying to communicate with. Are you able to send orders via Keysight connection Expert or NI MAX and see the valid data?

    In addition, when you run the vi in LabVIEW, is pilot it returns an error in the error on the box? If so, what the error is?

    This shoule information help us to the root of the problem.

    Best,

  • Query (connect / string aggregation)

    Hello
    Can someone give me an example of a query


    VAL ID
    --------
    2B
    1 B
    1 C


    Output: "A, B, C".

    Thank you.

    Published by: Bolev on February 3, 2010 17:10

    Hello

    Pivot generates separate columns for each val, and you should know how much they will be.

    String aggregation provides a single column and does not need to know how many vals there will be:

    WITH     got_rnum     AS
    (
         SELECT     id
         ,     val
         ,     ROW_NUMBER () OVER ( PARTITION BY  id
                                   ORDER BY          val
                           ) AS rnum
         FROM    table_x
    )
    SELECT     id
    ,     LTRIM ( SYS_CONNECT_BY_PATH (val, ',')
               , ','
               )     AS val_list
    FROM     got_rnum
    WHERE     CONNECT_BY_ISLEAF     = 1
    START WITH     rnum     = 1
    CONNECT BY     rnum     = PRIOR rnum + 1
         AND     id     = PRIOR id
    ;
    
  • Hierarchical query, connect in a loop in the user data

    Hello

    Is there a method to find the node that has the problem in the application of the factorial.

    As my data is complex and has up to 10 levels, it is not possbile to correct manually. I have idendtified the series 'START WITH', what is causing the problem. But I couldn't find the correct nodes in the seris that creates the loop.

    Does not not in the management of exceptions even.

    Please advice.

    Kind regards
    Benz

    You did not specify a version, but the operators CONNECT BY NOCYCLE and CONNECT_BY_ISCYCLE can be used to detect cycles.

  • Equium L40-10 X query: connecting to a HD TV

    I have a HD TV, I need my laptop to establish links with.

    I was told that the 15-pin male VGA to HDMI cable is needed for this I understand; No problem.

    However, I need to know if my video card can support digital signal through VGA port function output. Can someone answer this, and if POSSIBLE, could it talk me through setting up?

    Thank you very much in advance for your help.

    Hello

    It of possible to convert the digital signal to analog, but not possible to convert analog to digital.
    In addition, you are unable to upgrade or replace the graphics card. The chip is part of the motherboard and is not replaceable.

  • I disconnected cable PCI-GPIB (desktop disabled) to move the equipment, once reconnected and restarted Desktop, I can't connect to the instruments more (OS Windows XP)

    Hi people,

    I hope someone can help me with this problem. I am running a Windows XP operating system where I have recently been using a NI PCI-GPIB to connect to instruments. The other day, I had to turn off the desktop computer to disconnect the GPIB cable to move the material furniture - I do not remember if I had turned off equipment that were connected via GPIB cable before removing the GPIB cable from the desktop.

    Although I came to notice that he was in loose in the socket connection that it can be disconnected from the never removed the GPIB card slot. Now with etc-reconnected GPIB cable is unconnected with the instruments via the software I use--I don't see the equipment listed on MAX either. I had NEITHER-488. 2 installed v2.8 and following this issue and various changes to try to solve it (for example, move to another location, System Restore to previous restore point I knew the connection work etc.). I upgraded to 2.8.1 V and still the same issue.

    In Device Manager, there is a pilot 'unknown device' I have tried to update and no will - I even tried him assigning driver for the NI PCI-GPIB card that seemed to have worked but still no will.

    Appreciate your help on this.

    Chris

    have you checked that the GPIB card is secure in its niche in the PC?

  • The list of connected devices (USB, GPIB, etc.)

    For GPIB (actually of GPIB devices connected to the GPIB to USB cable), I do:

    static short addrList[31];
        static short listList[31];
    
        for (j=0;j<31;j++) {
            addrList[j] = j;
        }
        addrList[30] = -1;
    
        SendIFC(0);
        FindLstn(0,addrList,listList,30);
    

    But do not know how I would do other ports like USB.  I can see it in MAX, but it just seems to appear automatically.

    Hello

    personally, I use VISA. To find all of the available serial ports, I use viFindRsrc (resource_manager_handle, "ASRL [0-9] *:?") * INSTR", & find_handle & return_count, instrument_descriptor); to the GPIB, you would use "GPIB [0-9] *?: * INSTR"as the second argument.

  • Safely remove hardware GPIB-USB-HS

    Hello

    I have several GPIB instruments connected to the PC through GPIB-USB-HS. I know that normally for USB devices, that I need to have it removed safely. What should I do in this case to remove connections when everything is turned on.

    Thank you

    FliU

    I try to always turn off an instrument before you disconnect it.

  • Display connection to sbrio 9607 amulet

    Hello

    I would like to connect the Sbrio 9607 amulet monitor (part no783305-01). Previous related discussions in the forum, I understand that display must be connected to the sbrio using RS232. I want to assure you that it is not possible to use the USB port on the screen of the amulet for connection. USB connection is more convenient and simpler since RS232 requires the additional connector and wiring. However, I'd go for the RS232 if USB is not an option.

    Thanks in advance

    Gear

    It looks like quite similar questions were asked before (different sbRIO) and they found that they were unable to communicate to their display through USB.

    https://forums.NI.com/T5/instrument-control-GPIB-serial/connect-amulet-display-to-sbRIO/m-p/3195434#...

  • Problem with 2 GPIB instruments

    Hello everyone,

    I work in a program with LabView 2015 this control 2 instruments, the Rohde & Schwarz Smiq02b signal generator and Analyzer of spectrum n9010a Agilent EXA. I use the cable Agilent - 82357 B USB/GPIB to connect my laptop with these two instruments (PC-> EXA-> Doganovic). I also installed the two drivers of instruments from their official websites.

    The program worked correctly until I had to format my computer and reinstall LabView but something wrong now.

    The problem comes when I run the program, is unable to initialize the SMIQ02b, the program stops and opens a new window of block diagram. This block diagram belongs to a block driver the instruments within this scheme, there is a VISA write flashing block.

    This only happens when I'm initializing two instruments in the same program, if I create a new VI and use the Doganovic only, I have no problem.

    I don't know what is happening, it is very strange that it worked well before, and now this happens.

    That's what I installed in my laptop:

    -2015 LabView
    -NI Device Drivers (included NI-VISA 14.0 and NOR-488. 2 14.0)

    -Agilent IO libraries Suite (configured as secondary VISA) 17.1

    -Passport OR VISA for tulip IT

    I'll be very grateful if someone could help me with this.

    Thank you!

    You set a breakpoint, it's what's causing the break.

  • VISA driver on the connection type unknown

    I can't be the only person having this problem in LabVIEW and I have not worked on the solution.

    Let's say for example I write a driver for a power supply, this device is off the shelf, but the manufacturer provided driver is *!

    Instrument is connected through GPIB. in this case.

    3 months later, I would like to re - use the driver but due to the implcations cost I can not have the flavor of the instrument GPIB and need the RS232 version, so I re - write the pilot so that all the functions of R/W are shrouded by a VI using the right process for the reading of serial ports if a RS232 device and repeat the initialization of the process too.

    3 months later I get my hands on a USB version of the PSU - he uses the style GPIB code and does not take long to change.

    The question is this:

    Is it all as anyone knows (alias VISA ignoring) that will allow me to determine the physical to the PSU from the PC connection, if someone changes and therefore to use the correct part of the code driver to initialize and communicate with the power supply.

    Specifying the Intf Type is a fix SW for a HW problem that causes more problems if the connection is changed, how can I allow someone to use RS232/USB/GPIB and detect the connection type myslef in LabVIEW, before making a * IDN and the harbor onpen?

    Thanks in advance for any ideas

    James

    Have you looked at all the drivers NOR? The example of the expedition of the Agilent 34401 is sufficient. In the Initialize function, there is a test to see if the resource VISA is a serial port. The case statement for the true condition sets up the port. There is no other changes such as GPIB, USB connection or Ethernet works exactly the same way.

  • Measurement &amp; Automation can not find cable GPIB Aglient?

    Dear Sir.

    I use the equipment of the instrument "HP8921A" and 'Aglient GPIB' cable connects between PC and HP8921A.

    When I run the "measurement and Automation", it can not find the instrument.

    The LabVIEW (or measurement & Automation) does not support the agliment GPIB cable?

    If I want to use LabVIEW for control equipment of the instrument, but the use of agliment GPIB cable, how do I do?

    Thank you for your response.

    KC

    Thanks for the response from Dennis.

    Max found the equipment of the instrument or the Agilent HPIB converter.

    See attached:

  • 7001 2001 Keithley and GPIB Analyzer +.

    Hello

    I have an old system consisting of an old PC with BACK, and via an ISA GPIB card connected to a Keithley 2001 D.M.V. and multiplexer Keithley 7001 (card1: 40CHs relay 2 poles and map 2: 10CHs 4-pole relays are inside). Software runs under DOS, what are the measures of tension and resistance with the digital Voltmeter via the 2-pole relay and previous resistance via the 4-pole relay. The source code is not available.

    We bought LabView2010full, as well as a PCI-GPIB + Analyzer card.  I began to analyze the communication in this system by MAX.

    What I would do, is "clone" of multiplexer from the old system and the reason for the measure and do the same thing in LabView. For the most part, I understand what I see in the captured GPIB communication, for example these lines:

              --  --  --     UNT UNL UNT LA27 TA1
              --  --  --     :SCAN (@2!1,2!3,2!5). END
              --  --  --     UNL UNT LA27 TA1
              --  --  --     :TRIG:COUN 3. END
              --  --  --     UNL UNT LA28 TA1
              --  --  --     :ROUT:SCAN:EXT:FUNC (@1:3),'FRES'. END
              --  --  --     UNL UNT LA28 TA1
              --  --  --     :TRIG:COUN 3. END
              --  --  --     UNL UNT LA28 TA1
              --  --  --     :ROUT:SCAN:LSEL EXT. END
              --  --  --     UNL UNT LA28 TA1
              --  --  --     :TRAC:FEED:CONT NEXT. END
              --  --  --     UNL UNT LA28 TA1
              --  --  --     :TRAC:CLE. END
              --  --  --     UNL UNT LA28 TA1
              --  --  --     :TRAC:FEED:CONT NEXT. END
              --  --  --     UNL UNT LA28 TA1
              --  --  --     :STAT:MEAS:COND?. END
              --  --  --     UNL UNT TA28
              --  --  --     0. END
              --  --  --     UNT UNL UNT LA28 TA1
              --  --  --     :INIT. END
              --  --  --     UNL UNT LA28 TA1
              --  --  --     :STAT:OPER:TRIG:COND?. END
              --  --  --     UNL UNT TA28
              --  --  --     2. END
              --  --  --     UNT UNL UNT LA27 TA1
              --  --  --     :INIT. END
              --  --  --     UNL UNT LA28 TA1
              --  --  --     :STAT:OPER:COND?. END
              --  --  --     UNL UNT TA28
              --  --  --     0. END
              --  --  --     UNT UNL UNT LA28 TA1
              --  --  --     :STAT:OPER:COND?. END
              --  --  --     UNL UNT TA28
              --  --  --     16. END
    

    The multiplexer (GPIB address is 27) is ordered to use its 2! 1, 2! 3 and 2. 5 channels for son 4-measurement of resistance and the digital Voltmeter (GPIB address is 28) perform these steps. These measures of resistance 4 son takes some time, so the PC is permanently checking wheather they finished yet or do not by repeating the last four lines.

    My problem is why "16" decimal values are there? In fact, when the DVM ends this particular measure, the answer to the question

    STAT:OPER:COND?
    

    becomes 1024. With regard to the Keithley (Manual keithley) manual, page 329, on figure 4-24, 16 is not an answer for the statby: cond. 1024 is okey, this means that the digital Voltmeter is inactive. But 16 is not a valid value. In any case, I understand that this means that the device is always busy with the previous measure, but why 16? With respect to the manual, the number must be 512 instead of 16...

    I am new to GPIB, if someone could explane this gap for me, it would be nice... A simple manual would be even better, part of the manual Keithley's GPIB is not really practical...

    Thank you very much!

    PS. : I joined the capture file exported comm of GPIB.

    Okey, I think I'm finally on the right track... If someone gets into a similar situation (you need to treat gpib on first use), I advice to see a simple example program:

    Like this:

    http://www.Keithley.com/base_download?dassetid=11901

    It really helps a lot, understand the basics in GPIB comm, when you have to deal with a digital Voltmeter and a MUX at the same time...

    concerning

  • Problem to run Agilent GPIB with NI-VISA card: recurring at Agilent VISA 32 report of open conflict that all things set correctly...

    Hi developers OR,.

    I have a recurring problem to correct my installation using a labview and Agilent GPIB card.

    Of course, the well-known configuration tips are generally defined:

    -Agilent VISA a VISA secondary (by-side mode)

    -the passport for tulip is enabled in NOR-MAX

    -OR-488 support active in Agilent librabry suite 16.1

    I uninstalled and reinstalled any component twice, but still get the same error message when I want to talk to a Keithley 2400 EMS:

    -Firstly, the agilent GPIB interface is correctly recognized expert Agilent connection and NOR-MAX

    -Then the instrument of 2400 keitjley initially works correctly in Agilent connection Expert and NOR-MAX

    BUT: when I try to send a command to the device (whether through the wizard or VISA using the Labview instrument driver), the tool returns an error (error "Application incomplete" punch followed immediately by a second "Invalid while in the local" error code)

    At the same time, the Manager (32 open report VISA) conflict in expert Agilent connection says "NI-VISA has returned an error. "There is a conflict of interface between NI-VISA and VISA Agilent". He suggested that the conflict occurs when different interfaces receive the same number of interface in the two VISA.

    Therefore, aware of the conflict that can occurs in a side-by-side installation, I tried to change the ID of Interface CLCL's Board of Directors in the Agilent connection Expert (from gpib0 to gpib9) and restart, but it did not help.

    So can you help me solve this recurring problem?

    Is it necessary to also change the VISA interface ID, or address of the GPIB Board Agilent GPIB in connection Expert? Wouldn't be the same address (9 for example)?

    I really do not understand.

    Sorry for this new message on the configuration of this topics, but I found no useful advice in the forums.

    See you soon,.

    Yoyo87.

    Finally, I got my system running after several tests, although I couldn't use NI-VISA as first VISA (allowing the tulip passport) with agilent VISA (permit for programs OR-488) at the same time.

    I uninstalled it all components of NOR and the agilent and re - install in the correct order (OR first, followed by agilent): nothing has changed.

    I check for updates of agilent and NOR and use several different versions of VISA at the same time: nothing has changed and I still communication errors when you try to send the order through NI-VISA Interactive control or labview (although it worked well by expert agilent of connection).

    I don't really know why, but I solved my problem by installing Agilent VISA primary visa. In this way, even if I do not see the Council of Agilent in NOR-MAX, I can always send control of GPIB instruments by labview using their VISA address or aliases defined in connection expert Agilent...

    I am always interested to understand why I was not able to run the two VISAs on my system with agiulent only one card PCI GPIB... so if one of you sees a clear reason for this...

    Thanks in any case, even if I don't have a lot of response on this topic...

    Yoyo87

  • Characters not visible (caused by hitting the bar space or TAB in PL/SQL developer tool) causing slow running query? and database with low performance?

    Hi all

    I need your help to get this issue resolved its urgent and I'm not able to get to the conclusion. Here is my scenario, I'm getting slow query runs because of some non-visible characters that are copied with the application of the PL/SQL developer tool. Please find below attached screenshot: Oracle_Issue

    Oracle_Isssue.png

    Note: This non-visible characters are caused when we write the query then us hit the SPACEBAR or press TAB PL/SQL developer tool

    I use the developer tool PL/SQL to write or test the query. Now I take this request copy paste in my application of the company (who takes this query connects to Oracle or any source of data base, catch data and produce PDF reports for customers).

    Now, my client is the Oracle user when I write and you run this query by the PL/SQL Developer, it works fine, but when I paste in my Inbox feature request (reporting system) and run it, it runs slower and jams to the customer database. Now after a little research I found that when I copy the query directly from PL/SQL developer at my request, he copy some characters not visible (introduced when we press SPACE or TAB in PL/SQL developer tool when writing query) with the request, then I copy this query again to my box of the application Notepad and delete these non-visible characters. Now, after removing the non-visible characters again once I copy backup question in my application and run the query, it works normally. Please find below attached screenshot: Oracle_Issue 2

    Oracle_Isssue_2.png

    So I think that the cause of slow performance is due to some INVISIBLE CHARACTERS present in the query.

    My application uses SQL server 2008-2012 at the backend to store data from different sources.

    Character set used: SQL_Latin1_General_CP1_CI_AS


    To write and test queries: PL/SQL developer tool

    My Client use Oracle 11 g

    Character set used: Normal character: NLS_CHARACTER: AL16UTF16

    National Characeter: NLS_NCHAR_CHARACTER: WE8WIN1521

    I just wanted to know the blocking process to the top of the database and the characters not visible how affecting slow running query of query database.

    Please let me know if I'm missing something or you need more information on this issue.

    Thanks in advance,

    HP

    Simple answer. No.

    Spaces and line breaks do not change the execution plan created. Does not plan to run slower or faster.

Maybe you are looking for

  • Help! White Toshiba M30 screen

    While downloading an update of Windows XP, my toshiba M30 went to a white screen with thin vertical colored stripes. After about half an hour of waiting, I turned it off, restarted, but the white screen came back. I took out the battery, waited for s

  • Photosmart D110

    When you try to scan to the computer, I get this message "cannot Scan because another program is using the networked HP imaging device.  Try again later. "I do not know what device that can be.

  • 7640 envy: envy 7640 program defaults to lauch the touchscreen printer scan

    When I run a scan of the touch screen of the printer and choose my computer as the destination, I get a popup box on my computer asking me to "select the program to launch for this action."  My choices are two programs of photo that I installed and t

  • U2414H monitor has stopped working.

    Hello, I have a U2414H monitor, and while playing wow the computer kept jumping on the desk to do some updates. All of a sudden the screen went black and I noticed that the power had disappeared. I changed the power cable to one, I knew that worked,

  • error in config to recovery

    vista 32 OS ibt m8100n System crash-screen black cursor flashing F10 base system checks, all good memory and HD. On the error code - config purple recovery. What does that mean???