How can i write max and min data online during acquisition

Hello,
I am not keen with programming and your help will be greatly appreciated.
I make temperature acquisition from an IR camera and I record online 38 different spots at a frequency of 10 samples/min.
I also record two temperatures from thermocouples at the same sampling rate.
I would like to make the acquisition during 5 sec every 20 sec and extract the max and min temperature from the thermocouples and write these values in a text file like show below :
Temp_max 5 sec 22.1
Temp_min 5 sec 2.1
Temp_max 10 sec 42.1
Temp_min 10 sec 4.1
Temp_max 15 sec 82.1
Temp_min 15 sec 6.1
I also would like to make the same with two or three different spots of the IR camera. I think that if I have a good solution for the thermocouple, I can make it for the camera.
I use LabView 8.2 with NIDaqmx acquisition.
Thank you in advance

Hello Evrem,
Thank you for your advice. In fact, I have already attended to the training course you mentioned. I should think about going to the module Basic II. I do not have problem to connect/pilot various type of instruments but I am not very efficient with loop and arrays !
I am fine with the data acquisition and the timing and I can sort data during 5 sec with "Array max & min". Then, I can display all data. What I have problem to do is to extract the max & min from the array, keep these 2 values for being writtten in a file at the end of my loop and start again during the next 5-sec cycle. At present, I only have the last max & min results from the last acquisition !
Any example of how recording max & min online during 5-sec cycle acquisition will be welcome.
Best regards,
Labdummy

Similar Messages

  • How to use select max and min query..

    hi gurus,
    we have got a custom report for develoment.
    the report has to fetch the max and min salarys department wise....
    how to pick up max & min sal ansal from table pa0008.

    Hi,
    Try the following
    select max(sal)
               min(sal)
               from <database table>
               into <internal table>
               group by department
               where <where condition>.
    Here we assume that sal is the field holding the salary and department is the name of the field in the database table. Where condition is optional.
    Hope this helps.
    Regards,
    Sachin

  • How to get the max. and min. of a selection-option?

    hi experters
    I wonder if there is any way can fetch the max value and minimum value from a select-option?
    please hint, many thanks
    wanlei.sun

    a®s wrote:
    > Try this way
    >
    >
    > SELECT-OPTIONS S_WERKS FOR T001W-WERKS.
    >
    > START-OF-SELECTION.
    > SELECT * FROM T001W INTO IT_T001W
    >        WHERE WERKS IN S_WERKS.
    >
    > SORT IT_T001W BY WERKS ASCENDING.
    > READ TABLE IT_T001W INDEX 1.
    > MOVE IT_T001W-WERKS TO V_WERKS_MIN. " MIN Value
    >
    > SORT IT_T001W BY WERKS DESCENDING.
    > READ TABLE IT_T001W INDEX 1.
    > MOVE IT_T001W-WERKS TO V_WERKS_MAX. " MAx Value
    >
    >
    > a®s
    Please try this.
    TABLES : t001w.
    SELECT-OPTIONS S_WERKS FOR T001W-WERKS.
    data: lv_min type T001W-WERKS,
          lv_max type T001W-WERKS,
          lv_count type i.
    START-OF-SELECTION.
      sort s_werks by low.
      describe TABLE s_werks LINES lv_count.
      if lv_count = 1.
        lv_min = s_werks-low.
        lv_max = s_werks-high.
      elseif lv_count > 1.
        read TABLE s_werks index 1.
        lv_min = s_werks-low.
        if not s_werks-high is INITIAL.
          lv_max = s_werks-high.
        endif.
        READ TABLE s_werks INDEX lv_count.
        if lv_max is INITIAL.
          lv_max = s_werks-low.
        else.
          if lv_max < s_werks-low.
            lv_max = s_werks-low.
          endif.
        endif.
      endif.
      write :/ lv_min,
               lv_max.

  • How can I write the name of data into Excel?

    Now, I write T1 T2 T3 and so on into an excel file and each is in one column. How can I insert the data name such as " T1 T2 T3" on the top row by programming? 
    I am using "write to spreadsheet file. vi" now and wire the data with "build array".

    How can you creat the "red box" (linked to append report text.vi)  with name as Pressure, temperature, operator ?  
    Actually, I use much simpler way. Could you please have a look at it?
    I attach an vi file to express my meaning.
    附件:
    save try.vi ‏40 KB

  • How can I write left and right in the same line of a richtextbox?

    I want to write, in the same line, text with a right aligment and other with left aligment. How can I do it?
    thanks

    I want to write, in the same line, text with a right aligment and other with left aligment. How can I do it?
    thanks
    As
    Viorel_ says "Perhaps there are other much easier solutions. For example, create two
    RichTextBoxes with no borders (if you only need two columns of text)" but the real issue would be saving the info in the RichTextBox's (RTB's) RTF or Text to two different RTF or TextFiles. Although I suppose if it was just going to
    a TextFile then you could somehow use a delimited text file so each same line number of each RTB is appended to the same line and delimited. That way you could probably load a split array with each line from the text file splitting on the delimeter per line
    and providing RTB1 with index 0 of the split array and RTB2 with index 1 of the split array. I'm not going to try that.
    This is some leftover code from a long time ago. It has three RTB's. RTB1 is there I suppose because the thread asking for this code wanted it. RTB2 is borderless as well as RTB3. The Aqua control in the top image below is the Panel used to cover RTB2's
    scrollbar. So RTB3's scrollbar is used to scroll both controls.
    I forgot to test if I typed past the scroll position in RTB2 if both would scroll as maybe RTB3 would not since it would not have anything to scroll to I suppose.
    Maybe this code can help or maybe not. The bottom two images are the app running and displaying nothing scrolled in RTB2 and RTB3 then the scroll used in the bottom image.
    Disregard the commented out code in the code below. It was there so I left it there. I suppose you should delete it. Also I didn't set the RTB's so one was left aligned and the other right aligned. I believe the Panel becomes a control in RTB2's controls
    when it is moved to cover RTB2's vertical scrollbar but don't remember although that seems the case since both RTB2 and RTB3 are brought to front so if the Panel was not one of RTB2's controls I would think it would be behind RTB2 and RTB2's vertical scrollbar
    would display but don't remember now. In fact I don't really remember how that part works. :)
    Option Strict On
    Public Class Form1
    Declare Function SendMessage Lib "user32.dll" Alias "SendMessageW" (ByVal hWnd As IntPtr, ByVal msg As Integer, ByVal wParam As Integer, ByRef lParam As Point) As Integer
    Const WM_USER As Integer = &H400
    Const EM_GETSCROLLPOS As Integer = WM_USER + 221
    Const EM_SETSCROLLPOS As Integer = WM_USER + 222
    Dim FixTheProblem As New List(Of String)
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Me.CenterToScreen()
    Panel1.BackColor = Color.White
    Panel1.BorderStyle = BorderStyle.Fixed3D
    RichTextBox2.BorderStyle = BorderStyle.None
    RichTextBox2.ScrollBars = RichTextBoxScrollBars.Vertical
    RichTextBox3.BorderStyle = BorderStyle.None
    RichTextBox3.ScrollBars = RichTextBoxScrollBars.Vertical
    RichTextBox3.Size = RichTextBox2.Size
    RichTextBox3.Top = RichTextBox2.Top
    RichTextBox3.Left = RichTextBox2.Right - 20
    Panel1.Size = New Size(RichTextBox2.Width * 2 - 16, RichTextBox2.Height + 4)
    Panel1.Left = RichTextBox2.Left - 2
    Panel1.Top = RichTextBox2.Top - 2
    RichTextBox2.BringToFront()
    RichTextBox3.BringToFront()
    FixTheProblem.Add("Curry: £6.50")
    FixTheProblem.Add("Mineral Water: £4.50")
    FixTheProblem.Add("Crisp Packet: £3.60")
    FixTheProblem.Add("Sweat Tea: £2.23")
    FixTheProblem.Add("Motor Oil: £12.50")
    FixTheProblem.Add("Coca Cola: £.75")
    FixTheProblem.Add("Petrol Liter: £3.75")
    FixTheProblem.Add("Shaved Ice: £.50")
    FixTheProblem.Add("Marlboro: £2.20")
    FixTheProblem.Add("Newspaper: £.25")
    FixTheProblem.Add("Spice Pack: £.75")
    FixTheProblem.Add("Salt: £.50")
    FixTheProblem.Add("Pepper: £.30")
    For Each Item In FixTheProblem
    RichTextBox1.AppendText(Item & vbCrLf)
    Next
    RichTextBox1.SelectionStart = 0
    RichTextBox1.ScrollToCaret()
    Dim Fix As String = ""
    For Each Item In FixTheProblem
    Fix += Item.Replace(":", "^:") & vbCrLf
    Next
    Fix = Fix.Replace(vbCrLf, "^>")
    Dim FixSplit() As String = Fix.Split("^"c)
    For i = 0 To FixSplit.Count - 1
    If CBool(i Mod 2 = 0) = True Then
    RichTextBox2.AppendText(FixSplit(i).Replace(">"c, "") & vbCrLf)
    ElseIf CBool(i Mod 2 = 0) = False Then
    RichTextBox3.AppendText(FixSplit(i) & vbCrLf)
    End If
    Next
    End Sub
    Dim RTB2ScrollPoint As Point
    Private Sub RichTextBox2_Vscroll(sender As Object, e As EventArgs) Handles RichTextBox2.VScroll
    Dim RTB2ScrollPoint As Point
    SendMessage(RichTextBox2.Handle, EM_GETSCROLLPOS, 0, RTB2ScrollPoint)
    SendMessage(RichTextBox3.Handle, EM_SETSCROLLPOS, 0, New Point(RTB2ScrollPoint.X, RTB2ScrollPoint.Y))
    'Me.Text = RTB2ScrollPoint.X.ToString & " .. " & RTB2ScrollPoint.Y.ToString
    End Sub
    Private Sub RichTextBox3_Vscroll(sender As Object, e As EventArgs) Handles RichTextBox3.VScroll
    Dim RTB3ScrollPoint As Point
    SendMessage(RichTextBox3.Handle, EM_GETSCROLLPOS, 0, RTB3ScrollPoint)
    SendMessage(RichTextBox2.Handle, EM_SETSCROLLPOS, 0, New Point(RTB3ScrollPoint.X, RTB3ScrollPoint.Y))
    'SendMessage(RichTextBox2.Handle, EM_SETSCROLLPOS, 0, New Point(0, 10))
    End Sub
    End Class
    La vida loca

  • How can we retrieve list and library data from rest services

    Hi Everybody,
    How can we get the list or library data from sharepoint 2010 rest services.
    Here is the URL I am trying: https://siteurl/_vti_bin/listdata.svc
    Can anybody please provide sample c# code to pull the info.
    Thanks in advance,
    Krishna
    Krishnasandeep

    Here is reference material:
    http://msdn.microsoft.com/en-us/library/ff798339.aspx
    And an example:
    http://www.c-sharpcorner.com/uploadfile/anavijai/rest-api-in-sharepoint-2010-for-listdata-svc-part-2/
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How can we write channels and endpoints configuration in actionscript?

    Hi All
                  how can we define channelset in actionscript in flex
                    just like at my client side application itself not in remote-config.xml
                       var cs:ChannelSet = new ChannelSet();
                     var amf:AMFChannel = new AMFChannel(.................................
                       i dont know how to proceed further        
                      could any one please help me

    Hi All
                  how can we define channelset in actionscript in flex
                    just like at my client side application itself not in remote-config.xml
                       var cs:ChannelSet = new ChannelSet();
                     var amf:AMFChannel = new AMFChannel(.................................
                       i dont know how to proceed further        
                      could any one please help me

  • How can I write a read a data on a SmartCArd

    Hi everyone...
    I would like to know. how I can write and read a data on a SmartCard maybe through a file(IO)
    could you helpme please??
    Thanks a lot...
    Marcos

    Try this mate
    package com.reader;
    import java.util.List;
    import javax.smartcardio.Card;
    import javax.smartcardio.CardChannel;
    import javax.smartcardio.CardException;
    import javax.smartcardio.CardTerminal;
    import javax.smartcardio.CardTerminals;
    import javax.smartcardio.CommandAPDU;
    import javax.smartcardio.ResponseAPDU;
    import javax.smartcardio.TerminalFactory;
    import com.sun.javacard.apduio.Apdu;
    * @author ic008391
    public class Connector extends Thread
         * @param args
         * @param args
         public static void main(String[] args)
              List<CardTerminal> lct = null;
              Card crd = null;
              TerminalFactory tf = TerminalFactory.getDefault();
              CardTerminals cts = tf.terminals();
              CardChannel cch = null;
              try
                   //create APDU Command
                   Apdu apdu = new Apdu();
                   apdu.command[Apdu.CLA] = (byte) 0X00;
                   apdu.command[Apdu.INS] = (byte) 0XA4;
                   apdu.command[Apdu.P1] = (byte) 0X04;
                   apdu.command[Apdu.P2] = (byte) 0X00;
                   //apdu.command[Apdu.P3] = (byte) 0X0a;
                   byte[] data = {(byte)0xa0, (byte)0x0, (byte)0x0, (byte)0x0, (byte)0x62, (byte)0x3, (byte)0x1, (byte)0xc, (byte)0x6, (byte)0x1, (byte)0x7F};
    //wallet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xC:0x6
    // select 0x00 0xA4 0x04 0x00 0x0a 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x6 0x1 0x7F
                   lct = cts.list();
                   System.out.println(lct);
                   CardTerminal ct = lct.get(0);
                   crd = ct.connect("T=0"); //Or "T=1"
                   javax.smartcardio.ATR atr = crd.getATR();
                   byte i[] =atr.getBytes();
                   for (int n = 0; n < i.length; n++) {
              int x = (int) (0x000000FF & i[n]); // byte to int conversion
              String s = Integer.toHexString(x).toUpperCase();
              if (s.length() == 1) s = "0" + s;
              System.out.print(s + " ");
                   System.out.println("");
                   System.out.println("ATR"+(atr.getHistoricalBytes()).toString());
                   System.out.println("ATR"+atr.toString());
                   cch = crd.getBasicChannel();
                   sleep(1000);
                   ResponseAPDU r;
                   //r = cch.transmit(new CommandAPDU(apdu.getCommand()));
                   r = cch.transmit(new CommandAPDU(0,164,4,0,data));
                   System.out.println(apdu);
                   System.out.println(r);
                   //Get Balance
                   //0xB0 0x50 0x00 0x00 0x00 0x02;
                   r = cch.transmit(new CommandAPDU(176,80,0,0));
                   System.out.println(r);
                   //cch.close();
              catch (CardException e)
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              catch (InterruptedException e)
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              finally
                   try
                        crd.disconnect(true);
                   catch (CardException e)
                        // TODO Auto-generated catch block
                        e.printStackTrace();
    }

  • How can I save images and text data to the same file?

    I have been looking at ways to do this for a while. My main VI saves the raw data to a text file which the users then import to Excel and plot. I am trying to simplify this process and have been looking at ways to accomplish this task. I want to be able to save the raw data to a file and then save the Labview graph as well. This will eliminate the tedious task of importing the raw data into Excel and plotting it. I can save the raw data to its own file and I can use the Get Image method for the graph and save it to its own file. I am currently using the .png format. Is there a way of saving both to the same file ie, importing the image into Excel or Word etc. Before I go off doing a science project I wanted to see if anyone else had experience completing this task and had any recommendations. Thanks in advance for any help.

    well ther are a couple of ways. You could use the standard report generation VI's and make a complete report with the image of the graph embedded into the report with the raw data or you could use activeX and control excel thru LV and put the raw data into excel directly and have excel graph the data without any user interaction. I have posted a slew of VI's on the excel board if you do not have the report generation toolkit. If you could tell me which way you want to go I could possibly send you an example.
    For more information and some sample VI's and tool kits, you can go to the excel board
    Joe.
    "NOTHING IS EVER EASY"

  • How can I delete diagnostics and usage data from my Ipod 4.1?

    In settings, General, About there is Diagnostics and Usage. I went in there to find many logs, Low Battery, Low Memory logs and Stacks which I don't even know what they are.  Is there a way to delete this?  Should I ever save any?  Are they important?  I would appreciate any help anyone can give me. Thank you in advance for any quick fix on this matter, if there is ever one lol. 

    How to delete diagnostic and...: Apple Support Communities
    Thy are not really useful for the errors you mentioned. Those are common and expected.

  • Using Swing how can we create socket and send data thru TCP/IP on the socke

    Hi All,
    Can anyone tell the link or answer to me about the Socket programming using Swing and data get & post onto the socket.
    Thanx & Regard
    Ashu

    swing is nothing to do with socket programing, you need to code using core java and API of net
    so please go through this link [http://www.javaworld.com/javaworld/jw-12-1996/jw-12-sockets.html]

  • How can I write citations and bibliographies on Pages?

    I just read that I had to use "Endnote X2" to be able to write bibliographies on Pages but I do not know where I can download that program. If someone knows please let me know as soon as possible.

    Enter Google and search for EndNote !
    Yvan KOENIG (VALLAURIS, France) jeudi 11 août 2011 17:34:30
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How can I display diagnostics and usage data on my computer?

    I notice that there are many profile Ids listed some days and crash reports.  I would like to expand these reports on my computer to investigate them more. Is there a way?

    How to delete diagnostic and...: Apple Support Communities
    Thy are not really useful for the errors you mentioned. Those are common and expected.

  • How can i mount 2nd and 3rd SATA drives during install

    I have 3 SATA drives in my desktop.
    all ext3.
    I installed, and set up sda as /, but then it asks if i want anything else mounted. I want to put in sdb and sdc, but I select ext3, and it says it will wipe it.
    I installed Arch before, but i can't remember what i did. Those drives are full of stuff, so i don't want to risk formatting it just to mount it.
    ideas?
    thanks

    SyXbiT wrote:
    Would yo ulike to create a filesystem on /dev/sdb1?
    This will overwrite existing data
    are you saying it will keep my data intact?
    If I'm understanding you correctly, you want to mount X partition with a pre-existing filesystem.  It has pre-existing data, and you want to keep that data intact.
    If this is the case, answer "no" when it asks "Would you like to create a filesystem on /dev/sdb1?"

  • Finding difference between Max date and Min date from single date field

    Dear Experts,
    Here I am with a scenario where i didnt find any solution in SDN and in most threads it is unanswered.
    I have 1 KF which is a date field. With reference to Serial no, I want to find out the Max and Min date from the same KF. I created 2 CKF where the same KF is used in both CKF to find the Min and Max dates,
    Ex:
    Serial No | Material | Actual Del date | Max | Min | Difference
    0123 | 300012 | 01.01.2009 | 31.01.2009 | 01.01.2009 | 30
    0123 | 300013 | 07.01.2009 | 31.01.2009 | 01.01.2009 | 30
    0123 | 300018 | 15.01.2009 | 31.01.2009 | 01.01.2009 | 30
    0123 | 300014 | 30.01.2009 | 31.01.2009 | 01.01.2009 | 30
    0124 | 300019 | 02.01.2009 | 10.01.2009 | 02.01.2009 | 8
    0124 | 300012 | 06.01.2009 | 10.01.2009 | 02.01.2009 | 8
    0124 | 300017 | 10.01.2009 | 10.01.2009 | 02.01.2009 | 8
    This is the way how I want the output where now I am able to get the values right till Max and Min and not the difference. I even created the 3rd CKF the find the difference but it is not working.
    How can I find the difference between the Max and Min dates?
    Regards,
    Chan

    Hi
    You have FM --DAYS_BETWEEN_TWO_DATES you can use this while Customer Exit.
    Try to Have 2 RKF for Min Data and Max Date and create a formula/CKF on the same ..
    Hope it helps

Maybe you are looking for

  • ITunes 6.0.1.3 and Genre changes

    I have read through a bunch of threads but did not see a response to the following (hence the new post). I just went through my libary in iTunes and changes genres across all of my music to what i felt was proper. Now, every time I play a song in iTu

  • Multiple-reader environments with shared filesystem?

    Hi, we are thinking about offloading some read-only-tasks to a different server so that one server opens the JE-Environment read-write and the other server opens it read-only. What kind of filesystem is recommended to support this architecture? The e

  • Dynamic  -  JSF

    Hi I'm trying to make a JSF dynamic page with a DataTable I'm trying to simplify data access activities to dynamic pages implementing this type of architecture : http://www.jsfcentral.com/articles/dynamic_jsf-2.html I have found a great tutorial with

  • Selecting data from a RDBMS table using connector framework, JDBC-Connector

    Hi Experts, I'm trying to select data from a mysql database that is connected via the BI-JDBC System in the portal (EP 7 SP 11). The connection (using the Connector Gateway Service) is set up, but selecting data fails. Can you please give me a code e

  • MacBook Pro Retina Display Logic Board Failure

    There are a lot of threads discussing the logic board failures in MBP's. I have a brand new MBP with Retina 2012 that failed due to a bad logic board. Apple is replacing the machine, but is this a bigger problem others are having? Data backup/recover