11 Data Visualizer
To visualize and interpret the ADC results, the user must follow these steps:
- Open the Data Visualizer tool by selecting Tools >Data Visualizer.
- Connect to the Curiosity Nano COMn port, as described in the figure below.
- From Configuration >Protocols, open Data Streamer by double clicking.
- Connect the COMn port source to the Data Stream Control Panel input by dragging and dropping.
- Select the Configuration file and click Load.
- From Configuration > Visualization, open a new Graph by double clicking.
- Connect the ADC Result source to the
Graph: Configuration >Axis 0 > New plot input by dragging and
dropping.
The results for all the use cases are presented in the figures below. The results were obtained by randomly turning the potentiometers rotors.
The ADC Single Conversion use case results are plotted according to the figure below. The results are in the range [0; 4095], as expected for a 12-bit resolution value.
The ADC Free-Running use case results are presented below. They look similar to the Single Conversion results.
The ADC Differential Conversion results are presented below. The results are in the range [-2048; +2047], as expected for a 12-bit signed value.
For the ADC Window Comparator use case, a horizontal cursor can be added to measure the desired threshold. The step is described in the figure below.
In this use case, rotating the potentiometer will modify the ADC value until LED0 is turned on or off. The threshold (the value of the ADC conversion result corresponding to the LED0 changing state) is highlighted by the horizontal cursor.
The plot is visible in the figure below.The ADC Event Triggered use case results are presented in the figure below.
The ADC Temperature Measurement use case results are presented in the figure below. To obtain these results, small temperature variations were introduced in the setup environment.