Saving data during monitoring continues to supply

Hello

I started to learn the LabView recently and I worked on this small code. The idea is to monitor the power supply voltage and data current and Records in a spreadsheet when there is a change in voltage/current continuous playback or change voltage by the user.

I used a structure of the event to add the worksheet if there is a change in the value of voltage/current. But through execution to highlight, I noticed that the code continues to monitor the voltage/current and therefore does not re-iterate until the voltage is changed manually by the user. I tried to use the case out of the while loop structure, but this leads to other errors.

Any information on this would be appreciated.

Thank you for your time.

Put the writing to the file inside the structure of the event.  You will also want to put a value of timeout for your structure of the event.

DataFlow 101: A loop cannot iterate until all the code inside it is complete.  This structure of the event is sitting there and you wait to change the frequency, or press the stop button.  In the meantime, nothing else in this loop can run again.

Tags: NI Software

Similar Questions

  • First fall of 12 elements, all saved data lost on a new project.

    I was working on a short project that had many video and audio clips. About 3 hours in the first project elements 12 crashed. Now, it will not open the saved data. He simply said "an unknown error has occurred during the opening of the project" Am I GROUND? What should I expect as a regular from Adobe? More importantly, is there a method to recover the project? I am a new user of Adobe Elements and video editing in general.

    Thank you

    Jordan M-

    jordanmoorman84

    Thanks for the update and glad you are moving in your project of first Elements. But...

    Remember... you use first items 12/12.1 on Windows 7 32-bit. Under this condition, first elements 12 or 12.1 runs as an application 32 bit with all the limitations of a 32-bit system, namely maximum supported installed RAM = 4 GB which usually 3.2 to 3.0 GB or less available. This has major implications related to the chance for the greater realization of a project. First 12 elements is a 64-bit application in Windows ONLY when it is run on Windows 7, 8 or 8.1 64-bit. Under this condition, first 12 elements can take advantage of the 64-bit like application resources for these most important project at a greater frequency of success.

    Initially, you said that you were able to complete with success similar to the problem project projects under the existing conditions. At any time you mention no memory low message.

    The difficulty that seems to work for you involves virtual memory not physical memory (RAM). Virtual memory is disk space allocated for purposes of memory.  In view of recent developments, it would seem that the real difficulty for you is to install your first items 12/12.1 on Windows 7 64 bit with about 8 GB installed RAM. I'll go in a further analysis of virtual and physical memory and the/3 GB switch if necessary.

    Nice that you found a way forward in your projects (this is fine), please review and consider the foregoing.

    RTA

  • 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.

  • I lost some data during a copy and paste procedure between folders on a thumb drive... any ideas how to recover this data?

    I lost some data during a copy and paste procedure between folders on a thumb drive... any ideas how to recover this data?

    I lost some data during a copy and paste procedure between folders on a thumb drive... any ideas how to recover this data?

    If you did a copy and paste, the original files are left intact when they came.  If you did a cut and paste, they are lost if you do not paste them and your paperweight (the location of storage to copy or cut and paste) was allowed.  It would be cleared if you did quite exemplary or cuts too fill it, or if you rebooted.

  • The data execution program continues to stop working Internet Explorer

    Data execution program continues to stop working Internet Explorer

    Hello

    EricLaw IEInternals - a peek at Internet Explorer from inside. -Understanding DEP/NX
    http://blogs.msdn.com/ieinternals/archive/2009/10/10/understanding-data-execution-prevention-crashes-in-IE8.aspx

    The problem might actually be an add-on or another program to the origin of the problem and you should check that
    1st.

    What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER on it
    machines, including those that you have uninstalled (they leave leftovers behind which can cause strange problems).

    Start - all programs - Accessores - system tools - IE with no Addons - does this work better?

    IE - Tools - Internet Options - Advanced - tab click on restore, and then click Reset - apply / OK

    IE - Tools - Internet Options - Security - reset all Zones by default level - apply / OK

    not better?

    Close IE and try again IE or IE with no Addons

    IE - tools - manage Addons (for sure disable SSV2 if it is there, it is no longer necessary but Java always install
    "(and it causes problems - you never update Java to go back in and turn it off again)." Search for other possible problems.

    Windows Defender - tools - software explore - look for problems with programs that do not look right. Permit
    are usually OK and "unauthorized" are not always bad. If in doubt about a program to ask about it here.

    Could be that a BHO - BHOremover - free - standalone program, needs no installation, download and run - not all
    are bad, but some can cause your question. (Toolbars are BHO)
    http://securityxploded.com/bhoremover.php

    Startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    Also get Malwarebytes - free - use as scanner only. If you ever suspect malware, and it would be
    unusual with Prevx market except for an occasional cookie of low level (not a big deal), update it, then
    run as a scanner.

    http://www.Malwarebytes.org/

    I would add prevx so.

    Prevx - Home - small, fast, exceptional CLOUD free protection, working with other security programs. It comes
    a scan only, VERY EFFICIENT, if it finds something to come back here or use Google to see how to remove.
    http://www.prevx.com/

    PCmag - Prevx - Editor's choice
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    -------------------------------------------------------------------

    Do yourself a big favor and work through 1 above.

    How control DEP but I don't recommend turning it off and certainly not to let power off.

    How to enable DEP on or off for a program under Vista
    http://www.Vistax64.com/tutorials/65790-DEP-turn-off-programs.html

    How to enable or disable DEP in Vista
    http://www.Vistax64.com/tutorials/120778-DEP-enable-disable.html

    ====================================

    If nothing else works you can try this however I would use as a last resort.

    IE - Tools - Internet Options - Advanced Options - Security Section - clear the check box enable memory Protection to mitigate
    Online - APPLY - OK attacks close and restart IE

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • Problem of saving data on the form

    Hello

    In my ranks on dataform that I try to save the data for a member and it dosent record. There are three levels for the Member

    A-> level 2
    B > level 1
    C > Level0

    I chose A on the form IDescendants, and if I save data on members C it common record. However when I select only C in the selection of members on dataform data is saved.

    The only thing that comes to mind is that Member C is implicit sharing member (as a member of level 0) and A, B and C all three stored property outline.

    Should I choose member B like never share and select Idescendants would be saved data?

    Please help its urgent!

    Thank you in advance

    Then, it is almost certainly a problem of implicit sharing.

  • How to stop a single channel of data acquisition while continuing to monitor another?

    I wonder if it is possible to stop and collect data (Ex: send Excel) from a channel on my acquisition of data (Ex: channel ai0), but continue to collect data from all channels (Ex: ai2).

    You do so much too difficult for yourself here.

    1. you use graphics.  It's great!  Here's the thing about the graphics: they keep a story.  So there is no need to append waveforms  Just wire the waveforms directly in the table.

    2. change your Dynamic Data type for a waveform output.  It will make your cards a little happier.

    3. you can right click on the card when the program is running and that there is an option to export-> To Excel.  No additional coding necessary.

  • Saving data to files

    Hello

    I have to save some data in some files.

    The files are selected by the user using a dialog box. However, when the dialog box appears, it is unclear when the file is saved. Is it possible for the user to perform ideally what file it saves? In my program, the user has the option to save / add data to different files separately. Therefore, it becomes very confusing to remember the order in which appear the dialog boxes. Please suggest a solution to this.

    Also, can you please advice how to tie the timestamps for the recorded data?

    Thank you

    P.S. all the data is saved in a cycle in the loop.

    Dheeraj salvation,

    I understand that during the recording of the user will have to choose two files? To save one and the other to add data?
    If this is the case, you can tell the user which files that they save to the title of the dialog box (the file dialog box has a property named "Speedy" in which you can plug a name/text customized for your dialog window).

    Looked at,.

    Mariana.

  • Real-time display at the high frequency of data acquisition with continuous recording

    Hi all

    I encountered a problem and you need help.

    I collect tensions and corresponding currents via a card PCI-6221. While acquiriing data, I would like to see the values on a XY graph, so that I can also check current vs only voltage/current / time. In addition, data should be recorded on the acquisition.

    First, I create hannels to analog input with the Virutal DAQmx channel create, then I set the sampling frequency and the mode and begin the tasks. The DAQmx.Read is placed in a while loop. Because of the high noise to signal, I want to average for example every 200 points of the current and acquired for this draw versus the average acquisition time or average voltage. The recording of the data should also appear in the while loop.

    The first thing, I thought, was to run in continuous Mode data acquisition and utilization for example 10 k s/s sampling frequency. The DAQmx.Read is set to 1 D Wfm N Chan N Samp (there are 4 channels in total) and the number of samples per channel for example is 1000 to avoid the errors/subscribe for more of the buffer. Each of these packages of 1000 samples should be separatet (I use Index Array at the moment). After gaining separate waveforms out of table 1 d of waveforms, I extracted the value of Y to get items of waveform. The error that results must then be treated to get average values.

    But how to get these averages without delaying my code?

    My idea/concern is this: I've read 1000 samples after about 0.1 s. These then are divded into single waveforms, time information are subtracted, a sort of loop to sprawl is used (I don't know how this exactly), the data are transferred to a XY Chart and saved to a .dat file. After all that's happened (I hope I understood correctly the flow of data within a while loop), the code in the while loop again then 1000 samples read and are processed.

    But if the treatment was too long the DAQmx.Read runs too late and cycle to cycle, reading buffer behind the generation of data on the card PCI-6221.

    This concern is reasonable? And how can I get around this? Does anyone know a way to average and save the data?

    I mean, the first thing that I would consider increasing the number of samples per channel, but this also increases the duration of the data processing.

    The other question is on the calendar. If I understand correctly, the timestamp is generated once when the task starts (with the DAQmxStartTask) and the time difference betweeen the datapoints is then computed by 1 divded by the sampling frequency. However, if the treatment takes considerable time, how can I make sure, that this error does not accumulate?

    I'm sorry for the long plain text!

    You can find my attached example-vi(only to show roughly what I was thinking, I know there are two averaging-functions and the rate are not correctly set now).

    Best wishes and thank you in advance,

    MR. KSE

    PS: I should add: imagine the acquisition of data running on a really old and slow PC, for example a Pentium III.

    PPS: I do not know why, but I can't reach my vi...


  • Saving data in the database Access by using VB 2010. Need of lots of codes

    I created a database using Microsoft access file for my Application created using VB 2010. then it was installing on another computer, it displays an error saving file. I need complete codes for data stored in the database.

    Error message:
    unhandled exception has occurred in your application.if you click continue.the application will ignore this error and attempt to continue. If you click on leave. the application immediately quits the operation should use an update query.

    Details of Error Msg:
    See the end of this message for details on the call
    just-in-time (JIT) debugging instead of this dialog box.

    The exception text *.
    System.Data.OleDb.OleDbException (0x80004005): Operation must use an update query.
    to Material_Searching_System.MATERIAL_DATASHEETDataSetTableAdapters.TableAdapterManager.UpdateAll (dataSet MATERIAL_DATASHEETDataSet) in C:\Users\Sanjeewa Dissanayake\Desktop\kk\Material System\Material research System\MATERIAL_DATASHEETDataSet.Designer.vb:line 1511
    at Material_Searching_System.Form2.Button1_Click (Object sender, EventArgs e) C:\Users\Sanjeewa Dissanayake\Desktop\kk\Material research System\Material research System\Form2.vb:line 29
    at System.Windows.Forms.Control.OnClick (EventArgs e)
    at System.Windows.Forms.Button.OnClick (EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp (MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp (Message & m, MouseButtons, Int32 clicks button)
    at System.Windows.Forms.Control.WndProc (Message & m)
    at System.Windows.Forms.ButtonBase.WndProc (Message & m)
    at System.Windows.Forms.Button.WndProc (Message & m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage (Message & m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc (Message & m)
    at System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Loading assemblies *.
    mscorlib
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319 - 0100)
    Code: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    System for material
    Assembly version: 1.0.0.0
    Win32 Version: 1.0.0.0
    Code: file:///C:/Program%20Files/Material%20Searching%20System/Material%20Searching%20System.exe
    ----------------------------------------
    Microsoft.VisualBasic
    Assembly version: 10.0.0.0
    Win32 Version: 10.0.30319.1 built by: RTMRel
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Core
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Windows.Forms
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319 - 0100)
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    System.Data
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319 - 0100)
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Xml
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Data.DataSetExtensions
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
    ----------------------------------------
    System.Numerics
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
    ----------------------------------------
    System.Configuration
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319 - 0100)
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Transactions
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319 - 0100)
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
    ----------------------------------------
    System.EnterpriseServices
    Assembly version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319 - 0100)
    Code: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    ----------------------------------------

    JIT debugging *.
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    permit.

    For example:


       

    When JIT debugging is enabled, an unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

    Hello

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums.

    MSDN Forum (Visual Basic)

    http://social.msdn.Microsoft.com/forums/en/vbgeneral/threads

    Hope this information helps.

  • How can I change where Firefox seeks its saved data from cookie/bookmark/password? I would like to move these files to an encrypted drive.

    I use TrueCrypt encrypt a portable hard drive. Essentially, I would like to be able to move data from my profile on this disc. Then, whenever Firefox is started on my computer without the mounted disk, it is not bookmarks/passwords / cookies saved. When I drive, I wish I could tell Firefox to consult about it and find the data in profile automatically.

    Hello iffotun, you can use the Profile Manager to create a profile (which stores all your personal data) on the encrypted drive...

  • Tecra R840-111: external monitor continuously restarts

    Hi all!

    I have a problem when you use the vga of the Tecra R840-111 with my external monitor/TV (LG M237WDP).
    Restarts it continuously monitor (it seems to restart).

    This behavior does not occur with another external monitor or if I use another laptop with the monitor named above.
    I used a live CD of linux (ubuntu) and everything is ok. Isn't weird?

    Advice?

    My toshiba has a kind of hidden in the bios menu diagnosis?
    I know that some laptop requires the user to for example hit CTRL + V in the bios in order to enter the diagnostic menu. Is there something like this?

    Can you help me?

    Thank you.
    Marco.

    Hello

    I have exactly the same external monitor but I don't t notice any monitor emits as you described in the message.
    I have two laptops and the monitor is connected to using VGA cable and DVI cable for two laptops
    In both cases, the monitor does not restart so I m not quite sure what you are talking about

    With regard to the BIOS.
    It s don't know for me about the hidden in the BIOS menus.
    In addition, you said that this problem does not occur with Linux, so I would say that its certainly nothing wrong with the BIOS. Also this theory would confirm because the other external monitor works well.

    Maybe some sort of software preinstalled Windows OS cause this?

    Also in the BIOS, you can choose the detection of the external monitor option (or something similar). Usually its set to automatic, but I assign this internal display.

  • Sample of high acquisition rate of data using data acquisition and continuous data backup. Also I would chunck data into a new file in each 32 M

    Hello:

    I'm very new to LabView, so I need help to find an idea that can help me to record data continuously in real time. I don't want the file is too big, so I would like a new file in Crete in each 32 mega bytes and clear the previous buffer. Now I have this code can save data of voltage in the TDMS files and the sampling frequency is 2 m Hz, so the amount of data very fast increase and my computer have more ram 2 G, then the computer hangs after 10 seconds, I'm starting to collect data. I need some advice you briliant people.

    Thank you very much I appreciate really.

    I'm a big supporter of the architecture of producer/consumer .  But this is the place that I recommend.  The DAQmx Configure Logging does all that for you!

    Note: You will want to use a table instead of a graph here.

  • Saving data to the Buffer for reading

    Hello

    I'm new to LabVIEW has really need help here. So, I have problem on the registration of data about from the buffer (string) until I have push the Boolean stop. What I get is the data has been saved one line and not all data leave I run the program until I click on the Boolean stop. Can someone help me with this, I have already attached .vi and txt files what txt file shows what the result that I want to.

    Thanks T_T

    What you need to do is open the file before the start of the loop, write several times in the file inside of the loop and then close the file after the loop.

  • 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.

Maybe you are looking for

  • Block a message on Macbook but still receive it on iphone?

    I would like to stop a message by a number display on my macbook but still receive it on my iphone. Is there a way to do this? Both devices work with the last OS update.

  • 2.14 Bios Acer W700P bug

    Hi, I've updated the bios for my Acer W700P, downloaded the file "BIOS_Acer_2.14_A_A.zip" and after the update process went well, now the windows Task Manager is always show 100% cpu usage that is not correct, because other processes such as sysinter

  • What is the best way to share a file online

    I want to be able to share a series of files safely with another person over the internet which is the best way to do this?

  • Can someone help?

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: problems with my Sata Drive My device manager sees my hard drive but my disk manager does not work I want to format the new hard drive an

  • 7520 HP e-all in one printer

    I can't get my failure to be "plain paper".  Under the properties...paper/quality... I was on "main tray", "8 x 10"and the paper remains at the HP Advanced Photo paper... and I can't get the default to return to the "plain paper". "   As part of phot