Status-byte of HP4194: How to read out?

Hi all,
I would like to know when my instrument (HP4194) has finished the
actual measurement sweep, so that Labview (v5.0.1) can use the whole
aquired data set etc. I found in the instruments handbook some notes
about the status-byte: By default, all bits of this byte are masked,
therefore first I have to send the RQSx command, where x is a number
between 0 and 255, indicating the non-masked bits. One of these bits
(bit 1) is described as "sweep complete", so it would be fine to now its
value. But how??? Further, I found that there has do be sent a serial
poll, but when I tried to send it (with the pre-defined GPIB-Serial-Poll
command), I always get errors. Has anyone experience in using the status
byte and knows the co
rrect commands to send to my instrument?
Thanks a lot,
Rafael

Hi,
The IEEE 488.2 standard specifies a status byte model that the bus controller can use to determine the state of the instrument.
The only mechanism instruments have to notify the controller of any condition is using Service Requests (asserting the SRQ line of the GPIB bus). There's only one SRQ line on the GPIB bus. When the line is asserted, the controller has to ask the status of each instrument to determine which one issued the service request. The process is calles serial polling. When the controller conducts a serial poll, it reads the status byte of the instrument. According to the IEEE 488.2 standard, if bit 6 (0x40) is set, the instrument is requesting service. Each bit in the Status byte represents an instrument condition. Bits 4, 5 and 6 are d
efined by the IEEE 488.2 standard. The rest are instrument specific.
The IEEE 488.2 status byte model defines a method to configure the conditions that makes an instrument generate a service request. The Service Request Enable (SRE) Register masks the Status byte. When a bit is set in the SRE, that condition will generate a service request.
For example, if you're instrument manual specifies that bit 2 of the Status byte is sweep complete condition, then you can send the instrument *SRE 0x01 to unmask bit 2.
The following tutorial has detailed information:
http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/cf4fcc64d7ae6918062569df00630630?OpenDocument#4
This is not specific to NI or you're instrument. It is part of the IEEE 488.2 standard. You can probably find more info on the web.
DiegoF

Similar Messages

  • How to read out a InputStream from a socket?

    Hei,
    I try to write a programm that should also be accessed via telnet. So I wrote a classe that has a ServerSocket, a Socket, an InputStream and an OutputStream.
    I read out the InputStream via a byte arry, but the inputStream always starts with the first line I entered. How do I empty the Stream? Mark is not supported :(
    So what can I do, to get only the last enty?
    big thx,

    use the other read option, see:[url http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html#read()]InputStream#read
    This allows you to read from an offset.

  • How to read out and modify text parts in a pdf-document?

    Hello,
    My problem is the following: I want to read out text passages of an existing pdf-file, compare them with files in an odbc-database and write down the results of that comparison in the same pdf-file. The term is: Read out a number in the file, search the database for the matching user-name, generate a field in the pdf and write down the search results in that.
    i have read that this could be possible with acrobat...my version is an acrobat 9 pro extended...
    could someone please tell me how to do that?
    big thanks

    As the definition of “color” vs. “black and white” differ by context – there aren’t any that I am aware of.
    You can, however, use the Preflight feature built into Acrobat to identify whatever you wish…

  • How to read out data via usb

    Hello,
    i am trying to get the measurements of a dial indicator, "MarCator 1075", product of Mahr Co. via USB-Cable.
    I installed all the drivers and MAX shows that its a COM-Device and its working properly. So i configured the settings: baud rate 4800, data bits 7, parity even, stop bits 2, apllied and saved the changes.
    I tried those 2 attached VI's, but it doesnt work.
    1. basic_serial_write_and_read.vi is the standard VI for USB-communication of NI.
    2. Sylvac Read.vi is a VI the vendor send after i talked to him to inform me about the dial indicator. He said its a VI to get Data via RS232, but the problem is that i dont have a RS232-slot in my computer. In order to that i have to realize it via USB.
    I think it doesnt work because there are no databits to be read out. When the dataflow arrives the "VISA-Read" theres is an error. This occures in both VI's.
    Error -1073807339 occurred at VISA basic_serial_write_and_read.vi
    Possible reason(s): VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.
    Anyone who can help me with my issue??
    thx in advance
    best regards
    Attachments:
    basic_serial_write_and_read.vi ‏34 KB
    Sylvac Read.vi ‏22 KB

    Hello FCHansa,
    have you installed the proper drivers?
    Which version of LabVIEW are you using?
    Which OS are you working on?
    In the LabVIEW Example Finder you have a simple example how you can communicate to a USB HW via NI-VISA.
    It's called "Basic TCPIP or USB VISA Write and Read - PDA.lvproj". Or another would be "Basic TCPIP or USB VISA Write and Read - Touch Panel.lvproj"
    Have you configured your USB Device to a virtual COM interface?
    Also please have a look to these links:
    What is the Difference Between USB Raw Control and USB Raw Bulk?
    http://digital.ni.com/public.nsf/allkb/400D6EAB5CFE1C6B86257395005F5D48?OpenDocument
    USB RAW Controller
    https://decibel.ni.com/content/docs/DOC-2022
    Also, please follow the advises of smercurio_fc! As he said you need to know to which commands your Hardware is responding to.
    Best regards,
    Abduelkerim
    Sales
    NI Germany

  • How to read out the scale values of an intensity graph?

    My aim is to read OUT the scale ranges (Max and min values DISPLAYED) of an intensity graph.
    I want to do a scan of an area, display the result in the graph, graphically zoom in on something interesting and then use the zoom coordinates to define the area for the next scan.
    Is that possible, and how?
    If impossible, is there a work-around?
    Solved!
    Go to Solution.

    Use the "XScale.Range" and "YScale.Range" property nodes. 
    www.movimed.com - Custom Imaging Solutions
    Attachments:
    Scale Ranges.vi ‏13 KB

  • How to read out a RPM signal in labview using UMI 7764 and PCI 7330

    Hi
    I have a problem getting a encoder signal into a labview program. The encoder is connected to a UMI 7764 motion device. This device is connected to a PC trough a PCI 7330. I heard rumors that I can't have more than two axis on a PCI 7330. But can I have more than 2 encoders on it?
    The big problem is that I am new to the motion system and I don't know where to begin.
    I'm going to finish a uncompleted system, but when I look at the VI, I get nervous. So you are my last hope.
    I have taken screen captures of the VI and uploaded it.
    My task is to implement a new encoder signal to the already-made VI.
    Question is:
    How do I add and read out a RPM signal from a new encoder?
    VI download:
    http://www.mediafire.com/?k1ckbozeppffv1z
    Best regards
    Henrik Myhre

    From your post it seems like you wants to read back the RPM value of a particular move based on your encoder. There actually is a specific VI that you can use that does exactly this. The Read Velocity in RPM.VI should output the RPM of the current move that you are doing.
    In the code that you posted, it looks like you are performing a two axis move. Therefore you will need two instances of this VI, one for each axis. You should utilize these VIs within the while loop and after the move has been started that way the RPM values are continuously updated.
    It also seems like you have inherited some code that looks very complicated. We would highly recommend that the you begins experimenting with basic motion to get familiar with it.

  • How to read out NB temperature?

    Does the P965 Platinum have a Northbridge temp sensor? Im asking because DualCoreCell doesnt read out anything for the NB.
    Another question, is it normal that the NB heatsink gets extremely hot? Mine gets so hot, I cant even touch it for two seconds without burning my finger, literally. And thats @ stock speeds and voltages. I do have a fan blowing onto the NB, but that doesnt seem to help.

    Quote from: DTU_XaVier on 22-October-06, 06:06:17
    BIOS reports a system temp, though I dunno if that's that...
    On the mobo temp thing, you're not alone... Mine also gets very hot, too hot I'd say normally... Dunno why though, at stock volts...
    Best Regards
    Ah okay, so Im not the only one then. System temp is not the NB temperature, its the ambient temperature.
    The 865PE Neo2 I had didnt have an NB temp sensor, the K8N Diamond also didnt have one... why does MSI never have these on their boards? Asus, Abit and even Gigabyte have them.  >:(

  • How to read out License Keys of Windows Software on Macs?

    Hi everyone,
    good day to you all, i doubt that this question really fits into this Topic perfectly but i didn't know where else to post it. I hope that you can help me out with this, i have a problem that i have a number of Macs ranging from Minis to various Books, most of these are fittet out with MS Office Licenses (2004 & 2008) which i all have stored in a locker here but unfortunately some of the Licenses werent labeled and now i don't know how to find out which licence is istalled on which Mac? Do you know of any Software (or any other Solution other then deinstallling all and then reinstalling all ) that would help me out with this?
    Lots of thanks in advance for your help and best wishes from here,
    D. from Munich

    i didn't know where else to post it.
    Microsoft's own forums for their Mac products: http://www.officeformac.com/productforums

  • How to read out message cycle time from Vector CANdb file?

    Hello LabVIEW friends,
    I tried to open a Vector CAN Database (*.dbc) using the NI-CAN 2.3.2 Channel API and read out the cycle time of a message.
    The CAN get property.vi should provide the sample rate which is described as followed:
    Input parameter of the CAN Init Start function.
    The sample rate specifies
    whether to transfer data in a periodic or event-driven manner.
    For periodic
    behavior, the rate specifies the number of read/write samples to perform per
    second.
    But for all messages in my database I get the value 0.
    When I connect a sample rate to the CAN Initialize.vi I will get it's value.
    Could anybody help?
    Thank You.
    Greets,
    Marcus

    Hi,
    unfortunately there is no way to use the cycle time property from your DBC file, because the NI driver is not able to read this information.
    This is because the cycletime is stored in different places for different users and only Vector itself can read this information back.
    In your case, you have to figure out this information by yourself and you can use the sample rate input of the init or initstart function to configure the cycle time in Hz.
    If you need different cycle times for different messages, see the attached example.
    DirkW
    Attachments:
    CAN_Multi-Chans_Diff-Period.vi ‏26 KB

  • BW object status "Changed by IMPACT" - how to figure out who caused it?

    Hi,
    We have struggled with this for some time - and it has just bitten us again in our BW production system - an Update Rule became inactive with status changed by 'IMPACT.'  We need help/instructions on how to see just what process (transport?) caused the impact!
    Please share your knowledge/process for this issue.
    thanks very much.
    Janet H.

    Hi,
    Thanks to everyone who has responded.  I suppose that I could have/should have provided more information in my original post/question.  In our situation, there are no "obvious" structural changes that would have caused the update rules to be inactivated.  There were no transports, no "manual" changes in an "open" system.  There were no InfoObjects added nor removed from the ODS. (The update rules in question feed ODS targets.) 
    So, I have a couple of related questions -
    Is it possible that this condition (changed by IMPACT) was caused by changes in the feeding (R/3) system?  Perhaps by the Data Source being replicated?  We did a Plug-in upgrade on our R/3 system on 20Nov2004.  These update rules continued to function - they became inactive the first time a developer "looked" at them in the production BW system.  Only a subset of all the update rules behaved this way.  We have not been able to determine the commonality - reference characteristics, compound characteristics, etc.  That is why we have posted this question.  Any further advice is surely welcomed!
    Janet H.

  • How can I read out metadata for captions from a Canon photo

    I have to tried to find an answer via Adobe and Google. Still not able to figure out on how to read out XMP metadata for captions out of my photos. Checking the XMP data in InDesign shows info on Camera Make, Exposure etc. But if I use metadata fields from "Caption Setup" like "Camera" the caption shows <No data from link>. Fields where the XMP field name matches (e.g. "Lens") are ok. I need following fields for the caption: Camera Make, Exposure (aperture and speed) and ISO.

    Lets keep it simple then.
    If I take my utf file generated and open and view it in notepad I can see the accented characters. But if I open it in Wordpad , the accented characetrs are corrupted.
    If I then save the file specifiying type Ascii, then the characters are written out correctly.
    What I want to do is to be able to write out the file in ascii format without having to open it in utf-mode and then having to save it in ascii.
    Ie I want the file to be opened in ascii format
    All the characters to be written in Ascii format
    But the source is still a unicode database.
    I have gone through using convert and characters get lost. In fact, at this stage, I'm not sure its possible to do What I need to do.
    Remember I am using an 8 bit character set which is why I have values above 127.
    So basically if you take the word 'Annulé'
    if I view it in wordpad it displays as
    Annulé
    But if I view it in notepad it displays as
    'Annulé' which is because notepad detects that the file has a utf-8 character in it.
    When I save it as type ascii I can then open it correctly in wordpad.
    So I basically want to open this file in Wordpad and have it display Annulé rather than the garbled characters,
    without having to go through the process of opening and saving the file as type ansi.

  • LOBs reading out from iFS internal tables

    Hi, does anybody know how to read out the files which are stored in the database with iFS ? I would like to parse the files and put a couple of information out into an other table.

    Bernd, this is not a supported feature, and therefore is not documented. All access to iFS data should be through the iFS tools, Java APIs or the provided database Views (which do not include access to the LOBs).
    Why couldn't you use a protocol, such as FTP, or a java program to do what you want to do?

  • Read out Novell NDS Userdata

    Hi,
    anybody knows how to read out the actual username / userdata from a netware client?
    thanks

    JNI, (Java Native Interface), may help. Tutorials available on this site. Or if there's a COM wrapper to the dll you could use the Java-COM bride, (or Corba if you've got the implementation).
    Ugly idea: Write a batch file that can get the info that you want, use Runtime.exec() to fire it from within your code. Don't do this. Well, maybe if all else fails.

  • How does the "Read Status Byte" work in the VISA test panel?

    I'm currently trying to replace an HP-85 with a modern computer running VB.NET, which will communicate with an HP 3421A. Unfortunately the 3421A was created before SCPI was created, so I believe the commands I am able to send are dictated by what the 3421A lists in the manual (http://exodus.poly.edu/~kurt/manuals/manuals/HP%20Agilent/HP%203421A%20Operation,%20Programming%20%20&%20Configuration.pdf).
    The commands I'm trying to use to troubleshoot are "DCV", which reads a voltage, and "SR", which returns 24 different registers, with register 1 being the status byte. When I write "DCV" and then read, it returns a correct voltage. When I write "DCV" and click "Read Status Byte" in the VISA panel, it lets me know that data is available to be read and when I read it returns a correct voltage. When I write "DCV", then "SR" and then read, it returns 24 different bytes, with the first byte being the status register, but it doesn't recognize the "DCV" command from before and the status byte is now 0, which leads me to believe that it's overwriting the "DCV" command from before.
    How can I mimic the functionality of the "Read Status Byte" button in the VISA panel? How does this work on instruments created before SCPI was implemented? Sending "*STB?\n" doesn't work. I am new to instrumentation so if I left out some necessary information please let me know. 

    Thank you for the suggestion. I found a solution by adding NationalInstruments.NI4882.dll and using the SerialPoll function.

  • How to give out a status message indicating the number of fields selected

    Hi experts,
    I hope some one might have done what I'm trying to do. Could some one please show me how to give out a status message saying for example how many fields have been give out(or selected) in the t_ouput in an alv grid? Is there a FM that could do this? I mean like giving the FM the t_output and it will show a status message with the number of fields selected?
    Thank you for your input.
    Nadin
    Message was edited by:
            nadin ram

    Hi Ram,
    Write this code,
    Message 'Select Only Ten Fields' type 'I'.
    It displays The Message in Message Box.
    Or if you want the Error Message means,
    Message 'Select Only Ten Fields' type 'E'.
    Thanks,
    reward If Helpful.

Maybe you are looking for

  • Cannot assign value to a Variable of Complex Type beyond index 1

    Hello: I have a variable defined as a complex type as followed. I tried to assign a value to each of the two elements but it only allows me to assign to the 'element#1. This statement that tries to assign a value into element#2 will not work, if I as

  • Custom logon's PAR w/config branding image and branding text.....

    Hi all, I have changed the configuration of  the logon's branding-image and branding-text through their properties on the config tool. With the standard logon all works fine, but I have customized the logon's PAR and I Have changed the authscheme.xml

  • So, in the end, is mixing JSTL with JSF ok or not?

    At first, when I began learning JSF, I was taught not to mix JSTL into JSF because it's very hard to know how will be behave. Then, I learned that in order to avoid the confusion completely, it was best not to use any JSTL or even better use Facelets

  • Regd : Integration Object : Selection of Envelope for Creating Schema(XSD)

    Hi Have Created a Integration Object, to Create an XSD File we can hit the "Generate Schema" Button under Siebel Tools Level After that i am Selecting a Business Service Called "EAI XML XSD Generator" after this within the Wizard an Option called *"S

  • Smart collection using "person shown"

    Does LR3 support creating a smart collection by searching the value in the "Person Shown" field?  What I would like to do is list the people in the picture then be able to create smart collections to find pictures with specific people in it, such as