Hi guys, I am trying to export sensor values from within uamp subroutine to an existing .txt file at every time increment. The simulation is running without errors but the sensor data are not getting printed in the .txt file.

I used the following lines of code which works with the UEXTERNALDB subroutine but not with UAMP.

Subroutine uamp(...

...

C get sensor value

sen_1 = GetSensorValue('CN1', jSensorLookUpTable,

* sensorValues)

open(105, file = 'C:\temp\title.txt', access='append', status = 'old')

write(105,*) sen_1

close(105)

return

end

I would appreciate if someone could help.

Similar questions and discussions