LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case structure language help


gchristi1 wrote:

I use comparisons, then convert boolean to integers and add creating three cases, 0, 1, 2

 

I'm still learning, so there may be a better solution.

 

I tried

 

..0.0

0.0

0.0..

 

and crashed LabVIEW 8.5 both times I tried it.


OK, LabVIEW should never crash, no matter what you do.

 

Can you reproduce exactly what you did to crash labview reproducibly? NI should be made aware of it so it can be fixed.

 

Easiest would be if you could save the VI right before the crash, attach it here, and then tell us what to do to crash it. Thanks!

Message 11 of 13
(662 Views)

Hi Tim,

I've modified that example VI slightly to count the number of iterations for each case. Then the code subtracts the start time from the end time and divides it by total number of iterations to give you the time per iteration.

You could go on to multiply that time by each iteration counter to find the number of time spent in each case.

Hope this is of use

Regards

Steve

0 Kudos
Message 12 of 13
(654 Views)
Please note that the business of counting (along with several examples) has been moved here.
Message 13 of 13
(647 Views)