Stream to export waveform vi

Hello, I am a novie LabVIEW programmer so please be patient
I have a basic continuous data acquisition program. I want to use the export waveform to spreadsheet VI but I need data to be streamed to disk during acqusition. This VI has it's open file IO handling so I can't just put it in a while loop and wire my waveform array to it. How can I modify it so I can stream to disk? Or is there an alternative way of achieving this?
Kind Regards
Adam

Hey Adam,
So in general when you want to write data to disk as it's acquired you follow this template of opening the file, writing to it continuously, then closing it.
If you look inside the export waveform to spreadsheet function you'll see that they're opening, writing, then closing. So, if that function does exactly what you need then you can just use its base code and move the open and close functions outside of your while loop. If it doesn't work exactly like you want then you can customize things more by starting from the base model above.
--Ryan S.

Similar Messages

  • Getting rid of the date stamp in "Export Waveform to Spreadsheet.vi"

    Probably a very simple and stupid question, but how do I get rid of the date stamp while keeping the time stamp in the "Export Waveform to Spreadsheet File.vi"? I may have found the place on the block diagram, but I'm not entirely clear how that vi works.
    Thanks,
    Joe

    Never mind, I've figured it out.
    For the curious, it was a matter of altering the "Waveform to Date Time String.vi" in the "Export Waveform to Spreadsheet.vi". All you need to do is stop it from concatenating the time string with the date string in that particular VI. I hope this helps some of my fellow newbies.
    Sorry to waste the rest of your time.
    Thanks,
    Joe

  • [EWS][FastTransfer][MS-OXCFXICS] Question about paging in the Fast Transfer Stream after exporting message and the meaning of the config in the previous section of the stream.

    Hi, all.
    First, I want to construct a fast transfer stream by programming not using the export item's stream and to import the stream to the folder by posting import request in EWS.
    So, I export the item by EWS and investigate the exporting stream's struct by reading the [MS-OXCFXICS].pdf. And I can parse each MAPI property, marker, meta-property from the stream.
    I find that the stream is made of many pages, most page's length is 0x7BC0, some are less then 0x7BC0. And in the previous section of the stream, there are some configurations. So the questions are:
    1. What is the paging rule? or What is the principle of the paging? Whether a complete propvalue/marker(ref from [MS-OXCFXICS].pdf) must be contained in a page except some binary type?
    2. Why the page's binary length is 0x7BC0? Or where is the configuation about paging length?
    3. The stream is made of the FXOpcodes and the subbuffer about the FXOpcodes, and I find the mean of the FXOpcodes:
    internal enum FxOpcodes
    None = 0,
    Config = 1,
    TransferBuffer = 2,
    IsInterfaceOk = 3,
    TellPartnerVersion = 4,
    StartMdbEventsImport = 11,
    FinishMdbEventsImport = 12,
    AddMdbEvents = 13,
    SetWatermarks = 14,
    SetReceiveFolder = 15,
    SetPerUser = 0x10,
    SetProps = 0x11
    and in the stream there are 4 part(after I parse the stream):
    A. OpCode:Config, value:0000000001000000
    B. OpCode:IsInterfaceOk, value:010000000703020000000000C00000000000004600240080
    C. OpCode:TellPartnerVersion, value:000F91838417
    D and follows is: OpCode:TransferBuffer, Count:31680
    So 
    a. What is the OpCode:Config value meaning?
    b. Some parts of The OpCode:IsInterfaceOk' value is the IID_IMessage("00020307-0000-0000-C000-000000000046"), What is other parts meaning?
    Thanks in advance for any ideas.

    Hi Haiyang,
    Your questions are not covered by the Open Specification documentation and this is documented in [MS-OXWSBTRF] — v20141018 section “1.3 Overview”.
    The upload and export data stream is an opaque format that only needs to be understood by a server implementation. The client only serves as a repository for the opaque data stream so that it can be uploaded to the server at
    a later time.
    You made good progress in interpreting the buffer using other documents. Why do you need to be able to parse the data? Please describe your project in details and I might submit a suggestion to document the layout of the data stream,
    if your project justifies it. You can send the description directly to me.
    Thanks, Vilmos

  • [EWS][FastTransfer] Question about paging in the Fast Transfer Stream after exporting message and the meaning of the config in the previous section of the stream.

    Hi, all.
    First, I want to construct a fast transfer stream by programming not using the export item's stream and to import the stream to the folder by posting import request in EWS.
    So, I export the item by EWS and investigate the exporting stream's struct by reading the [MS-OXCFXICS].pdf. And I can parse each MAPI property, marker, meta-property from the stream.
    I find that the stream is made of many pages, most page's length is 0x7BC0, some are less then 0x7BC0. And in the previous section of the stream, there are some configurations. So the questions are:
    1. What is the paging rule? or What is the principle of the paging? Whether a complete propvalue/marker(ref from [MS-OXCFXICS].pdf) must be contained in a page except some binary type?
    2. Why the page's binary length is 0x7BC0? Or where is the configuation about paging length?
    3. The stream is made of the FXOpcodes and the subbuffer about the FXOpcodes, and I find the mean of the FXOpcodes:
    internal enum FxOpcodes
    None = 0,
    Config = 1,
    TransferBuffer = 2,
    IsInterfaceOk = 3,
    TellPartnerVersion = 4,
    StartMdbEventsImport = 11,
    FinishMdbEventsImport = 12,
    AddMdbEvents = 13,
    SetWatermarks = 14,
    SetReceiveFolder = 15,
    SetPerUser = 0x10,
    SetProps = 0x11
    and in the stream there are 4 part(after I parse the stream):
    A. OpCode:Config, value:0000000001000000
    B. OpCode:IsInterfaceOk, value:010000000703020000000000C00000000000004600240080
    C. OpCode:TellPartnerVersion, value:000F91838417
    D and follows is: OpCode:TransferBuffer, Count:31680
    So 
    a. What is the OpCode:Config value meaning?
    b. Some parts of The OpCode:IsInterfaceOk' value is the IID_IMessage("00020307-0000-0000-C000-000000000046"), What is other parts meaning?
    Thanks in advance for any ideas.

    OK. Thank you.
    Today I build a stream with a paging rule as below:
    1. Keep each page's byte length is 31680.
    2. Make sure a complete property value in a page except binary type property whose value length is larger
    than 31680.
    And it can work very well when import the stream to the folder by EWS.

  • How to export waveform data into text file

    Hi..
        I am trying to export my waveform graph data into write spreadsheet file. When running the proram, I am getting graph values (values in a matrix) when checking with the probe. But once I save it to a text file, the values recorded are just zeros. I have attached the text file along with this. Could anyone please tell me why the graph data is not recorded in the spreadsheet? I have extracted the Y component of the graph and then wired it to the write to spreadsheet function. It seems like the labview is getting the data.. but now the problem is how to get the data out of labview?

    Please find the attched image of the whole program. I tried running the program after removing the array to matrix but still I am not able to export the graph values to spreadsheet. The program as a whole is working as I am able to display the oscilloscope graph into the waveform graph but I am not able to export the values. When I tried using probes, I am getting differnet matrix values till the end of the connection given to 'write to spreadsheet' but not able to export the values. The second image shows the write to spreadsheet file inside the while loop as i thought it will reduce the memory.. but it is still not working...
    Attachments:
    Scanner complete program.jpg ‏713 KB
    full scanner program 2.jpg ‏664 KB

  • Stream Huge, exported QT movie of Keynote Presentation?

    I built a Keynote business presentation @ 1024 X 768. There's a lot of text to read and fine visual detail, so the size needs to be big. The slide presentation is 1 1/2 hours in length. The Keynote file size is 180 MB.
    Due to inconsistencies with Keynote 's export functions to Quicktime, I used ScreenFlow to "capture" the Keynote presentation which I then exported as a Quicktime movie. The size of the movie, however, is *2.7 GB* -- pretty darn big... too big for Youtube.
    I need to upload this and four other QT movies of about *1.3 GB* each, for streaming or downloading. Does anyone know of a web video service/site that allows one to upload, store and stream videos of extended length and large file size?
    I've thought about exporting these as WMV files too, to cover all the bases, however, a friend suggested exporting the Keynote presentations as *Flash Video* because it streams more easily to both Mac & Windows platforms.
    Suggestions?

    Your problem is that while on a monitor, you can see the entire picture. Any DVD player connected to a standard television is going to show, at most, 90% of the image...some may only show 80%. This is due to something called Overscan on televisions. To account for this overscan, you have to make sure that as you're creating your presentation, you have nothing near the edges.
    A good rule of thumb is to create an area that's 80% of the size of your presentation (in 4:3 resolutions, widescreen, you only have to worry about the right and left) and, as you're creating, keep dropping this shape onto your presentation slides to make sure you're inside it. Then, you'll be pretty sure that even on the worst televisions, all you information will show.

  • Problem while wrtting the content to output Stream for export details

    Hi,
    I have to export details from multiple VO. so i put one submit button and write the code to prepare the csv file content and put it in to output stream. The exported csv file contains all the details as expected, but the end of the file we have whole xml content of the file. I could not identify which really make this problem.
    Please give your suggestions....
    Thanks
    Purushoth M

    Hi, Nikhil
    You can USE a Short Cut Key Ctrl + Shift + F9 and than select the type in you want to download in your case you will select Spreadsheet
    Regards,
    Faisal

  • MPEG Stream Clip Export Settings

    Happy New Year!
    I've been working on a WWII documentary.
    You guys turned me onto a really nifty piece of software which I use occasionally; MPEG Stream Clip
    It's great - just wanna make sure I'm using the right export settings for re-importing a piece of film back into FCP.
    I assumed it was best to export as a Quick Time File rather than a DV. Why? Because it seems the DV export puts compression on the clip. In 'Options' I also choose Apple DVCPRO-NTSC
    Take a look;
    http://www.locationstudio.net/Export-QT.jpg
    http://www.locationstudio.net/100-Per-Cent.jpg
    http://www.locationstudio.net/DV-DVCPRO-NTSC.jpg
    http://www.locationstudio.net/DV.jpg
    Thanx
    Mike

    *just wanna make sure I'm using the right export settings for re-importing a piece of film back into FCP.*
    If you're working in a DV NTSC timeline then you are doing it right. the Streamclip option for dv creates a dv stream which is not the same thing as a DV NTSC Quicktime Movie.
    rh

  • Export Waveform Chart Plots data to spreadsheet file based on X scale (Time Stamp) min and Max Value

    Hi All,
    Query 1:I am trying to export the Chart data(Total plots 6 ) only between the X scale Min Time and Max time limit .
    But couldnt able to achieve that progammtically.
    is their anyway to achieve this.
    Query 2:Also ,In chart their is an  right click option to export data to excel,but when using this option the data get exported in its own temporary name(iv*****.tmp),i dont want this to happen.Instead the data expored using that option should be written in a file specified by me(everyting should happen in backend)
    pls suggest the best solution for above 2 queries.
    Thanks,
    Selvan.

    Hi selvan,
    1) read the chart history (or better keep a history in your own shift register) and limit the data to the XMin and XMax values (read all those chart settings from its properties). Then save the data using WriteToSpreadsheetFile…
    2) The right-click option is as it is. When you need different behaviour you need to program your own routine. Once you finished query 1 it will be no problem anymore to also solve query 2…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Can you help with WebQT stream, Muxed, Export to dv, to iMovie

    Can you help?
    Downloaded several QT video clips, muxed.
    In QT Pro (7.1.2), joined several clips into one QT movie.
    Exported to dv, to iMovie.
    Problem: 1st imported clip plays ok, but remaining joined clips won't. iMovie recognizes entire time length of joined clips, but they just won't play.
    Ideas?
    (P.S. I record audio with Audio Hijack Pro (http://www.rogueamoeba.com/audiohijack/) from original QT clips, then paste into iMovie. This works very well.)

    I found an answer to my issue but I have no idea why it was fixed. A post on another site suggested opening up Garage band and playing a few notes on the on-screen keyboard and them closing the application. What ever settings that invoked, it worked and I can now import video from my original Canon ZR !

  • Stream Digital waveform to disk

     I need to constatnly monitor a set of digital outputs during a vibration test for any false alarms.
    I am using a Measurment Computing USB-1024LS (because that's what we have).
    I want to stream eight alarms to disk like a chart recorder with a (seperate if need be) time index of any changes that occor.
    I have been experemening with the Write Waveform to File and Export Waveform to Excel vi's but neither oen really gives me what I want.
    The Write Waveform to File writes a file that I can not use because I do not know what format it is in.
    The Export Waveform to Excel sort of works but the time stamp loses resoultion, and it puts an empty line betwean each reading.
    What is the best way to accomplish tihs? 

  • Export digital waveform+labview

    Hi to everyone...I'm a newbie with labview, and I want some help for the beggining...Well I'm working on a project and for start I must use an arbitrary signal and an oscilloscope so as I can see the the graph of it(for simplicity I used a sinus in the beggining...)and then I must use an A/D converter and the digitalized output must be saved in a .txt file so that I can read it...So I wired the sinus with the A/D converter but then I cannot make the output of it compatible so that I can save it...I used the component "export waveforms to spreadsheet file.vi" but it says error diffent type of data you cannot wire a "Digital waveform" with the input of the file "1-D array of waveform(DBL)"????I used and some other components for saving in a file but it didn't go better...What did I do wrong???Please if anyone can help me...I would appreciated!!!
    Solved!
    Go to Solution.

    Hi again...I want some help...Last time I sent you "my_main.vi" file and told you that had a problem about making time to be correct in the .txt file...I haven't solved it yet, although I tried a lot to find how I can change this the txt. Anyway for now what concerns me most is that although the gragh(with the formula i use) i see in the front panel is correct when i take the data from the .txt file and paste it to a .xls file and making a graph it seems that there are pulses of the same amplitude before the visible signal i see in my front panel...I couldn't understand why this was happening but after a while i put the same formula in a grahp calculator that i have and saw that the previous pulses are not of the same amplitude, they just appear to be so because the amplitude that is set to the component isn't enough to show their whole amplitude...so they are been cut off and seem to be the same...So i tried to change the values at the x-axis but I didn't make it.The program holds some certain range(0-4) that I had initially set to it...At the bottom line I'm facing a problem to appear the rest of the graph in the component's output, and also to fix the phenomenically wrong pulses to my .txt file...Please I would appreciated if anyone can help me...Im sending you all files to have a picture of wht's going on...
    Thank you for your time...
    Michalis V.
    Postgraduate Student
    Department of Informatics and Telecommunications
    National & Kapodistrian University of Athens  
    Attachments:
    my_main.vi ‏20 KB
    results.txt ‏154 KB
    samples.xls ‏428 KB

  • Waveform streaming and waveform scripting - Mutually exclusive?

    Hello All,
    I was looking at doing some tricks with the streaming capabilities of the new PXIe-5442 plus NI RAID extension. Is there a way to script multiple waveforms together if the total sample size exceeds the hardware capacity of the AWG (in other words can one of the waveforms be stremed to the memory) ?
    If not are there any scripting or sequence "type" abilities that allows multiple waveforms be stored off board and let each waveform be hardware triggered (load, wait for ext trig, run waveform1, loop through first/last eight samples, wait ext trig, run waveform2, etc..)?
    The looping functionalities are less of an issue with what is essentially a 1TB AWG but the triggering still poses a problem.
    CVI examples are preferred but any example that shows the hardware feasibility exist should point me in the right direction.
    Note: In a perfect world, I would to see a scripting solution that would allow different our experiment types to be more easily executed within the same project.
    Thanks in advance.
    Solved!
    Go to Solution.

    Hi,
    You can do Waveform Streaming and Scripting in the same session.
    To Stream to a waveform in script, you would need the streaming waveform name.
    An example scenario is where you want to configure your board for 3 different waveforms (WfmA, WfmB and Streaming Waveform).
    You can download WfmA and WfmB using "niFGEN Write Named Waveforms" and name the waveforms accordingly.
    e.g., niFgen_WriteNamedWaveformI16 (vi, "0", wfmA, numPoints, wfmData)); /**Notice that these names will be used in script******/
    We cannot assign name directly to a streaming waveform, however we can get information from the driver about the name it set to the streaming waveform.
    Streaming Waveform:
    1) Allocate Streaming Memory using niFgen_AllocateWaveform function
    2) Pass the "Waveform Handle" output of niFgen_AllocateWaveform function to "niFGEN Streaming Handle" attribute
    e.g.,
     checkErr(niFgen_AllocateWaveform(vi, VI_NULL, streamingWaveformSize, &wfmHandle));
     checkErr(niFgen_SetAttributeViInt32(vi, VI_NULL, NIFGEN_ATTR_STREAMING_WAVEFORM_HANDLE,
              streamingwfmHandle));
    3) Fill the Streaming Memory Buffer with data using niFgen_WriteBinary16Waveform  and Streaming Waveform Handle
    4) Then read the attribute "Streaming Waveform Name". You can use this name now in script.
     niFgen_GetAttributeViString (vi, "0",  NIFGEN_ATTR_STREAMING_WAVEFORM_NAME, 512, streamingwfmname);
    To generate these sequence of waveforms, a sample script would be:
    script myscript
    generate wfmA
    generate wfmB
    repeat <repeat count>
    generate <streamingwfmname>
    end repeat
    5) Download the script using  niFgen_WriteScript function
    6) After you start the generation, inside a while loop continuously monitor the "Space Available in Streaming Wfm" and transfer the data using "niFgen_WriteBinary16Waveform  and Streaming Waveform Handle.
    I have a sample application in LabVIEW, I can post it if it would help. Let me know if I am not clear on anything....
    Thanks,
    Kalyan
    Kalyanramu Vemishetty
    Automated Test Systems Engineer
    National Instruments

  • How to save multiple waveforms to excell spreadsheet

    Hi Everyone,
    So I just got a new project in lab which is to use our new DAQ board(NI USB 6341) to read a voltage from 5 PMTs.  I'm new to labview, and am struggling quite a bit but here's what I've done and would like to accomplish:
    My example today uses two channels sampled at 1K.
    1.Interface with the deivice and create a Task to measure from more than one channel. -Complete
    -In my example code I have the sampling rate at 1k and N samples at 100.  Eventually I would like to sample at 100Khz. What is an appropriate N samples?
    2. Generate Labview code that will continuously take data untill I tell it to stop and bring each channel to its own tab delimited column on the write out file.
    I cannot get step two work correctly.  My understanding was that the DAQ assistant in my example outputs a 1D array of waveforms and that "Export Waveforms to Spreadsheet file" VI would read each element as its own array but I cannot get it to do that.
    3. Graph in real time the two channels 10 seconds at a time. I.E I want it to continuously have a 10 second window([1,10],[2,11]...[101,111]) etc. so that way I know the current run time for sampling and I can see the current events.   This is a tricky situation because I want each to have their own plot and I haven't found a good way to use the register to append new data without eventually running out of memory.  The other issue is that when I append the data it shows from 0 seconds to my current time, I would like it to show me the waveform in time as discussed above.
    If I could get some help on either of these two fronts, I would be immensely greatful.  Thank you so much for your help, and for reading this
    Best,
    -Joe
    PS- Attached is my code.  Give it a run and see what it does to understand things a little better please.
    Attachments:
    Read Voltage.vi ‏60 KB

    Okay so the charts ended up working out nicely if I wanted to sample at 1kHz and have samples to read=100
    But If I now up my sampling rate to 100kHz and 25k samples to read for 5 channels I immediately receive the error message:
    "Attempted to read samples that are no longer available. The requested sample was previously available, but has since been overwritten.
    Increasing the buffer size, reading the data more frequently, or specifying a fixed number of samples to read instead of reading all available samples might correct the problem."
    I guess my first question, would be what is happening that is making the VI crash right away, the DAQ board can handle 500KHz across all channels so that is not the issue, how can I create my VI to handle this amount of data?
    Attachments:
    Read Voltage.vi ‏94 KB

  • Simultaneous analog and digital waveform read with PXIe-6361 and BNC2120 ?

    Hi there,
    I am trying to collect both analog and digital signals from a PXIe-6361 linked to a BNC2120, using the attached VI. I am running Labview 2011 64bit. This is the first time I am working with digital input. On the 2120 board, I have the digital input BNC cable connected to User Input 1 and wire between the screw terminal of UserInput 1 and the P0.1 (Digtial I/O) screw terminal.
    I have two questions related to this:
    1) When I try to run the VI in its current state, I get the following error:
    Error -89137 occurred at DAQmx Start Task.vi:3
    Possible reason(s): Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
    Property: RefClk.Src
    Source Device: PXI1Slot2
    Source Terminal: PXIe_Clk100
    Required Resources in Use by
    Task Name: _unnamedTask<6>
    Source Device: PXI1Slot2
    Source Terminal: None
    Destination Device: PXI1Slot2
    Destination Terminal: RefClockInternal
    Can anyone point me in the right direction for troubleshooting this?
    2) I would like to combine my regular waveforms and the digital waveform into one array which would then be written to file. I can't figure out how to combine the two different waveform types...can anyone give me a hint on this?
    Thanks for your help,
    Claire.
    Attachments:
    Export Waveforms To Spreadsheet File (1D)_wo extra line.vi ‏33 KB
    Multi-Device Synch-Analog Input-Finite Acq-Analog Start_Claire_wDigitalin.vi ‏105 KB

    Hi ClaireJ,
    Sounds like a reference clock conflict. This KnowledgeBase (KB) talks about this error when using simultaneous sampling. Also, might want to check the device routes in Measurement and Automation Explorer (MAX) as discussed here. Finally, if you are routing your PFI line over a RTSI connection, this error can occur. This KB discusses it.
    As to your second question, this post should help.
    Bill E. | Applications Engineer | National Instruments

Maybe you are looking for

  • Check if a user has a specific role

    Hello, Is it possible to check if a user has a specific role in MII 12.0? For example if the user has the role "xmii Developers" I would do something more in a transaction than if the user doesn't have this role. Thank you for your help. Regards, Mat

  • FCP X hanging when loading an event

    After my external HD got disconnected while editing, I rebooted the program but FCP X is just hanging on the start up at 'loading "xxx" event' What can I do? Is the event corrupted?

  • How to run applications in visual j++ 6.0

    Hi, I am putting my code below. I would like to get some help on how to run an application in visual j++. I could build and run this, but the problem is that i am not able to view the result. Whereas the same program when run on the command prompt wi

  • Desperately Need Help - How to cancel jobs other than SM50

    Hello, I am a BI analyst.  I have a job that is loading data and cannot seem to get it to stop loading to the PSA. I is a BWREMOTE job loading data to the 2LIS_03_BF datasource. I went into SM50 and keep cancelling with core/ without core, but they j

  • Copy / Paste Same Button on Many Pages

    I have to copy & paste a simple button on every page of a lengthy document. (Hundreds of pages.) Is there an easy way to paste the button in the same place on every page, or do I have to do it manually, over a very long period of time? (Also, is it t