09-11-2006 12:31 PM
09-11-2006 01:08 PM
09-11-2006 01:22 PM
09-11-2006 01:51 PM
09-11-2006 02:22 PM
Thanks for your replies. I am still playing with it. Now I have added the "file close.vi" just to clean things up. I re-arranged my operations so now I am updating the LegPlots to size the Legend, then updating the ActPlot/PlotName to populate the legend. Lastly I am updating the actual chart. All of this has made no difference to the way it works. The two problems still exist. More tomorrow....
09-11-2006 04:18 PM - edited 09-11-2006 04:18 PM
Message Edited by altenbach on 09-11-2006 02:19 PM
09-11-2006 04:24 PM
09-11-2006 04:38 PM - edited 09-11-2006 04:38 PM
@technomage wrote:
2. Presently I am using a loop to read the file in its entirety. However the chart only displays 1 second worth of data. This is one segment of the original file. By reading the whole file I am seeing the LAST second of my data. Previously I removed the loop and then I only see the first second of data. Is there an easy way to select a different segment of the file to display?
Just to clarify, you're not reading the entire file, since you are using only a plain output tunnel. You only get the last dataset, read in the last loop iteration. Everything else is thrown away. An output tunnel does not magically accumulate data from previous iterations. If you want to keep everything you need to reassemble the signals as you read each set.
It is not clear to me how you write the datafile and thus how the data is arranged inside the file. Can you show us that code?
Message Edited by altenbach on 09-11-2006 02:40 PM
09-12-2006 07:08 AM
altenbach, Thanks a ton for your assistance. I have gained serious insight by examining how you approached this. I am able to see how my thinking was somewhat flawed. Here is the vi I used to write the file. I have also included another sample .bin file (which needs to be renamed to .bin), and a subvi I built to generate filenames based on time stamps.
This is part of a system we are trying to build to monitor some of our equipment 24/7. The plan is to use this data to monitor long term degradation of the equipment in order to perform preventive maintenance, before problems occur. I work in a Nuclear plant, so problems can be serious...
In the final application the "Trigger" will be set by a physical input. For example, when a fuelling machine component is commanded to move we will start the data acquisition and when the machine is commanded to stop, the acqusition stops. The plan is to archive all of the data, and any analysis would be done by the system engineers later.
We would like to able to examine the entire data file which would be captured. A typical movement of our machine might last for as long as 2 minutes. We want to capture all of this time period, but we might need to examine only a couple of seconds anywhere within this window.
Thanks again for your insight. 5 Stars across the board....
technomage
09-12-2006 10:55 PM