>>If you don't mind, post a simplified version of your VI.
Due to my extensive self-taught knowledge of LV, simplified versions are all I can currently create. At the moment, I am trying to gather concepts for later final assembly, as I am an electrical engineering student working at an internship where I am the only EE on staff. Final Assembly date is early Sept.
How am I doing it?? Good question.. Still figuring that part out. Currently I acquire a sample of 83 points w/ rate at 5000. This was chosen as 1 complete cycle of 60Hz to remove unwanted noise. These 83 samples are put trough the 'mean' function, and scaled appropriately to allow accurate results from the 'Strain Conv' function, then processed to achieve accuracy in psi and sent to a chart for real time observations, and to a tunnel for indexing.
I would like to add an alarm to indicate when the output hits xxxx (roughly 15000), acquire an additional 10 seconds of information, then save this to a file.
Thus far I was planning on trying Sequence loops...
Frame 1: use a 'sequence local' to get the initial data to later frames, where the alarm would stop the first while loop.
Frame 2: continue sampling the data for xx seconds, send to another sequence local
Frame 3: gather both locals together, build new array, save this to a file... Hopefully with a time/date like stamp as a file name to allow it to run un-monitored for an extended period of time.
As this is a new venture, I have thus far not attempted frames 2 & 3 yet, working on that. I am guessing that the tick count you are referring to in your suggestion is from the iteration counter ('i' in a blue box), inside the while loop. I will work on that.
I also recently contacted CC for assistance creating a time/date stamp for the file name... do you think this could work? (didn't ask this specifically) and I still haven't figured out how to create a file path from this. (granted the whole file path thing is a mystery in general)
Plus.... when events happen, all data from the beginning of the aquisition run is saved, the longer the run, the longer the file. Is there a way to limit this to say.... the last 3000 samples? I think it would have something to do with creating an array xx long to start, then filling it, when the array is full the next point in the top will kick the last one out the bottom. (i think)
I have attached one of the most recent versions of my attempts, hopefully you can open it. Please note I am using LV6.0.2
Thank you sooo much for your help, (this is meant for EVERYONE). I feel lost. Everyone's direction and responses in all areas has been invaluable. Though I wish more would post in neutral formats, as there are many vi's I would like to glance at that I cannot due to version gaps.