I need to access the values of several signals in order to calculate their total value. I also need to compare the value of a signal to a constant value for use in an if statement e.g.
on timer msTimer100
{
if(msg1.Sig1 < 23)
{
x=1;
}
else
{
x=0;
}
}
However I get the operand not compatible in the if statement. I have also tried putting a $ sign in as $msg1.Sig1, however I get an error saying 'Service signal not found in database' despite that signal being present in the database. Any ideas?