Saving data in intervals of 30 or 40 seconds with a precision of millisecond
Hi all
For my lab work on a rewrite project, we try to take in the analog voltage to 15 k Htz entries. We then like to save these data for a specified time, i.e. 40,00 seconds, then stop recording to another interval inter specified test, that is 20 seconds and then start again. I looked around the forum of the means to achieve this, but it seems that most of the precision of ideas discussed until about 1 second. To our laboratory, it is crucial that we have the precision of the time up to 1 ms.
My original idea was that since DAQmx read using hardware timing (I think?) for the 15 k time Htz, it may be a good idea to schedule the following logic: Let's save 40 seconds, let's say 15 k * 40 samples and then rest for 20 seconds, so let's take the 15 k 20. samples and so on.
The three problems that I can think of off the top of my head are:
(1) to read DAQmx function only put data in buffer 1 by 1, then it may be difficult to always record the exact number of samples? i.e. If DAQmx removes data buffer of 1000 samples/iteration, it can be difficult to recover samples exactly 212,415,500, for example.
(2) I don't know if LabView built in record VI that allows me to specify the number of samples, that I want to save. In addition, these 'samples' are grouped into a waveform data type. (Well, a table 1 d of waveforms as we more than 1 channel at a time)
(3) the program shall also make timed output digital, if we save data using this mechanism of "assessment of the sample", timing logic will have to be another (?) logic separated.
Please tell me what you think of the idea. If it is not good, it would be great if you can point me to a better approach.
Oh, this is my first time coding in LabView, I'm open to all kinds of suggestions/comments of programming style.
As always, thanks for your help!
Tags: NI Software
Similar Questions
-
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.
-
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
-
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 advanceThen, it is almost certainly a problem of implicit sharing.
-
original title: robocopy
I'm trying to migrate data from a server to a new one with the file permissions of the files of users and records lost. So far, that's what I did, I used \\server1\share \\server2\share/sec /mir robocopy and robocopy \\server1\share \\serve2\share/e/s /copyall. It seams like they copied all files with the permissions of the user for the files, but not files. For example, if a user makes a folder with the files in the folder appear them have permissions appropriate for them but not the root folder or subfolders, they did... How can I fix this and what is the difference between / s /mir and/e/s /copyall?
Hello
You can find the Server forums on TechNet support, please create a new post at the following link:
http://social.technet.Microsoft.com/forums/en/category/WindowsServer/
-
I tried copies of files, but there are too many files to fit on a single disc. and go file-by-file will always there are probably 1000 data files. All are DOS program generated with 8 letter names.
Take the hard drive BACK machine, connect it to an adapter of drive external hard USB and which connect to the XP or Vista system.
-
VM have been storage vMotioned to another data store, and now I have 3 VM with white "!" inside a red square and I want to understand the cause of this.
Can you try to make a vmotion host and see if it gets resolved? If not, can you close the virtual machine and start again? I have seen this problem before and a stop and start resolved.
-
queryNew type date and time specific only to the second?
I create a game or an application using queryNew() split a query longer into related parts. One of the fields in the larger query is a date-time filed with millisecond data that relate to proplerly sort records. Apparently, the queryNew() function time and date data types are accurate for only the second and is to truncate the necessary data from Ms.
First question is possible to change this behavior and have the date of queryNew() and | or data types time be more accurate.
Oh, and I am a muppet. Use 'timestamp' data type.
-
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.
-
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...
-
Daylight Saving Format Date/Time String vs get time in seconds
Hi all
I have developed a real-time application using a cRIO 9074 which has two loops. The first gathers data and records the time using the module of ' string of Format Date/time ' with the following time sting: '%d/%m/%Y % H: %m ". The output is a sting with mouth/day/year hour: minute.
The second loop Gets the cRIO time using the module "get Date/Time in Seconds ' and the output of timestamp is sent by a shared variable for an application that is running on a local computer.
The problem started Sunday last with DST. With the help of MAX I am able to see that the time of cRIO is bad (1 hour less) and that him "automatically adjust clock for daylight saving time" is not checked and gray, so I am not able to change it.
The time of the first loop by using the "Date and time Format string' returns the time elapsed between the cRIO (1 hour late), however the time of the second loop is OK. I have manually corrected time using MAX, so now the first loop is correct, and the second is now over an hour.
Any ideas?
Dear RavensFan, thank you very much for your answer.
However, this was not the problem. Apparently the result with or without the element of DST is the same. I solved the problem, for now, by changing a parameter not on the function "get Date/Time in Seconds" but on the time stamp indicator.
By right clicing the indicator and go to the display Format and the advanced editing mode, I have changed the Format string to a universal time container of this: %< %="" h:="" %m="">< t="" %="" ^="">< %="" h:="" %m=""><>
Apparently the time from the 'get time in seconds' is still an hour longer, but now it is correctly displayed.
-
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.
-
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 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.
-
Is it possible to save data to the reader? I spent the last four hours to change a document and, in all likelihood, it appeared to save my data and everything was OK When I open my file - none of my changes have been saved. What gives? Please do not tell me to spend $1 300 for acrobat. Thank you.
You need only $299.
Maybe you are looking for
-
Migrating to SATA drive to iMac
Four days ago my MacPro (2010) died. I have four 3 "SATA drives from 1 to 2 to each of Mac Pro. The computer was for business and personal use. Absolutely everything (including financial information) I have is on these four discs, including redundant
-
Recently deleted album missing after 'Delete All'
I did a "remove all" album of "Recently deleted" Photos to free up space on my HD on MacBook Pro. I'm under El Capitan. I started doing additional destruction of photos and went to empty the "recently deleted" album and go! The album "Recently delete
-
I have checked my settings and plug-ins and cannot fix. My Firefox on my laptop is not these, and nor does Internet Explorer. I think it is one thing to Java, but not sure. This is obviously to do with the key (key action). Any suggestions? Example s
-
Based on Windows Vista unable to launch Java application
Windows Vista unable to launch Java based application for example Samsung phone mobile file management software Kies, iPhone iTunes and trading stations. I had uninstalled all the old version of Java and downloaded the java last official website of J
-
Is it possible with MS OS7 to network a printer Brother MFC-6800 cable LAN Cat 5 rather that physically connect the printer cable USB and all the accesoriess in my network? How can I configure this network?