06-26-2006 12:19 PM
06-26-2006 12:29 PM
@Peachy wrote:
Wow thank you very much Robert for your time and answers.Like you said, your answer are really brief, but I'll try to do it myself with what you gave me heheFor the moment, my only question is about #5:5) I'd like to have a log file for each day. Is there any way to change the name of the log file (put the date for the file name)?You can specify the name of the file to which the data will be written. There is a LabVIEW primitive, on the timing palette, which will give you the current date, and time, as a string which you can then use to create your log file.I know how to create a string with the timing palette, but I don't know which VI from the DSC module function I need to use for this. Where's this log file in my computer?Also I have a 😎 Is it normal that there's a long delay when I run my VI (there's almost nothing in it)? I guess it's because of the shared variable? But if I have 200 shared variable, is the delay going to be longer?Thanx again!Stephanie
Depending on whether you want the alarm data or the boolean data you would use:
Both of these VIs are located on the historical sub-palette of the DSC palette. Also, in both cases you will be able to specify the file path to which your historical data will be written.
As for the delay in running the VI...can you post it here? Then I can take a look at it and see if anything looks out of place. The shared variable should not add a significant time to running the VI.
06-26-2006 12:52 PM
06-26-2006 12:59 PM
06-26-2006 01:44 PM
06-26-2006 03:20 PM
06-26-2006 03:26 PM
Okay, I've created an example VI which, I hope, will help answer some of your issues.
This VI:
This is a very simple illustration but it should help to get you past some of the rough spots...I have some commenting in the diagram including a necessary instruction for you before you use this.
06-26-2006 03:36 PM
A couple notes from your VI...
Generally speaking, you should not use the database writing VIs on any variable which is being logged by the engine. Best case, if the engine process is active, the writer VIs will not be able to get the write lock and will do nothing. Worst case, you will make numerous unnecessary sub-traces which will degrade the database performance.
In order to use the event structure for shared variable value updates you must use the event structure support VIs from the DSC palette (I make use of these in the VI in my previous post.) There is an excellent example that better shows how to use these VIs. These VIs also allow you to get notified when alarms occur which will aid in minimizing the frequency in which you update your front panel indicator. Testing shows that using this mechanism is pretty fast so it should work well for you.
I've asked a couple other people with greater knowledge than I about some of the other areas you asked about to look in on this thread when they have a moment so we may be able to provide you will additional insights in the future.
06-26-2006 03:43 PM
06-27-2006 08:09 AM