Best way to stream lots of data to file and post process it

Hello,
I am trying to do something that seems like it should be quite simple but am having some difficulty figuring out how to do it.  I am running a test that has over 100 channels of mixed sensor data.  The test will run for several days or longer at a time and I need to log/stream data at about 4Hz while the test is running.  The data I need to log is a mixture of different data types that include a time stamp, several integer values (both 32 and 64 bit), and a lot of floating point values.  I would like to write the data to file in a very compressed format because the test is scheduled to run for over a year (stopping every few days) and the data files can get quite large.  I currently have a solution that simply bundles all the date into a cluster then writes/streams the cluster to a binary file as the test runs.  This approach works fine but involves some post processing to convert the data into a format, typically a text file, that can be worked with in programs like Excel or DIAdem.   After the files are converted into a text file they are, no surprise, a lot larger than (about 3 times) the original binary file size.
I am considering several options to improve my current process.  The first option is writing the data directly to a tdms file which would allow me to quicly import the data into DIAdem (or Excel with a plugin) for processing/visualization.   The challenge I am having (note, this is my first experience working with tdms files and I have a lot to learn) is that I can not find a simple way to write/stream all the different data types into one tdms file and keep each scan of data (containing different data types) tied to one time stamp.  Each time I write data to file, I would like the write to contain a time stamp in column 1, integer values in columns 2 through 5, and floating point values in the remaining columns (about 90 of them).  Yes, I know there are no columns in binary files but this is how I would like the data to appear when I import it into DIAdem or Excel.  
The other option I am considering is just writing a custom data plugin for DIAdem that would allow me to import the binary files that I am currently creating directly into DIAdem.  If someone could provide me with some suggestions as to what option would be the best I would appreciate it.  Or, if there is a better option that I have not mentioned feel free to recommend it.  Thanks in advance for your help.

Hello,
Here is a simple example, of course here I only create one value per iteration in the while loop for simplicity. You can also set properties of the file which can be useful, and set up different channels.
Beside, you can use multiple groups to have more flexibility in data storage. You can think of channels like columns, and groups as sheets in Excel, so you see this way your data when you import the tdms file into Excel.
I hope it helps, of course there are much more advanced features with TDMS files, read the help docs!

Similar Messages

  • What is the best way to stream sports with Apple TV

    What is the best way to stream sports with apple TV

    Your question is a little too broad. Hard to know what sports you are talking about.
    If you have a newer Mac, you can use airplay to mirror anything on your Mac to your apple tv. Or use the ESPN app.
    But a lot of sports just can't be streamed as they are available, though I bet this year sees a lot of new livestreams on sports on YouTube or Ustream.
    Hugh

  • What is the best way to kill/stop a data load?

    Hi.
    What is the best way to kill/stop a data load?
    I have a data load from my QA R/3 system that is extracting 115.000.000+ records. The problem is that the selection in the function module used in the data source does not work, and the problem was not detected because of the nature of the data on the development system.
    I could kill processes owned by my background user (on both R/3 and BW) but I risk killing other loads, and sometimes the job seems to restart if I just try to kill processes. If I remove transactional RFCs in SM58 the load does not terminate; I only skip one or more datapackages. I have also tried to change the QM-status in the monitor to red, but that does not stop the load either...
    So isn't there a nice fool-proof way of stopping a dataload?
    Best regards,
    Christian Frier

    Hi,
    There r 2 ways to kill the job.
    One is using transation RSMO locate the job and display the status tab double click on the yellow light that is shown on the line total, a pop will come 'set overall status ' is displayed select the desired status that is red and save it. Then return to the monitor page and select the header tab double ckick on the data target right click and then goto 'manage',there should be request sitting there probably with yellow lights , highlight the line with the faulty request click the delete button then click refresh button.
    Second is goto SM37 and click on the active selection and enter the jobname and then click excute the particulr job should appear highlight the jobname then click on the stop iconthat appears on the taskbar( 3 rd from left)
    hope it is clear.
    Regards-
    Siddhu

  • Best way to  back up your data

    Which is the fastest and best way to back up your data in case of any problem ? Still to transfer to an external HD ?
    Thanks

    Hi Ferro;
    Best and simplest way to back up is Time Machine to an external drive.
    I think that any backup plan should alway be to an external drive. If you backup to an internal drive and the Mac fails, what good is your backup then?
    Allan

  • What is best way to reconnect lots of tracks in library?

    From time to time I have clicked on a track only to get the message that the program can't find the track & it asks if I would like to find it. This is usually quite easy to do if you have just one of 2 tracks.
    What do you do if you have hundreds or thousand to reconnect because some file were moved to a different location? I know that if I have files go missing in several different programs I only have to locate one file & I then they asked if I wish to try to find other files in that same or similar location, & all the rest get reconnected. Is there a similar feature in i Tunes for doing this & if not what is the best way to reconnect lots of music tracks?

    All of my music files had been copied to an external hard drive before my PC crashed. I'm not certain what drive letter Windows had assigned that drive since I have had so many. In any event I copied all of the music files from that drive onto the folder Windows 7 calls desktop> music files. I'm guessing that this is a 'C' drove.
    What I think you are suggesting is that copy the files from the external drive to a different drive or partition on my PC, say 'D' drive & see if i Tunes picks up all of my files. Then if It doesn't do so rename 'D' drive to 'E' etc until I find a drive letter that i Tunes remembers. If It does recognize tracks that it could not find won't the tracks that its currently finding no longer work?
    What would happen if I were to tell i Tunes to add any entire extra folder that appears to be missing. I can see that this approach might add more tracks into my library but would this approach result in creating lots of duplicates? I already know that i Tunes does an abysmal job of looking out for duplicates. I have seen on the duplicate lists many tracks that should not appear there. The artists name & song title might be the same but the singer has recorded the same song at different times & the album name & songs duration is different. I have looked at a listing by
    an artist & seen real duplicates that aren't on i Tunes official duplicate list.

  • Best way to transfer internal HD data in Mavericks to Mac with Yosemite ?

    Hello,
    I'm using a 2007 iMac with Mavericks and will be getting a new one which will presumably come with Yosemite installed. What's the best way to transfer all the data from my internal HD on the old system, to the new one ?
    I use SuperDuper to make backups to external HD's, so if I make a bootable copy of the mac HD to an ext HD using SuperDuper, will everything function fine despite the different OS's ?
    Thanks,
    Matrose.

    You can make a bootable copy of your system now, but you won't be able to boot from it with the new computer. They are not usually backwards compatible with the OS. But when you first boot into the new system, use SetUp Assistant to migrate the data from the cloned copy. That will work just fine.

  • Whats the best way to stream videos?

    whats the best way to stream video thru plumtree portal?What all it requires? (technology/application/server/plumtree development?)

    Hello Kuljit,
    For the windows platform you could set up Windows Media services. It can be configured to play all sorts of media files. I created a "radio station" portlet that multiple channels and from the portal I could select a drop down and the station would play that stream. I would make sure that media services are not being gatewayed and that anyone that can see your portal can see the videos. Here is my html that I made a portlet out of: This will not show the video window. You can increase the size of the object to show the video window with controls. Check out MSDN online for configuration of the <object>
    <FORM NAME="streamForm"> <INPUT NAME="btnPlay" TYPE="Button" VALUE="Play" onclick="MediaPlayer1.controls.Play();"> <INPUT NAME="btnStop" TYPE="Button" VALUE="Stop" onclick="MediaPlayer1.controls.stop();"> <select name="musicGroup" onChange="changeStream()"> <option value="">-- Select --</option> <option value="barenakedladies">Barenaked Ladies</option> <option value="pinkfloyd">Pink Floyd</option> </select> </FORM>
    <OBJECT CLASSID="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" ID="MediaPlayer1" height="0" width="00"> <PARAM NAME="Name" VALUE="MediaPlayer1"> <param name="uiMode" value="invisible"> <PARAM NAME="TransparentAtStart" Value="true"> <PARAM NAME="AutoStart" Value="true"> <PARAM NAME="AnimationatStart" Value="false"> <PARAM NAME="ShowControls" VALUE="0"> <PARAM NAME="autoSize" Value="false"> <PARAM NAME="displaySize" Value="0"></OBJECT><script language="javascript">function changeStream(){ df = document.streamForm; if(df.musicGroup.selectedIndex != 0) {  MediaPlayer1.url = "mms://MBRUCELT-W3k/"+df.musicGroup[df.musicGroup.selectedIndex].value; } }</script>
    This works for the latest version of Window Media Player. The mms:// in my script is a call to Windows Media Services. That is the part that should be accessible from outside the portal.
    HTH,
    Michael [email protected]

  • Best way to store lots of tile images

    Hey, In my game I'm gonna need to store probably thousands of tile images. They are all in .png format, and I am wondering the best way to store the image data. I could of course keep them in some folder called images, and then have thousands of files...but then people could jack them, and plus that would be inneficient use of space??? right?
    What is the best way to store them??
    thanks

    Anything can be "jacked". The other possible ways are storing them in some sort of archived file like a JAR or ZIP or GZIP. The only way to even remotely ensure no one will "jack" your images would be to store them in a compressed format which you created. Which would entail creating your own compression algorithms. Have Fun! :)
    Seriously though, I wouldn't worry too much about the images and people "jacking" them. As far as inneficient use of space, I personally wouldn't worry about this either unless your app will be delivered via WebStart or Applet. Then load time could be an issue. You could use lazy downloading though and download the images when they are needed.
    HTH
    Gregg

  • Best way to spool DYNAMIC SQL query to file from PL/SQL

    Best way to spool DYNAMIC SQL query to file from PL/SQL [Package], not SqlPlus
    I'm looking for suggestions on how to create an output file (fixed width and comma delimited) from a SELECT that is dynamically built. Basically, I've got some tables that are used to define the SELECT and to describe the output format. For instance, one table has the SELECT while another is used to defined the column "formats" (e.g., Column Order, Justification, FormatMask, Default value, min length, ...). The user has an app that they can use to customize the output...which leaving the gathering of the data untouched. I'm trying to keep this formatting and/or default logic out of the actual query. This lead me into a problem.
    Example query :
    SELECT CONTRACT_ID,PV_ID,START_DATE
    FROM CONTRACT
    WHERE CONTRACT_ID = <<value>>Customization Table:
    CONTRACT_ID : 2,Numeric,Right
    PV_ID : 1,Numeric,Mask(0000)
    START_DATE : 3,Date,Mask(mm/dd/yyyy)The first value is the kicker (ColumnOrder) as well as the fact that the number of columns is dynamic. Technically, if I could use SqlPlus...then I could just use SPOOL. However, I'm not.
    So basically, I'm trying to build a generic routine that can take a SQL string execute the SELECT and map the output using data from another table to a file.
    Any suggestions?
    Thanks,
    Jason

    You could build the select statement within PL/SQL and open it using a cursor variable. You could write it to a file using the package 'UTL_FILE'. If you want to display the output using SQL*Plus, you could have an out parameter as a ref cursor.

  • HT3847 How is the best way to separate copied MP3 from AIFF files in my library?

    How is the best way to separate duplicate MP3 from AIFF files in my library?

    Zice wrote:
    I want higher resolution then afforded in the original download.
    Then why are you converting iTunes purchases?
    You cannot get higher resolution by converting  the original. This goes for converting anything, not just iTunes purchases.
    Creating an AIFF will simply make the file 10 time as large with zero increase in quality.
    Don't really want to debate value of creating the new version.
    Agreed.
    You are simply wasting time and drive space converting iTunes purchases to AIFF.

  • I recently got the iPhone 4s, but my iPod has a lot of apps with a lot of data on them and don't want to start over. I already synced my iPhone from the computer that had all my apps from my iPod, how do i transfer the data over, the other apps did.

    I recently got the iPhone 4s, but my iPod has a lot of apps with a lot of data on them and don't want to start over. I already synced my iPhone from the computer that had all my apps from my iPod, how do i transfer the data over, the other apps did. But some reason the app Clash Of Clans did not. Thank you.

    If I wiped my phone I wouldn't have the contacts on my phone to send to my self.    I would need to take just the contacts from my back up. I would have to do this through iTunes and I don't see how I can just extract the contacts only from my back up. From what I can figure out it is all or nothing

  • Best way to upload a large 25 minute video and where to?

    best way to upload a large 25 minute video and where to?

    Just a couple minutes surfing - YouTube only allows 15 minute videos from general users -- to upload larger apparently you have to be a trusted long time source.   There is also a restriction on the file size.
    YouTubes help section should give you all the details.
    I don't watch online videos - so I just used a query in ASK.Com to get some quick tips.

  • Best way to import a 200GB single dump file

    I was given a 200GB size single dump file containing full export of a schema. can any please tell me whats the best way to import such a huge dmp file. I need to get this import done asap in QA for testing which will let us solve some production issues. step by step instructions if possible would be really helpful for me to complete my task asap.
    Thanks in Advance,
    krim.

    Hi Krim,
    Our dump files normally are never that big so that maybe you could face some other issue here.
    If your dump was a full DB schema dump like:
    $ exp username/password file=full.dmp parameter-list
    then the import should first drop the user in the target system
    SQL> drop user username cascade;
    this is to drop the existing schema before importing
    SQL> Create user according to your reqs
    $ imp username/password file=full.dmp full=y commit=y ignore=y
    Don't know which env you have to run this, but in our case for instance using an 8 X 1.6GHz Itanium2 Montecito a 14 GB dump takes about a couple of hours to import (with an EMC Clariion disk array). It's also true that Oracle imp (did you use exp or expdp ?) is not able as far as I understand to achieve parallelism like impdp where in case of multiple huge tables the import time could be sped up.
    Another thing you may want to check is if you have archive logging on, since the import will log there consuming time.
    Cheers,
    Mike

  • I have created a user in oracle BPM but it is not reflected in system-jazn-data.xml file and I am unable to authenticate that user to create context as needed in workflow client

    I have created a user in oracle BPM but it is not reflected in system-jazn-data.xml file and I am unable to authenticate that user to create context as needed in workflow client

    weblogic credentials are different.
    and using thode credentials I am able to login to weblogic server
    the users I am talking about is the process users defined in realm.
    in realm those users are defined as Default authenticator and OID authenticator.
    and I am trying to authenticate one of those users defined in realm using java api so that I an access a process defined In Oracle BPM 11g

  • Does resetting the system management controller on a MacBook delete any data, like files and pictures

    Does resetting the system management controller on a MacBook delete any data, like files and pictures

    No,.
    You can see the various steps to fix what ails your Mac here
    Step by Step to fix your Mac
    I've labeled which ones can certainly erase your data, they are at the bottom and adequatly warned.

Maybe you are looking for

  • Want to become a dedicated Mac person but need convincing GO

    Ok now since i was little i was a windows user and still am to this day, But recently i got a new job and we use 27" Macs and im starting to really want to buy one but here a few things, Seeming i use my windows pc as a server i have a couple hundred

  • How do you display the now playing song title in miniplayer?

    I can't seem to change my preferences such that I can see the song titlle of the current song playing in my miniplayer.

  • Final cut to motion

    am trying to "send to motion" a sequence (actually just audio) from fcp to motion and keep getting a "general error" message and motion wont launch. help please....

  • Print many pdf from outlook i get error

    When i have get mail and with the mail i have get 10 or moore and i will print all of the. i get a error The error is: there was an error opening the document. file not found. How can i print all of the pdf dokument with one time. have innstalled ado

  • Out of the BLUE no WiFi

    1st Generation Airport Extreme. The Green light is on and I can connect to the internet via ethernet from back of device, but out of the blue none of my devices or my laptop can find my Airport Extreme from available WiFi lists. I have done a soft re