12-05-2008 08:24 AM
Hi,
I made program for particle measurement with LabView.
So far, the programm is live-grabbing in a timeout event of an event structure all the time, and starts writing the measurements to a file and graph, if the area of the particle has reached a certain value. (the writing scenario is another case structure in my timeout loop)
Now, what I want the program to do, is stopping this case structure, after a certain time, which should be controlled by the user.
Can anyone please give me a hint?
So far, I can't figure out how to do that.
Greetings,
Rouven
12-05-2008 08:37 AM
12-05-2008 08:38 AM
12-07-2008 11:42 PM
thanks for your replies!
But there's something different in my program structure.
I'm having a case structure inside the timeout which, if true, writes the measurement file. (true=particle size has reached a certain value)
I just want this case-structure to stop after a certain time.
How exactly does that work?
12-08-2008 12:20 AM
12-08-2008 12:21 AM
Just connect the output of the comparison function to the case structure.
Use highlight execution to see how it works
12-08-2008 02:02 AM
okay. so here's a screenshot of a part of the block diagram attached.
I know, that the structure of my code isn't that good. But I hope the problem can be solved.
To give you an idea of what's happening in the program:
A picture is being acquired continuously (outer while loop), processed (particle analysis) and displayed (inner event structure "timeout").
Now, what I want to do now is to only save the measured data, when the particle has reached a certain area, but also control how long it's been measured.
I hope, you can help me.
12-08-2008 02:49 AM
12-08-2008 02:58 AM
thanks.
Maybe I forgot to mention it, but I'd like to start the counter with the case-structure.
The way I understand your code is, that the case-strucutre will be executed if my particle size is big enough AND the time is up?!
Or am I wrong?
12-08-2008 03:42 AM
I changed the comparison to the second picture, so it will be executed as long as the time has not passed out.