karthik Posted September 19, 2007 Report Share Posted September 19, 2007 Hello, Can anybody please tell me how to customize a meter to get a RPM meter which I have attached with this post.It is a simple control which we generally see in cars or bikes to display RPM value.It starts from 0 to 30 and changes its colour depending on which slot it belongs.For example 0 to 5 it has to display green and from 20 to 30 it has to display red.Thanks in advance. Regards, Karthik LabVIEW 8.2.1 Quote Link to comment
Born2Wire Posted September 19, 2007 Report Share Posted September 19, 2007 QUOTE(karthik @ Sep 18 2007, 03:34 AM) Hello,Can anybody please tell me how to customize a meter to get a RPM meter which I have attached with this post.It is a simple control which we generally see in cars or bikes to display RPM value.It starts from 0 to 30 and changes its colour depending on which slot it belongs.For example 0 to 5 it has to display green and from 20 to 30 it has to display red.Thanks in advance. I am afraid if you want to have a meter that looks exactly like the one in your image that you are going to have to do a lot of low level coding. Either that or buy an ActiveX control of the kind you want. In other words, you are going to have to write code that turns on and off the individual pixels you want. Quote Link to comment
wevanarsdale Posted September 19, 2007 Report Share Posted September 19, 2007 QUOTE(karthik @ Sep 18 2007, 04:34 AM) Can anybody please tell me how to customize a meter to get a RPM meter which I have attached with this post. It is a simple control which we generally see in cars or bikes to display RPM value. It starts from 0 to 30 and changes its colour depending on which slot it belongs. For example 0 to 5 it has to display green and from 20 to 30 it has to display red. Thanks in advance. Karthik: 1. Select the "Meter" control on the panel of the attached VI. 2. Select "Customize Control..." from the Edit menu. 3. Press the button on the toolbar to change to customize mode. 4. Import your grid pattern by selecting "Import Picture to Clipboard..." from the Edit menu. 5. Select the white background on the control and paste your grid. 6. Resize as necessary and save the control. http://lavag.org/old_files/monthly_09_2007/post-10-1190138454.png' target="_blank"> Best of luck, Quote Link to comment
Grampa_of_Oliva_n_Eden Posted September 19, 2007 Report Share Posted September 19, 2007 QUOTE(wevanarsdale @ Sep 18 2007, 02:03 PM) Karthik: 1. Select the "Meter" control on the panel of the attached VI. 2. Select "Customize Control..." from the Edit menu. 3. Press the button on the toolbar to change to customize mode. 4. Import your grid pattern by selecting "Import Picture to Clipboard..." from the Edit menu. 5. Select the white background on the control and paste your grid. 6. Resize as necessary and save the control. http://lavag.org/old_files/monthly_09_2007/post-10-1190138454.png' target="_blank"> Best of luck, Adding to above... THe color ramp values and colors can be changed on the fly. So do the customizing as outlined. Hide the needle Code up the ramp color changes You are there! Ben Quote Link to comment
karthik Posted September 20, 2007 Author Report Share Posted September 20, 2007 QUOTE(Ben @ Sep 18 2007, 11:49 PM) Adding to above...THe color ramp values and colors can be changed on the fly. So do the customizing as outlined. Hide the needle Code up the ramp color changes You are there! Ben Hello Ben, Thanks for your reply.Can you please mention how to change the colours of the meter grid programatically based on input value? Karthik SP Quote Link to comment
Rolf Kalbermatter Posted September 20, 2007 Report Share Posted September 20, 2007 QUOTE(karthik @ Sep 19 2007, 02:08 AM) Hello Ben,Thanks for your reply.Can you please mention how to change the colours of the meter grid programatically based on input value? I would think Property Nodes to be the magical solution here. Rolf Kalbermatter Quote Link to comment
siva Posted September 20, 2007 Report Share Posted September 20, 2007 You can also use XControls for these kind of application..Attached a sample for your reference..QUOTE(karthik @ Sep 18 2007, 02:04 PM) Hello,Can anybody please tell me how to customize a meter to get a RPM meter which I have attached with this post.It is a simple control which we generally see in cars or bikes to display RPM value.It starts from 0 to 30 and changes its colour depending on which slot it belongs.For example 0 to 5 it has to display green and from 20 to 30 it has to display red.Thanks in advance.Regards,Karthik LabVIEW 8.2.1 You can use Xcontrol for these kind of application..attached a sample code that does the same.. Download File:post-4279-1190198049.zipQUOTE(karthik @ Sep 18 2007, 02:04 PM) Hello,Can anybody please tell me how to customize a meter to get a RPM meter which I have attached with this post.It is a simple control which we generally see in cars or bikes to display RPM value.It starts from 0 to 30 and changes its colour depending on which slot it belongs.For example 0 to 5 it has to display green and from 20 to 30 it has to display red.Thanks in advance.Regards,Karthik LabVIEW 8.2.1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.