Is it possible to train AI tools like ChatGPT to build Ignition projects?
It can be useful for cleaning up existing code, but I wouldn't trust it much beyond that with Ignition. I've seen AI use functions that don't exist in example code that it spits out, and it wouldn't surprise me if it gets Vision and Perspective mixed up.
I would be cautious even with this. I find AI Ignition outputs are somewhat dirty both in code and comment.
Example:
Jython gives a developer access to Java and Python libraries, and Ignition has a long list of its own system functions that tend to play nicer with the gui and tend to clean up some of Jython's messy tendencies such as ASCII string outputs. Therefore, there are often at least three ways to get the same result in Ignition. My recommendation is to use Ignition system functions when available, and when not, use Java's methods, but the AI tools I've experimented with tend to take the opposite approach, often using obscure Python methods over Java, and they will almost never use anything provided by Ignition without intricate prompting.
I find Claude is quite good at it, even using system functions in ways I didn’t think of.
As long as it has some context and instructions/guidelines, it does a pretty good job.
Still gotta be careful, obviously, I wouldn’t use code without validating it first.
I think it could be used only when you're stuck, for example, but when you totally understand what you're doing, so you can check AI and understand if it generates correctly.
Indeed. Thanks to Claude, it’s looking like the next version of my Markdown Editor+ is going to have full-blown WYSIWYG (rich text editor) mode. It’s very good with JavaScript, HTML and CSS.
"Can you find my typo?" has worked pretty well for me when I've been at it for too long and, for whatever reason, just can't bring myself to call it a night.
I’ve used the chatgpt tailored for ignition a few times when I'm stuck on syntax. I’m very new to python, so sometimes the lists, vs tuples vs dictionaries, etc I'll convolute, and the chatgpt engine helps direct me a certain direction. But of course, I'll vet and test in the script console with plenty of prints to learn what exactly is going on. Just relying on AI without validation is probably not a good idea and you don’t learn going forward.