File to matrix

61 views
Skip to first unread message

Guillermo Cantarero Álvarez

unread,
Feb 28, 2024, 10:35:56 AM2/28/24
to JaamSim Users Discussion Group
Hello, I am working with Jaamsim to make a digital representation of logistical procedures in a workshop, and I would like to use the file to matrix object for changing the times it takes to items to transport.
But I dont really understand how it works, in the manual it gives an example, and for what I understand the # simbols are for commenting the complete line, and then the data is stored like a one dimension array.
But I cannot figure out how to access de the data in the InputBuilder.
Thanks.Example.png

Harry King

unread,
Feb 28, 2024, 8:30:35 PM2/28/24
to JaamSim Users Discussion Group
Look for the 'Value' output in the Output Viewer. For the FileToVector object, the Value output contains an array of numbers, strings, entities, etc. that were parsed from your input file.

In your example, it will contain the array '{ 2.0, 4.0, 6.0, 8.0 }'.  You can use those values by entering an expression such as '[FileToVector1].Value(2) * 1[min]', which would return the value 4[min].

Harry

Reply all
Reply to author
Forward
0 new messages