Using the PAmodulInit Module

Add-on Userbox (Tab)

With the norm name PAmodulinit_AddOn.UB.WTB, a userbox can be shown which can be integrated as a tab. This is optimized for the representation in the sub-module TCMG.

A pop-up userbox can be shown by setting the value of the PAmodulinit.UB.ToDo variable.

Appearance of the Userbox for Device Modules

For device modules, the userbox contains options for activating or deactivating Normal and Ever initialization.

The following macro calls are made to explain the behavior of the PAmodulInit module:

; Initialization of Device03 with "ever" and all other "normal"
PAmodulInit_Device("Device01",Device01_init.ACT,Device01_
init.STS,Device01.UB.ToDo,Device01_init_remote.STS,Device01_init.STS.TXT)

PAmodulInit_Device("Device02",Device02_init.ACT,Device02_
init.STS,Device02.UB.ToDo,Device02_init_remote.STS,Device02_init.STS.TXT)

PAmodulInit_Device_Ever("Device03",Device03_init.ACT,Device03_
init.STS,Device03.UB.ToDo,Device03_init_remote.STS,Device03_init.STS.TXT)

PAmodulInit_Device("MODUL-Device",MODUL_init.ACT,MODUL_
init.STS,MODUL.UB.ToDo,MODUL_remote.STS,MODUL.STS.TXT)
Figure 104. PAmodulinit Userbox Example for Device Modules
1378
  • Device01 is integrated via the macro PAmodulInit_Device and it was neither initialized via the variable Device01_init.ACT nor via the userbox, so the LED is grey. The checkbox Ever is not available, since it is only visible if the module is connected by a call to PAmodulInit_Device_Ever. The checkbox Normal is not checked so that this device will not be initialized when the test bench is being switched on (i.e. PAmodulinit_Device_Init.ACT=1). However, in this state this module can be initialized either by setting the variable Device01_ init.ACT=1 or by the user when he clicks the init button of the userbox 1378.
  • Device02 is also integrated via the macro PAmodulInit_Device. This device was initialized via the Device02_init.ACT variable, so the LED is green. The checkbox Ever is not available, too. The checkbox Normal is checked, so that (after the module has been deinitialized) an initialization automatically would occur if the test bench was switched on. In this state this device can be deinitialized by the application by setting the variable Device02_ init.ACT=0. Operating the userbox is not possible in this state.
  • Device03 is integrated via the macro PAmodulInit_Device_Ever and it was automatically initialized during start-up of the test. Therefore the checkbox Ever is checked and the LED is green. The checkbox Normal is not available, since it is only visible if the module is connecting by a call to PAmodulInit_Device. In this state this device can be deinitialized either by the application by setting the variable Device03_init.ACT=0 or by the user by clicking the checkbox Ever.
  • MODUL-Device is also integrated via the macro PAmodulInit_Device. However, it was not initialized via the MODUL_init.ACT variable, but by clicking the button in the module userbox. Therefore the checkbox Normal is checked but inactive, the checkbox Ever is not available, and the LED is green. In this state this device can only be deinitialized by clicking the deinit button 1378 of the userbox.

Operation of the Userbox for Device Modules

If the checkbox is set with Remote, the device modules are initialized with PAmodulinit_Device_ Init.ACT=1 (if successful LED = green). After that the checkbox is no longer operable. Only with PAmod- ulinit_Device_Init.ACT=0 the checkboxes are again operable. If a module has already been initialized, this is indicated by a yellow LED. The checkbox of the module cannot be operated either.

In the case of device-ever modules, initialization is performed automatically by the base application when the test is loaded. In the test bench state switched off, the desired device-ever module can be directly deinitialized by the corresponding checkbox and initialized via the module's own userbox.

Example: Behaviour for PAmodulInit_Device_Ever

Initialization is done automatically when test is loaded and test bench is switched on:

The init button 1378 of the userbox of this device is not operable.

Deinitialization is done automatically when the test bench is switched off.

The init button 1378 of the userbox of this device can now be clicked for manual initialization of the module.

Now the module is user-controlled and can be switched off by clicking the init button 1378.

Software Modules

The initialization of software modules does not distinguish between normal and ever initialization. Additionally, software modules do not have to be deinitialized during test run. Therefore the userbox for the software modules only contains the buttons for opening the userbox of the software module.