Read the last value of a large file of PDM

Hello everyone!

I hope someone can help out me with this one.

I try to put in place a program that can read the last value of one of the large channels of different TDMS files but I just can´t find a way to do it.

I would appreciate help for my little problem.

Thank you very much in advance for your support.

Kasim.

Hello

You can use the following playback TDMS Set Position feature included in the PDM API.  This function receives a parameter called "(0:start)", which can be set to 1 to go to end of the file.  In this way, you can read the last value written to the PDM file.

I hope this helps!

Anuar Rojas

Tags: NI Software

Similar Questions

  • Read the last sector of the virtual hard disk

    Hello

    I'm running Windows 7 Home Premium VM inside VMWare Workstation image. I want to access the last sector of this Virtual Hard Drive. However, I do not within Windows 7 itself.

    Instead, I want to start this virtual system using a bootable Livecd. To this end, I can create an ISO using the Windows XP Installation CD and Bart PE Builder.

    Now my question is, how do I boot under VmWare Workstation Livecd Bootable using Bart PE created so that I can access the virtual hard disk.

    And also, once I started the new system, I want to read this last sector of the virtual hard disk. This is for testing purposes. I know, it could be done on a running system as well however, I want to be able to do this in VmWare Workstation.

    I searched the net for a solution. I came across the Disk Explorer utility, which is available here:

    www.Runtime.org/DiskExplorer.htm

    In my view, this will allow me to read the last sector and thus copy. It is however an expensive software. They have even a plugin developed to work with BartPE, which is available online here:

    http://www.Runtime.org/diskexplorer_for_ntfs.cab

    But we need to provide the license key in the .inf for this file to work.

    In any case, I know how to prepare the Windows Bootable Live CD using BartPE.

    Issues related to the:

    How to get started in using a windows live CD VMWare?

    How to access the virtual hard disk of the Windows 7 operating system?

    And finally, are there other alternatives that are easier to explore this disk that would allow me to read the last sector of this virtual hard disk and copy another medium?

    Thank you.

    I am able to use the keyboard in knoppix, but the mouse doesn't seem to work properly. I am able to click right on the desktop but not able to select any option. The behavior of the mice is completely wrong.

    Is it possible to fix it?

    You can try to temporarily adjust the Type of guest OS Linux or edit the .vmx to have these parameters/values or temporarily remove the USB controller.

    usb:0.deviceType = "mouse"
    usb:0.present = "FALSE"
    mouse.vusb.enable = "FALSE"
    
  • each value to subtract the last value

    Hei

    Someone knows how to do, on the loop or while loop.., I need a constant or control number 300 would b subtract to number constant.., but I mean for example 300-2 300-_298-2-2 = 2 2_ = 298, and so forth, subtract the last value.

    Thank you

    Read help on registers at offset.  Take some tutorials.
    LabVIEW Introduction course - 3 hours
    LabVIEW Introduction course - 6 hours

    Shift registers take a value at the end of the iteration of a loop and return it at the beginning of the next iteration of the loop.

  • I need to print the last value

    Hello
    in the Sub statement I need to print the last value
    means last 5555, I can print other values, but last value 5555 is I can't print
    Please help me
    SELECT REGEXP_SUBSTR('5454 4587454 547451 188745 5555','[^'||' '||']+'||' ',1,5)  p1 from dual;
    Thanks in advance
    David

    Karthick_Arp wrote:
    Like this

    with t
    as
    (
    select '5454 4587454 547451 188745 5555' str
    from dual
    )
    select regexp_substr(str, ' [[:digit:]]*$')
    from t
    

    Why leave space in front of her?

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select '5454 4587454 547451 188745 5555' str from dual)
      2  --
      3  select regexp_substr(str, '[0-9]+$')
      4* from t
    SQL> /
    
    REGE
    ----
    5555
    
    SQL>
    
  • How to read the date and time of a file by labview information

    How to read the date and time of a file by labview information? for example, time created and updated time.

    The similar question had already spoken here (this is the old thread but still seems topical):

    http://forums.NI.com/T5/LabVIEW/file-date-created/TD-p/109836

  • Read the output values after each step runs in the User Interface of LabVIEW

    Hi all

    Development environment: TestStand 2010 SP1 and LabVIEW 2010 SP1

    Problem: is there a way to run the following steps programmatically and get values out of each of them?

    I have already extended a bit a complete interface IO for TestStand load any sequence, choose among the measures and execute step by step (something as an alternative to the steps run selected). What I'm trying to do is to add some actions between each step and do in the UI (I can't change the sequence!), so I start the NewExecution with some previously configured InteractiveArgsParam and option breakAtFirstStep set to true. Eventually I do just something like step over when debugging the sequence and it works well, but I didn't do well a way yet to read the output values of the place...

    So, if I wait before the end of the run I can read my results by treating the ResultObject, but it works only after the completion of the test sequence. Because I wanted to stop after each step, read the values, do some actions and continue to the next step, I've tried to register a running Trace event reminder View Manager. I see that after each step is executed, this event is fired, but when I try to read that a ResultObject returned in the event data it is not filled with values (ResultList seems to be empty?). Is this a correct behavior or maybe I'm reading the wrong way? (It's the same VI regarding the reading of the ResultObjects after the sequence ends and there it works very well for tables, containers and other types of data).

    As I mentioned I can't change Test sequences, I can not add a UImessages.

    What are my options? If the trace event returns output all the values from each steps or is it just used to check the status? Or maybe there's a completely different approach to this issue?

    Thanks in advance for your suggestions,

    Best regards.

    When you manipulate the UIMessage trace (you need this before the return of the event or you will present the race conditions), download myuimessage. Thread. Then call Thread.GetSequenceContext (0, & Iplease).

    And then on the context of the sequence, either go to PreviousStep.Result if it exists, or watch Locals.ResultList.

    Trace events occur between the steps executed step the more recently is the previous step, but it is also a trace event to the beginning before any measure have run at this time, there will be a previous step.

    Hope this helps,

    -Doug

  • display the last value

    Hi all

    I have a questions. It is that I create a Subvi to my table and it can display the last value in the upper part. Below attached snapshots of my programming. I use a number random and STOP for control of you guys let see the whole process of what I want.

    but when I change "constant true/false" and using a digital command. and I put it in my program. It won't list down the values and it will not display the most recent value at the top. What is the problem? I was stuck on this problem for a while.

    and another question was how to keep the size of the list is constant? for example, I onli wants to view 30readings on my table. as the program continued to run, the oldest value will be overwritten. because if kept under my table more, means memory increase my programming and registration of cause late development. I do not want to happen. So is it possible to maintain the display of fixed table values?

    Hi Isabelle,.

    I think that the problem causes initialization of a register shift to void / vi. If you initialize a shift register, each time sub vi is called, he will replace value in the registry to offset with initialized value. Uninitialize a registry change to resolve a problem. I've attached a screenshot of my sub vi for your reference.

    Sincerely, Kate

  • read the 5 d Mark II 7 files

    Lightroom seems unable to read the Canon 7 d Mark II files.  Any difficulty?

    Native support of Lightroom for the D750 has been added in the Lightroom update published 5.7 tonight.

    Version details:

    Lightroom 5.7: http://blogs.adobe.com/lightroomjournal/2014/11/lightroom-5-7-now-available.html

    Camera Raw 5.7: vailable.html http://blogs.adobe.com/lightroomjournal/2014/11/camera-raw-8-7-and-dng-converter-8-7-now-a

  • How to get the last value

    Hi I have a senerion in which I want to get the last value: -.
    CREATE TABLE T1
    (NAME VARCHAR2(10), NO NUMBER, NO2 NUMBER);
    
    INSERT INTO T1 VALUES('A',10,20);
    INSERT INTO T1 VALUES('C',100,2);
    INSERT INTO T1 VALUES('B,124,5);
    INSERT INTO T1 VALUES('A',1,400);
    INSERT INTO T1 VALUES('B,2,234);
    INSERT INTO T1 VALUES('B',2,7);
    INSERT INTO T1 VALUES('C',21,12);
    INSERT INTO T1 VALUES('A',3,300);
    INSERT INTO T1 VALUES('B,55,1);
    INSERT INTO T1 VALUES('C',234,1);
    INSERT INTO T1 VALUES('B',20,72);
    INSERT INTO T1 VALUES('A',200,0);
    INSERT INTO T1 VALUES('B',546,32);
    INSERT INTO T1 VALUES('C',89,888);
    
    INSERT INTO T1 VALUES('B',485,12);
    INSERT INTO T1 VALUES('C',1,77);
    INSERT INTO T1 VALUES('B',339,12);
    INSERT INTO T1 VALUES('A',0,300);
    {\code}
    
    Now for all  A i want the value (order by name,no,no2) i.e value of no2 0
    for all b i want 32
    and for all c i want 1
    
    i.e last value in order by clause.
    
    i tried this 
    
     select name,no,no2,last_value(no2)
     over(PARTITION BY  name order by no,no2) nm
     from t1
    
    can anyone please help me?
    
    Thanks
    
    Edited by: vinod on Jan 6, 2012 8:58 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

  • How to ensure that the value of a control (for example double) initializes the last value when the VI has been closed?

    I use a cluster as a control. I would like to double in this control to automoatically values to fill their last values set when the VI is opened or accessed for the first time. It would be great if someone could point out for me. Thanks in advance!

    In my opinion, the configuration files are the easiest method and the best.  Simply save your last values to the file when your code ends.  At the beginning of your code, to read the file and fill in the controls with the values read.  With the configuration files, the section name can be the name of the cluster, and key names can be control names.

    I know OpenG has some pretty nice to do, but I prefer to use the native functions OR when I can.  When porting to a new system, there is no need to copy any additional screws library (OpenG library).  The native DV come with Labview.

  • Take the last value of the timer

    Hello

    Looking for a help store the timer values.

    Set the backround: will be used to gather data for tests on mechanical switch lifecycle sump pumps.

    Needs to: number of cycles (lit-shut down-lit), Count time stuck we or off (authorized in time is the estimated time to fill/drain sump), see the amount of time stuck on or off.

    I got all of these features to work, but my problem is that when I save to spreadsheet each incriment stuck time power is saved. This could lead to a large number of unnecessary data points. Instead, I want only the last zero no value of the glued power saved timer.

    Any help is greatly appreciated.

    ~ Andrew

    Here ya go:

  • Read the story of calibration veriStand Vi file

    I need to update the scale and offset for channels to HAVE it. I'm looking for an easy way to read the stored scale and offset values from the file history of Calibration and apply them to the user channels that will be used in calculated channels.

    Is there a way to read the file Ni Veristand using LabView calibration history?

    I wrote a small tool for that earlier. Give it a try and see if it fits your needs.

  • reading the images and icons from jar file

    Hello
    I applied the tutorial in the corner of the adf
    [read the image of the jar file | http://www.oracle.com/technetwork/developer-tools/adf/learnmore/86-images-from-jar-427953.pdf]
    and deploy it in logical built-in web server
    my version 11.1.2.3 Jdeveloper

    but the images did not appear
    For example: when I drag the button and try to specify icon for this button no image for the library referance

    How can I fix this problem or missing steps in the application of the link above?
    Thank you

    I just ran this tutorial recently, took a few tries but everything worked according to the instructions in the article. You should check your steps on. set install to the top of the jar, add it to the project lib reference and use "/ adf/images / ' as the value of the icon. That should be all you need to do at the moment of the conception of the image displayed when running, you need to install the pot to your embedded wls and also change your weblogic - application.Xml.

  • Add a field to the last page of a document file only

    Hello

    Currently, I have a script which will add signature fields and the text on the first page of a document.

    The script is required to specify the "last page" of the document and not the page number, because each file can vary depending on the number of pages.

    The script is running in the batch on several files that are not open (usually 50 at a time).

    If someone can advise please how to change the script, I'll be very grateful.

    Create the field dynamically Date for signature of the employee field


    var f = this.addField ("Todaydate", "text", 0,
    [60, 54, 135, 75]) ;

    f.userName = "today's Date";
    f.Value = 'auto update';
    f.ReadOnly = true;
    f.fillColor = color.ltGray;

    Create the signature dynamically for employee field


    var f = this.addField ("mySignature", "signature", 0,
    [120, 85, 330, 105]) ;

    f.setAction ("OnFocus", "var f = this.getField('Todaydate'); ("f.Value = util.printd (a/mm/yyyy", new Date() ");") ;

    Change the third parameter of this.addField from 0 to this.numPages - 1

  • Select the last value for each day of the table

    Hello!

    I have a table that contains several measures for each day. I need two queries on this table, and I'm not sure how to write them.

    The table stores the rows (sample data)
    *DateCol1                 Value       Database*
    27.09.2009 12:00:00       100           DB1
    27.09.2009 20:00:00       150           DB1
    27.09.2009 12:00:00       1000          DB2
    27.09.2009 20:00:00       1100          DB2
    28.09.2009 12:00:00       200           DB1
    28.09.2009 20:00:00       220           DB1
    28.09.2009 12:00:00       1500          DB2
    28.09.2009 20:00:00       2000          DB2
    Explanation of the data in the sample table:
    We measure the size of the data files belonging to each database to one or more times a day. The value column indicates the size of the files of database for each database at some point (date in DateCol1 European model).


    What I need:
    Query 1:
    The query must return to the last action for each day and the database. Like this:
    *DateCol1       Value      Database*
    27.09.2009        150          DB1
    27.09.2009       1100          DB2
    28.09.2009        220          DB1
    28.09.2009       2000          DB2
    Query 2:
    The query should return the average measurement for each day and the database. Like this:
    *DateCol1       Value      Database*
    27.09.2009       125          DB1
    27.09.2009      1050          DB2
    28.09.2009       210          DB1
    28.09.2009      1750          DB2
    Could someone please help me to write these two queries?

    Please let me know if you need further information.

    Published by: user7066552 on September 29, 2009 10:17

    Published by: user7066552 on September 29, 2009 10:17

    Why two queries when it suffice ;)

    SQL> select dt
      2       , db
      3       , val
      4       , avg_val
      5    from (
      6  select dt
      7       , val
      8       , db
      9       , row_number () over (partition by db, trunc (dt)
     10                                 order by dt desc
     11                            ) rn
     12       , avg (val) over (partition by db, trunc (dt)) avg_val
     13    from test)
     14   where rn = 1
     15  order by dt
     16  /
    
    DT        DB           VAL    AVG_VAL
    --------- ----- ---------- ----------
    27-SEP-09 DB2         1100       1050
    27-SEP-09 DB1          150        125
    28-SEP-09 DB2         2000       1750
    28-SEP-09 DB1          220        210
    

Maybe you are looking for