2015, vol. 14, br. 54, str. 43-49
|
Implementacija generičke DSP komponente u sklopu TyphoonHIL softvera za modelovanje šema energetskih sklopova
Implementation of generic DSP component within TyphoonHIL software for modeling power circuits schemes
Sažetak
Potrošnja električne energije je u konstantnom porastu. Da bi se ovaj trend nesmetano nastavio neophodno je raditi na efikasnosti i pouzdanosti proizvodnje i distribucije električne energije. Jedna od neophodnih metoda koja se primenjuje da bi se postigao ovaj cilj jeste rigorozno i kontinualno testiranje svih komponenti elektroenergetskih sistema. Testiranje se može obavljati na realnom sistemu ali takav način testiranja je skup, spor i često dovodi do ugrožavanja materijalnih dobara i života ljudi. Zbog toga je u sve široj primeni vid testiranja koji se izvodi na posebnim uređajima, gde se realni sistem simulira modelom. Ovakav pristup je dosta efikasniji, jeftiniji i sigurniji od testiranja sistema 'na živo'. Kompanija TyphoonHIL proizvodi seriju HIL (Hardware-in-the-loop) uređaja za testiranje kontrolera u oblasti energetske elektronike i tehnologije digitalne obrade signala (Digital Signal Processing). Zbog širokog spektra primene tehnologije digitalne obrade signala nije moguće odrediti konačan skup DSP komponenti potrebnih krajnjem korisniku, zbog čega se javila potreba za implementacijom generičke DSP komponente. U ovom radu je predstavljena implementacija generičke DSP komponente u vidu CodeBlock komponente. Korisnik bira izgled komponente, te opisuje njenu funkcionalnost pomoću modifikovanog podskupa C jezika. CodeBlock komponenta je implementirana korišćenjem Arpeggio parsera uz oslonac na Jinja2 obrađivač šablona za generisanje koda i programski jezik Python. Rešenje predstavljeno u radu je integrisano u Typhoon Schematic editor, deo hardversko/softverskog skupa alata kompanije TyphoonHIL, što je omogućilo veću fleksibilnost alata i mogućnost proširenja od strane krajnjih korisnika.
Abstract
The need for electricity in the world is increasing, which necessitates more efficient production and distribution of electricity, which is achieved through rigorous and continuous testing of power systems of this type. Tests are performed on specific devices, where the real system is replaced with a model. This type of testing is much more efficient, cheaper and safer than testing the real system. The company TyphoonHIL produces series of HIL (Hardware-in-the-loop) devices for testing the controllers in the field of Power Electronics and technology of Digital Signal Processing. Because of the wide range of applications of Digital Signal Processing, it is not possible to determine a finite set of DSP components required by a user, which is why there was a need for the implementation of generic DSP component. This paper presents the implementation of a generic DSP component as CodeBlock component. The user selects the appearance of component and describes its functionality by using a modified subset of the C language. CodeBlock component is implemented by using Arpeggio parser, relying on Jinja2 template engine for code generation. The solution presented in this paper is integrated within Typhoon Schematic Editor, which is part of the TyphoonHIL hardware/software tool-chain. The solution makes Typhoon Schematic Editor a lot more flexible to the needs of the user.
|