How can I read the trace data from Agilent(HP​)8510C in C++ using NI488.2 and PCI-GPIB ?

Hello! I am trying to develop an application in C++ for measurements with Agilent(HP) 8510C network analyser using NI488.2 and National Instrument's PCI-GPIB card. In HPBASIC the trace data is read using OUTPDATA command which contains PREAMBLE, SIZE and then the data string in real and imaginary pair for the required points. The ibrd function gives data only for one point. Kindly guide me how I can read the whole trace and and separate out the real and imaginary data values. Regards, kapil

Hey Kapil,
It seems that in HPBASIC you were using an instrument driver for the 8510C. OUTPDATA is not a native HPBASIC function. National Instrument has similar instrument drivers for LabVIEW and CVI.
http://zone.ni.com/idnet97.nsf/9b2b33e1993d8777862​56436006ec498/7b235254f3881ddb862568ab005fbd2e?Ope​nDocument
http://zone.ni.com/idnet97.nsf/9b2b33e1993d8777862​56436006ec498/24ca7db880ab78ae862568ab005fbc0f?Ope​nDocument
For example in the CVI instrument driver you will find a source file called hp8510.c. In the source code you will find a function called hp8510c_dataInRaw that sounds similar to the function that you described.
Note that this example is designed for CVI, but it is possible that you could extract the information you need for C++. If
you had a copy of CVI you could just add the files downloaded from the instrument driver to a project and then compile and run the project. It already contains a ready to run example that allows you to capture data and use your instrument.
If you want try CVI you can download an evaluation copy on-line at http://ni.com/lwcvi/launch.htm.
I hope this helps out,
JoshuaP
National Instruments

Similar Messages

  • How can I read the trace data into LabVIEW for E5071B

    HI 
    I am setting up the measurement using vector network analyzer (VNA) E5071B controlled by NI 488.2. How can I read the trace data into LabVIEW and display on the graph? If anyone having an idea or know well about this process please give me the suggestion, I will much appreciate it.
    Many Thanks

    You want to start with the driver
     In case you do not know it, you can do the driver search in LabVIEW from Tools>Instrumentation>Find Instrument Drivers. You might also want to bookmark the Instrument Driver Network for information on what a driver is and how to use it.

  • How can I read the serial data from my mouse on com 1?

    I just started using LABView so please have patience with me!
    An error message says the resource is valid but VISA can not open a session with the device, in this case a Roller ball cannected to the comm port. Obviously windows is already using this device, I don't want to over ride it just monitor it.

    If you are using LV 7 the attached VI demonstates how to use the new functions that are now included with LV.
    I just stumbled across these earlier today and they worked right out of the box.
    Have fun,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    mouse_position.vi ‏90 KB

  • How can I restore the game data from an old ipod touch to a new one?

    How can I restore the game data from an old ipod touch to a new one?

    Restore it from the backup of the old ipod.

  • How can I clear the browser pull down list, I have followed directions using options and it just won`t clear

    How can I clear the browser pull down list, I have followed directions using options and it just won`t clear

    Entries in the location bar drop down list with a yellow (blue on Mac) star at the right end are bookmarks.<br />
    You can remove such a bookmarked item that shows in the list if you open that url in a tab and click the yellow star in the location bar.<br />
    This will open the "Edit This Bookmark" dialog and you can click the Remove button to remove the bookmark if you want to remove such a bookmarked entry.<br />
    * [[Clearing Location bar history]]
    * [[Cannot clear Location bar history]]

  • How can i get the meta data from database?

    Hi, all java and db experts,
    I need to write a tool to generate java file which will be used to hold the resultset of a stored procedure of Oracle. Is there any API call or tools to connect to db and then get the meta data of the return cursor instead of reading stored procedure definition on my own?
    Please help, thanks a lot.
    Hanna

    if i execute a Oracle stored procedure, the resultset of a cursor is returned. It's easy to know the meta data at the runtime.
    However, could i get the meta data about the resultset of a cursor before runtime? Such as by connecting to the database and ask it about meta data of a specified stored procedure?
    Is it feasible?
    DatabaseMetaData dbmd = conn.getMetaData();
    ResultSet rs = dbmd.getProcedureColumns("", "%", "SP_NAME", "%");
    while (rs.next()) {
    String colName = rs.getString(4);
    int colType = rs.getInt(5);
    int colDataType = rs.getInt(6);
    int colPrecision = rs.getInt(8);
    int colLen = rs.getInt(9);
    int colScale = rs.getInt(10);
    long defaultValue = rs.getLong(11);
    But what i get is a list of stored procedure parameters. In oracle, cursor is IN OUT parameter . How can i get the meta data about the resultset of cursor?

  • How can i extract the particular data from Base tables

    Hi
    I have some Base R/3- Tables . I need to exact the data from these base tables.
    But i need to select some type of datarecords(eg: select Material Documents from MSEG and MKPF tables based on movement types 261,262).
    Something like that . So how can i select the particular category datarecords from base tables. Anyway im going to create the Custom DataSource.
    So please let me know . how can i extarct tha particular data from base tables
    kumar

    Hi Venkat
    See i have some 5-tables . I need to extarct from these tables.
    first i need to extract the data from one table fully.
    Then i need to extarct the data from second table based on profict centers, company codes of first table.
    Then i need to extract the data from third table based on profict centers of first table and movement type = 2p,2n,2s condition.
    So how can i extarct like this data from multiple tables.
    Please let me know
    kumar

  • How could we read the XML data from a table using BODS.

    Hi Guys,
    My requirement is , As the OLTP system  consists of a table called person which consists of a column demographics. so how could i read this XML data which is in one column of an SQL table called persons. As this XML data will populate the remaining fields in my target using BODS.
    Regards,
    Amjad.

    Hi Amjad,
    I am afraid there ain't any direct method to extract XML field from a data base.
    Indirect way could be converting the whole table (instead of one field) into XML format and then extract one field from it!!
    Regards,
    Mubashir Hussain

  • How can I read the raw data by other program?

    How can I use other program (such as C, MATLAB) to read the raw data acquired by biobench (*.bb)? Since the export function of biobench 1.0 is not convinient, I hope that I can read the data directly by decompressing the *.bb file. In other words, can one tells me the format of *.bb file?

    Take a look at Top BioBench Support Solutions>>BioBench Support Files>>bbfileio.zip,here is the link: http://digital.ni.com/public.nsf/websearch/3ABE21AD33DA83B0862569B400810BAE?OpenDocument

  • How can I acquire trace data from Agilent(HP)8510c Network Analyser in VB6 using PCI-GPIB and NI-488.2.

    I am developing an application in VB6 for measurements with Agilent (HP)8510C network Analyser using NI-488.2 and National Instrument PCI-GPIB card. I want to take data for the whole 51 points. In HPBASIC which used to be employed for this purpose it is done using OUTPDATA command and the data is in a 2-dimensional array. How can I do this in VB6 with the hardware above.
    kapil

    Hi Kapil:
    Please refer to a previous post on the same topic:
    http://forums.ni.com/ni/board/message?board.id=140&message.id=7758#M7758
    Although this is for C++, the basic functionality should be the same. Since OUTPDATA is from a specific instrument driver, your best bet will be comparing it to the instrument drivers mentioned in the previous post.
    Thank you,
    Emilie S.
    National Instruments
    Applications Engineer

  • How can I transfer the application Keynote from my old computer to a new one and get rid of it on the old computer?

    My MBP from 2008 is being retired by my university and they gave me a new MBP.  They transferred everything from their image and all my iWork documents were transferred.  However, since I added Keynote, Numbers, and Pages, they did not transfer.  He said they cannot transfer them since they are not part of their image and active directory.
    How can I get the iWork apps to my new computer and disengage them on the old computer without paying another $60?
    Thanks so much for any advice.
    Best,
    HED

    If you installed them from a DVD, you need to install that DVD onto the new computer. If you got them from the Mac App Store, redownload them from there for free.
    Having previously purchased an application on DVD or from the iTunes App Store does not allow a free download of it from the Mac App Store.
    (71807)

  • How can I Read lines of data from a file starting at the end of the file??

    Can anyone help me with how to read lines of data starting from the end of a file instead of the beginning?? I do not want to load the entire file into memory as the files are very rather large. Instead I want to start at the end of the file and read lines backward , until I find the particular data item i am searching for, then stop.
    Can this be done in Java ? I know it can be done in Perl.
    Thanks.

    Thanks for your suggestion about the RandomAccessFile, I did actually thought about that approach , but wasn't sure it would work.
    I do not want to read the file in a sequential forward manner because the files contain large number of lines of data that have already been processed and therefore there is no need to reprocess these lines of data.
    The Unprocessed lines are always at the the end of the file and these are the data lines I am interesting in getting at without having to read the entire file. Therefore, i figure that if I can read the data from the end of the file then this would be much more efficient.

  • How can I get the image data from Clipboard with LV

    Anybody knows How can get the image data after pressd "print screen button" with LV?
    I want to program a software which can save a image as a bmp or jpeg etc, and the image data is from pressed print screen button. 
    How to get it out from clipboard. I am trapping about. thanks in advance.
    Try to make everything Automatic

    You can have a look at Rolf Kalbermatter's post here (give him stars) or, if you're using scripting, you can use the Application class Get Clipboard Image method.
    Try to take over the world!

  • How can I get the background music from iMovie trailer, "Romance"to be used in another imovie?

    Is there any way to download the background music from the  iMovie trailer template "Romance" to be used in another iMovie of greater length than that of a trailer?

    In addition to Tom's good advice, another method is to access the audio file in iMovie's package contents folder.
    In Finder, in the Applications folder, right-click (or control-click) on iMovie.app and select Show Package Contents from the pop-up menu. Open the folder Contents>Resources. In that folder you will find components for each Trailer, including the soundtrack. The file you are seeking is named "SoundTrack - Romance.m4a".
    Copy then paste the file to your Desktop (don't otherwise mess with items in package contents folders!). Open the file in QuickTime - it is titled "Love Story FC2". Opening the Inspector in QuickTime (Window>Show Movie Inspector) reveals it as AAC format. If you wish, as Tom indicated, you can Export the file from QuickTime in other sound formats, such as AIFF. If preferred, you can import either the AAC file or the converted file to iTunes (or other audio apps) for use as required.
    John

  • How can we  transport the master data from one server/client to another server client?

    plz guide me this issue

    Re: transfer data in between servers
    Navaneetha Krishnan Jun 25, 2007 2:59 PM (in response to suresh chandrra
    Most of the times, masterdata is transferred between servers through ALE. This is considered to be one of the best and efficient ways of transferring data. You can try this too.
    BDCs are another way (which can be done through LSMW or through a custom made program.

Maybe you are looking for

  • How to stop the auto-start of log reader agent (replication) right after my database is restored?

    I have the scenario where the SQL server is restored (after migration). This database has transactional replication set-up on one of the databases. When I do a manual delete and restore of the database, I see that the replication starts right after t

  • Video freeze mountain lion

    I installed Mountain Lion on my 2010 Macbook Pro without incident on launch day. I had to then go away for the rest of the week and weekend. Yesturday and today, randomly everything seems to freeze, the video looks like it scrambles and I have to har

  • Holy Moly - My drive has gone!

    Every time I put anything (old CD, new CD, DVD) into my cd drive, the computer kind of whirrs a bit, ponders, then spits them right back out at me without recognising its existence. This is starting to annoy me as this problem has suddenly just occur

  • Each procedure have commit statement

    I call five procedure individually, and each procedure have commit statement from .net environment i.e. click event of submitt button call five procedure but now i want only one commit statement for all five proceduce if all procedure successfully ex

  • Do you know how to record yourself doing something?

    Hello, do you know how to record yourself doing something, like teaching a craft, or ranting about something so it can be uploaded to a video provider... from an iMac? Thanks if so! <Re-Titled By Host>