MSO-X 4000 Read Waveform Timeout

I'm having trouble using the NI instrument drivers for the Agilent MSO-X 4000 oscope. I'm trying to use the trigger on channel 2 to acquire the waveform on channel 1. Currently, I always get this error code : "VISA Read in Agilent 2000 3000 X-Series.lvlib:Wait for Acquisition Complete.vi->Agilent 2000 3000 X-Series.lvlib:Read Waveforms (Single).vi->"
The problem comes from Read Waveform vi timing out. This does not occur if I set the trigger characteristic mode to "Auto" instead of "Normal". I've attached a screen shot of parts of the code. The top section is my initialization phase and I use the bottom section to read after the signal is setup. In both Auto and Normal mode, I get a full waveform on the oscilloscope, but obviously with it constantly triggering in Auto mode, I don't get the correct waveform. I'm completely baffled as to why this is happening. I've dug through the forums and someone recommended updating the firmware, which I did to no avail.
Attachments:
LabviewCode.jpg ‏77 KB

I've figured out the problem after digging through the MSO Programming guide.
I believe there's a programming error in the instrument driver that I downloaded from here:
http://sine.ni.com/apps/utf8/niid_web_display.mode​l_page?p_model_id=21187
I removed the "IG;" command from the Initiate.vi (called by Read Waveform.vi) in the MSO Instrument driver and the program works fine. The "Read Waveform.vi" is actually reading the waveform twice using two different commands. The first read (IG) clears the screen, so if the oscope is in triggered/single mode, there won't be a waveform to read for the 2nd time and therefore it will time out. If the oscope is in Auto mode, the screen is updated with data so the .vi doesn't time out, but returns garbage data

Similar Messages

  • Read Waveform Data in C

    Dear community,
    I am looking for a way to read waveform data file with external software like C or Java.
    The Data Acquisition, very simple code, is written and run in LabVIEW 2009SP1.
    (see attachment)
    Is an prepared header for data struct, open(), read(), close() this file format?
    Anybody an idea? I didnt find anything here.
    Regards,
    esod
    Attachments:
    writeDAQ.png ‏21 KB

    Hi esod,
    see this:
    I'm saving an array with just one waveform in it. The resulting file contains:
    0000 0001 - array size (one waveform in the array)
    0000 0000 D156 9847 5451 8000 0000 0000 - timestamp of first waveform
    3FF0 0000 0000 0000 - dt value (1)
    0000 0003 - array size of Y component
    0000 0000 0000 0000  - first sample (0)
    3FF0 0000 0000 0000 - 2nd sample (1)
    4000 0000 0000 0000 - 3rd sample (2)
    remaining stuff: the variant containing no attributes (?) in this example.
    Timestamps use 128 bits in LabVIEW. Samples and dt use DBL datatype. Arrays have their size prepended as I32. Variant is a monster of it's own…
    Forgot to mention in the first place: Those are internal representations of LabVIEW datatypes. They might change with each LabVIEW version (as happened to the timestamp long time ago), but I guess it is unlikely for the current waveform datatype…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Error in Agilent 2k3k4k X-Series drivers when using examples that contains "read waveforms.​vi"

    Hi, all
    Something goes wrong when using agilent 2k3k4k drivers. Could anyone help me?
    Agilent DSO-X 2012A oscilloscope
    Drivers are download from:
    http://sine.ni.com/apps/utf8/niid_web_display.down​load_page?p_id_guid=9E84674573AF6AB8E0440021287E6A​...
    Each time when running examples:
    Agilent 2000 3000 X-Series Acquire Waveform.vi
    Agilent 2000 3000 X-Series Acquire Waveform continuously.vi
    Agilent 2000 3000 X-Series Acquire Multiple Waveform.vi
    Errors rise and the oscilloscope is crashed and needed to be shut down and restarted. It seems that the example can't pass the "Read Waveforms.vi" in the Block Diagram. The PrintScreen   is as follows:

    sagha wrote:
    According to the MAX they are correct (IVI driver for the Agilent 33519B downloaded from the NI website). When I run the IVI Initialize block any frequency, amplitude, offset, etc. settings on the function generator are reset to the default values. So, something is being sent to the instrument.
    However, I've also tried adding the General Error Handler block right after the Initializaiton block to cancel the -1073807339 error. Then, I add the IviFgen Configure Standard Waveform [STD] block to set the function generator frequency. The program throws an error that looks like a resource problem:
    "Error -1074130544 occurred at IviFgen IVI Error Converter.vi
    Possible reason(s):
    The session handle is not valid.
    Complete call chain:
        IviFgen IVI Error Converter.vi
        IviFgen Configure Standard Waveform [STD].vi
        <myViName.vi>
    What could be the reason for an invalid session handle? I've followed the NI tutorials on setting up IVI instruments in MAX and in LabVIEW.
    Okay, this is new information.  Nothing in your previous posts mention that the initialztion did anything at all besides return the timeout error.  The invalid session handle is because you closed the session.
    I'm having trouble following your descriptions.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • 1074126845 error at ag6000 Read Waveform.v​i

    Hello,
    I'm acquiring signals from a scope channel, DSO 5014 A (LXI), with a program done in LabView 8.5.I'm using a LAN cable to comunicate the scope and the computer.
    The program has been run properly for a few days acquiring the signals (and in fact, now is running ok) but however, I for the last 5 hours before I couldn't running it because an error appears:
    "Error -1074126845 occurred at ag6000 Read Waveform.vi, Possible reason(s):
    Driver Status:  (Hex 0xBFFA2003) Maximum time exceeded before the operation completed.
    Primary Error: (Hex 0xBFFF0015) Timeout expired before operation completed."
    I don't understand what's going on because I didn't modified the program but yesterday it was working but not this morning.I tried to restart the computer, the scope, to swicht them off...but it didn't work!
    Now is working, but I have no idea why!
    Somebody could give me any idea?
    Thanks

    Hi again!
    THe problem is still there!I can't understand why!
    Yesterday, once I decrease the burst period, it worked well so it was measuring over night, but this morning when I arrived there was again the same problem!
    I decrease the average from 256 to 16, and it works again.
    But I don't know why!
    About the averaging, I used an example program which was with the drivers of this scope, and the VISA session is connected to it.However, what do you suggest me?
    Thank you for the help!

  • Reading Waveform (.hws) files from Analog Waveform Editor into LabVIEW causes read errors

    Hi Gang,
    In my application, I want to create files Using the Analog Waveform Editor and then, through LavVIEW, play them out through an D/A.
    I've not been able to read the .hws file into LV.  I've tried two methods:
    Using the Read Waveform VI in the Waveform palette, yields Error -1821.
    I looked in the knowledgebase and found the article "Using the Analog Waveform Editor and HWS Files with Multifunction DAQ Devices"  That recommended using the HWS VIs that are a part of the FGEN driver.  I tried that and get an Error -21515.
    The file I want to read is quite small, only 20 samples.  Is there some limitation on .hws files or the Waveform Editor I'm not aware of?
    I've attached the file if anyone is willing to experiment. I had to change the extension from .hws to .txt to be able to attach it.
    All responses will be appreciated.
    Thanks,
    Roger
    Solved!
    Go to Solution.
    Attachments:
    Havesine.TXT ‏108 KB

    Interesting. I tried to look at your file with the low level read .hws file vi's and I too got error -21515. So I tried the NI-HWS express load.vi and it looks like it worked. I'm not familiar with the analog waveform editor...does it store using the dynamic data type? Oh I converted the dynamic data to 1d array of waveforms using the convert from dynamic data.vi.
    Using LabVIEW 2010SP1 and TestStand 4.5

  • ViClose session not called after Read operation Timeout in an IVI COM driver

    Hi everybody
    I have a small VI sample that is initializaing an IVI COM driver for an OPM instrument, set some parameters into the instrument then is doing a single Read power measurement. My Read operation receives a single parameter called MaxTimeout that user could change depending on his own interest. Inside the Read function I change temporarily the VISA query timeout to user timeout but at the end of Read operation the original VISA session timeout is reverted to its original value before Read operation was called. If the Read operation timeout is long enough for the Read operation to complete ( 100 ms or more) the VI is doing its job and when finished the viClose is called twice for DefaultHandler and for OpenHandler.
    If the Read operation timeout value decrease ( 50 ms) then Read operation could not be completed and a Read Operation Timeout error is thrown from inside this method. This error is then propagated trough Error path until the VI end in a Simple Error Handler. Now on my VI I close all open references to my driver interfaces but I don't know why VISA itself is not calling viClose on the DefaultHandler and OpenHandler as in the case when was no VI error. I could see all these diferences in my NI Spy window and I could post this if that could be of any help. Bear with me cause I am more a C, C++, VB programmer and much less of a LabVIEW programmer. BTW the Error Handling from LabVIEW looks a a little weird and the only sure thing is that I wired in Error In and Error Out path in all my VI calls. What kind of error handling should I perform on the Read method in order for VISA to close properly both OpenHandlers even if there is an error in my VI?
    Thansk
    sorinvalea

    So viClose is not called by VISA after an error takes place in a VI that is calling some operations on an IVI COM driver.
    I discovered that all VI sessions opened trough VI that encountered a timeout error in Read operation and that were not properly closed after VI completed are in fact viClose by the LabView itself when I am closing LabVIEW application.
    So these left over open vi sessions are kept aside by LabVIEW until it closes itself and then clean them one by one by calling viClose on them....

  • Not able to download reader,receiving timeout error

    Not able to download adobe reader, rceiving timeout error

    Bat.guy,
    Are you getting the same "timeout" error?
    Please click on the below link and use the installers from there:
    http://forums.adobe.com/thread/909550 
    I would also advise trying the download with a different browser.
    Please post here if you continue to have issues or if you are getting a different error message.
    Thanks

  • Is the sample rate half with the snd read waveform.vi?

    Hi Guys,
    I plan to use the PC soundcard for data acquiring with the standard LV "snd read waveform" vi. During programming  I found that the sample rate is the half of the adjusted value. For example when I set
      - the format to 8bit mono
      - the buffer size to 11025 byte
      - and the sample rate to 11025
    then the operation takes 2000ms. I would expect 1sec.
    Used system: LV7.0,  WinXP  SP2.
    Does anybody know the reason? I have to use 44100Hz sample rate (44100 "individual" sample per secundum) in my application.
     Thanks,     
        Tomi
    Attachments:
    Panel.jpg ‏18 KB
    Block.jpg ‏15 KB

    To be more precise, that's the time take for the below mentioned finite cycle
    SI config>> SI start>> SI read >> SI clear.
    Its this 'entire' process which takes 1997 milli Sec
    Now, what you really have to check is wheather your 'SI read' function is living up to the sampling rate you have set!
    Check that by putting your 'time elapsed' check for SI Read function alone!
    Hope this helps
    Regards
    Dev

  • Error-1074​126845 ocurred at tktds1k2k Read Waveform.v​i (Hex 0xBFFA2003​)

    I am trying to controll an socilloscope Tektronix 2024B by using a labview program. The oscilloscope is connected to the PC via USB, and the Measurements and Automation Expolorer indicates that the devices works properly (I can actually controll the oscilloscope by using Signal express, and this works perfectly, meaning that the comunication between the computer and the device is okey). The thing is that I want to use a labview program since I want to take simulatneously measurements with the oscilloscope and other devices which are alredy controlled via labview programs.
    I have download the dirvers tktds1k2k from ni.com. The application tkds1k2k SWL Example.vi works properly. However the application tkds1k2k Getting Started.vi, gives me an the error Error-1074126845 ocurred at tktds1k2k Read Waveform.vi, Driver status (Hex 0xBFFA2003). Apparently the devices is correctly iniciallized, the trigger is ok but when it gets  Read Weveform.vi, an error occurs.
    Do you know what is the problem or what I could do to try to find it out?
    Thank you in advance!

    Go through all the links in this search and post if you still have problems.
    Thanks,
    Mathan

  • Timestamps on AI Read waveform

    Hello everyone.
    I am a total newbie to this board and to LabView in general.
    What I have so far is, I am reading in an Analog Input through a NI PXI-4472 card.
    This I have working nicely, even managing to write data to a file.
    I am also reading in GPS time through a ZTec zt1000pxi GPS card.
    What I am trying to do is alter the timestamp on the AI Read waveform to reflect GPS time instead of my PC system time.
    Is there any way to do this?
    I am attaching my cade so far.
    Thanks for any help.
    Attachments:
    Analog input write to file.vi ‏103 KB

    Hi NIquist,
    I appreciate your response.
    I have a few questions for you. 
    How can I get the components of the waveform from the AI Read function?  I have not been able to get the waveform out of the output by itself to feed into the Build Waveform function.
    My next question is how to convert the GPS time to a TIme Stamp that the BUild Waveform function will accept?
    When I try to tie the UTC time from the ZT1000 function to the d0 of the Build Waveform function it gives me an error telling me the source is an unsigned 32 bit real and the sink is an extended. So i put in a "To Extended" conversion node, and it then tells me the source is extended and the sink is Time Stamp and it still won't accept it.
    Any ideas for getting around this?
    Sorry for the beginner type questions, but I really havent been able to find any info on my own for using this ZT1000 card for this, or any other, type of process.
    Thanks a lot.

  • Agilent 2k3k read waveform long acquisition time ( 1 s)

    Hello,
    I am trying to use the NI drivers for the Agilent 2k/3k oscilloscope to read a long waveform (10 seconds) via USB.  No matter what I set the timeout to, it always fails.  I have gone down through the VI tree all the way to the Low Level->Fetch Waveform VI and reduced it to a timeout error.  However, within that VI, it looks like the timeout is being set correctly.
    Any ideas?
    Jack

    I found the bug.  In the ... ~"wait for acquisition to complete" VI, there is no "set timeout" on the read.  It needs to be added, preferably to the same timeout chosen by the user, for long acquisition times to work.
    Jack

  • Problems reading waveform files in MATLAB

    Deal all,
    I acquired signals on 2 A/D channel (using DAQ board M USB-6215) and save them into waveform file using WriteWaveformsFile.vi. But for processing (FFT, elippse fitting, sinewave fitting) I want to use these data in MATLAB. I tried some options like conwert waveform to bin file but I cannot get these data in MATLAB correctly. I also convert waveform data (or data from one waveform) using WriteToSpreadsheetFile.vi, but still I can get correctly data in MATLAB. I am not sure what I'm doing wrong. Thank you for you help on any tip. I use matlab R2009a andLabview 8.5.
    Tomaz.
    Solved!
    Go to Solution.

    Hello, I have waveform file saved and I want use these data to be read in MATLAB. I have problems to correctly save these data to file (e.g. .bin or .xls) to be available in MATLAB. I will try save data from waveform file to measurement file as you suggested. I hope this wil help. Thank you for the tip, srikrishaN.

  • Read waveform file from .mat file and perform filtering

    I have a sample waveform stored in matlab (.mat) and would like to perform various filtering after reading it. I am able to read and view the the waveform on a Waveform graph, but unable to do any filtering.
    Can somebody help suggest a way to read the .mat file, perform low pass filtering and display it on a graph ?

    Hi Lynn,
    Attached is the vi and the sample data .mat file.
    regards,
    Prakash
    Attachments:
    Read MATLAB File.vi ‏58 KB
    sigcor1.zip ‏178 KB

  • Read waveform from FPGA

    We just got an NI PCIE-7851R FPGA board.  I need to do someothing very simple but haven't found yet how to do it.
    I want to read the four A/D inputs at a selected sample frequency, and once per second from my host computer read the resulting samples as four waveforms.
    I see how to read one sample at a timne using the example program but not multiple samples in a waveform.
    Thanks.

    I don't remember seeing an example on how to do this, but what it takes is a memory buffer that the FPGA dumps samples into, and then host reads from.  This is usually a DMA FIFO, but other FPGAs have other memory, like LUTs, DRAM and a several others that can hold values temporarily.
    http://zone.ni.com/reference/en-XX/help/371599G-01​/lvfpgaconcepts/fpga_storing_data/
    http://zone.ni.com/reference/en-XX/help/371599G-01​/lvfpgaconcepts/fpga_transfer_data/
    http://zone.ni.com/reference/en-XX/help/371599H-01​/lvfpgaconcepts/fpga_dma_how_it_works/
    There is some faith involved in that the host gets these samples and you have to assume they are taken at the sample interval you expect.  But running on an FPGA it is much more dedicated than something like Windows and it will do the work the way you asked.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Read waveform from file error: end of file

    Hi,
    I want to to save waveforms from DAQ and then, after the acquisition is stopped, I want to see again that waveforms to analyse my data.
    I tried to do a simple VI in which simulated signals can be saved to a file and can be read drom that file too. This is possible by using a Save Button and a Read Button. The problem is that when the Save Button is OFF and the Read Button is ON the error "End of file" occours, even if I know that there are more data that can be read from the file.
    I read from
    http://forums.ni.com/t5/LabVIEW/End-Of-File-Error/m-p/387817#M193812
    that this could be solved by choosing the option "Reload for each call" for the Read block, but it doesn't seem to work.
    Does anyone have an idea to solve that?
    Thanks
    Attachments:
    waveform write and read.vi ‏71 KB

    First, a suggestion -- since your file name is the same every time, put a single instance of it outside your While loop and bring it into the loop as a "tunnel", using the same wire for all your Case statements.
    I don't understand the logic of your construction.  You have a While loop that never stops.  As long as "Write" is true, it writes to a (new originally?) file, presumably appending at the end, closing the file after the write.  If Read is true, it tries to read the i-th Waveform.  What if there are less than i writes?
    Why not simplify things.  Remove the While loop, remove the Case Statements and Read/Write buttons, and simply do one Simulate Signal, one Write, and one Read (not wiring anything into the Read's Record selector).  Does that work?  If so, then think about how you might extend this to handle multiple reads and writes.  Is there ever a situation when you envision doing Reads while you are also doing Writes?  Isn't it more likely that, at any instance, you are going to be doing only Writes (for example, while generating data) or only Reads (while analyzing the saved data)?  [I'm not saying that you might want to do both simultaneously, but if you don't have to, don't complicate things for yourself].
    Bob Schor

Maybe you are looking for

  • SRM 7.0 - Hide 'Create Memory Snapshot' and 'System Info' buttons in SC

    Dear forum gurus, I have a requirement to hide these 2 fields which appear in the shopping cart wizard in SRM 7.0. The configuration to hide fields only handles header and item fields, and this is a screen field. Presumably this would involve a chang

  • WebLogic Server 6.1 SP 3 DocumentBuilder throws IOException: Stream closed

    Hi,           I have a question about XML processing and error handling, and how the           WebLogic container affects things.           Here's what happens to us. We have a servlet parsing XML using DOM.           The servlet has an InputStream w

  • Why does my BC look nothing like the Tutorials???

    My admin console looks NOTHING like the tutorials. There's no top tabs, theres no icons, theres no description of my website pages...it's very plain/vanilla and very much unrefined. I'm clearly in the wrong area, or there was some update that took pl

  • Undeploy EAR on Oracle10gAS 10.1.2 using ANT

    I am using JDeveloper10g - 10.1.2 on my local machine and Oracle10gAS - 10.1.2 on a remote machine. I am able to deploy remotely using ANT task oc4j_remote_deploy.jar, but UNDEPLOY doesnt work. Anybody has a readymade UNDEPLOY task on a remote machin

  • SharePoint Service Load Balancing

    Hi, I used to install small farm with all services on one App Server. I have question about having multiple App Servers. Can we install/start same the service on multiple app server for redundancy ? If so, how the load balancing is managed ? If that