Harris Hu Posted May 12 Report Posted May 12 I am having trouble developing a Sequential Function Chart (SFC) in LabVIEW. I found some videos online showing successful implementations (screenshots attached), but without the source code. I don't know how they are achieved(it is possible they utilized the 2D Picture control). Has anyone worked on similar projects and can offer some help? Similar to Siemens PCS7 SFC, I need to arrange specific modules in a certain order—either sequentially from top to bottom or in parallel. I have already figured out the execution logic. My main challenge is how to implement the graphical editing functionality. Quote
WWW.OK.SHOW Posted May 13 Report Posted May 13 参考 https://www.vipm.io/publisher/opengds/ OpenGDS UML Editor by OpenGDS 1 Quote
Harris Hu Posted May 14 Author Report Posted May 14 (edited) This is a very good demo Edited May 14 by Harris Hu Quote
FANBIN86 Posted Tuesday at 07:26 AM Report Posted Tuesday at 07:26 AM 很高兴中国的开发者给了您启发Pictrue 2D.zip,图二它确实是2DPic开发的,我有个DEMO提供给你做参考。 Quote
hooovahh Posted 54 minutes ago Report Posted 54 minutes ago The code needs lots of work, but yes that is the start of something. I'm glad to see you leveraged Norm's image translation code, rather than trying to make something yourself and likely have worse performance. If you intend on having this be more dynamic you'll have to keep track of the relationships between nodes better. Right now you have a very static linking between two objects. If you add a third right now it isn't handled within the class. There's also a good amount of formula nodes. Once it is well understood I'd suggest trying to do it in pure G LabVIEW nodes since it will likely have better performance. They can obviously be wrapped into a nice subVI with a comment of what the code accomplishes. What is your eventual goal for this? How do you intend on using it in a larger application? Quote
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.