Pensionista

Páginas: 30 (7481 palabras) Publicado: 13 de octubre de 2012
Creation VSM - models of electronic components for Proteus.
Program interface VSM SDK.
As 4 already he wrote in the previous article, all models for Proteus must use VSM API. These are..HPP- files, which are located in catalog INCLUDE of installation Proteus. Now firm Labcenter isolated VSM API into the separate product, which is extended only among the developers, but it is possible to use old(being contained in version Proteus Professional 6.3) for the newer versions Proteus. It consists of several it is file: vsm.hpp - basic file API, in which are contained practically all functions and interfaces. vdm.hpp - API diagnostic routine for the models of micro-controllers. vdm11.hpp, vdm51.hpp and vdmpic.hpp - API diagnostic routine for micro-controllers Motorola, Intel x51 and MicrochipPIC. In the original documentation not all are described, whereas 4 I will try to describe as far as possible all possibilities. You look the concrete examples of the application of classes and functions in the articles.

Functions of creation and removal of models.

For creation or removal of the version of the model ISIS are caused the specific functions, which must be in the list of theexport of our..DLL- library. Are given below the titles of these functions for the different classes of models. Active models:
extern "C" __ declspec(.dllexport) IACTIVEMODEL * createactivemodel (CHAR device, ILICENCESERVER * ils); extern "C" __ declspec(.dllexport) VOID deleteactivemodel (IACTIVEMODEL * model); *

Analog (SPICE) models: extern "C" __ declspec(.dllexport) ISPICEMODEL *createspicemodel (CHAR * device, ILICENCESERVER * ils); extern "C" __ declspec(.dllexport) VOID deletespicemodel (ISPICEMODEL *); Digital models: extern "C" __ declspec(.dllexport) IDSIMMODEL * createsdsimmodel (CHAR * device, ILICENCESERVER * ils); extern "C" __ declspec(.dllexport) VOID deletedsimmodel (IDSIMMODEL *); Mixed (analog-digital) models: extern "C" __ declspec(.dllexport) IMIXEDMODEL *createmixedmodel (CHAR * device, ILICENCESERVER * ils); extern "C" __ declspec(.dllexport) VOID deletemixedmodel (IMIXEDMODEL *);

Server of licensing.
Before the creation of model we compulsorily must cause the server of licensing in order to make possible Proteus to verify, can user with the keys of licensing established in it create this model, i.e., authorize model. For the authorization of model wemust cause function authorize or authorizeex. The second is characterized by the fact that additionally it is possible to transmit date VSM SDK. function authorize it is possible to cause several times with different keys, importantly so that the server of licensing at least one time would regain importance of TRUE.

For example, we want so that our model depending on that, is whether theadditional key, which corresponds to model or not, it worked in the complete or reduced version:
if (ils->.authorize(.Device_.Key)) { to //Est' the key of model, we work in the complete version } else if (ils->.authorize(.Common_.Key)) { tyuere is no //Klyucha of model, there is pass key Proteus, we work in the reduced version } else return FALSE; tyuere is no //Klyuchey generally or internal error,we leave without the creation of model.

Also, with the aid of the functions of the server of licensing we can obtain additional information about the owner of this copy Proteus: DWORD getid() - the series number Proteus; CHAR * getname() - the name of owner; CHAR * getcompany() - the name of company; CHAR * getexpirydate() - the date, after which elapses the period of support.

Classes of thesimulation of electrical part. Class IDSIMMODEL.

Digital VSM- models must be inherited from the abstract class IDSIMMODEL. INT isdigital (CHAR * pinname) - this function must return 1, if conclusion with the data by name is digital or mixed, 0 if it is analog or model with it not rabayet, and -1 if conclusion can be analog or digital depending on context. VOID setup (IINSTANCE * instance,...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Pensiones
  • pension
  • Pension
  • Pensión
  • Pension
  • Pensiones
  • Pensiones
  • Pensiones

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS