Jump to content

kmc

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Posts posted by kmc

  1. thanks ton for your reply

    omar,

    can you send me the labview file which u had done ??? the one which had the sequence wait ???

    regards

    Ashwin

    QUOTE (Omar Mussa @ Nov 3 2008, 08:29 AM)

    There are two parts to this response...

    1) One 'feature' of the JKI State Machine is that the empty string case ("") is also the "Idle" case. This means that whenever you finish executing a macro or a series of states, the state machine will return to "Idle"

    2) Adding 'Idle' or an empty string in a 'macro', which we can define as any time that you try to queue up multiple events, can and will get you into trouble in a state machine.

    Here's a scenario assuming you have the states: Go, Wait, Idle, Stop

    Let's assume that 'Go' only happens when 'Wait' completes and that 'Stop' is only reached when the user presses a button that is handled in the 'Idle' frame.

    The Wait state contains the following logic: Wait until time elapses -- if time elapsed 'Go' else 'Idle + Wait'

    Now -- let's imagine that the 'Wait' time did not elapse (queue contains 'Idle','Wait') -- it is possible for the user to press a stop button which gets handled in the 'Idle' frame due to the event structure, and then the state machine would still proceed to 'Wait' (b/c you queued it already in the 'Idle+Wait' logic) and it is possible that the new 'Wait' state time has now elapsed so the 'GO' frame is reached. This sucks for the user -- they pressed 'Stop' but the state machine still hit a 'Go' frame... now it means you are stuck adding more logic to the 'Stop' frame to handle this scenario -- your code gets uglier, is less scalable and basically you realize that you have all kinds of potential logic problems.

    So avoid en queuing "Idle" -- let "Idle" come whenever your state flow ends.

    One way to avoid this is to have a 'flag' type of system -- Setup a Boolean called 'Waiting' and set the 'Waiting' flag whenever the user starts to Wait -- then, in the 'Idle' case, use the 'Timeout' frame of the event structure to check if you are waiting -- if you are waiting then do some work, if not, stay Idle.

    Here is an example of what I mean:

    Set the Waiting flag:

    post-5746-1225696763.png?width=400

    Check the Waiting flag:

    post-5746-1225696782.png?width=400

    Initializing and resetting the flag is left for the reader. One thing to consider -- since you have to reset the flag from at least 2 places (usually because the wait time has elapsed or 'Stop' button is pushed) -- it makes sense to have resetting the flag performed in a state (for example, based on your naming conventions -- 'Sequence: Stop Wait').

    Good luck in writing better code! A lot of the time, good code is the result of good design. Entropy pretty much prevents good code from just being 'realized' by accident ;)

  2. I AM SORRY I DINT MEAN TO ASK YOU FOR A FULL SOLUTION CENTER

    I Would like to explain what i have done first so that It would be easier for you to help me...

    1. As you see there are 6 STATIONS.Each Stations perform various Tasks.Basically THE MAIN IDEA is to MONITOR THESE STATIONS.

    THERE ARE STEPS TO MONITOR STATIONS

    1.AT FIRST WHEN OPERATOR LOADS THE PART THE PBX(switch) WILL GET ENERGIZED.

    2.10 MINUTE TIMER IS SWITCHED ON AT THIS STAGE.AT 9TH MINUTE THE TIMER STARTS FLASHING (THAT INDICATES THE OPERATOR SHOULD BE AT THE STATION)

    3.IF THE OPERATOR IS NOT THERE AT 10 TH MINUTE U GET AS FAIL(THE PART SHOULD BE SET ASIDE FOR 1 HR TO COOL)...THATS THE REASON WHY THE FLASHING PART HAS BEEN KEPT

    4.THERE IS A BALL KEPT ON THE PART...AS SOON AS THE BALL IS KEPT...ANOTHER 5 MINUTE TIMER IS SWITCHED ON...AT THAT TIME THE OPERATOR WILL NOTE DOWN FEW VALUES

    5.AT 5TH MINUTE ADJUST TO MAX VALUE,OPERATOR REMOVES PART AND RESET THE TIMER AND TURN OFF THE SWITCH

    IF YOU SEE WHAT I HAVE DONE IN TIMER

    U SEE THAT 0-20-40-60-80-100(THE ONE JUST ABOVE READY) THAT IS A INDICATION

    0-80---GREEN

    80-90---YELLOW

    AT 90---FLASHING RED...I HAVE WORKED ON FLASHING RED...

    FEW FOLKS HAD TOLD ME TO USE A JKI SYSTEM...I AM TRYING TO READ THAT AS OF NOW...I WOULD REALLY APPRECIATE IF YOU COULD HELP ME IN THIS...

    I AM PUTTING MY BEST EFFORT AS OF NOW...

    I HAVE BEEN BREAKING MY HEAD FOR A REASON... :headbang: I AM EXTREMELY SORRY FOLKS...

    I HOPE TO HEAR FROM YOU SOON...

    REGARDS

    ASHWIN.... :rolleyes:

    QUOTE (Ton @ Nov 12 2008, 09:00 PM)

    Ashwin, have a look at the guidelines for this forum. Moreover learn to ask questions the smart way.

    I read through the topic, only the first post has a question about code, and has little no interpunction.

    You have not added any code, we have no idea what actually is your problem and current state of your coding.

    All these things together hold me back in helping you. LAVA is not a LabVIEW solution center.

    Ton

    Now where is the good coffee?

  3. yes its going to be a tough ask for me....

    anyways guys a request

    those who have time...pls help me....i m a fresher in labview...this wouldnt be difficult for you guys...

    folks...who can help me with this....i would be really greatfull...its just a request...since i am running out of time i m forced to ask u....

    hope u understand my situation..

    regards

    Ashwin

    QUOTE (jcarmody @ Nov 12 2008, 06:45 PM)

    Attached, but you should really install the entire package from JKI.

    From the comment on the VIs front panel:

    This might be tough...

    Jim

  4. Thanks a lot omar and Jim ….i really appreciate you guys for patiently replying to my questions…

    Hats off to you…Was down with flu…so I wasn't able to check this response for 2 weeks…since I was down

    At first…Jim can you resend me the sequencer file…it is asking for "parse state queue_jkl_lib_state _machine.vi file "

    I am not sure of what it is..

    As far as this program is concerned…there is no question of ELAPSE TIME..In 10 minutes if the operator is not in front of the system...the program needs to stop. the operator needs to set aside the component for an hour to cool down...before starting the program

    so basically in idle state the timer runs and flashes in 9 minutes....

    Omar,

    Can you send me the document you had done…it would be really great..since I am running out of time..i just started this…I wasn't able to do anything for the past 2 weeks since I was done with flu

    I really don't have enough time to think..

    Folks…..pls help me…

    Hope I am not bothering you…I m in a precarious situation.

    i would like to thank you guys for viewing my work...

    thanks a lot....

    regards

    Ashwin

    QUOTE (Omar Mussa @ Nov 3 2008, 08:29 AM)

    There are two parts to this response...

    1) One 'feature' of the JKI State Machine is that the empty string case ("") is also the "Idle" case. This means that whenever you finish executing a macro or a series of states, the state machine will return to "Idle"

    2) Adding 'Idle' or an empty string in a 'macro', which we can define as any time that you try to queue up multiple events, can and will get you into trouble in a state machine.

    Here's a scenario assuming you have the states: Go, Wait, Idle, Stop

    Let's assume that 'Go' only happens when 'Wait' completes and that 'Stop' is only reached when the user presses a button that is handled in the 'Idle' frame.

    The Wait state contains the following logic: Wait until time elapses -- if time elapsed 'Go' else 'Idle + Wait'

    Now -- let's imagine that the 'Wait' time did not elapse (queue contains 'Idle','Wait') -- it is possible for the user to press a stop button which gets handled in the 'Idle' frame due to the event structure, and then the state machine would still proceed to 'Wait' (b/c you queued it already in the 'Idle+Wait' logic) and it is possible that the new 'Wait' state time has now elapsed so the 'GO' frame is reached. This sucks for the user -- they pressed 'Stop' but the state machine still hit a 'Go' frame... now it means you are stuck adding more logic to the 'Stop' frame to handle this scenario -- your code gets uglier, is less scalable and basically you realize that you have all kinds of potential logic problems.

    So avoid en queuing "Idle" -- let "Idle" come whenever your state flow ends.

    One way to avoid this is to have a 'flag' type of system -- Setup a Boolean called 'Waiting' and set the 'Waiting' flag whenever the user starts to Wait -- then, in the 'Idle' case, use the 'Timeout' frame of the event structure to check if you are waiting -- if you are waiting then do some work, if not, stay Idle.

    Here is an example of what I mean:

    Set the Waiting flag:

    post-5746-1225696763.png?width=400

    Check the Waiting flag:

    post-5746-1225696782.png?width=400

    Initializing and resetting the flag is left for the reader. One thing to consider -- since you have to reset the flag from at least 2 places (usually because the wait time has elapsed or 'Stop' button is pushed) -- it makes sense to have resetting the flag performed in a state (for example, based on your naming conventions -- 'Sequence: Stop Wait').

    Good luck in writing better code! A lot of the time, good code is the result of good design. Entropy pretty much prevents good code from just being 'realized' by accident ;)

  5. HI

    hope you remember me...i had spoken to you couple of months back...i have few questions regarding my new independent research in school...thought u could help me with it....i tried working on it...and they have asked me to submit this in a week s time so that i would be able to write a report on it.

    this is how it goes

    basically there are 6 stations each stations perform operations based on a particular time period.For eg. in the research given to me there are 6 stations and there are 3 balls which need to be used while operating the stations.basically what they wanted me to do is these steps

    1.after the operator loads the part and prsses pbx(switch) the operation should start

    2.the the inductor should energize the capacitor to start at proper time and begin the timer operation for 10 mins,for zero calibration(zero max and zero min in front panel)

    when the 10 min timer is running the flash light should work indicating the operator to be at the corresponding station..the operator will adjust the circuit until the 10th minute

    if the operator doesnt finish at the 10th minute.Consider the component as fail

    wait for 1 minute before the next start is clicked

    3.keep the ball in the circuit and start 5 minute timer.

    4.At 5th minute adjust to maximum value(span max and span min in front panel) and reset the timers and turn of crx.

    i have drawn the front panel and showed the flashing part

    basically 0-80% it should be green

    80-90% yellow

    90-100-flash red

    It would be of great help if you could help me out in doing this.

    HOPE NORM KIRCHNER CAN HELP ME OUT.

    I HAVE ATTACHED THE FRONT PANEL AND BACK END FOR THIS PROGRAM..............THIS IS MY INDEPENDENT RESEARCH WORK IN SCHOOL..I NEED TO SUBMIT THIS IN A WEEK...

  6. HI

    hope you remember me...i had spoken to you couple of months back...i have few questions regarding my new independent research in school...thought u could help me with it....i tried working on it...and they have asked me to submit this in a week s time so that i would be able to write a report on it.

    this is how it goes

    basically there are 6 stations each stations perform operations based on a particular time period.For eg. in the research given to me there are 6 stations and there are 3 balls which need to be used while operating the stations.basically what they wanted me to do is these steps

    1.after the operator loads the part and prsses pbx(switch) the operation should start

    2.the the inductor should energize the capacitor to start at proper time and begin the timer operation for 10 mins,for zero calibration(zero max and zero min in front panel)

    when the 10 min timer is running the flash light should work indicating the operator to be at the corresponding station..the operator will adjust the circuit until the 10th minute

    if the operator doesnt finish at the 10th minute.Consider the component as fail

    wait for 1 minute before the next start is clicked

    3.keep the ball in the circuit and start 5 minute timer.

    4.At 5th minute adjust to maximum value(span max and span min in front panel) and reset the timers and turn of crx.

    i have drawn the front panel and showed the flashing part

    basically 0-80% it should be green

    80-90% yellow

    90-100-flash red

    It would be of great help if you could help me out in doing this.

    HOPE NORM KIRCHNER CAN HELP ME OUT.

    I HAVE ATTACHED THE FRONT PANEL AND BACK END FOR THIS PROGRAM..............THIS IS MY INDEPENDENT RESEARCH WORK IN SCHOOL..I NEED TO SUBMIT THIS IN A WEEK...

    PLEASE HELP ME OUT..!

    rating_5_mini.gifgender_mystery.pngView Member Profile find_posts.pngView Member Albums friend_remove_small.pngRemove Friend send_pm_small.pngSend Message find_posts.pngFind Member's Topics find_posts.pngFind Member's Posts ipsmenu.register( "post-member-48640", '', 'popmenubutton-new', 'popmenubutton-new-out' );

  7. QUOTE (Norm Kirchner @ Jul 17 2008, 05:28 PM)

    Thanks a lot Norman.I appreciate this........!

    as far this was my research work which my professor had asked me to do...

    as far this program is concerned she expects me to do few things

    1.this array is a text array..i.e Pass and Fail..what she wants me to do is to convert this text array into a numeric array and she wants me to display the colour out here for eg.

    0-system colour

    1-Flashing red

    2- Green

    I havent worked on this before i am a beginner in labview.so trying to learn lot of things nw

    it would be really great if you could help me out with this.Can you send me what you had tried as an attachment.

    thanks a lot for patiently answering my questions

    regards

    kmc

    QUOTE (kmc @ Jul 17 2008, 07:28 PM)

    Thanks a lot Norman.I appreciate this........!

    as far this was my research work which my professor had asked me to do...

    as far this program is concerned she expects me to do few things

    1.this array is a
    text array
    ..i.e Pass and Fail..what she wants me to do is to convert this text array into a
    numeric array
    and she wants me to display the colour out here for eg.

    0-system colour

    1-Flashing red

    2- Green

    I havent worked on this before i am a beginner in labview.so trying to learn lot of things nw

    it would be really great if you could help me out with this.Can you send me what you had tried as an attachment.

    thanks a lot for patiently answering my questions

    regards

    kmc

    NORMAN,I HAVE ATTACHED FEW THINGS ALONG WITH THIS..I HAVE DONE FEW THINGS RANDOMLY...AS I TOLD THE TEXT ARRAY IS CONVERTED TO NUMERIC ARRAY AND DO I NEED TO CHANGE TABLE1 AND TABLE2 ACCORDINGLY.HAD STARTED WITH IT.

    I THINK YOU WOULD BE EASILY ABLE TO FINISH IT.COULD YOU PLEASE CHECK THIS..?

    THANKS

    ASHWIN

  8. QUOTE (Gary Rubin @ Jul 17 2008, 03:45 PM)

    I SINCERLY APOLOGISE TO EVERY ONE.I SHOULDNT HAVE DONE THIS.........I AM REALLY SORRY FOR SPEAKING LIKE THAT.

    QUOTE (Phillip Brooks @ Jul 17 2008, 03:28 PM)

    All caps is considered a form of shouting. Shouting doesn't inspire people to get involved.

    You have only waited
    one hour
    . There are currently 9280 members and also non-members. 70 reads is not a lot...

    Thanks for becoming a Premium Member, but this is not a service. Your membership supports the operation of the forums, but the contributors are all volunteers; we share our knowledge for free.

    I don't have LabVIEW 8.5 ( I'm using very old 7.0) or I would look at your code and try to help.

    Give it a little time and someone should help...

    i AM SORRY FOR SPEAKING LIKE THAT.This is the first time i am into lava.i really dont have any idea how it goes.I understand it is an obligation.i had posted a request a month back

    this is the link

    http://forums.lavag.org/help-needed-with-labview-t11141.html

    though i worked on it and got the result that i wanted.you could see that there are more than 375 views but none have replied.I thought they were just viewing the file and not replying.

    i accept it was my mistake.I deeply regret for speaking like that.

    thanks

    Ashwin

  9. QUOTE (kmc @ Jul 17 2008, 02:03 PM)

    Can you look at the file which i had attached along with this.I HAVE USED THE ACTIVE CELL PROPERTY AND CELL BACK GROUND COLOUR PROPERTY.PLEASE HAVE ALOOK AT THE ATTACHED FILE.

    THANKS

    kmc

    I SEE MORE THAN 70 VIEWS WHY ISNT ANY ONE REPLYING....?? I THINK I HAVE WASTED TIME BY JOINING HERE...NO BODY REPLIES...!

  10. QUOTE (normandinf @ Jul 17 2008, 01:37 PM)

    Use the ActiveCell property + CellBackgroundColor property.

    Check the help and you'll find a table of the expected results.

    Row, Column, Result

    –1, –2, Selects the headers of all columns.

    Can you look at the file which i had attached along with this.I HAVE USED THE ACTIVE CELL PROPERTY AND CELL BACK GROUND COLOUR PROPERTY.PLEASE HAVE ALOOK AT THE ATTACHED FILE.

    THANKS

    kmc

  11. HI,

    I am creating a table.I am taking the contents of table1,table 2,table 3 in an array.While displaying the result,The contents of the table (i.e)the way it looks will change.

    i.e if i keep 0=system colour(i.e header in the table) as grey

    1=red

    2=green

    i am attaching the program along with this...pls try to help me out with this

    in short

    pass should be in green

    fail in red

    header in table grey.

    pls help me out with this

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.