What can Lua do?

Cours what can Lua do?, tutoriel & guide de travaux pratiques en pdf.

What is Lua?
• Embedded scripting language in WindMil and WindMilMap
• Created by a University team in Brazil
• Used by several software and gaming companies
What can Lua do?
• Make modifications to circuit models
• Create new element fields for custom reports  and data boxes
• Perform tasks on a schedule
Types of Lua Scripts
• .lua – make model edits and perform calculations on model data when script is ran
•.elua – creates element field in the field list
• .plum – script that can be ran automatically  based on certain actions
Model Editing with Lua
• Example scripts for model edits
– Insert transformer fuses(Arc Flash)
– Connect consumers to closest transformer
– Rephase elements from file
– Rename elements
• Calculations
– Total length of selected lines
Element Field Creation
• Lua scripts can create new element fields
• Defined as .elua files and must reside in C: \Milsoft\Programs\Scripts\eLua
• Perform calculations on existing data
• Upline and downline tracing/searching
Example Element Fields
• Total kW Loss – summation of kW loss on all elements downline from selected
• Upline Device – search upline to find device and equipment of device
• Min Downline Voltage – Search downline and return lowest voltage downline
Running Scripts
• Utilities, Script manager
– Select Script
– Hit Run
• Scripts can be tagged as favorite and run from Utilities, Execute Script
Script Manager Features
• Create new scripts
• Run selected scripts
• Create scripts from templates
• Add eLua fields to Selected Elements tab
eLua Templates
• Allows user to easily create a new element field based on pre-defined template
• Milsoft provides templates

……….

Si le lien ne fonctionne pas correctement, veuillez nous contacter (mentionner le lien dans votre message)
Lua scripting (1.45 MO) (Cours PDF)
Lua scripting

Télécharger aussi :

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *