To load data to an inport, create a time series object.
sampleTime = 0.1; %sample time of the model
endTime = 10; %end time of the model
numberOfSamples = endTime * 1/sampleTime + 1;
timeVector = (0:numberOfSamples) * sampleTime;
u = timeseries(timeVector*10,timeVector);
Load the object to the inport named first.
reloadData(tg.Stimulation,'first',u);
To load the same object to multiple inports named first and
third.