02-03-2009 01:35 AM
Hi,
I want to rotate image of picture ring (in particular angle). In my application I want to move a object(in circular form). Please tell me how to do it?
- Thank you
02-03-2009 02:20 AM
Hi Sonali,
i'm not sure if you mean the picture ring itself or the image with is shown in the picture ring. Do you need to rotate it at runtime or only ones?
Mike
02-03-2009 02:30 AM
hi,
I mean the image with is shown in the picture ring and I need to rotate it at runtime, I need to move the object in circular form continuously. I'm attaching one vi, in that i have added one picture which i need to move.
Thank you-
02-03-2009 02:34 AM
hi,
I mean the image with is shown in the picture ring and I need to rotate it at runtime, I need to move the object in circular form continuously. I'm attaching one vi, in that i have added one picture which i need to move.
Thank you-
02-03-2009 02:47 AM - edited 02-03-2009 02:48 AM
Hi,
one solution would be to insert your train in all positions you need it and to switch between the images. The other would be to read the image data from the picture ring, use an algorithm to rotate the image as much as you need it and write it back into the picture ring.
Can you explain in more detail how your program should work?
Mike
02-03-2009 04:19 AM
02-03-2009 05:33 AM
Hi Sonali,
the atatched example is able to rotate your train.
Hope it helps.
Mike
02-03-2009 05:51 AM
Hi MikeS81,
Thanks. But again one more problem is that how to move it and rotate it at the same time. In my program I need to move 25 trains at a time and according to signals need to stop and again move on track. If u could help me for one train also it will help me.
- Thank you
02-03-2009 06:04 AM
Hi Sonali,
as i said before, you should load your different train locations into the picture ring. As i understand now you move the entire picture ring to move your train. I think this part is already done by you. To rotate the train, you can change the picture ring value to show a new rotated train. I think you need not more then 10 picture in your picture ring for 90°.
Is there a reason why you can't use this solution?
Try to help.
Mike