The file is socket server
How to send the information in the global table to socket client?
Send information through the circle on the image below
How to modify so as to sent table values to socket client?
The file is socket server
How to send the information in the global table to socket client?
Send information through the circle on the image below
How to modify so as to sent table values to socket client?
You can use the string.fromNum() method along with the Table("TableName")[row][col] format to compose the message being sent with serversend().
But how do you want to send values from the table to the client? You could send the value from the last row every time a row is added (in the same event/code that is adding the rows), like this:
serversend(server,string.fromNum(Table("entry sink time")[Table("entry sink time").numRows][1]));
Or you could send the entire table of numbers in one big "blob" after the model has finished running, like this:
string message = ""; Table table = Table("entry sink time"); int tableNumRows = table.numRows; for (int row = 1; row <= tableNumRows-1; row++) { message += string.fromNum(table[row][1]) + ", "; } message += string.fromNum(table[tableNumRows][1]); serversend(server, message);
But you most likely want to use some combination of string.fromNum() and Table()[row][col].
6 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved