SteveMyres Posted January 3, 2014 Share Posted January 3, 2014 I'd like a class entry in the tree view in the workspace. The "Class" entry could be expandable/collapsible like Channels, Sequences, Pages, etc. Expanding it would show a list of defined classes, each also expandable. When expanded each would show local member names, parent class (which should also be expandable), etc. That way you could browse class defs. Also, I'd like to be able to enter from the Command line or execute in sequence ?MyClassVar // or ?MyClassVar.Member1 and have it print the contents. Would probably need to be presented as a hierarchical tree-style view when printing a variable or printing a member that is itself a class instance. Link to comment Share on other sites More sharing options...
AzeoTech Posted January 3, 2014 Share Posted January 3, 2014 Good ideas. For now consider using toJson() to get the contents of an object. Link to comment Share on other sites More sharing options...
SteveMyres Posted January 3, 2014 Author Share Posted January 3, 2014 I thought about that, but was under the impression it was dedicated to saving to files. If it just returns XML, that should do the trick. Link to comment Share on other sites More sharing options...
AzeoTech Posted January 3, 2014 Share Posted January 3, 2014 Its not XML, its json, but same difference. Json is just simpler and more compact. Do a web search for json. Link to comment Share on other sites More sharing options...
SteveMyres Posted January 4, 2014 Author Share Posted January 4, 2014 Yeah, that gives me exactly what I was looking for. I should have said "structured text" rather than "XML". Link to comment Share on other sites More sharing options...
AzeoTech Posted January 4, 2014 Share Posted January 4, 2014 Actually "structured text" I believe is usually used to describe a programming language like DAQFactory scripting (as opposed to say LabView). Link to comment Share on other sites More sharing options...
SteveMyres Posted January 4, 2014 Author Share Posted January 4, 2014 Yup. In the PLC world, it typically refers to higher level languages like that, often abbreviated ST, as opposed to other character-based non graphic languages like instruction list (IL) which is more like assembler for the processor it runs on: LD %IX0.0 OUT %QX0.0 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.