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.

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

  • 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

  • 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

  • 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.

  • 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

  • 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!

  • 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

  • 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

  • TDM Reading Waveform Length

    Hello,
    I do have a problem working with tdm files.
    There is a very big number of tdm files (each has a size of ~1.4GB) that I want do analyse. Every file consists of 16 Channels. To  process the files without getting an out of memory error I want to read subsets of the files and therefore I need to know the waveform length of each channel. But even trying to read the waveformlength (VI Get Properties (Channel)) produces an out of memory error. I do not understand this, since reading just the length should only return an integer value.
    What should I do?
    Christian

    Hello,
    is the error also with small data files? Can you attach your VI please? With which version are you working?
    Thanks,
    Rebecca Fox
    Applications Engineer
    National Instruments

  • 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

  • Write waveform timestamps with data in TDMS file

    Hello,
    I am attempting to write data from an array of waveform data derived from a multi sample DAQmx acquisition, but I have found where I have used the get date / time function within my while loop passed to a TDMS Write in series with another being passed the waveform data, that I have many more data points than timestamps, as I am getting a timestamp then the list of sampled points.
    I am looking at using the timestamp data from the waveform, but I'm not sure how to make this work.  Attached is an example where I have attempted this, but just managed to obtain mismatched data types.
    Could anyone please offer some advice on how to get the following structure in my file:
    timestamp of sample | channel 1 sample | channel 2 sample | .... | channel N sample
    Thanks
    Dave 
    Solved!
    Go to Solution.
    Attachments:
    testMultiWaveformLogging.vi ‏24 KB

    I'm not quite clear about your use case in the attached VI. However, you should give input of channel names to the 2 "TDMS Write" nodes since they have different type of raw data.

Maybe you are looking for

  • How can we bug Apple to enable temp readouts?

    I've read somewhere that Apple has said that they will enable temperature readings in the new Macbook Pros if there is enough interest. How can I express my interest to them?

  • Why is the cloning and healing tool in lightroom 5 no longer showing the stamp where it is replacing from?

    When I use the cloning and healing tool it used to show a stamp indicating where it was replacing from. It suddenly stopped working. I can still remove spots but cannot move it around to see where I could use alternate space to clone or heal.

  • Can't download or install new version of firefox

    I use 64-bit windows 7 os in Dell inspiron 15R laptop. My firefox browser was up-to-date until a couple of days before. Then soon it started crashing. No way I could sustain a window open for more than a few seconds. (If i reboot the system it may la

  • Multiple Deployments During Single Maintenance Window

    I have a maintenance window that runs from 10PM to 4AM daily. I have three deployments with deadlines during that time. I'm also using the default restart times of 90 minutes and then 15. One of them runs at 11PM, the next at 1AM, and the last at 3AM

  • Question for drag'n'drop...

    Hi, I am not sure whether my BlackBerry Pearl is the 8100 or 8200 series--I bought it refurb with no booklets or anything. It came with various cords, like a USB cord and a Power Cord, though. Anyway, I hit up the http://na.blackberry.com/eng/service