04-10-2017 11:11 AM
Hello , im making a programm for the temperature control. I was asked to perform a manual control , a PID control and a fuzzy control. I have to create a knob that based to the value that choos ( 0 ,1 ,2 ) executes me one of the three methods. Initially i was asked to do only manual control and PID control so i opted for a boolean switch , but obviously increasing to three the number of the programs to be run this is no longer possibile . how can i do?
04-10-2017 11:14 AM
04-10-2017 01:53 PM
Sorry but i have not figured out how to do , how to add the third case.
04-10-2017 02:50 PM
ok done, thank you!
04-10-2017 08:34 PM - edited 04-10-2017 08:35 PM
Glad to hear it worked out. I saw your VI now and whilst you can wire the 'knob' control you had already directly to the case structure, in that situation a default case is required and you can't use the convenient right click > 'Add Case for Every Value' option. Since a radio button behaves like/is an enum, it has a defined set of values which makes it really simple/nice to use with a Case structure. (You can also use an enum control directly, but maybe the radio button suits your visual design better?)
As a follow-up note, if you don't like the appearance of the radio buttons, you can right click on the control and choose Advanced > Customise and then in the window that opens use the right click > Replace on each element of the radio button control and choose a different boolean control appearance (like a button, rather than the circular dot). If you do this, don't forget to consider using a 'TypeDef' control rather than a simple 'Control' - then your data type is saved as part of the control.
04-12-2017 04:21 AM
Please Mark the post as Resolved.
Stefano
NI AE