01-27-2010 02:13 AM
hi all
i need your help....
please look at my VI attched. what i have done is that i have bunch of options and when user press any of those options it is compared with an existing array constant and then executes the specific program whcih would be in its respective case structure.
now i know that this is very basic programing approach and when my options will increas it would be very difficult to handle the second case structure .
At the end what i want to do is that i would be getting data from the serial port which will get compared by the array constant and then the specific case structure will execute.
So my question is that is there any other way to implement this ... a rather more professional approach ?
regards
Solved! Go to Solution.
01-27-2010 02:33 AM
01-27-2010 02:57 AM
01-27-2010 03:04 AM
01-27-2010 03:08 AM
01-27-2010 03:47 AM
hi kolan
thanks for the help but this is not what i need ......what i need help with is that the compare function ..........okay to make things more clear
i will put my question like this how can i compare things more efficently ... like in my case i have use an constant array and i m getting the data to compare with, from the radio buttons... so any other way to do the compare thing more effectively ?
01-27-2010 04:04 AM
01-27-2010 04:28 AM
How about this example? (look at the atachment)
Program choose an event by radio-button's label.
01-27-2010 07:02 AM
From what i understand your program generates the string "Program2" when you select the radiobutton "Case2".
A simpler solution would be the following:
01-27-2010 07:13 AM