I would be using steering sensor and in order to show steering position on front panel, one of the possible ways could be to customize gauge control. I have seen custom control example in find examples hence believe gauge control could be customized into anything user would like it to appear as. I would like gauge control to be appeared as shown in attachment but I've got no clue how to create steering image, replace with gauge needle and so on.
Any ideas please!
Solved! Go to Solution.
...shown in attachment but I've got no clue how to create steering image, replace with gauge needle and so on.
Any ideas please!
LV does not supporting importing custom graphics that will ROTATE. Non-rotating yes. Rotating no.
You have two options.
1) Create a Pict Ring with all of the images you will need to render the wheel. If the number required for your app is just to high to define all of the images then....
2) Render teh image of the wheel usinga picture control.
I created pic ring as per code below. In my case there's only two image to import. one is wheel and everything as shown and second is small white rectangle which should move as steering position changes. I have no clue how to see this white rectangle to respond to knob as in the code.
Could you have a look for me please.
( I created image for control in ppt I am surprized when I imported it in picture ring and saved project explorer it appears as ctl file but in project folder it apppears as ppt file)
I think you missed the point Ben was making. I believe he is suggesting that you have numerious images (each showing a different wheel position) and create code which cycles through the positions. A very reasonable approach.
Please have a look at my attached code. It was a bit of a rushed effort, but it illastrates that your original idea is possible. Like I say, this method is far from eligant. Resizing the control will spoil the effect.
There are loads of articles and tutorials on created custom controls - including this awesome community page.
Hope this has been useful,
There's already a steering wheel made for you in the "Truck Fuzzy Control.vi" example but it uses the PID toolkit so I don't know if you have it.
I'll attach the subVI. It's the second method that Ben mentioned.
You'll also have to add code to resize the nifty steering wheel image if you need it bigger.