Tour labview generation » History » Version 1

Txinto Vaz, 12/19/2013 05:49 AM

1 1 Txinto Vaz
h1. Labview VI project skeleton generation
2 1 Txinto Vaz
3 1 Txinto Vaz
Automated testing is a nowadays must-have.  To develop testing setups in parallel with system development is painful, as any little change in the name, position, type or transfer function of a flow must be propagated from the development team to the testing team.
4 1 Txinto Vaz
5 1 Txinto Vaz
One of the most boring task when using LabView to design automated testing setups is creating the controls of every input and output in the system.  Normally the user must replicate same VI control for each flow having same flow type and flow direction.  And renaming it.  And adjusting transfer function or validity ranges.  And selecting the concrete input pin.
6 1 Txinto Vaz
7 1 Txinto Vaz
uCANca preserves the user patience by avoiding manual work of this type.  It does it in two steps:
8 1 Txinto Vaz
9 1 Txinto Vaz
* Generates an XML description file of all the inputs and output flows of the project.
10 1 Txinto Vaz
* Gives the user a [[VI converter project]] that is able to parse this XML and create programatically a new VI with all the controls correctly created from some control patterns defined by the user.
11 1 Txinto Vaz
12 1 Txinto Vaz
You can find the last version of the [[VI converter project]] in the wiki page that describes it.
13 1 Txinto Vaz
14 1 Txinto Vaz
h2. Generating the I/O XML description file.
15 1 Txinto Vaz
16 1 Txinto Vaz
You can obtain it by clicking on the link "IOX XML I/O description (for LabView, etc.)" in the projects detail page: http://ucanca.gatatac.org/projects/1-electric-car/gen_code.iox
17 1 Txinto Vaz
18 1 Txinto Vaz
h2. Generating the VI project skeleton
19 1 Txinto Vaz
20 1 Txinto Vaz
Open the [[VI converter project]] in LabView.
21 1 Txinto Vaz
22 1 Txinto Vaz
Copy the contents of the downloaded IOX (I/O XML description file) inside the [[VI converter project]] xml box control.
23 1 Txinto Vaz
24 1 Txinto Vaz
After that, you can edit the default controls for each flow type and direction.  After that you can press "Start" on LabView.
25 1 Txinto Vaz
26 1 Txinto Vaz
The VI Scripting tools included in the VI converter project will create a new blank VI project and generate programatically the flow controls of the project.