Importing multiple values/array in DEWESoft

  • Software
  • Importing multiple values/array in DEWESoft
Chinmay Admane

Posted on 14.09.2021 19:07

Hello,


I have a set of 50,000 values in an excel sheet or .mat file. How can I copy/import those values into DEWESoft?

I wanted to use those values to construct CAN message and send it out via a formula.


Thanks,

Chinmay.

Matjaž Strniša
Automotive Application Engineer
Posted on 17.09.2021 10:01

Hello Chinmay

I added a video below with an example of how you can import .txt documents, get channels and convert them to the CAN Transmit(Tx) message.

Best regards.


Attached files:
Chinmay Admane

Posted on 17.09.2021 21:20

Hello Matjaz,


Thanks for the video explanation!

Is there a way to import this signal/array of values to an existing setup file?

I have a lot of CAN messages and formulas already setup and wanted to add this array of values to it. In the video you are showing how to import the array of values as (.dxd)data stream/file in DEWESoft, but can we have it imported in a setup file?

That way I would not have to make much changes to my setup file if I have to add/modify a certain array that I have in the my original (.dxs)setup file.


Thanks,

Chinmay

Gregor Šmit

Posted on 23.09.2021 14:32

Dear Chinmay,


there is an option to import a vector/matrix constant in a math module, please refer to the attached image. Unfortunately for now we only support vectors with length of up to 20,000 elements. In the attachment there is also a setup file TestingArrays.dxs with 5 constants totaling 50,000 elements and a formula that calculates a sum of a few elements.


DewesoftX also supports C++ scripts with which you can create an array with a length of 50,000 elements.


Kind regards.

Login to reply to this topic. If you don't have account yet, you can signup for free account .