LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Do U have a simple and intelligent solution for this problem? Logical problem...

I have explain what I need... maybe it's better if I do example?
0 Kudos
Message 11 of 15
(756 Views)

Michelle1892773 wrote:
Not very good... I hope excellent solution 😉
 

Michelle1892773 wrote:
<...> please save it for previous version of LabView. I don't have LW9.

 


How have you known if my solution is not "excelent" then? 😄

 

Okay, do an example. Maybe somebody will manage to help you 😉

Message Edited by Giedrius.S on 02-20-2010 12:32 AM
---

While evaluating my code please have in mind that I am a LV novice. Therefore sometimes my code might violate some coding rules that I have to learn about myself. But how else could I do that... 🙂

Chart zoom with "Mouse Over" effect
0 Kudos
Message 12 of 15
(753 Views)

Michelle1892773 wrote:
I have explain what I need... maybe it's better if I do example?

Yes.  As I said, either explain how Giedrius' solution is not right for you, or do your own work and post back if you have problems with how that works.

0 Kudos
Message 13 of 15
(733 Views)

I write the steps of the cycle, X is the variable that cycle modify, N is the random number that the cycle generate:

 

X=50;

N=24;

 

i=0:

      N(0)=83;

      N(0)<N;  (START WITH +, IF START WITH - CHANGE + WITH - AFTER)

      X(0)=50+1=51;

i=1:

      N(1)=72;

      N(1)<N(0); (YES, SAME OPERATION OF PREVIOUS STEP:+)

      X(1)=51+1=52;

i=2:

      N(2)=69;

      N(2)<N(1); (YES, SAME OPERATION OF PREVIOUS STEP:+)

      X(2)=52+1=53;

i=3:

      N(3)=98;

      N(3)<N(2); (NO, CHANGE OPERATION:-)

      X(3)=53-1=52;

i=4:

      N(4)=19;

      N(4)<N(3); (YES, SAME OPERATION OF PREVIOUS STEP:-)

      X(4)=52-1=51;

i=5:

      N(5)=77;

      N(5)<N(4); (NO, CHANGE OPERATION:+)

      X(5)= 51+1=52;

 

CONDITION OF END: THERE ARE 2 CHANGE CONSECUTIVE.

Message Edited by Michelle1892773 on 02-19-2010 04:57 PM
Message Edited by Michelle1892773 on 02-19-2010 04:58 PM
0 Kudos
Message 14 of 15
(731 Views)