LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"dont panic" blinking string...

Hello fans of DA,
 
following a discussion with a friend, and after having purchased the Deluxe edition of the "ultimate Hichthicker guide", we decided we need a handheld device, with "dont panic" written in big letters, with the text changing color all the time!
so i sat to the task, putting this code into the timout event.
But, when you run it, its not so nice, as the colors change totally randomely, and i would like it to change very smoothly from one color to the next.
is there already an algorithm for that, in LV?
there must be some easy way to do it, without having to make a complicated RGB compensation scheme.
 
suggestions?
 

Message Edited by Gabi1 on 08-24-2007 10:02 AM

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
Message 1 of 20
(4,428 Views)


@Gabi1 wrote:

[...] with the text changing color all the time! [...] there must be some easy way to do it, without having to make a complicated RGB compensation scheme.[...]




Well, if you really want to have the blinking "choose" all available colors randomly, you have no other choice like the one you already implemented. But as far as i understand, you want some kind of "pattern" so it is not that random.
Afaik, LV does not provide any "smooth-funtions for color-changes". So you have to solve it on your own....
But here is a hint: To "smoothen" the changes, you have to know what the last color has been (shiftregister), then add/substract a random value up to a maximum you want to use as "smoothing-factor".
The value can be randomized as well as add or substract-function....

hope this helps,
Norbert B.
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 20
(4,413 Views)
Try the attached VI (call it as a subVI).
 
Also have a look at the other attached VI (run it with highlight execution). Smiley Happy

___________________
Try to take over the world!
Download All
Message 3 of 20
(4,409 Views)
tst the brain 🙂
 
thanks a lot. that solve my problem.
i saw your multiply vi, a while ago. i still love it !
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
Message 4 of 20
(4,394 Views)
Thanks Norbert. tst just proposed that encapsualted in a AE. works perfect with some minor mods. 🙂
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
Message 5 of 20
(4,394 Views)

Gabi1,

Could you post an example of the solution implemtned as an AE?

I could then link this thread to the AE Nugget for yet another example.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 20
(4,370 Views)
Hello Ben,

here is a little example to play with. the AE is self initiating, in case values are empty (uses the default false of a boolean).
two main mode of operations, with roll-back of color, or without.
main modification is that next color will be randomely chosen.

Enjoy!

oops - forgot to attach 🙂

Message Edited by Gabi1 on 08-25-2007 12:23 AM

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
Message 7 of 20
(4,343 Views)
would you be willing to resave that for 7.1.1?
and yes the multiply was awesome :>)
Message 8 of 20
(4,329 Views)

sorry, i do have 7.1, but to resave i would have to pass trough 8.0. and i am lazy to redo all the vis...

maybe tst has the possibility?

 

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
Message 9 of 20
(4,312 Views)

I don't have 8.0, only 6.1, 7.0, 7.1 and 8.5 beta (for a little while longer, anyway).

I assume that if you backsave to 8.0 and upload it, someone else can do the additional step.


___________________
Try to take over the world!
Message 10 of 20
(4,302 Views)