08-25-2011 02:47 AM
Heh, that's even better. 🙂
/Y
08-25-2011 02:53 AM
Hey, thanks so much for the help guys. The problem has been solve. 🙂
08-25-2011 03:42 AM
Hi as you guys can see from the screenshot above, the slider value does not get pass to the RGB to colour vi and thus my graylevel picture does not change its colour. So is there any way for me to pass my slider value to the RGB to colour vi?
08-25-2011 04:12 AM - edited 08-25-2011 04:19 AM
The RGB to color VI needs U8-Integers (unsigned 8 bit values), not floats - though Labview should be able to convert that... hmm.
actually, that's the one thing i didn't get in your first problem: you wouldn't have to worry about limiting the values to 255 if using a U8 in the first place - adding 1 to an U8 with value 255 will give you a value of 0, since you would need 9 bit to describe the value of 256, and the 9th would be discarded.
Edit: argh! must have been blind!!!! These values can't leave a running while loop - they'll only be given out when the loop has stopped. you'll have to move the color changing functionality into that while-loop, or you will run it exactly once - after pressing "stop".
08-25-2011 04:18 AM
so how actually do I pass the value of the slider to my RGB to colour vi?
08-25-2011 04:19 AM - edited 08-25-2011 04:22 AM
see edit above
the first thing you'll have to understand in Labview is execution order: each block or loop can only start if all input wires have their data recieved and nothing can leave a loop without "tunneling" through local variables or similar before the loop has stopped.
08-25-2011 04:36 AM
The easy solution to Freds problem is moving the Grey image part inside the loop ...
/Y