Hi,
I am getting some very weird results when running my application code on my S32K148EVB.
I have my CAN receive blocks that read 80 messages on CAN2. This contains voltage data 176 cells this is then put into a 16x11 matrix of cells. I find the min and max including the index by using the following MATLAB function:

The issue I am seeing is the value for Min cell volt seems to flash to 0V a lot throughout runtime. I am using CANalyzer to send the CAN messages containing cell voltage so I know that the minimum cell is a solid 3.4v continuously.

Occasionally it's for more than 1 CAN sample time, for example it happens here for 3 steps with is 300ms overall:

Sometimes the output goes to 3.2V, but only ever those 2 values, 0V and 3.2V:

What could be causing this? I really need help on this as have the wrong voltage that much really isn't good. My guess is that the CAN receive is some how malfunctioning. I also transmit the total sum of all cell voltages coming straight in from CAN and that also drops lower when this dip happens, therefore has to be something to do with that surely?
I have attached my model.
Thanks in advance!