Hello alana,
The example posted above is a useful tool for moving indicators. However, it is important to bear in mind that continuously refreshing the Front Panel and having your PC redraw the controls could slow down your entire application.
Using some existing controls that can handle data changing could be a more scalable option for the future. You could consider using:
- An 2D XY Graph, where you keep redrawing data that appears to be a ball or box.
- A 3D Picture control where you can move objects in 3D space.
Both controls can be found on the Front Panel under 'Modern'->'Graph'. Context help (Ctrl+H) can advise you on how to pass data into an XY graph. For an example on using 3D Picture controls, follow these steps:
- In the LabVIEW Main menu, navigate to 'Help'->'Find Examples'
- In the 'Search' tab, search 3D
- Open example 'Bouncing Ball 3D.vi'
Regards,
George T.
Senior Applications Engineer
National Instruments UK and Ireland