LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Challenging one

**

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



Message 11 of 20
(2,186 Views)

Hi

We can get all text entered by user if we choose state Diagram concept, Since case struture.

regs

karthik

0 Kudos
Message 12 of 20
(2,178 Views)
Sorry for the late reply.  Ive been busy of late.  I can image not alot of people would want to try and fix such a beast... what can I say I love a challange.  Unfortunately I do not have time right now to document my solution or to explain it as I am already late.  I would hope one of the other LabVIEW gurus would hop in to explain my program for me but...
 
If not I will explain it all tomorrow.  What I have done I hope that, for the most part, it is self documenting...
 
 
Message 13 of 20
(2,148 Views)

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

0 Kudos
Message 14 of 20
(2,135 Views)

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 !

Smiley Wink

0 Kudos
Message 15 of 20
(2,112 Views)

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

0 Kudos
Message 16 of 20
(2,085 Views)

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

0 Kudos
Message 17 of 20
(2,083 Views)

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

0 Kudos
Message 18 of 20
(2,083 Views)
I hope this example will help you out
 
also try to group your 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

0 Kudos
Message 19 of 20
(2,083 Views)
Dear Chaos,

I am waiting for your reply, The key filter does not restrict to 5 char, if i press any key continuously. Kindly spend some time to fix this.
regards, I attached my latest VI.

Karthik
0 Kudos
Message 20 of 20
(2,038 Views)