Virtual Board panel [Simulator]


This panel is used to configure the virtual target system and operate the virtual components.

With this panel, the results of data that have been input to and output from peripheral I/O modules can be confirmed.

Note that this panel is only available when the simulator for the active project supports peripheral function simulations.

Figure A.50

Virtual Board panel [Simulator]

 

This section describes the following.

[How to open]

-

From the [View] menu, select [Virtual Board].

[Description of each area]

(1)

Virtual board area

This area is used to operate the virtual target system.

It supports the following components.

These components can be operated while the program is running.

 

Light Emitting Diode

An LED can be connected to any pin, and the output from the pin can be indicated by switching the LED on or off.

(with brightness control)

Light Emitting Diode

An LED can be connected to any pin, and PWM control can be used to control the apparent brightness by switching the LED on and off.

The display on the LED is not correct if the PWM cycle is greater than 100 ms.

 

Digital input switch (push type)

A button can be connected to any pin. A digital input value can be given to the connected pin by clicking the displayed button.

 

Digital input switch (toggle type)

A button can be connected to any pin. A digital input value can be given to the connected pin by clicking the displayed button.

 

Used for inputting analog data. Any data within a given range can be set.

Any value within a specified range can be assigned to a pin connected to an A/D converter.

 

Used for inputting analog data. Any data within a given range can be set.

The gas concentration sensor value (PPM) is converted to a voltage for a pin connected to. Any value within a specified range can be assigned to the pin.

 

Switch for vibration sensing

A button can be connected to any pin. A digital input value can be given to the connected pin by clicking the displayed button.

 

Buzzer for an alarm machine

A button can be connected to any pin. The output of the pin is indicated by both sound and image.

 

Temperature sensor

The voltage produced from the specified temperature can be applied to a pin to which the A/D converter is connected.

Relational expression between temperature and input voltage:

Voltage (V) input to the connected pin =
(conversion_factor[mV/℃] x specified_temperature[℃] + conversion_offset[mV]) / 1000.0

(2)

Button area

These buttons are used to add or remove components.

This area is displayed while the program is stopped.

Add component

Adds a part.

The default setting for the type of component is LED. Select the component to be used from [Type] in the property area.

Drag the component to move it to the position where it is to be placed.

Remove component

Deletes the selected part.

(3)

Property area

This area is used to display or edit the properties of the component.

The properties of the component selected while the program is stopped are displayed.

The following items are displayed in this area.

Type

Select the part.

Subtype

Select an LED with or without brightness control.

This property is displayed when the component is an LED.

LED without Brightness Control

The LED is turned on or off.

LED with Brightness Using PWM

The LED has brightness control.

Name

Specify the name of the part.

Connected to

Select the name of the pin to which the LED is to be connected.

Color

Select the color of the LED.

This property is displayed when the component is an LED.

The following colors can be selected.

Red, green, blue

Active Level

Select the active state.

This property is displayed when the component is an LED or switch.

Active High

Sets the active level to High.

Active Low

Sets the active level to Low.

Appearance

Select the type of the switch.

This property is displayed when the component is a switch.

Push

Sets the push switch.

Toggle

Sets the toggle switch.

Min Input Value

Display or specify the lower limit of an input value.

This property is displayed when the component is a potentiometer, a gas sensor, or a temperature sensor.

For a temperature sensor, the minimum input value is automatically calculated from the conversion factor and the conversion offset (- conversion_offset[mV] / conversion_factor[mV/℃]).

Max Input Value

Display or specify the upper limit of an input value.

This property is displayed when the component is a potentiometer, a gas sensor, or a temperature sensor.

For a temperature sensor, the maximum input value are automatically calculated from the following formula.

(max_input_voltage[V] - conversion_offset[mV] / 1000.0) / (conversion_factor[mV/℃] / 1000.0)

Input Step

Display or specify the minimum size of the variation in an input value.

This property is displayed when the component is a potentiometer, a gas sensor, or a temperature sensor.

For a potentiometer, the value displayed or entered in the text box is the stepping width.

Initial Input Value

Select the initial value when the CPU is reset.

This property is displayed when the component is a potentiometer, a gas sensor, or a temperature sensor.

On Reset

Select the operation when the CPU is reset.

This property is displayed when the component is a potentiometer, a gas sensor, or a temperature sensor.

Hold

The state immediately before the CPU was reset is retained after the CPU has been reset.

Initialize

Specify the value which has been selected in [Initial Input Value] when the CPU is reset.

Sound

Select the mute of the buzzer.

This property is displayed when the component is a buzzer.

Conversion Factor

Specify a factor for the conversion of each input value to a voltage value.

This property is displayed when the component is a gas sensor or a temperature sensor.

Conversion Offset

Specify an offset for the conversion of each input value to a voltage value.

This property is displayed when the component is a temperature sensor.

Max Input Voltage [V]

Specify the maximum voltage value that can be input to the connected port.

 

-

Copyright

The Virtual Board Panel may use the copyrighted components specified in the file below.

CS+ install folder\CC\vboard\licenses-abstract.txt