I am still learning Ignition. Please I am trying to convert some set of tags (Picture 1) to Json format that I can send to our MES system in this format {"device": "CMN_WELD", "good": 10, "bad": 0,"scrap": 1, "lot": "lot001", "start": "1", "partno":"6426732" }. I tried to implement the solution below but I am just not getting it.
It might be easier to iterate on this script in the script console while you get it working.
I don't think your tag paths should have curly brackets around them.
Hi @Franz_Loschenberger. Please were you able to implement this? I am having a hard time getting this done on my end
Hi @pturmel and @pascal.fragnoud...I am still learning Ignition. Please I am trying to convert some set of tags (Picture 1) to Json format that I can send to our MES system in this format {"device": "CMN_WELD", "good": 10, "bad": 0,"scrap": 1, "lot": "lot001", "start": "1", "partno":"6426732" }. I tried to implement the solution above but I am just not getting it.
Please don't repeatedly post on the same issue. You've waited 40 minutes so far for help. If you want help urgently, contact our support department officially. This forum is largely volunteer run.
Your script looks approximately correct, except for the curly braces Kevin noted.
I am sorry @Kevin.Herron and @PGriffith just trying to get it resolved faster. Thanks for the reply
I removed the curly braces but it returned a null as showing in the picture.
You're returning value
, not tagDict
, the new variable you've created.
Thank you