05-01-2006 12:00 PM
05-02-2006 01:15 PM
Hi RJennings,
Thank you for posting in our forums. There are a couple of things that you can try to accomplish your tasks. One thing you might consider is to follow CoastalMaineBird's suggestion and implement their architecture. The parallel loop structure is another valid concept. You could use something known as a master/slave architecture where there are two parallel loops. You have a master loop that acquires the data and then sends the data to write along with a notification that the data is available to a slave loop. You could configure the master loop to send this data to the slave loop using the Elapsed Time Express VI to see when 10 sec has elapsed and use notifiers to send the data to be written to the file. This is an efficient method because you can use the master loop to poll the user interface for any changes.
You could also just use a case structure and wire the Time has Elapsed? terminal of the Elapsed Time Express VI to the case selector to have data written to your file once ten seconds has elapsed and just keep displaying the data when you are not logging the data to a file. These are some pretty good options that will work for your application. I hope all goes well for you. Take care and have a great day!
Regards,