03-06-2008 06:43 AM
03-06-2008 07:06 AM
03-06-2008 07:42 AM
03-06-2008 07:51 AM
JB
Thx for your help, but i can't open your files becouse they save to 8.5 and i have 8.2.1
I think i didn't explain my problem as well, I need a timer to show the elapse time since the program start.
Thx
03-06-2008 08:08 AM
yechielo a écrit:
I think i didn't explain my problem as well, I need a timer to show the elapse time since the program start.
03-06-2008 08:39 AM
03-06-2008 08:53 AM
03-09-2008 04:04 AM
Dennis,
you right, I reorganze my program, the main idea in my program is to collect data from DAQ for knowm time, present the elapsed time in my front panel and in the end write the data to xls file.
my program need to stop if the DAQ finish to collect the data or the user press on stop button
now, the DAQ read data, the time presents but i can't stop the program when the DAQ finish to work
i add my program, any comments accepted
Thx for your help
03-09-2008 11:54 AM - edited 03-09-2008 12:02 PM
First of all, since the DAQ cannot be stopped, the stop button is useless. All you need is wait for the DAQ to finish, then stop the timer loop. Also, your sequence structure is useless, because the sequrence of events is entirely determined by dataflow. What's up with all these hidden indicators? If you can't see them, you don't really need them. 😉
I would not bulk up the code with all this fancy stuff (notifiers, time formatters, etc). All you really need is a loop that spins once per second and then display the iteration counter as HH:MM:SS. If you want fractional seconds, run the loop a bit faster, divide the iteration counter accordingly, and display it as DBL with a format of HH:MM:SS.ss, for example.
Here's a lightweight alternative. I left a few comments on the diagram. See if it makes sense.
Sorry, I don't have DAQ installed, so I cannot run your code or look at the DAQ express VI. How long is the DAQ actually taking?
03-09-2008 12:10 PM