11-21-2006 01:34 AM
11-21-2006 03:27 AM
I have attached an example that simulates the saving of data every 250 points. You mentioned clicking a button so I am going to assume that you want to do the saving of the data interactively instead of automatically. So the example uses a producer/consumer with events. The idea of this is to make sure that the Save Data: Value Change event executes quckly and passes all work to save to the database to the consumer loop. This is design to will avoid any front panel lock ups caused by events taking a long time to execute.
Now all this really depends on the architecture of your program but hopefully it will give you some ideas.
David
11-21-2006 08:12 AM
11-22-2006 08:26 PM