Technical FAQs

Ask a Question

How to initialize Index variable to zero for DDT in Unity Pro.

Follow the below steps to initialize the Index values of DDT to zero:

1. Make 4 variable tags i.e. array_data, one_data, index_day_data and reset.

2. Make one LD section named as "init_day_data"

3. Call one operate block and move the value of one_data(in this case value would be 0) to array_data on the basis of the index number means if index will be 1 then value of array_data[1] will be initialized and so on.And this will execute as soon as reset contact will be initiated as shown in logic.

Refer the attached logic for ready reference.
Was this helpful?
What can we do to improve the information ?