01-09-2006 02:16 AM
Dear All,
Really sorry, herewith i attached the sub vis.
i dont know how to simplyfy this , In h/w interface, user can select the modes by pressing the switches. There are 5 main modes. Each main mode has 8 sub mode. If user select the main mode 1 and sub mode 5 ( by selecting the h/w Switch interfaced with DIO lines), the corresponding 24 led names, 24 switch names and ROT,POTname ...etc has sent to LCD for display. If user changes the mode, the name of all controls of that particular mode will also sent to lcd for display.
So i need to collect the 24 led names, 24 switch names, 2 rot switch name. 4 pot name and sub mode name from the user for 40 modes(5 main mode * 8 sub mode). The name is restricted to 5 char.
I need to cluster all the names for each mode, and finally cluster the cluster of each mode and store into one file. Irrespective of loop time, my cpu time is fully allocated for LV only. For 200 ms, the CPU time for LV is 93, and For 1000ms , the CPU time for LV is 85.
Kindly help me
regs
Karthikraha**
-----------------------------------------
HI
if I understand you correctly then the user can only
access/control one sub mode at a time !! Then surely it is
not necessary to have 40 frames ? A state machine would be more
appropiate
idea to utilise. Then you just amend the names as the user 'switches' between sub modes.
xseadog
01-09-2006 03:12 AM
Hi
We can get all text entered by user if we choose state Diagram concept, Since case struture.
regs
karthik
01-09-2006 05:13 PM
01-10-2006 12:29 AM
Dear Chaos,
Good work, thanx a lot. I am waiting for the documentation. It will be very much useful for beginners like me.
I want to store the all values into one file. Because, while opening this VI, the last entered value should be displayed. User can edit or leave with old values.
If i keep on pressing any key while typing, it is taking more than 5 char. How can i avoid that ?
Thanks and best regards,
Karthik
01-10-2006 11:50 AM
Karthik,
I sprinkled comments about the code and how it works in the block diagram. I also added events to fix the error seen when a key pressed and held causes more characters than you wanted. Let me know if you need anything else and happy wiring !
![]()
01-11-2006 10:54 PM
Dear Chaos,
I really amazed abt ur way of approach. Still the keu pressing problem is there. i modified code little bit. Plz find the attachement. If i focus on one text box and continously pressing any for example 'a'. It is just overrule the filter, and it is taking more than 5 char.
Kindly help me to rectify.
regs
Karthik
01-11-2006 11:45 PM
I hope This Simple Example will help you out....
also As already suggested by other think how you can group your controls, so that handling becomes much more simpler
Tushar Jambhekar
tushar@jambhekar.com
Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog
01-11-2006 11:55 PM
I hope this sample program can help you out
also think on how you can group data so that handling becomes much more simpler...
Tushar Jambhekar
tushar@jambhekar.com
Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog
01-11-2006 11:57 PM
Tushar Jambhekar
tushar@jambhekar.com
Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog
01-15-2006 10:32 PM