LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use LabWindows/CVI do Roulette Wheel ?

未命名.jpg

This is LabVIEW's example.

I want use cvi to like it. (push  start button & picture will be whirl)

How do I create an image and Rotate it ?

 

 

0 Kudos
Message 1 of 5
(5,130 Views)

Hey , 

 

Would you mind to share the name of this LabVIEW example ?

Regards,
Sean
0 Kudos
Message 2 of 5
(5,072 Views)

I do not know that LabVIEW example, but are you sure the program actually rotates the image?

 

The simplest way I can think of to do this is to have a set of images loaded into a picture ring control, each "rotated" a while with respect to the preceding one. The program can next simply show the images one by one with an appropriate dealy to mimic roulette rotation. It's more or less how animated gifs are made.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 5
(5,071 Views)

Labview's Example

0 Kudos
Message 4 of 5
(5,064 Views)

The LV program does not rotates the image: it recalculates and redraws it instead. You can observe that numbers are not rotated but are always drawn horizontally.

 

You could replicate this behaviour using a canvas control and the appropriate functions to draw text and arcs and paint them. You can look at canvas.cws and piedemo.cws examples. They are already installed on your machine in samples directory: use the example finder (Helo >> Find examples menu function) to locate it.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 5
(5,055 Views)