Bobillier Posted June 1, 2010 Report Share Posted June 1, 2010 Name: State Editor for JKI State Machine 1.6.0 LV8_6 Submitter: Bobillier Submitted: 02 Jun 2010 File Updated: 21 Jul 2011 Category: JKI Right-Click Framework Plugins LabVIEW Version: 8.6 License Type: BSD (Most common) JKI State Editor v1.6.0 Copyright © 2010, BOBILLIER ERIC All rights reserved. Author: BOBILLIER ERIC & Ton Plomp LAVA Name: BOBILLIER ERIC Contact Info: Contact via PM on lavag.org LabVIEW Versions: 8.5 Dependencies: JKI Right Click Framework oglib_array & oglib_string Description: This tool is a right click framework plug_in. it's use for edit easily string constant in in JKI state machine. How use it: Select one string constant in jki STM structure , run JKi RCF and choose JKI State Editor. Installation and instructions: This tool is package in .ogpb file. Please use VIPM for installation. Examples of use: First release. http://www.screencas.../t/OGZkNTM4NzIt Ton modification. http://www.screencas...4c-33af05e59625 Known Issues: If after using this tool, Undo action to return to initial string constant,is impossible. It's bug of scripting feature. Please look this tread for more details. http://decibel.ni.co...d/7131?tstart=0 Acknowledgements: all jki Team especialy PJM , and of course Ton Plomp, and Bjarne Joergensen Version History: v1.0.0: Initial release of the code. v1.0.1: bug correction v1.1.0: bug correction v1.2.1: Ton modification v1.2.2: Cleanup code for submission.(8.2 and up) v1.3.1: New features and bugs correction (sorry only compatible with LV8.6 and up) v1.4.1: New features and bugs correction (sorry only compatible with LV8.6 and up) see Revision Note v1.4.2: New features and bugs correction (sorry only compatible with LV8.6 and up) see Revision Note v1.5.0: New features and bugs correction (sorry only compatible with LV8.6 and up) see Revision Note v1.6.0: New features. * Now String States constant always grow at left and justify left when modify. * Now only case structure connect to argument tunnel populate arguments list. * You can right click on arguments list and add one case not previously define. Run only if one case structure allready exist and connect to argument tunnel. * Now String constant is colorize with different colors for arguments, comments and lock states when you update it. Like that string constant text become more readable. Colors can be configure in Rcf options. License: Copyright © 2010, Eric BOBILLIER All rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the INRA. 4. Neither the name of the INRA nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY Eric BOBILLIER ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL Eric BOBILLIER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THISSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Support: If you have any problems with this code or want to suggest features: please go to lavag.org and Navigate to LAVA > Resources > Code Repository (Certified) and search for the "JKI State Editor" support page. Distribution: This code was downloaded from the LAVA Code Repository found at lavag.org Click here to download this file 1 Quote Link to comment
Ton Plomp Posted June 7, 2010 Report Share Posted June 7, 2010 Hi Eric, nice tool! I've got two feature requests: Double click on the left listbox should copy to right listbox 'Delete' button should delete the current selected state Ton Quote Link to comment
Bjarne Joergensen Posted June 9, 2010 Report Share Posted June 9, 2010 Hi Eric It's a wery nice tool you have made and it would be wery usefull to me I got a few comment to some of the features. Case 1: If the list of JKI states is longer than window can show and you select the buttom separator via QuickSelect, the window will scroll down to that selector and highlight it. But if you select the top separator, the window don't scroll up so I can see the chosen/highlighted selector. Case 2: I don't understand how to use the comment states(s) function. When I use it it make a # in the start of the selected state, but that will make the whole state a comment! Case 3: If you have selected the last state in the States list and then press the move down button, then the state disappear . Regards Bjarne Quote Link to comment
Bobillier Posted June 15, 2010 Author Report Share Posted June 15, 2010 Hi Ton I don't see where is problem . When you select one item in the right listbox and right click on it and select delete, the state is delete. Do you whant a specific button for do that ? 'Delete' button should delete the current selected state For double click copy , i see for update. Regards Eric Hi Bjarne For case 1 and 3 you are rigth and i try to correct this. For case 2 , the comment and uncomment function can be usefull if you when made test ,and temporaly unactive one or few states, without remove those states of string list. Regards Eric Quote Link to comment
Ton Plomp Posted June 15, 2010 Report Share Posted June 15, 2010 Hi Ton I don't see where is problem . When you select one item in the right listbox and right click on it and select delete, the state is delete. Do you whant a specific button for do that ? I meant Delete Key. Ton Quote Link to comment
Bjarne Joergensen Posted June 16, 2010 Report Share Posted June 16, 2010 (edited) Hi Bjarne For case 2 , the comment and uncomment function can be usefull if you when made test ,and temporaly unactive one or few states, without remove those states of string list. Regards Eric Hi Eric I can see your point, but it could leed to misunderstandings to use the word 'comment' because it meen something else in the JKI statemachine. A comment/explanation for the state, not a rem-out. I think it would be nice to have a rem-out of states for test purpose. My sugestion is. When I want to make a comment on a state the tool place '//' at the end of the state and set the curser after those two. When I want to rem-out a state the tool place a # in front of the state. best regards Bjarne Edited June 16, 2010 by Bjarne Joergensen Quote Link to comment
Bobillier Posted June 18, 2010 Author Report Share Posted June 18, 2010 (edited) Hi Ton & Bjarne I have update my Plugin with your comments and more. (see revision note inside source folder) Please can you test it . Unfortunately, i just achieve a 8.6 convertion. When i try 8.2 & 8.5 convertion, the event structure in JKI state editor-Main.vi lost all is parameters. I don't see what's wrong. Eric EBC_rcf_JKIStateEditor-1.3-1.zip Edited June 18, 2010 by Bobillier Quote Link to comment
Bobillier Posted June 18, 2010 Author Report Share Posted June 18, 2010 (edited) Sorry i have correct a minor error, please test this one. Eric EBC_rcf_JKIStateEditor-1.3-1.zip Edited June 18, 2010 by Bobillier Quote Link to comment
Bobillier Posted June 21, 2010 Author Report Share Posted June 21, 2010 Oups my previous .ogp file seen corrupt. Please try this : EBC_rcf_JKIStateEditor-1.3-1.ogp Eric Quote Link to comment
Ton Plomp Posted June 21, 2010 Report Share Posted June 21, 2010 Hi Eric, that looks really nice! It might be nice if comments were a different color (like syntax highlighting), but that is just a super silver lining request. Ton Quote Link to comment
Bobillier Posted June 21, 2010 Author Report Share Posted June 21, 2010 Hi Ton It's good idea, but i don't know how modify programmaticaly different text colors in a same element of a list (or between different element of this list) . I have try to set a different color of one control (Ex argument) but the color is lost when i send it to list. Any idea ? Eric It might be nice if comments were a different color (like syntax highlighting), but that is just a super silver lining request. Quote Link to comment
Bobillier Posted June 25, 2010 Author Report Share Posted June 25, 2010 Hi Bjarne and Ton Here is new version who correct few of previous problem and add few updates compatible with your comments. Regards Eric Eric\'s State Editor 1.4.1.zip Quote Link to comment
Bjarne Joergensen Posted June 26, 2010 Report Share Posted June 26, 2010 Hi Eric Sorry, but the file is doing the same as previous. VIMP will not accept it Regards Bjarne Quote Link to comment
Bobillier Posted June 26, 2010 Author Report Share Posted June 26, 2010 Hi Bjarne It's strange because on my PC (Windows7) all seen ok. I have install it few time with vipm without problem. Please can you try again. Otherwise you can find all vi in the source folder of my previous post. Eric EBC_rcf_JKIStateEditor-1.4-1.ogp Quote Link to comment
Bjarne Joergensen Posted June 28, 2010 Report Share Posted June 28, 2010 (edited) Hi Bjarne It's strange because on my PC (Windows7) all seen ok. I have install it few time with vipm without problem. Please can you try again. Otherwise you can find all vi in the source folder of my previous post. Eric EBC_rcf_JKIStateEditor-1.4-1.ogp Hi Eric Now it's working A little thing more please When you want to add a JKI state(also in the JKI argument list) it would be nice if you could rightClick at the JKI state and chose between 'Add before' or 'Add after' to place the new state compare to the state your standing at in the States list Thanks in advance Bjarne PS: Have found a solution for 8.2 support? Edited June 28, 2010 by Bjarne Joergensen Quote Link to comment
Bjarne Joergensen Posted June 30, 2010 Report Share Posted June 30, 2010 PS: Have found a solution for 8.2 support? I meen, have you (Eric) found a solution fro LV8.2 support? Regards Bjarne Quote Link to comment
Bobillier Posted July 1, 2010 Author Report Share Posted July 1, 2010 Hi Bjarne When you want to add a JKI state(also in the JKI argument list) it would be nice if you could rightClick at the JKI state and chose between 'Add before' or 'Add after' to place the new state compare to the state your standing at in the States list I have add this feature in my new version , but not like right click, but like a specific button. Now i work arround add one undo functionality. I send you one copy quickly. PS: Have found a solution for 8.2 support? Not now , but if you find solution i will be happy.I think it's attound one event structure condition you not run in 8.2 and 8.5. Regards Eric Quote Link to comment
Bobillier Posted July 3, 2010 Author Report Share Posted July 3, 2010 Hi Bjarne It's my last version, unfortunately i haven't implement Undo function (a bit complicate). Regards Eric Eric\'s State Editor 1.4.2.zip Quote Link to comment
Ton Plomp Posted July 3, 2010 Report Share Posted July 3, 2010 It's my last version, unfortunately i haven't implement Undo function (a bit complicate). Eric, one easy way for an undo functions is storing the current table after every edit in a shift register Each array should be packed into a cluster, which will be stored inside an array shift register. Ton Quote Link to comment
Bobillier Posted July 4, 2010 Author Report Share Posted July 4, 2010 (edited) Eric, one easy way for an undo functions is storing the current table after every edit in a shift register Each array should be packed into a cluster, which will be stored inside an array shift register. Ton hi Ton Thanks for your reply . i know how do undo function. But the problem is not how , but when. You said " one easy way for an undo functions is storing the current table after every edit", but in my program, there is few way for modify current table value ( double click, drag and drop, modification of each caracter of comment and argument, right click option,,...) lot of them creat event but not all (Drag and drop) . Each caracters modification of comment and argument creat one modificationof table but i just whant only one undo for restore all previous value ( and not few). I have try with LIFO structure but with few errors. If you have any simple solution to slove my undo problem i'm receiver . Eric Edited July 4, 2010 by Bobillier Quote Link to comment
Mark Balla Posted August 19, 2010 Report Share Posted August 19, 2010 Certified 8-18-2010 and placed in Right-Click Frame work Category Quote Link to comment
Ton Plomp Posted January 12, 2011 Report Share Posted January 12, 2011 I found a bug in version 1.5.0: When removing a state, the last state is removed, and not the selected state: <object id="scPlayer" class="embeddedObject" width="922" height="516" type="application/x-shockwave-flash" data="http://content.screencast.com/users/TonPlomp/folders/Jing/media/71859c08-f387-4c6b-a9ea-0523d139aa15/jingswfplayer.swf" > <param name="movie" value="http://content.screencast.com/users/TonPlomp/folders/Jing/media/71859c08-f387-4c6b-a9ea-0523d139aa15/jingswfplayer.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <param name="flashVars" value="thumb=http://content.screencast.com/users/TonPlomp/folders/Jing/media/71859c08-f387-4c6b-a9ea-0523d139aa15/FirstFrame.jpg&containerwidth=922&containerheight=516&content=http://content.screencast.com/users/TonPlomp/folders/Jing/media/71859c08-f387-4c6b-a9ea-0523d139aa15/JKI%20StateEditor%201.5.0%20bug..swf&blurover=false" /> <param name="allowFullScreen" value="true" /> <param name="scale" value="showall" /> <param name="allowScriptAccess" value="always" /> <param name="base" value="http://content.screencast.com/users/TonPlomp/folders/Jing/media/71859c08-f387-4c6b-a9ea-0523d139aa15/" /> Unable to display content. Adobe Flash is required.</object> Regards, Ton Quote Link to comment
Bobillier Posted January 12, 2011 Author Report Share Posted January 12, 2011 Hi Ton Happy New year It's not a bug. When i look your video, you made UNDO and not delete action. For delete , you must select state and press del buttons (or use del in the right click menu). Cheers Eric Quote Link to comment
Ton Plomp Posted January 12, 2011 Report Share Posted January 12, 2011 Oh, I misunderstood! I thought it was a delete button with a weird icon... Ton Quote Link to comment
Ton Plomp Posted March 29, 2011 Report Share Posted March 29, 2011 Feature request: Optionally change the constant into a ComboBox constant: <object id="scPlayer" width="225" height="290" type="application/x-shockwave-flash" data="http://content.screencast.com/users/TonPlomp/folders/Jing/media/1248a53e-b04e-4b98-a790-d3a3732d611e/jingswfplayer.swf" > <param name="movie" value="http://content.screencast.com/users/TonPlomp/folders/Jing/media/1248a53e-b04e-4b98-a790-d3a3732d611e/jingswfplayer.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <param name="flashVars" value="thumb=http://content.screencast.com/users/TonPlomp/folders/Jing/media/1248a53e-b04e-4b98-a790-d3a3732d611e/FirstFrame.jpg&containerwidth=225&containerheight=290&content=http://content.screencast.com/users/TonPlomp/folders/Jing/media/1248a53e-b04e-4b98-a790-d3a3732d611e/State-dropbox.swf&blurover=false" /> <param name="allowFullScreen" value="true" /> <param name="scale" value="showall" /> <param name="allowScriptAccess" value="always" /> <param name="base" value="http://content.screencast.com/users/TonPlomp/folders/Jing/media/1248a53e-b04e-4b98-a790-d3a3732d611e/" /> Unable to display content. Adobe Flash is required.</object> Here's the code I used in the JKI state editor: Ton Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.