- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » I cannot connect RelTemperatureSensor...
I cannot connect RelTemperatureSensor and CombiTable1D
I cannot connect RelTemperatureSensor and CombiTable1D
Hello,
I try to connect the RelTemperatureSensor and CombiTable1D, but got error warning and message:
Unused input variable tableAvailable in function .Modelica.Blocks.Tables.CombiTable1D.getTableValue.
Unmatched dimension in equation connect(relTemperatureSensor2.T_rel, combiTable1D1.u), [] != [1].
Please see attached screen.
T_rel of RelTemperatureSensor is RealOutput, and u of CombiTable1D is RealInput, so I think that these port can connect.
Thanks in advance.
Re: I cannot connect RelTemperatureSensor and CombiTable1D
Hi Takataka1970,
The problem lies in the connect statement
connect(relTemperatureSensor2.T_rel, combiTable1D1.u);
It doesn't specify which of the 'n' inputs of the combiTable you want to connect to the temperature sensor
You should do one of the following:
1) change the connect statement to connect(relTemperatureSensor2.T_rel, combiTable1D1.u[1]); — provided that the table has only one input entry.
2) replace the class combiTable1D with a combiTable1Ds (which has only one input).
Best regards,
Rene Just Nielsen
- justnielsen
- 40 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » I cannot connect RelTemperatureSensor...