Tool/software: Code Composer Studio
Hi,
I have a GUI in GUI Composer that outputs motor speed values to a text box. This text box utilizes an app.js function that converts the motor values into Q-24 format ("ToQ24_RoundTo2Decimals"). Everything was working fine, and then I started receiving the attached JSON file error and now the values are not converted properly. For your reference, my project is titled "7_20_2" in the filepath. What would cause the function not to be defined if it had been working before?
This error appears even if I switch pre-processing functions for the text box to something else besides "ToQ24_RoundTo2Decimals."
---------------------------------------------
Here is my JSON file:
{"widgetBindings": [
{
"propertyName": "value",
"serverBindName": "gMotorVars.Speed_krpm",
"widgetId": "textbox_output_speed",
"options": {
"dataType": "String",
"outPreProcessingFunction": "FromQ24",
"dataFormat": "%.2f",
"inPreProcessingFunction": "ToQ24_RoundTo2Decimals"
}
},
{
"propertyName": "value",
"serverBindName": "gMotorVars.Torque_lbin",
"widgetId": "textbox_output_torque",
"options": {"dataType": "String"}
},
{
"propertyName": "value",
"serverBindName": "gMotorVars.SpeedRef_krpm",
"widgetId": "widget_14292",
"options": {"dataType": "String"}
}
]}
-------------------------
Thank you,
JV