I am developing a control application using PID VI (NI cRIO application). I am reading the setpoint profile from a comma separated values (csv) file and generating the setpoint using the PID setpoint profile VI.
The setpoint is correctly generated by the PID setpoint profile VI. But when I give the setpoint as input to PID VI along with Process variable, the output becomes Not a Number (NaN).
Could you advise the possible errors/issues regarding the same.
Thanks in advance.
Issue solved. The problem was with initialization of the setpoint array input to PID setpoint profile VI. After correctly initializing the array, the issue is solved.