03-01-2010 02:05 PM
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!
Best regards
Solved! Go to Solution.
03-01-2010 02:11 PM
kwaris wrote:...shown in attachment but I've got no clue how to create steering image, replace with gauge needle and so on.
Any ideas please!
Best regards
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.
Ben
03-01-2010 04:36 PM
Thanks Ben,
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)
Cheers
03-02-2010 08:09 AM - edited 03-02-2010 08:12 AM
Dear Kwaris,
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.
http://decibel.ni.com/content/docs/DOC-4819
Hope this has been useful,
Best wishes,
03-03-2010 02:08 PM
Thank you so much.
03-03-2010 04:02 PM
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.
03-26-2011 08:51 AM
BeauGauge Instrumention Suite pro Can makes your target came true with its simple operation.
Trial download : www.beaugauge.com/en/dwonloadv2.html