Announcement: We’re aware of an issue affecting starting a new topic from category pages and creating new blog posts. New topics can still be started directly from the relevant board. Learn more here.
Hi @Apollo S,
The print() command doesn't print to the little output field in the script console. That is just for the return value from the code. The print() command prints to the Output Console. Have you checked to see if the array is replicated there?
I hope this helps! Let us know if you have further problems/questions!
Hi @Apollo S,
It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.
Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.
The picture below is the result that I have tested. I only want to read all data in the "table" array and print them in Output Console. But in my code, it doesn't work.
I think its a matter whether FlexSim's OPC UA Client support array datatypes. I never met 3DSimulator which supports arrays. Nothing is mentioned in FlexSim online manual.
If array is not supported, you will need to breakup the array to datatypes(bool, integer, etc.) within OPC server and then send to FlexSim.
Hi @Apollo S, was one of Ryosuke S's or Ryan Clark's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.