Saving data with automatic time intervals

Hello world

I am a new user with LabVIEW (I just started using it 3 weeks ago) and I'm having a problem with the registration data and recording.

Basically, we want to do is monitor data for four different variables countinuosly but to record in intervals of time specified and automatic. Specifically, we would like to save countinuosly of data only for five minutes every hour. After 5 minutes, only the backup function must be stopped for 1 hour, then return to save 5 minutes without closing the major loop. In addition, we would like to collect all the data in this way in one exel file per day for three weeks or more, so rather than create a data file for each record, we stand at their gathering in one file per day.

Finally, if possible, we would like to extract the average data for a day in a single file.  We are not interested in changing the rate of data acquisition, we only focus on the savings rate. We tried several timed function (as the elapsed time, delay time, wait) and loops timed, but it was impossible to synchronize different loops or implement synchronization for the issuance of savings without blocking the work of the main loop.

The data are collected via the function "write to file action.

any kind of help will be really appreciated!

Here, we submit our front panel block diagram of our VI.

Best regards

Use a shift register to keep track of your departure time.  If the difference between the start time and the current time less than 5 minutes, save the data.  If the time difference is one hour, save the new time as the start time.

Tags: NI Software

Similar Questions

  • I bought my 2009 year Adobe Creative Suite 4 for Mac OS. Now I have bought me a few weeks ago a new Apple iMac 27-inch with new ElCapitan Workprogram. I turn all my dates with a time machine backup of my old iMac 27. But now I can't start my photosh

    I bought my 2009 year Adobe Creative Suite 4 for Mac OS. Now I have bought me a few weeks ago a new Apple iMac 27-inch with new ElCapitan Workprogram. I turn all my dates with a time machine backup of my old iMac 27. But now I can't start my program of photoshop CS4. The error number is 150:309. Call support, they say. It will be very happy, if you can help me. Best regards from Germany black forest... Your Thomas

    using time machine to restore the adobe programs is problematic.

    at this point, uninstall all done by the time machine to your problematic adobe programs.

    clean through the use of the Adobe Creative Cloud cleaning tool to solve installation problems

    Restart your computer

    well install cs 4 using the installation files and your serial number and activate: How to open third-party developers not identified in Mac OS X applications ' Mac Tips .

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • Create a waveform using PCI-6723 AO with various time intervals on the trailing edge of the sample of 200 Hz clock and 0.1% duty cycle

    I use the PCI-6723 card and I am trying to produce a model of waveform using the analog output channel. The wave consists of 5 different voltage levels. The main problem is that the first 4 voltage levels are supposed to have 926 microseconds time intervals and the time interval the last voltage level is supposed to be 1,296 milliseconds. In addition, the waveform must be triggered on the trailing edge of a sample clock of 200 Hz with a 0.1% Duty Cycle. Is it still possible? If so, any help would be greatly appreciated. Thanks in advance!

    Here is what I currently have, but it does not fulfill my purpose.

     int32   written;
        float64 data[5] = {-0.23, 0.38, 1.12, 1.78, 0.10};  //volts
        //long  time[5] = {  926,  926,  926,  926, 1296};  //microseconds
    
        // DAQmx Configure Clock
        DAQmxErrChk (DAQmxCreateTask("",&taskHandleFRQ));
        DAQmxErrChk (DAQmxCreateCOPulseChanFreq(taskHandleFRQ,"Dev3/ctr0","",DAQmx_Val_Hz,DAQmx_Val_Low,0,200,0.001));
        DAQmxErrChk (DAQmxCfgImplicitTiming(taskHandleFRQ,DAQmx_Val_ContSamps,1));
    
        // DAQmx Start Code
        DAQmxErrChk (DAQmxStartTask(taskHandleFRQ));
    
        // DAQmx Configure Code
        DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
        DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandle,"Dev3/ao0","",-10.0,10.0,DAQmx_Val_Volts,NULL));
        DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"/Dev3/Ctr0Out",1000.0,DAQmx_Val_Falling,DAQmx_Val_ContSamps,5));
    
        // DAQmx Write Code
        DAQmxErrChk (DAQmxWriteAnalogF64(taskHandle,5,0,10.0,DAQmx_Val_GroupByChannel,data,&written,NULL));
    
        // DAQmx Start Code
        DAQmxErrChk (DAQmxStartTask(taskHandle));
    

    Bingo. This code seems to work much better. Looks like I had to reduce my number of samples per 1 to fit the waveform desired in 5 milliseconds of the sample clock delay.

    However, if someone knows a better way to achieve these results, I am open to all ideas.

    void CDevDlg::OnRdr1e1()
    {
        float64     data[4000];
        float64     volt[5] = {-0.23, 0.38, 1.12, 1.78, 0.10};  //volts
        int x=0,d;
    
        for(int v=0; v<4; v++)
        {
            for(d=0; d<741; d++)
            {
                data[x++] = volt[v];
            }
        }
        for(d=0; d<1036; d++)
        {
            data[x++] = volt[4];
        }
    
        // DAQmx Configure Clock
        DAQmxErrChk (DAQmxCreateTask("",&taskHandleFRQ));
        DAQmxErrChk (DAQmxCreateCOPulseChanFreq(taskHandleFRQ,"Dev3/ctr0","",DAQmx_Val_Hz,DAQmx_Val_Low,0,200,0.001));
        DAQmxErrChk (DAQmxCfgImplicitTiming(taskHandleFRQ,DAQmx_Val_ContSamps,800000));
    
        // DAQmx Start Code
        DAQmxErrChk (DAQmxStartTask(taskHandleFRQ));
    
        // DAQmx Configure Code
        DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
        DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandle,"Dev3/ao0","",-0.5,2.0,DAQmx_Val_Volts,NULL));
        DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",800000,DAQmx_Val_Rising,DAQmx_Val_ContSamps,4000));
        DAQmxErrChk (DAQmxCfgDigEdgeStartTrig(taskHandle,"/Dev3/Ctr0Out",DAQmx_Val_Falling));
    
        // DAQmx Write Code
        DAQmxErrChk (DAQmxWriteAnalogF64(taskHandle,4000,1,10.0,DAQmx_Val_GroupByChannel,data,NULL,NULL));
    }
    
  • Portable hard drives wireless with automatic Time Machine?

    Automatic time machine

    http://www.Apple.com/airport-time-capsule/

  • Two different running loops one after another with different time intervals

    Hello

    I am currently using LabVIEW 2013. I'm new to LabVIEW.

    I take 10 values to data acquisition during the 9-10 sec time interval within a period of 10 seconds.

    I thought runs two loops. 1st loop will run for 9seconds out giving zero and the second loop will launch with 1 second left taking all the required 10 values. can someone help me in this way to do it. If you can suggest me any other idea.

    Thank you.

    Your task of data acquisition is to take 10 samples in 1 second (I assume that you also spaced).  10 samples/s = sampling frequency of 10 Hz (Hz = events/second).  To configure DAQmx tasks, MAX is your friend.  Open MAX, find your device (plugged in), open a panel of Test and find a way to let him taste at 10 Hz and collect 10 samples.  Test to see if it works.  Get it now to save as task.

    Now, when you configure your block diagram, drop a DAQmx Start Task (or even read DAQ) and wire an empty constant to the task in.  See the little arrow for menu drop-down?  If you click on it, one of the choices should be the task DAQ, you just saved.  Select that and it will work.

    Now, all you have to do is wait 9 seconds before acquiriing your 10 points.  There are functions of synchronization that can allow you to do this.

    Bob Schor

  • Get the current date (with current time too)

    Hello.

    I read a few articles and discussions on this subject, but I do not know the solution.

    In my application (Jdeveloper 11.1.1.7.0), I have an entity with a Date field.

    I need this field to make the date and time (29/08/2013 15:54:42)

    I use a Groovy expression in the dialog box change the attribute, the entity object, to assign value of expression adf.currentDateTime


    Execution works ok, but check the field value in the database (with TO_CHAR (related_date, ' ' DD/MM/YYYY HH24:MI:SS) ), the result is 00:00:00 29/08/2013

    So, how can I insert the current time with seconds? Y at - it another way to do this (insert current now, with second precision)?

    Thanks in advance.

    EDIT: Changing the type of DATE to TIMESTAMP field works.

    It should be changed to OT JDeveloper and DB too.

    Thanks to you all

    Is your VO attribute Timestamp? If this is not the case, make Timestamp.

  • Reduces size of file is saved with the time

    Hi all

    I use the system data with sample rate 10000 and 1000 per channel (there are 4 channels) to acquire the analog voltage signals to measure the amplitude of each channel.

    In addition the raw signals are saved as file TDM to a minute. The system works continuously for a week. I noticed that, after 3 hours, the size of the saved file is decreased according to time.

    Size starts with 50 MB/min and after 3 hours, it became 42 MB/min, after that 1 day became 11 MB/min. Which indicates that the data has been lost, please, what is my programming error.

    Thank you

    Since the zero status code, there are several things that could improve here.

    1. you only need to create the task once before the main loop.

    2. you probably don't even need the loop outter if you use logging configure DAQmx as I already said.  And you can use the properties to say how many samples to be included in a file before I go, so that the part of your code is eliminated.

    3. the display can be just a simple chart (it seems that you probably already use a chart).

    This defined for your ranking history?  May cause your slowing down if there are too many data points.

  • How to make the variable data record (intermittent time), with a real-time display

    I'm a complete newbie to Labview. We are currently developing a piece of hardware in the lab to automatically take the readings of the concentration of a sample, through correlations with voltage readings. I have read and worked through the getting started with Labview .pdf, but other than that my knowledge is minimal. I have a flowsheet of work who is able to do it correctly and display and write the data in real time. However, I want to be able to write to a file only every 10 minutes or so, since experiments can run for several days and the amount of data it currently logs is unnecessary.

    Would be nice if he could write it in columns like this:

    [date time]  [voltage ave]  [levels]

    xx                     xx                        xxx

    xx                     xx                        xxx

    xx                     xx                        xxx

    .. .but only once every 10 minutes. Or at any interval of time, I put.

    I tried to connect different parallel loops, but I failed miserably. I don't know if it is a relatively simple problem for you guys to help me with.

    I have attatched file. Please note that the file variables.txt is there simply to hold the settings for the correlation of concentration, which took charge of him.

    In addition, advice or tips to improve this would be greatly appreciated.

    Hi mooray.

    I took a quick look at your code, but you should be able to do something like this:

    When you have an Express VI elapsed time set to 600 seconds (10 minutes). If every 600 seconds time out will pass a Boolean TRUE, which will allow to write the measurement file Express VI. Therefore, what iteration of the while loop, you would write some input comes in the signal input to write it into a file position.

    There are other ways to do this as well, but it's pretty simple. I hope this helps!

    Thanks for choosing National instruments.

    Aaron P

    National Instruments

    Technical sales engineer

    http://www.NI.com/support

  • I just replaced my MB Pro with a MB Air. Air has less memory and will not support a full restore of files and the saved data. How to do a partial restore

    I just replaced my MB Pro with a MB Air. Air has less memory and will not support a full restore of files and the saved data. How to do a partial restore

    Do you still have the MBP? If so you can manually copy and paste the files you need.

    If you do not have the pro more, you need to buy a USB key and plug it into the MBA... use it as a target. Once you have a system file of the previous laptop again, you have to manually choose what to copy across.

  • Component of Windows Installer keeps poping up services.msc tried to stop but he comes back a few seconds, a few times it will not be quick to stop also tried msiexec unreg won't. The following will install manually or with automatic updating.

    Component of Windows Installer keeps poping up services.msc tried to stop but he comes back a few seconds, a few times it will not be quick to stop also tried msiexec unreg won't.  The following will install manually or with automatic updating.

    Microsoft .NET Framework 3.5 SP1 and .NET Framework 2.0 SP2 Security Update for Windows 2000, Windows Server 2003 and Windows XP x 86 (KB979909)
    Security Update for Microsoft .NET Framework 1.1 SP1 on Windows XP, Windows Vista and Windows Server 2008 x 86 (KB2416447)
    Update Microsoft .NET Framework 3.5 SP1 for Windows Server 2003 and Windows XP x 86 (KB982168)
    Security Update for Microsoft .NET Framework 2.0 SP2 and 3.5 SP1 on Windows Server 2003 and Windows XP x 86 (KB2418241)
    A security update for .NET Framework 2.0 SP2 and 3.5 SP1 on Windows Server 2003 and Windows XP x 86 (KB983583)
    Microsoft .NET Framework 3.5 SP1 and .NET Framework 2.0 SP2 update for Windows Server 2003 and Windows XP x 86 (KB982524)
    Update of security for Microsoft Office PowerPoint Viewer 2007 (KB2413381)
    Microsoft .NET Framework 3.5 Service Pack 1 and the .NET Framework 3.5 Family Update for versions of .NET 2.0 to 3.5 (KB951847) x 86

    Hello

    ·        Since when are you facing this problem?

    Windows Installer service is damaged. I suggest you follow the steps mentioned below.

    Method 1:

    I suggest you follow the steps mentioned below.

    Step 1:

     

    a. click on "Start" and then click on 'run '.

    b. type 'cmd' or 'command' in the box and click on 'OK '.

    c. type each of the following commands, and press 'Enter' after all the world:

    CD %windir%\system32

    Ren msi.dll msi.old

    Ren msiexec.exe msiexec.old

    Ren msihnd.dll msihnd.old

    output

    d. Type "exit" at the command prompt to close the command utility.

    e. restart your computer.

    Step 2:

    Download Windows Installer from the following link and install it on the system and see if the problem is resolved.

    Windows install 4.5 Redistributable

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

     

    Method 2:

    I suggest to reset the Windows Update components and then try to install updates on the system and check. Follow the steps mentioned below.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    For more reference, click on the link below.

    You cannot install some programs or updates

    http://support.Microsoft.com/kb/822798

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Almost any time I use the usb climb on my computer (with flash or ipod players) it freezes and crashes windows. I am up to date with drivers with Microsoft and HP, what can I do to stop this?

    I have no problem with the usb drives but in recent times, this happens all the time.  I can go into Device Manager and uninstall my usb drivers and allows that, sometimes, but it's a temporary solution.  I am up to date with drivers with Microsoft and HP, what can I do to stop this?

    Hello

    You can try to use your boot USB storage device and check if that helps. A clean boot helps eliminate software conflicts.

    The following link has steps showing how to perform the clean boot. http://support.Microsoft.com/kb/929135  
    (1) perform the clean boot
    i. Click Start, type msconfig in the search box and press ENTER.
    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.
    II. in the general tab, click Selective startup.
    III. under Selective startup, clear the check box load startup items.
    IV. click the Services tab, select the hide all Microsoft Services check box and then click Disable all.
    v. click OK.
    VI. When you are prompted, click on restart.
    VII. after the computer starts, check if the problem is resolved.

    (2) enable half the services
    (3) determine whether the problem returns
    (4) enable half of the startup items
    (5) determine if the problem returns
    (6) repeat the steps above until you find out which program or service is causing the issue
     
    After you determine the startup item or the service that is causing the problem, contact the manufacturer of the program to determine if the problem can be solved. Or, run the System Configuration utility, and then click to clear the check box of the element of the problem.
     
    Note: Please make sure that the computer is configured to start as usual by following step 7 of article http://support.microsoft.com/kb/929135 .

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
    (i) click Start, type msconfig.exe in the start search box and press ENTER. If you are prompted for an administrator password or for confirmation, type your password, or click on continue.
    (II) on the general tab, click the Normal startup option, and then click OK.

  • Date picker with errors of time with timestamp with local time zone (Apex 5.0)

    Have a problem for the datePicker (with time) to work on a timestamp with local time zone database column.

    It works very well with the time steps, but when I add a mask to format with the time it fails with an error like: -.

    «Date entered stressed attribute value sysdate to element P111000_TARGET_DATE does not YYYYMMDDHH24MI, format DD-MON-YYYY HH24 TZR.»

    I have tried many masks of different formats including: -.


    • DD-MON-YYYY HH24 TZR
    • DD-MON-YYYY HH24
    • HH:MIPM-MON-DD-YYYY
    • YYYYMMDDHH24MI


    but still get the same error...


    No matter who got the job or have a tip? Really want to use the timestamp with local time zone datatype as facilitates a lot of things.


    Thank you


    Phil.



    Pls ignore, do not read the error message... The problem was my default highlighted value in the wrong format.

  • By comparing the Date with timestamp without time portion

    Hello

    I have table lets say rates, it has a field called expire_date. Now, I need to display the records in this table which expires date is greater than today. Can someone tell me how to do?

    Currently, I do like this:

    Select * rate where expire_date > = (select SYSDATE from DOUBLE);

    This request is now selection of records whose timestamp is greater than the current date and time and other drops while the expire_Date is today with less time stamp.

    I need to show the records that are valid today and coming dates regardless of today

    Kind regards

    Ashish

    Select * rate where expire_date > = trunc (sysdate);

    Avoid the misuse of the double

    Kind regards

  • Is it possible when you save the psd file to put an automatic jpg file saved at the same time?

    My job is to prepare images for print viewers and window facilities.  My clients need to approve in advance the photos before printing.

    I generally save my psd files, but because the files are very large in this format I usually save another copy in a jpg file which has a much smaller file size.  This makes it possible for me to add to a presentation and and send them to my client.

    Is possible when you save the psd file to put an automatic jpg file saved at the same time?  Or that I always have to do it manually?

    Use the Image Processor in Photoshop or install the free Dr. Brown Services.

  • Compare the current time and date with last modified?

    Compare the current time and date with last modified?

    What is the ideal way due to report at the last modified file with the date and time class? last modifed class in the file value is of type long.

    798642 wrote:
    No no no no, currentTimeMillis() only gets you the time... I need to compare the Date and time.

    You should read the docs more closely. It gives you the current time in time, which includes the date.

Maybe you are looking for

  • How to remove megebackup

    Please I need help to remove megebackup

  • Merceanaries 2 wont install windows 7

    I need help. I bought merceanaries 2 and it will not be installed. I have windows 7 64 bit. I have check the compatibility of windows 7 from microsoft, and it is said merceanaries 2 should work. Is there something I need to do? Thank you

  • Problem executing .bat files

    Hello Recently I found myself unable to run .bat files. When I try to do, the computer slows down terribly and it takes forever to load cmd.exe and more to run each command. If, by chance, the .bat file terminates its execution, the computer plays ag

  • Photosmart C4385: Hp C4385 scanning software

    Hello I have the C4385 and have several years to scan HP sscan my documents. I have recently been unable to use this software because of an error message "scan cannot be performed because another program is using...". I uninstalled the HP software an

  • Windows 7 Home Basic 32 Bit software problem

    I had emailed twice to * address email is removed from the privacy * mentioning that my original Windows 7 Home Basic 32-bit software is not activating even by the telephone system automated after I had formatted the machine and re-installed from the