cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

exit option for if condition

PS_9759531
8-Gravel

exit option for if condition

Hi everybody,

 

I ask you because I don’t know any solution. I have some Data in the given Ex-celsheet. Interesting is the force F_S0_org and the according time t. This is the red plot in the diagram. I want to read out the time when the force F_S0_org is higher than the parameter GW for the first and for the last time. (For all three curves, to seperate them later) But my program gives me back all the the times. The problem is, that I don’t know how to realize an exit option for my if condition after it found the first time….

Something like break or continue. But it doesn’t do anything when I use these commands.

You can see that in the diagram. The vertical blue lines are the times. So you can say that I want only the left and right side of the blue blocks.

 

Sorry for my bad english, I’m a german guy.

Wish you a safe Christmas. 🙂

Thanks Paul.

2 REPLIES 2

Like so

g0.jpg

 

I've just noticed you want it for all three.  The code above just chooses the very first and the very last.  However, by putting in some extra logic conditions, and introducing t3,t4,t5 and t6, you should be able to modify the above to get what you want.

 

Alan

Werner_E
25-Diamond I
(To:PS_9759531)

Here is one way to do it.

The stacking of 0 in front and at the end of the created vector is only done in case that the first or last value of the data is already/still greater than GW.

The routine will not catch a single peak value (just one data value over GW surrounded by lower values).

Werner_E_0-1608571945243.png

 

Ein Frohes Fest und schöne Feiertage (trotz hartem Lockdown)!

 

Announcements

Top Tags