Forkenzer Posted May 19, 2016 Report Share Posted May 19, 2016 (edited) Hi, I'm currently trying to create a LV Project out of an ".uml" code. It's just meant to be created as a dummy or template for the very beginning. But I'm stuck now. I can create the Project, the classes and also virtual Folders to the Project. But if I try to generate the Folders IN the .lvclass, it won't work. It just doesn't create it, I don't even get an error for it. Did anyone maybe tried something similar and can help me? Thanks for helping. Forkenzer Edited May 19, 2016 by Forkenzer Quote Link to comment
MikaelH Posted May 19, 2016 Report Share Posted May 19, 2016 Look at the the OpenGDS (http://opengds.github.io/) It creates classes based on the UML modeller. The UML modeller can import XMI files and from there you can create the classes. It supports analysing and creating your classes, it's open source and you can see how it's done. in e.g. the VI: LabVIEW 20XX\resource\Framework\Providers\Open_GDS\ClassProviders\Provider_LvNativeClass\ClassWriterNative_class\CreateClass.vi View the videos here to learn about the tool: //Mike Quote Link to comment
jacobson Posted May 19, 2016 Report Share Posted May 19, 2016 That's strange, I was able to add a folder to a class in the same method you are. I attached the project I used which basically shows the same thing. Check the name property of LV Reference 2 before you try to add a folder to it. If the Name is the class you are trying to write to, I bet you aren't saving the project after adding the folders which is why you don't get an error (because the folders are created) but why they don't show up (the project is never saved). Script Class Folder.zip Quote Link to comment
MikaelH Posted May 20, 2016 Report Share Posted May 20, 2016 I don't really follow, what is not working? BTW, after changing something under a class, you need to save the class. Quote Link to comment
Forkenzer Posted May 20, 2016 Author Report Share Posted May 20, 2016 (edited) @jacobson: I get an error trying it like you did (just using "owned items". Both references have the same names for it, so there shouldn't be a difference though). I do save the project but because of the error I'm getting now, the program isn't going through this state anymore but stops itself. @MikaelH: It's not working that the folders (filled with VIs) show up under the class. I can generate the folders with VIs in the project but not as a part of the class. I'm saving everything all the time. I attached the created project structure to show. BTW the project is not saved now because of an error. It now tells me the error code 1562: "The specified project or library is locked." Edited May 20, 2016 by Forkenzer 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.