do stateflow support Vector State Machine Judgment
HI! man&madam:
I’m working on a design for a group of devices that perform the same control strategy based on their terminal voltages, i.e., normal control strategy when the voltage is above a threshold, and fault strategy when the voltage is below a threshold, so I’d like to build a state flow model for control and easy for others to understand, but I’m having trouble outputting the corresponding unit states, and I’ve tried to add state{idx}=0; to make it a vector instead of a state. How do I set the state so that it is a vector instead, I tried to add state{idx}=0; to initialize it but the system says idx cannot be defined.
I uploaded a demo with three elements and his current output is correct, but the state is one-dimensional data.
Thank you for all!HI! man&madam:
I’m working on a design for a group of devices that perform the same control strategy based on their terminal voltages, i.e., normal control strategy when the voltage is above a threshold, and fault strategy when the voltage is below a threshold, so I’d like to build a state flow model for control and easy for others to understand, but I’m having trouble outputting the corresponding unit states, and I’ve tried to add state{idx}=0; to make it a vector instead of a state. How do I set the state so that it is a vector instead, I tried to add state{idx}=0; to initialize it but the system says idx cannot be defined.
I uploaded a demo with three elements and his current output is correct, but the state is one-dimensional data.
Thank you for all! HI! man&madam:
I’m working on a design for a group of devices that perform the same control strategy based on their terminal voltages, i.e., normal control strategy when the voltage is above a threshold, and fault strategy when the voltage is below a threshold, so I’d like to build a state flow model for control and easy for others to understand, but I’m having trouble outputting the corresponding unit states, and I’ve tried to add state{idx}=0; to make it a vector instead of a state. How do I set the state so that it is a vector instead, I tried to add state{idx}=0; to initialize it but the system says idx cannot be defined.
I uploaded a demo with three elements and his current output is correct, but the state is one-dimensional data.
Thank you for all! vector, stateflow, state machine MATLAB Answers — New Questions