Using J-Scope to track multiple variables simultaneously in run-time. Follow the steps below:
- Assign the required variables (detailed in Table 8-1) to preset global variables for monitoring.
- Add attributes for the preset variables: __attribute ((used))
- Open the J-Scope and Import the .out (or .elf) file of FOC project.
- Add the preset variables in Step1 to J-Scope observation panel.
- Run the FOC project and track the variables in real-time.
- There requires a UART (or other communication interfaces) to dynamically control the motor, or a auto spin mechanism in application code.
Figure 9-4 and Figure 9-5 show an example to monitor multiple variables simultaneously in run-time.