Read from tdms on realtime

Hi,
I'm using the example code of "TDMS-ContAcq-IntClk.c" from the "DAQmx ANSI C"
My question is how can I read and analyze the data on realtime and on offline.
any example code will help me alot, thanks!
My setup information:
Hardware: NI 9234
NI-Daqmx: device driver 9.4.0f5 
Windows version: XP
Language: Qt (C++)

Hello Simon,
     Hey this seems like a interesting and potentially difficult problem,   May I ask for some clarification?
     When you say analyze the data  on realtime  I am wondering if you mean 1 of a few things?   
     First you can always analyze the data on the computer once the data  is collected you can process it on your computer with LabVIEW code.
     Second,   Where you are talking about analyzing data in real time are you talking about using a Field Programmable Gate Array  (FPGA)?  If that is the case you need to make sure the card is plugged into a Compact RIO Platform that has an FPGA onboard. . .  in such a case you can do analysis on the FPGA before the data ever gets on your host PC.  If this is what you were hoping please let me know.  As for example code.   I suggest you continue to browse examples in DAQmx folder and feel free to save the code and modify as you please.  Depending on what type of anaylsis I would also look for similar type example code for the analysis.
     If either of the precious two do no help. . . please let me know as well so I can assist you further.
Dan

Similar Messages

  • Read from a file on realtime basis with time stamp

    Hi,
    I want to read from a .txt file having two columns separated using tab delimiter on a real time basis. I am trying to buld a temp data logger. Also I have multiple senors to take input from. I need to have a select button on front panel and want the graph to be displayed for that senor only. I have around 20 temp sensors. I need to select which temp sensor graph is currently displayed . please help!!! Also how can i attach a file to the messages I post here!!! Any help would be greatly appreciated..
    Thanks in advance
    Ratnesh
    Attachments:
    test.vi ‏29 KB

    The stack of buttons is simply an ARRAY of boolean controls.
    Your approach with multiple cases is a dead end. Forget it when the number of cases is larger that a few.
    After a look to your data file, I have a few questions/comments:
    1/ Is there any reason not to process the data BEFORE storing them in a file ? That is to say in a REAL real time basis ?
    2/ instead of using the military time format, which requires some preprocessing before storage, and some post processing for reading the data, why don't you use a more convenient format ?
    3/ There are five columns. Are columns 4 and 5 for sensors 3 and 4 ?
    4/ The temperature data seem to vary a lot within only 20 secs. Is this normal ? Or is this the result of strong noise ?
    Attached is a vi which show how to read sensor 1 against time. I think you will succeed in embedding it in my previous vi. If not, that means simply that you really have to spend more time studying LabVIEW basic programming techniques. You are lucky there since a/ you have a project, b/ you found NI forum to get answers to your questions
    Happy new year (christian time format)
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Get sensor data.zip ‏16 KB

  • Integrated Planning - trying to load data from basic to realtime cube

    I have created a mulitprovider for my basic and realtime cube, and trying to copy data from basic to realtime using standard copy function in IP. It is not erroring out but data is not getting copied either. Both cubes having exactly the same structure. I can do a export datasource or a BPS multiplanning area..but I need a solution in IP..Any help would be appreciated...Thanks much..

    Infoprovider --> Multiprovider
    Agg Level --> Selected fields need to be copied
    Filter --> None selected, wanted to copy as is
    Pl. Fnc --> Standard Copy.
                    char usage: Selected infoprovider for 'changed'
                    to parameters: selected all key figs ( percent and amount)
                    from and to values: Basic to realtime
    Let me know.

  • When I read from a Keithley 2612, I lose 3 numbers of precsion

    Hello,
    When I read from a Keithley 2612, I lose 3 numbers of precsion.  When I connect a probe to the Keithley driver output I can see a current measurement of 0.000005051 uA.  This output is wire to a "Merge Signalsbox" and then to a "Write LabVIEW Measurement File". But when I look in the excel file there is only 0.000005 uA.  Does anyone know how I can get all of the digits into the excel file?  I am using LabVIEW 8.2.1.
    Thanks,
    Gary

    Hi Gary,
    Are you using any other VI's in this application?  Are you using the write to measurement file to write to a TDM file and then passing that to Excel?  If you probe the input to the write to measurement VI is the data truncated?  LabVIEW usually converts to scientific notation.  Do you have your data formatted to not use scientific notation?  Also, you may want to check the significant digits setting in Excel, as it may be cutting off your data.
    Nick Keel
    Product Manager - NI VeriStand and Model Interface Toolkit
    National Instruments

  • Read from Measurement File Express VI - Time information

    I need some assistance with a small problem with building reports of collected data. I don't see it very relevant, but I'm collecting data from several modules on a 9074 cRIO. I'm not using the cRIO the way it is intended, but it is perfect for my needs. Anyway, I'm collecting the different types of data in RT, then using the express VI "Write to Measurement File" with TDMS option selected and one time column only selected. Also one header, etc. Nothing fancy.
    In another VI I want to use this collection of .tdms files to create an Excel report. Everything is working good however I need a time column for reporting my data. When I view the .tdms file using Excel Importer, the time column is there and perfect, with the next column a relative time (or iteration) and then columns with the signal names at top and all the data below. Perfect.
    I'm similarly using the "Read from Measurement File" Express VI to get the data back the same way it went in. I have everything in it's correct place on building the Excel Report, but I haven't been able to find any way to include the first time column in my import. I can use "Get Attributes" Express VI to get the signal names from the read, but that's not going to help with the time data. How is it possible that Labview allows to put the time data there, but not retrieve it? I'm aware of the warnings that Timestamps aren't supported by TDMS file format vs LVM, but there MUST be a way to retrieve that time information if "Excel Importer" can do it.
    If that time column in the TDMS file is somehow computed using the start timestamp and dt, can someone explain how to compute that for my report?
    Unfortunately, I can't use the LVM format because I need to allow the users of these VI's the backup of using Excel Importer to see this data if my report generation VI is not functional.
    I'll attach one of the TDMS files for illustration. The first column of the second worksheet is exactly the data I need for my report.
    Attachments:
    TDMS Imported.xls ‏28 KB

    DylanC,
    Your solution works as needed. Thank You.
    I think I found a better solution though. Apparently if you convert a signal from the Express VI "Read from Measurement File" into a waveform the time data required is included, then you can convert to a string with a for loop and insert it as a row header into a table. The result gives me what I need. I attached a screenshot if someone is interested.
    AWyers
    Attachments:
    TableFromTDMS.JPG ‏61 KB

  • IPod Error Message: "The disk could not be read from or written to."

    Hello!
    I was syncing my sister's video iPod (30GB) and this error message pops up "Attempting to copy to the disk. "SARAH'S IPO" failed. The disk could not be read from or written to."
    I have restored it three times already, but once it starts putting the music and files back onto the iPod it pops up with that error message. I have updated to the latest version of iTunes and iPod software available. My OS is Windows XP.
    Is this something serious? Will I be able to fix it myself or will I need to send it in to be fixed by Apple? Will that be expensive? We didn’t get the Apple replacement plan. D=
    Any help would be greatly appreciated. Thank you in advance. ^_^
    PowerBook G4   Mac OS X (10.4.3)   15" PowerBook 1.5 GHz PowerPC G4, 1.5GB RAM - Windows XP with iPod 5 Generation

    Okay I went thru that entire list and here's what I got...
    (1) My OS is XP and is running fine.
    (2) I've updated my windows
    (3) I don't know of any software that might be interfering.
    (4) There are no damaged files.
    (5) My Windows hard-drive is not damaged and I've tried restoring my iPod's disk thru iTunes but it still doesn't work.
    (6) I don't have an iPod photo and I can't find the folder to delete the cache if if I did.
    (7) The USB cord is firmly connected into my USB port and my iPod
    (8) My music is on my external hard-drive so I need to keep 3rd-party hardware connected
    (9) I will try another USB cord to see if that works.
    Is there anything else that I can do? Can Apple fix this?
    Please let me know.

  • Open and read from text file into a text box for Windows Store

    I wish to open and read from a text file into a text box in C# for the Windows Store using VS Express 2012 for Windows 8.
    Can anyone point me to sample code and tutorials specifically for Windows Store using C#.
    Is it possible to add a Text file in Windows Store. This option only seems to be available in Visual C#.
    Thanks
    Wendel

    This is a simple sample for Read/Load Text file from IsolateStorage and Read file from InstalledLocation (this folder only can be read)
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Windows.Storage;
    using System.IO;
    namespace TextFileDemo
    public class TextFileHelper
    async public static Task<bool> SaveTextFileToIsolateStorageAsync(string filename, string data)
    byte[] fileBytes = System.Text.Encoding.UTF8.GetBytes(data);
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await local.CreateFileAsync(filename, CreationCollisionOption.ReplaceExisting);
    try
    using (var s = await file.OpenStreamForWriteAsync())
    s.Write(fileBytes, 0, fileBytes.Length);
    return true;
    catch
    return false;
    async public static Task<string> LoadTextFileFormIsolateStorageAsync(string filename)
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    string returnvalue = string.Empty;
    try
    var file = await local.OpenStreamForReadAsync(filename);
    using (StreamReader streamReader = new StreamReader(file))
    returnvalue = streamReader.ReadToEnd();
    catch (Exception ex)
    // do somthing when exception
    return returnvalue;
    async public static Task<string> LoadTextFileFormInstalledLocationAsync(string filename)
    StorageFolder local = Windows.ApplicationModel.Package.Current.InstalledLocation;
    string returnvalue = string.Empty;
    try
    var file = await local.OpenStreamForReadAsync(filename);
    using (StreamReader streamReader = new StreamReader(file))
    returnvalue = streamReader.ReadToEnd();
    catch (Exception ex)
    // do somthing when exception
    return returnvalue;
    show how to use it as below
    async private void Button_Click(object sender, RoutedEventArgs e)
    string txt =await TextFileHelper.LoadTextFileFormInstalledLocationAsync("TextFile1.txt");
    Debug.WriteLine(txt);
    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

  • Disk could not be read from or written to

    I'm a new ipod user. I can get songs on my ipod. But when I go to get photos I get an error message saying, "ipod cannot be updated. The disk could not be read from or written to."
    In itunes I can see the ipod. When I go to look at My Computer, it does not show the ipod as a disk drive.
    Thanks!

    I'm a new ipod user. I can get songs on my ipod.
    But when I go to get photos I get an error message
    saying, "ipod cannot be updated. The disk could not
    be read from or written to."
    In itunes I can see the ipod. When I go to look at My
    Computer, it does not show the ipod as a disk drive.
    Thanks!
    It's so simple, dont worry. Just connect your ipod to the computer. iTunes must open. In iTunes clcik on the small ipod icon which appears at the right bottom of the itunes window. click on that icon and another window with some options will be opened. Click on "enable disk use" and make this selection marked and click ok.
    it'll certainly help!

  • When I update my nano ipod I get an error message "User ipod cannot be updated.  The disk couldnot be read from or written to."   How can I overcome this error message.

    In the iTunes window, when I update my nano ipod, I get an error message "User ipod cannot be updated.  The disk could not be read from or written to."   How can I overcome this error message.

    Hello there dilip77707,
    It sounds like you are getting this error message that your iPod cannot be read from or written to when you are trying to update your iPod Nano. I recommend the troubleshooting from the following article to help you get that resolved. Its pretty straight forward, just start at the top and work your way down as needed:
     'Disk cannot be read from or written to' when syncing iPod or 'Firmware update failure' error when updating or restoring iPod
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Disk could not be read from

    Suddenly my Ipod will not sync. The error message says "...disk could not be read from or written to..." We tried the HOLD TOGGELING. But that didn't work. It won't let me restore the Ipod either because it says other programs are currently in use.
    Suggestions would be greatful!

    Welcome to the discussions,
    if the reset did not work, did you try to put it into disk mode? http://support.apple.com/kb/HT1363

  • Can't sync iPod - Error Message: "disc cannot be read from or written to"

    My ipod had been working fine until recently when every time I try and sync it I get the following error message:
    "Attempting to copy to the disk "iPod" failed. The disk could not be read from or written to"
    I have tried all suggestions in Apple's support article for this issue but nothing works. Does anyone else have this problem or know how to solve it?
    Thanks a lot.
    H
    Macbook Pro   Mac OS X (10.4.10)  
    Macbook Pro   Mac OS X (10.4.10)  

    Hi all,
    I am sorry to report that I too have this same disc error problem when syncing my iPod to my iTunes library. I take no comfort in knowing that I am one of many that have this same error. I checked on the iPod lounge forum and I just couldn't count the number of users that had the same problem. There are just so many!
    I too have tried "5 r's" and I have also tried using a few "s" words and others...lol.
    It seems like there is no "fix" for this problem but I will say this: If there is no solution, then I will no longer be buying iPods. This is my third iPod that I have purchased. Which makes my Apple investment near the thousand dollar mark. That is way too much money spent to not have a functioning music player. I will be switching to another player to see if the grass is greener on the other side.
    I have been most dissappointed with this error and I will not be "recycling" this iPod for ten percent off of my next iPod purchase.

  • Error Message: "Disk could not be read from or written to".

    New 5th Gen. was downloading CD's I loaded into iTunes just fine; when uploading tunes into iPod yesterday this error message appeared: "Attempting to copy to the disk (iPod name) failed. Disk could not be read from or written to". Restored iPod with 1/10/06 update of iPod Install; using iTunes 6.0.2; operating system 10.3.9. Frustrated. iPod useless at this point. Anyone found a fix to this vexing problem?
    Thanks,
    John

    Thanks Jeff. Only thing that rings true is updating OS; when I tried to downoad 10.4 message said I 'could not on this computer'. Since I purchased and installed 10.3 a year ago I don't understand. Also, iPod was downloading perfectly until two days ago when -36 appeared. Bummer. I am not a techie, Apple tech support does not have a clue, and iPod is useless. Ideas?

  • "The disk could not be read from or written to"??

    When I try to sync my ipod it gives me following error message "Attempting to copy to the disk 'My Ipod' failed. The disk could not be read from or written to."
    Have not reset or restored it yet, wondering if there is anything I can do that doesn't involve me deleting all the songs on my ipod.
    5th Gen 80g Ipod, G5 Imac   Mac OS X (10.4.9)  

    See if this troubleshooting article helps.
    Disk cannot be read from or written to error syncing iPod in iTunes.

  • Attempting to copy to the disk Ipod failed. the disk could not be read from

    Keep getting error message Attempting to copy to the disk.....Ipod failed. The disk could not be read from or written to. I can copy to Ipod from my laptop however, can not sync with my G-4 tower. I keep my library on an external HD Lacie d2. I've tried all the possibilities from the support page to no avail.. Need help... When error refers to disk is it referring to my external HD

    Hi c2xist,
    And you did follow all of the suggestions from this article?:
    "Disk cannot be read from or written to" when syncing iPod
    Also, you could go through these iPod troubleshooting steps, and see if they are of any help:
    The Five Rs
    -Kylene

  • 9.1.1 sync problems: "The disk could not be read from or written to."

    Using OSX 10.6.3 and upgraded to iTunes 9.1.1. Once I did, I keep getting the following error message: "Attempting to copy to the disk [my ipod] failed. The disk could not be read from or written to." This is followed by another error message: "iTunes could not copy {name of file} to the iPod {iPod name} because the file could not be read or written."
    I tried deleting the files mentioned in the error message, but then the message returns with the name of a different file. At this rate, I'll be deleting all my files!
    I tried checking everything on the Knowledge Base article: http://support.apple.com/kb/HT1207
    I tried restoring my iPod (twice), but it didn't help.
    All my software is up to date. I haven't added any new software since I upgraded iTunes.
    NOW...when I try to sync my iPhone, I get the same error message.
    What's going on, and can anyone help?
    This is very annoying since I can't sync my iPhone which I need or my iPod which I would like.

    ArizonaDAK wrote:
    "iTunes could not copy {name of file} to the iPod {iPod name} because the file could not be read or written."
    check if you have read & write permissions for your iTunes music folder. in finder, right-click on it and +get info+. unlock the little padlock (you may have to enter your admin password) and change the permission settings. next, click on the little gear-shaped icon and +apply to enclosed items+ like so
    you may also give everyone read & write access. if this doesn't help, try the same on your iTunes folder (not just the iTunes music folder).
    if that make no difference, try reinstalling iTunes. click here and follow the instructions. next, download a fresh copy from here: http://www.apple.com/itunes/download/.
    you might also try to _*remove and reinstall the Apple Mobile Device Service*_
    JGG
    edited by the Jolly Green Giant (where Green stands for environmentally friendly)

Maybe you are looking for

  • Cumilating of amount in sec 80 for conveyance

    Dear ALL, when iam running payroll for the month 01.04.2011 annual converyances exemption is giving correctly 9600.but when i run payroll for next month 01.05.2011 the exemption is giving as cumilating and giving more then 9600 this is incresing when

  • Can I open multiple Paypal accounts to accept payments for multiple businesses?

    Hello, I plan on setting up two businesses that will use Paypal to accept payments. Can I set up two seperate Paypal accounts to accept payments for my two businesses?

  • Deploying forms and reports on Application Server 10g

    I had buit some forms,reports by using Oracle Developer Suite( Oracle Form developer, Report developer ) , I had run them on that tools. Now I want to deploy on Oracle Application Server. How can do it , any one can tell me step by step (because I'm

  • Various Issues After Update To Bootcamp 3.2 (MacBook Pro, WindowsXP)

    Hi all, i'm experiencing various issues after i updated to Bootcamp 3.2. I first was running Bootcamp 3.0 (everything worked just fine, except some nv4_disp.dll bluescreens). I updated to Bootcamp 3.1 and then to Bootcamp 3.2. Everything seemed to be

  • Can't update apps anymore iPad 2 iOS 7.0.4

    Hello, I discovered today that I am no longer able to update apps on my iPad 2 running iOS 7.0.4.  I have 10 updates listed in the app store, but if I touch the "Update" icon, it launches the app instead of updating it.  Quite frustrating.  I tried p