SlideShare a Scribd company logo
1 March 2011




                              VISI
                                 IR
                              INST LATIO & STA
                                  TALL   ON  ART-U
                                                 UP
                              GUIIDE V
                                     V.1
                              Electrical a Compute Engineering Department
                                         and          er           g          t
                              Spanish Un niversity for D
                                                       Distance Educ
                                                                   cation-UNED

                              Authors: Mohamed T   Tawfik
                                       Sergio Mar rtín
                                       Charo Gil
                                       Pablo Losaada
                                       Alberto Pessquera
                                       Elio Sancristobal
                                       Gabriel Díaaz
                                       Juan Peire
                                       Manuel Castro




          This w
               work has been sponsored by the Span nish Science and Innovation Ministry through the project
                                                                                                  e
TIN22008-06083-C
               C01/TSI “s-Labs – Open s
                                      services integ
                                                   gration for d
                                                               distributed, r
                                                                            reusable and secure remote and
virtu laboratories”
    ual
Summary
   In December 2010, the Electrical and Computer Engineering Department of Spanish University for
Distance Education (UNED) [1] installed a Virtual Instrument Systems in Reality (VISIR) [2]. VISIR is a
remote laboratory for undergraduate electric and electronic circuits practice. It allows a student to
wire a real circuit remotely and get results from real instruments on their PC screen. The purpose of
UNED is to apply it, the second semester of this academic year 2010-2011, on the practice of the
undergraduate engineering grades. On the other hand, to work on its development and integration
with other outstanding learning technologies and research areas in which the department is currently
researching to improve and enrich distance education. For instance, learning management system
(LMS), fingerprints, mobiles, remote laboratories, web services, etc. UNED aims to be an active
member in the VISIR community by sharing its lab resources and experiments with the rest of the
community to enhance the experimentation skills in the electric and electronic engineering fields.
Furthermore, it aims to bring out satisfactory results with respect to the practice as well as the
research areas directed to the enhancement of the distance education quality level.

   This work reflects the acquired experience during the set up and the installation process of VISIR
at UNED. The guide contains all the stages of the installation and the necessary configurations
required for the VISIR start-up, correct usage and administration. This work aims to be a reference for
any university interested in setting up a VISIR and to be a one more contribution from UNED to its
community.
Table of Contents
1.       INTRODUCTION ..................................................................................................................................... 6
2.       HARDWARE DESCRIPTION ................................................................................................................. 7
     2.1.         PXI-Platform ........................................................................................................................................................................................ 8
     2.2.         Relay Switching Matrix .................................................................................................................................................................. 9
         2.2.1.            Component List ........................................................................................................................ 14
         2.2.2.            Max lists ................................................................................................................................... 17
3.       SOFTWARE DESCRIPTION AND OPERATION CYCLE ................................................................. 18
     3.1.         Web Interface .................................................................................................................................................................................. 19
     3.2.         Experiment Client .......................................................................................................................................................................... 19
     3.3.         Measurement Server .................................................................................................................................................................... 22
     3.4.         Equipment Server .......................................................................................................................................................................... 23
4.       INSTALLATION .................................................................................................................................... 26
     4.1.         LabVIEW ............................................................................................................................................................................................ 28
     4.2.         NI Device Drivers ........................................................................................................................................................................... 28
     4.3.         Relay Switching Matrix Driver ................................................................................................................................................. 29
     4.4.         Component List ............................................................................................................................................................................... 29
     4.5.         Equipment Server Software ...................................................................................................................................................... 30
     4.6.         Measurement Server .................................................................................................................................................................... 31
     4.7.         Web Server ....................................................................................................................................................................................... 33
         4.7.1.            Text_WIKI Package ................................................................................................................. 33
         4.7.2.            Smarty ....................................................................................................................................... 34
     4.8.         Web Interface .................................................................................................................................................................................. 34
         4.8.1.            Database.................................................................................................................................... 35
         4.8.2.            HTTPS ...................................................................................................................................... 35
         4.8.3.            Config.php ................................................................................................................................ 38
     4.9.         Experiment Client .......................................................................................................................................................................... 40
         4.9.1.            Config.xml ................................................................................................................................ 40
         4.9.2.            Library.xml ............................................................................................................................... 40
     4.10. Getting Started ................................................................................................................................................................................ 41
5.       CONCLUSION AND FUTURE WORK ................................................................................................ 42
REFERENCES ............................................................................................................................................... 43
Glossary
 API         Application Programming Interface
 DPST        Double pole, single throw
 GND         Ground
 GPIB        General Purpose Interface Bus
 HTML        Hypertext Markup Language
 I2C         Inter-Integrated Circuit
 IC socket   Integrated circuit socket
 IEEE        Institute of Electrical and Electronics Engineers
 IP          Internet Protocol
 IVI         Interchangeable Virtual Instruments
 LabVIEW     Laboratory Virtual Instrumentation Engineering Workbench
 LMS         Learning management system
 LXI         LAN Extensions for Instrumentation
 NI          National Instruments
 PXI         PCI Extensions for Instrumentation
 SOAP        Simple Object Access Protocol
 SSL         Secure Socket Layer
 TCP         Transmission Control Protocol
 TLS         Transport Layer Security
 USB         Universal Serial Bus
 VISA        Virtual Instrument Software Architecture
 VISIR       Virtual Instrument Systems In Reality




                      [3]
Figure Index
Figure 1. Common traditional instruments in an undergraduate ............................................................... 7
Figure 2. Relay switching matrix ................................................................................................................. 9
Figure 3. Component Board ...................................................................................................................... 10
Figure 4. Two leads components connected to DPST relays .................................................................... 10
Figure 5. Internal connection of a resistance connected to relay one and to the nodes (B, C) ................ 11
Figure 6. Internal connection of instruments with the nodes of the matrix ............................................... 12
Figure 7. A graph with 5 nodes and 10 branches ...................................................................................... 13
Figure 8. A circuit of 5 nodes and 3 components ...................................................................................... 13
Figure 9. Numbering single and dual pole relays on the component board ............................................. 14
Figure 10. Components installed in the component board ........................................................................ 15
Figure 11. Internal connection of the 6V power source using shortcut wires........................................... 15
Figure 12. Internal connection of the 6V power source using single pole relays ..................................... 16
Figure 13. Operational amplifier connection ............................................................................................ 16
Figure 14. Component list ......................................................................................................................... 17
Figure 15. A max list for an operational amplifier circuit ........................................................................ 17
Figure 16. An overview about how VISIR works ....................................................................................... 18
Figure 17. VISIR web interface ................................................................................................................. 19
Figure 18. Client selects available modules .............................................................................................. 20
Figure 19. Virtual workbench of VISIR ..................................................................................................... 20
Figure 20. Pull-down component list menu ............................................................................................... 21
Figure 21. Measurement server running ................................................................................................... 22
Figure 22. Equipment server software running ......................................................................................... 23
Figure 23. The role of IVI in the frontal panel and the platform selection ............................................... 24
Figure 24. Overall operation process of VISIR ......................................................................................... 25
Figure 25. VISIR connected at UNED ....................................................................................................... 26
Figure 26. Connection of the DMM and the oscilloscope ......................................................................... 27
Figure 27. Connection of the DC power supply and the function generator ............................................ 27
Figure 28. Instruments defined in the Measurement & Automation Explorer .......................................... 28
Figure 29. Relay switching matrix defined in the Measurement & Automation Explorer ........................ 29
Figure 30. EquipmentServer.ini file .......................................................................................................... 30
Figure 31. Create wiki page ...................................................................................................................... 41




                                                                         [4]
Table Index

Table 1. The role of each component of the NI PXI-platform……………………………………………………………..…....8
Table 2. Board label and I2C address scheme……………………………….…….…………………………………………………13
Table 3. The VISIR oscilloscope capabilities.………………………..………………………………………….……………………24




                                            [5]
1. INTRODUCTION

   The Signal Processing Department (ASB) at Bleking Institute of Technology (BTH) in Sweden together
with National Instruments in USA (as a supplier of instruments) and Axiom EduTECH in Sweden (as a
supplier of education, technical software, and engineering services for noise and vibration analysis) have
launched the Virtual Instrument Systems in Reality (VISIR) Project in the end of 2006. It is an open source
remote laboratory project, financially supported by BTH and the Swedish Governmental Agency for
Innovation Systems (VINNOVA).

   In December 2010, the Electric and Computer Engineering Department of UNED installed a VISIR with
the aid and guidance of the project founder Ingvar Gustavsson, together with the two engineers, Johan
Zackrisson and Kristian Nilsson, from Bleking Institute of Technology (BTH). This guide is an installation
reference from the Department. It includes the gained experience during the installation. The guide consists
of four main chapters. The first chapter (Hardware Description) describes the VISIR hardware components
types, models and their suitable connection. The second chapter (Software Description and Operation
Cycle) explains the VISIR operation cycle and the software role of each part during the operation and its
source building. The third chapter (Installation) shows the VISIR installation step by step process at UNED
and all the configurations needed to get it to run. The Fourth and the last chapter (Conclusion and Future
works) discusses the main parts on which a future work could be realized , on the one hand, for the VISIR
development and integration, and on the other hand to Develop the available remote lab technology and
enhance distance education.

   Most of the compiled information in this guide is retrieved from documents released by the project
founders through the project webpages [2] [3], all these documents are freely accessible. This guide
provides complementary information to that is found in the project web pages. Accordingly, before
installing a VISIR, the resources of the project web pages should be considered first.




                                                      [6]
2. HARD
          DWARE DESCRIP
                      PTION

   The common traditiona instrumen in an u
   T            n         al        nts       undergraduat engineeri
                                                         te         ing laborato for elec
                                                                                ory        ctric and
elect
    tronic circui Figure 1, are: a po
                its,                ower supply a function generator, a digital m
                                              y,         n          ,           multi-meter (DMM);
brea
   adboard and an oscillosco
                           ope.




                                      Figure 1. Common traditional instrument in an underg
                                                                            ts            graduate
                                         engineerin laboratory f electric and electronic cir
                                                  ng           for          d              rcuits

   In VISIR, the instrume are repla
    n           ese          ents          aced with an equipment platform, w
                                                        n                      which is suite for remot control
                                                                                            ed          te
                                                       1
such as PXI (PC eXtension for Instrum
    h           CI           ns           mentation) [4], LXI (LA eXtensio for Instru
                                                                    AN         ons          umentation) 2 [5] and
                                                          3
IEEEE-488or GPI (General Purpose Int
                 IB                        terface Bus) [6]. The current VISIR is based on PXI. In ad
                                                                                R          o            ddition, a
relay switching matrix is connected to the PXI eq
    y                                                   quipment plaatform. The matrix con nnects the diigital pxi
instr
    rument cards to the comp
                s             ponents inst talled inside the matrix. By this way it possible to design an wire a
                                                                               y,                       nd
real electronic c
                circuit remot tely thanks t this matri In this part, all the V
                                           to            ix.                   VISIR hardw  ware compon  nents are
goin to be desc
   ng           cribed, illustr
                              rating the funnction of eac of them.
                                                         ch




   1.
   1    PXI (PCI eXtensions for In    nstrumentation) is a rugged PC-    -based platform for measureme and automati systems. Wi PXI, you
                                                                                                       ent              ion              ith
        can select t modules (ins
                   the                struments) from a large number of vendors and easily integrat them into a si
                                                                        r               d              te                ingle PXI system PXI uses
                                                                                                                                         m.
        PCI-based t technology and an industry stan    ndard governed b the PXI Syst
                                                                         by             tems Alliance (P
                                                                                                       PXISA) to ensur standards com
                                                                                                                        re              mpliance and
        system interroperability.
   2.
   2    LXI is the power of Ethern and the Web applied to Te & Measurem
                                      net                               est            ment offering you new possibilit in test syste
                                                                                                        u                ties            ems – local,
        remote, disttributed, time-aw ware. LXI is the current and fut
                                                       e                ture standard for Test & Measur
                                                                                         r              rement. It's seen the fastest ram
                                                                                                                        n               mp-up of any
        communica  ations standard in the history of t test industry and products fro leading test a measuremen companies.
                                      n                the                              om             and              nt
   3.
   3    GPIB or IEEE-488 is a sho    ort-range digital communications bus specificatio It was create for use with automated test e
                                                                         s               on.            ed              a               equipment in
        the late 1960s, and is still in use for that pur
                                      n                 rpose. It was cre
                                                                        eated as HP-IB (HHewlett-Packard Interface Bus).
                                                                                                       d                .
                                                                         [7]
2.1.       PXI
                  I-Platform
                           m

   The
   T PXI plat tform consis of instrum
                         sts        ment module cards, a co
                                               e           ontroller car and a cha
                                                                       rd          assis in whic all the
                                                                                               ch
                                                                                               1
card are suited All the pl
   ds         d.         latform com
                                   mponents are manufactur by National Instrum
                                              e            red                     ments (NI) [7]. For
ever componen there are a various m
    ry        nt,                   models depen
                                               nding on its technical characteristic Table 1 i
                                                                                   cs.         illustrates
the r of each component a its available model a UNED
    role                 and                   at

                                      Table 1. Th role of each component of the NI PXI-pla
                                                he                        f              atform

                      NI PXI-Ch
                              hassis                             NI
                                                                 N PXI-Mod
                                                                         dules                             NI-P Control
                                                                                                              PXI     ller
 Fun
   nction:      It is the backbone of the PXI
                    s               e               Or NI PXI-Instruments, The modules card     ds   It is an e embedded PC, which is
                    em in which all instrument
                syste                               that substitut the instrum
                                                                 te           ments. They ar    re   plugged int the NI PXI-Chassis. It
                                                                                                                 to
                cards (NI PXI-mod
                    s               dules) and NI   plugged into t NI PXI-Cha
                                                                 the           assis. All of thes
                                                                                                se   comes with standard featur such as
                                                                                                                h               res
                PXI-controller are pl
                                    lugged into.    cards can be a
                                                                 added and remov depending o
                                                                               ved              on   an integrate CPU, hard dr
                                                                                                                ed              rive, RAM,
                                                    the demands.                                     Ethernet, video, keyboa     ard/mouse,
                                                                                                     serial, USB Microsoft win
                                                                                                                B,               ndows etc.
                                                                                                     All these ddevice drivers a already
                                                                                                                                are
                                                                                                     installed. Hence, it elim
                                                                                                                H              minates the
                                                                                                     need for an external PC. H
                                                                                                                n               However, it
                                                                                                     could be repplaced with a PC
                                                                                                                                C.



                • NI PXI-Chassis (N PXI-1031).
                   I              NI                •   NI PXI-DC Power Supply ( PXI-4110).
                                                                C                (NI                 • NI-PXI Controller (NI PX
                                                                                                              C               XI-8105).
   Model
   M
                                                    •   NI PXI-Dig
                                                                 gital Multi-meter (NI PXI -4072)
                                                                                 r              ).
 inst
    talled at
   UNNED:                                           •   NI PXI-Fun
                                                                 nction Generator (NI PXI-5412).
                                                                                 r              .
                                                    •   NI PXI-Osc
                                                                 cilloscope (NI PX
                                                                                 XI-5114).




    1.
    1    National Innstruments is a l
                                    leader company for production of automated t
                                                  y                              test equipment a virtual instr
                                                                                                and            rumentation soft
                                                                                                                              tware. Their
         software prooducts include L
                                    LabVIEW, LabW  Windows/CVI, T
                                                                TestStand, etc. T
                                                                                Their hardware p
                                                                                               products include VXI, VMEbus, PXI, GPIB,
         I²C, and oth industrial aut
                    her             tomation standar
                                                   rds.

                                                                     [8]
2.2.     Rel Switch
               lay    hing Matri
                               ix

    It is a stack o PCI/1041 sized boards [8] which act as a circ
     t            of                      s                       cuit-wiring ro
                                                                               obot. It is m
                                                                                           manufactured in BTH.
                                                                                                        d
It is designed for low freque
                   r          ency analog e
                                          electric and electronic ci
                                                                   ircuit experi
                                                                               iments and cconsists of in
                                                                                                        nstrument
and component boards. Eac instrumen board (DM Oscillo
                              ch         nt           MM,         oscope, Powe source an function g
                                                                                er         nd            generator
Boar correspo
     rd)          onds to its NI PXI-Devi in the N PXI-Chas and con
                              N           ice        NI           ssis        nnected to it using eithe coaxial
                                                                                                        er
cable or cords, Figure 2.
      es




                                                  Figure 2. Re switching matrix
                                                             elay

   Relay switch
   R            hing matrix can hold up to 16 com
                                          p         mponent boards. Each component board comp        prises 10
sock for comp
   kets          ponents with two leads (
                             h           (Each socket is connecte to a doubl
                                                    t           ed           le-pole singl
                                                                                         le-throw rela DPST)
                                                                                                     ay
and two 20-pin IC sockets for complex circuit conn
                             f                      nections. Th relay sw
                                                                hus,       witching matr can cont
                                                                                          rix        tain up to
16×1 relays as maximum. Two leads component occupy on relay wh more leads compon
    10          s            .                      ts           ne         hile                     nents e.g.
amplifier, occup more relay Figure 3. Putting the switching m
                py           ys,         .                      matrix into a closed case is not recom
                                                                                         e           mmended
becaause it should be easy to swap comp
                 d                      ponents and r
                                                    rewire brancches. Howev it is very important t protect
                                                                            ver,         y           to
the s
    switching ma atrix from no
                             on-qualified persons.
                                        d




   1.
   1    PC/104 is a common international embedde computer stan
                                               ed            ndard controlled by the PC/104 C
                                                                                            Consortium.

                                                                 [9]
Figure 3. Component Bo
                                                              oard

   According to the data s
   A          o          sheet, the m
                                    maximum car current of the relay is 2 A an the minim
                                                  rry                   y        nd      mum life
                   8
expe
   ectancy is 3
              3×10 operat tions (appro
                                     oximately tw operation per secon continuously for fiv years).
                                                 wo         ns          nd               ve
Figu 4 shows t leads co
   ure         two       omponents co onnected to DPST relays inside the m
                                                                         matrix.




                            Figure 4. T leads comp
                                      Two        ponents conne
                                                             ected to DPST r
                                                                           relays




                                                    [10]
In relay swit
    n           tching matri each boa has a ce
                           ix,         ard       ertain number of relays controlling the interco
                                                                         s           g           onnection
betw
   ween the boa compone and the b
                ard        ents        board. Howeever, there a common nodes propa
                                                              are                     agating with all the
                                                                                                 hin
boar to conne them tog
    rds         ect       gether, creati a node b
                                       ing        bus. These nnodes are diivided into two groups, the first
                                                                                                 ,
conttains the nod A-I and 0 (GND). While the s
                 des      d                      second conta ains the nod X1-X6 and COM as seen in
                                                                         des         a            s
figur 3.
     re

    Figure 5 expl
    F              lains the inte
                                ernal connec
                                           ction of a commponent in the compon nent breadboa The com
                                                                                           ard.      mponents
can be connecte only to t nodes of the first gr
                   ed           the         f            roup depend
                                                                   ding on the components distributio on the
                                                                                                     on
commponent boar Figure 6 shows the internal co
                   rd.                                 onnection of the instrum
                                                                   f           ments with the nodes in
                                                                                           t          nside the
matr The grou terminal of the func
     rix.          und          ls          ction genera and the o
                                                       ator         oscilloscope are hardwir to node 0 (GND).
                                                                               e           red
The function gen   nerator outp can be co
                               put         onnected to nnode A only While the oscilloscope channels a well as
                                                                   y.                      e         as
the D
    DMM chann are dyna
                  nels          amically con
                                           nnected to an node depe
                                                       ny          ending on th user circui design and they are
                                                                               he          it        d
not llisted in the component list design. T Power s
                                            The         source conne
                                                                   ectors (0, CO +6V, +20V, -20V, A
                                                                                OM,                   AUX) are
connnected intern  nally to the node 0 (GN and th nodes of the second group (CO
                                          GND)         he                                 OM, X1, X2, X3, X4)
respe ectively, the depending on the com
                  en             g          mponent list design (see componen list), they are connect to the
                                                        t           e          nt                    ted
first group (by a shortcut wi as seen in figure 3 or by two rela switches i series) as the second g
                                ire        n           r           ay           in                   group are
not ssupported in the current software ver
                  n                         rsion.




                 Figure 5. Int
                             ternal connecti of a resista
                                           ion          ance connected to relay one a to the node (B, C)
                                                                     d              and         es




                                                          [11]
Fig
  gure 6. Internal connection of instruments with the nodes of the matrix
                 l             f


                                 [12]
The
   T complex of the matrix depend on the nu
               xity     m           ds          umber of nodes it have e.g. from a matrix with N nodes
we c obtain N (N-1)/2 br
    can        N.        ranches. How
                                    wever, the c
                                               current matri which hav 10 nodes (A-I, 0) is s
                                                           ix          ve         s            sufficient
for undergraduat Engineeri practice. Figure 7 sho the num
    u            te      ing                    ows       mber of brancches (10) co
                                                                                  ould be obtai
                                                                                              ined from
a5n node circuit.




                                   Figur 7. A graph w 5 nodes an 10 branches
                                       re           with       nd          s


   For
   F instance, if we conne a resistan (R1) to th nodes (A, B), a resista
                            ect        nce         he                     ance (R2) to the nodes (B C) and
                                                                                                  B,
a res
    sistance (R3) to the node (D, E) as s
                )           es          shown in fig
                                                   gure 8, we wo
                                                               ould have to consider so facts suc as:
                                                                          o           ome         ch
      •   The DDMM chann     nels are dynnamic but th nodes ar not, so w can meas
                                                    he          re         we          sure R1, R2, R3 and
                                                                                                     ,
          R1+R To measu R2+R3 (
               R2.           ure         (nodes B, E) we have to make a sho
                                                    ),           o          ortcut betwe the node (C, D).
                                                                                       een         es
          The shhortcut is a single wire t connects two nodes and occupie one relay as seen in th relay 3
                             s           that        s                     es                      he
          of the matrix of figure 3. If th user conn
               e            fi           he         nects R2 and R3 in serie the intern shortcut r
                                                                d          es,         nal          relay will
          be connnected autoomatically to combine th two nodes the user do
                                         o          he          s,         oesn’t have t draw it.
                                                                                        to
      •   The fu
               function gene erator is con
                                         nnected only to the node (A, 0), so to connect it to any oth node,
                                                    y            es        o                        her
          we shhould have a shortcut bet tween the no A and the other node
                                                    ode                    e.




                                   Figur 8. A circuit o 5 nodes and 3 components
                                       re             of          d            s

   In the matrix, a matrix Controller (PI
    n                      C             IC18F4550) hosted on t source board commu
                                                  )            the                    unicates with a board
                                                                                                  h
conttroller (PIC1
                16F767) on eeach board v a bus [8], so that, eac board has a label, whi correspo
                                        via        ,           ch                     ich        onds to an
addrress, which w be need later for writing the component list file. Ta
                 will       ded         r         e            t         able 2 shows each board label at
                                                                                      s           d
UNE with its e
    ED          equivalent I2C address.

                                    Tab 2. Board lab and I2C add
                                      ble          bel        ddress scheme
                         Bo
                          oard Type                  Board Labe
                                                              el      I2C Add
                                                                            dress
                         Co
                          omponent board 1           1                COMP 1
                         Co
                          omponent board 2           2                COMP 2
                         Etc.
                         Os
                          scilloscope b
                                      board          16               OSC 16
                         DM board
                          MM                         17               DMM 17 7
                         Etc.
                         So
                          ource board                24               SRC 24


                                                       [13]
2.2.1. Com
             mponent Lis
                       st


   The
   T compone list descr
                  ent                                 omponents a instrume 1 in the m
                             ribes all the installed co           and        ents        matrix to ma them
                                                                                                    ake
know to the so
    wn           oftware. The is only o compone list per s
                            ere          one          ent         switching m
                                                                            matrix. Next, some guideelines are
given to list instr
                  ruments and component in the com
                            d            ts          mponent list f
                                                                  file.
           Befor listing a co
                 re          omponent w have to co
                                      we           onsider a ver important remark. The are four dual pole
                                                                ry                       ere
            relays in the comp
                 s           ponent board that can be replaced b eight sing pole relay as shown in figure
                                        d           e          by           gle          ys
            9. The 10 dual pole relays a numbered 1, 2,3,5,7,
                                       are          d            ,8,9,10,11 and 13 respe ectively. Wh if we
                                                                                                     hile
            replac four of the with 8 si
                 ce          em        ingle pole relays, they w be numbe
                                                               will          ered (1-14) respectively.
                                                                                         r           .




                             Figu 9. Number
                                ure       ring single and dual pole rela on the comp
                                                        d              ays         ponent board

           The t leads components (R C, SHORT
                two                 R,       TCUT, L, etc are listed as the follow
                                                        c.)                      wing:

            <Com
               mponent typ
                         pe>_<board label>_<re
                                  d          elay numbe
                                                      er> <Node
                                                              e1>< Node2 <etc.>
                                                                       2>                           <Value>
                                                                                                    <

            For instance, the components installed in the compo
                                                      n         onent board of figure 10 will be described as
                                                                                        0
                 ollowing:
            the fo
               - R_2_1 I     IH    10K : represents a resistor of 10K ohm installed on the relay 1 and
                                                      s                     ms
                   connected to the nodes (I, H) in th board 2.
                                         s           he
               - SHORTCU    UT_2_3 HG represents a shortcut installed on the relay 3 and connect to the
                                         G:                                n                         ted
                   nodes (H, G) in the bo
                                        oard 2.
               - C_2_4       AB
                             A      10n: represents a capacitor of 10n far installed on the rela 4 and
                                        :                       r           rad         d            ay
                   connected to the nodes (A, B) in th board 2.
                                         s           he
            If a c
                 component ddemands mo than one relay to be c
                                        ore                      connected to the circuit, we separate the two
                                                                            o            ,           e
            relay connection by the sig “:”. For example, “
                y           ns          gn                      “R_1_1:8_10 E F 1
                                                                           0             10k” means that, by
                                                                                                    s
            activating rely 1 on board 1 and rely 10 on board 8 a resistor with the va
                                                      0                                 alue of 10k oohms are
            going to be conne
                 g           ected betwee node E an F.
                                         en           nd


   1.
   1    The DMM a oscilloscope connections are fixed and are n listed in the c
                and          e               e               not             component list.


                                                                 [14]
Figure 10 Components installed in the component b
                                          0.                          e           board

        The fu
              function gene erator is con
                                        nnected to th node “A” internally th
                                                    he                       hrough the r
                                                                                        relay 1 on th source
                                                                                                    he
         board (board labe = 24) and its ground is hardwire to “0” th
             d             el           d           d           ed          hrough the reelay 5 on th source
                                                                                                    he
         board it can be lis as “VFG
             d,             sted        GENA_24_5 A 0”1.
        The nnodes of the second gro (X 1-X6 and the n
                           e             oup        6)         node COM a not supp
                                                                             are        ported in the current
         versio of the sof
              on           ftware and m not be used in the component list. The pow supply t
                                        must                                            wer          terminals
         (6V, +
              +25V, -25V a COM) a connecte internally to the nodes (X1, X2, X3 and 0) respectively
                            and          are        ed                       s         X
         throug the relays (3, 4, 5 ad 2) on the so
               gh          s            d            ource board (board label= 24)1. The power supp could
                                                                                        e           ply
         be connnected to th nodes of t first grou (A-I) by e
                           he            the        up          either one of the followi two ways:
                                                                            f           ing
              Shortcut w  wires connec  cting the (X
                                                    X1-X3) node to the nod of the f
                                                               es            des        first group (
                                                                                                    (the node
                 COM is ha  ardwired to the node 0). For exampl figure 11 explains the internal co
                                                     .           le,                                onnection
                 of the 6V DC pow source which will be describ
                           V            wer                     l            bed in the componen list as
                                                                                                   nt
                 “VDC+6V_ V_24_3 A”.




                         Figu 11. Internal connection of the 6V power source using s
                            ure          l             f            r              shortcut wires



1.
1    The describ matrix is the one connected a UNED.
               bed                           at
                                                          [15]
 Single pole relays on componen board. Fo example, figure 12 e
                             n        nt          or                     explains the internal
                                                                                    e
         connection of the 6V DC power s
                  n                    source, whic will be de
                                                  ch         escribed in the compone board
                                                                         t          ent
         as “VDC+66V_24_3:10_ A”.
                             0_5




               Figure 12. Internal c
                    e              connection of t 6V power source using sin pole relay
                                                 the                       ngle       ys

   For co
         omponents w more th two lead more rela are used and they ar mounted o the 20
                     with       han        ds,         ays                   re         on
    pin IC sockets. Fo example, the operatio
         C           or                    onal amplifie shown in f
                                                       er         figure 13 ha 8 connecto Pin 1
                                                                             as         ors.
    and 5 are not connnected, thi operationa amplifier will be des
                                is          al                   scribed in th component list as
                                                                             he
    “OP_44_10:4_11:4 4_13 NC B D G NC C F N uA741”
                                           NC




                              Fig
                                gure 13. Operational amplifie connection
                                                            er


                                                 [16]
Figure 14 sho how a si
   F           ows      imple compo
                                  onent list cou look like
                                               uld       e.




                                              Figure 1 Component list
                                                     14.       t


    2.2.2. Max lists
             x

    The
    T max lists are lists that describe a safe circu that cou be create and preve hazardou circuits
                  s                       all         uits        uld         ed         ent       us
from being activ
    m             vated. It is o
                               only possibl to activate circuits th are safe according to a defined max list.
                                          le                      hat                     o
Each list lists a n
     h            number of so ources and c
                                          components and it descri ibes also how they can b connected to other
                                                                               w          be        d
listed sources or components if appropri relay sw
     d           r                        iate      witches are cllosed The max list forma is:
                                                                                          at

          <Com
             mponent typ
                       pe>_<Serial number> <Node1>< Node2><e
                                 l                <        etc.>                          <Va
                                                                                            alue>

   The
   T serial nu umber is a se elected value to name th instrumen and the c
                                         e          he           nts        components. There is no need to
                                                                                        .            o
inclu the DMM set as volt
    ude         M            tage meter a the oscill
                                        and          loscope in th max lists b
                                                                 he          because they are high im
                                                                                        y            mpedance
and do not affect the circuit so much. Fi
                t                        igure 15 sho the max list of an op
                                                    ows                     perational am
                                                                                        mplifier circu
                                                                                                     uit.




                                Figure 15 A max list for an operation amplifier circuit
                                        5.                          nal

                                                         [17]
3. SOFT
          TWARE D
                DESCRIP
                      PTION AN OPER
                             ND   RATION CYCLE

   VISIR is an open source project, w
   V                            e         which offers a software distribution released un nder a GNU General
                                                                                                     U
Publ License [
     lic          [10]. Thus, BBTH has assigned a web bpage [3] for its software developme and insta
                                                                  r            e           ent        allation to
allow other univ
    w              versities and organizations to study its source and cooper
                               d                       y          e            rate in its d
                                                                                           development All the
                                                                                                      t.
softw source buildings, p
     ware                      packets and i
                                           information are available in this web
                                                                   e           bpage. This chapter desc
                                                                                                      cribes the
VISI operation mechanism and the software fu
     IR            n            m                     unctionality and of eac part and its source building
                                                                               ch
regaardless to its version as it could be up
                               t           pdated frequ
                                                      uently.

   To
   T get an ove  erview of ho VISIR w
                            ow         works, imagine that you have a PC c controlling y
                                                                                       your PXI insstruments
and a breadboar with all th required c
                rd          he          components connected tthrough relay If you se comman to the
                                                                            ys.        end         nds
relay to determ
    ys          mine which relay should be connec
                                        d          cted and whhich should not, you w build the desired
                                                                                      will          e
circu If you se comman to the PX instrumen terminals to determin to which node they s
    uit.        end         nds        XI          nts         s            ne                     should be
connnected, you w manage to see the results on your PC. The relay switc
                 will       e                                 e           ching matrix acts as a ro
                                                                                       x            obot who
receiives the com
                mmands sen to the rela as well as the ones sent to the PXI instru
                            nt          ays                   s           e            uments termi inals and
inter
    rprets them t a physical wiring as sh
                to          l           hown in figu 16. In view of that, t relay swi
                                                   ure                     the          itching matri should
                                                                                                    ix
have an interior connection between com
    e                        b         mponents, noodes and ins
                                                              struments. It receives the commands from the
                                                                                       e
PC ((through USB as shown in figure 16
                 B)         n           6.




                                     Figur 16. An overv
                                         re           view about how VISIR works
                                                                   w           s


  Software func
              ctionality an its source building are going to be discussed a
                          nd                      e           e           according to the whole o
                                                                                     o           operation
   hanism proc starting from the client login till receiving th results ba on the cli screen.
mech         cess                                 l           he         ack         ient




                                                        [18]
3.1.    We Interfac
             eb       ce

   It is the webp
    t           page of VISIR through w   which user c access t the experi
                                                      can         to          iment client, it is written in PHP
                                                                                          ,             n
again MySQL and installe in the w
    nst                     ed          webserver as ssigned for VISIR. It h handles all t client lo
                                                                                          the           og-in and
auth
   hentication procedures ov HTTPS protocol. W
                            ver                     When a client logs in, it generates an experimen session
                                                                   t                      n             nt
cook with the client charac
    kie                     cteristics (stu
                                          udent, teach priority, IP address. etc.) and sto it in the database
                                                     her,                                ores
to be recalled by the measur
    e           y          rement serve for authent
                                         er           tication purp
                                                                  pose, Figure 17.




                                            Figure 17. VISIR web inte
                                                                    erface



    3.2.    Exp
              periment C
                       Client

   It is a packag integrated in the VISIR webpag and creat by Adob Flash. It represents t entire
    t            ge                                  ge         ted        be                      the
laboratory work kbench (with all its instr
                           h             ruments, commponents an breadboa simulated through a HTML
                                                                nd         ard         d)          an
page as an emb
    e           bedded object. Client is free to cho
                                         s           oose the ins
                                                                strument mo odule with wwhich he is familiar
                                                                                                   s
rega
   ardless to its model or manufacturer as shown i figure 18. By this wa it is possible to use a virtual
                           m             r           in                     ay,
front panel dep
     t          picting one-
                           -instrument model to c    control a d
                                                               different instrument moodel as long as the
                                                                                                    g
perfo
   formance of the real inst
                           trument is eq qual or bette than the p
                                                     er         performance of the depi
                                                                           e           icted instrum
                                                                                                   ment. The
avail
    lable module are:
                 es
       •   Tradittional breadb
                             board.
       •   Defau PXI-instru
                ult          uments inter
                                        rfaces of Nat
                                                    tional Instru
                                                                uments.
       •   Digita Multi-Met (Fluke 23
                al           ter        3).
       •   Functtion generato (HP 33120
                             or         0A).
       •   Oscill
                loscope (Agi ilent 54622A
                                        A).
       •   DC Po ower Supply (E3631A).
                             y




                                                        [19]
Av
               vailable mod
                          dules              Selected modules
                                                    d




                                      Fig
                                        gure 18. Client selects availa modules
                                                      t              able

   However, oth modules could be bu with Ad
   H            her                      uilt        dobe Flash. AAfter choosi the prefe
                                                                             ing         erred modul client
                                                                                                    les,
start to wire the circuit wit the mouse and with t available componen in that se
    ts                      th                         the         e        nts         ession, and a
                                                                                                    adjust his
instr
    ruments as if he was loc
                f           cated inside a real labor ratory. Figur 19 shows the virtual w
                                                                  re                     workbench o VISIR
                                                                                                     of
wher all the in
     re        nstruments teerminals and componen list are available to de
                                         d            nt                     esign the de
                                                                                        esired circuit All the
                                                                                                     t.
time spent in des
    e           signing the c
                            circuit, the c
                                         client is occu
                                                      upying his ow PC not th real instru
                                                                   wn        he          uments. Use manual
                                                                                                    er
docuumentations are available at the project website [2].




                                        Figure 19. Virt
                                        F             tual workbench of VISIR
                                                                   h


                                                        [20]
When the client clicks on the com
   W                                   mponents but   tton as show in figur 20, a pul
                                                                  wn      re           ll-down men of all
                                                                                                 nu
avail
    lable compo
              onents is shoown. This m menu can be configured and modifie through t “library.xml” file
                                                                          ed           the
locat in the sa location of the “brea
    ted       ame                       adboard.swf file, in the experiment client packa within th VISIR
                                                     f”          e        t            age       he
webppage source (to be discu
                           ussed later in the installat
                                        n             tion chapter)
                                                                  ).




                                     Fig
                                       gure 20. Pull-d
                                                     down compone list menu
                                                                ent

    When the cl
    W           lient gets hi circuit rea and clic on the (perform ex
                            is            ady       cks                   xperiment) button, the c
                                                                                     b           client PC
(exp
   periment clieent) starts t call the “
                            to            “measureme server” (see the ne section) through ex
                                                   ent                    ext                    xperiment
protoocol. The ex
                xperiment pr rotocol is an XML based protocol, w
                                         n                     which use eeither XML Socket API or HTTP
                                                                                      S
requ
   uests to trans
                sport the req
                            quest data to the measur
                                         o         rement serve The expe
                                                              er.         eriment proto
                                                                                      ocol transmi all the
                                                                                                 its
instr
    ruments adjuustment and configuratio and the circuit design through an XML messa For exa
                                         on                   n           n           age.       ample, an
expeeriment proto request sent by a 54 function generator c
                ocol                     411       n          could look lik
                                                                           ke:

   nctiongenerat
<fun             tor>
    g_waveform value="sine" />
  <fg                        "
  <fg
    g_amplidute value="1000 />
                             0.0"
  <fg
    g_frequency value="1000 />
                             0.0"
  <fg
    g_offset value="0.0" />
  <fg
    g_startphase value="0.0" />
                e
  <fg
    g_triggermod value="co
                 de         ontinous" />
  <fg
    g_triggersource value="immmediate" //>
  <fg
    g_burstcount value="0" />
                 t          /
  <fg
    g_dutycycle vvalue="0.5" /
                             />
  <fg
    g_userdefineedwave lengt th="20" enco
                                        oding="BASE
                                                  E64">ABCD12
                                                            234ABCD1234ABCD</fg
                                                                              g_userdefined
                                                                                          dwave>
</functiongenerator>.



                                                     [21]
Web
    W services prescribe XML based m
                           X           messages co
                                                 onveyed by I  Internet protocols such as SOAP to b sent to
                                                                                       a             be
the “measureme server”. TCP/IP on p 2324 d
    “           ent                    port      does the con nnection curr rently. Henc Experime client
                                                                                       ce,           ent
(web server) co
    b           ould run on a separate machine. T XML b
                           n          e           The          based protoc describe what sett
                                                                           col         es            tings and
func
   ctions each instrument type can perform, independent of hardware manufacture that’s w
                                                               f                        er,         why, it is
poss
   sible to selec an instrum
                ct         ment simulat module i
                                      ted         independently on the ma   anufacturer, also it is po
                                                                                                     ossible to
creat new modu of instru
    te          ules       uments that d not exist in the curren set.
                                       do                      nt

    3.3.    Measuremen Server
                     nt

   It is a softwar program written for M
    t            re          w           Microsoft W
                                                   Windows in C
                                                              C++ using M  Microsoft Vissual C++. It receives
                                                                                                    t
the m
    measuremen requests fr
                nt           rom the expperiment clie each req
                                                    ent,       quest is sent in a separat TCP sessi
                                                                                        te          ion, thus,
conn and disc
    nect         connect are required for every reque made to t server. T requests/
                             r                      est        the         The          /responses sh
                                                                                                    hould not
exce 64 KB in size. Figure 21 shows a running me
    eed         n            e                       easurement server on a M
                                                                            Microsoft wiindows systeem.




                                         Figure 21. Mea
                                         F            asurement server running

   The
   T role of th measurem server c be define in four ma steps.
              he       ment     can       ed         ain

      1)    Authhentication: At each req quest, it verifies that the client is a v
                                                                                 valid user by validating t client
                                                                                             y            the
            cook generate by the web server agai the data
                kie,         ed           b            inst        abase.
      2)    Validdation: It ac as a virtu instructor it compare the receiv circuit da with the max lists
                             cts         ual           r;           es           ved         ata
            before sending i to be exec
                              it          cuted on the real instrum
                                                      e              ments, to avvoid any dammage to inst truments.
            The max lists ar created b the admin
                              re         by            nistrator (tea
                                                                    acher) to de efine the per
                                                                                             rmitted valu of the
                                                                                                         ues
            circu componen and instr
                uit           nts        ruments. Thi lets him to be the only responsible for any dam
                                                      is            o            y           e           mage.
      3)    Time e-sharing: It can handle requests fro 16 simul
                                         e             om           ltaneous clie with less than a seco (1/16
                                                                                 ents         s           ond
            second is the ma aximum time for each re
                                         e            equest) by qu ueuing all simmultaneous rrequests and perform
                                                                                                         d
            them sequentiall with regar to priority reservation etc.
               m             ly          rd           y,            n,
      4)    Cont trol: After v
                             validating an queuing th requests, it starts to h
                                         nd            he                         handle them either direc using
                                                                                            m            ctly
            GPIB module or sending them sequ
                 B                                    uentially ove TCP/IP through the port 5001 to the
                                                                    er                        e
            “equuipment serv ver” (see the next section). In the se
                                         e                          econd case t measurem
                                                                                 the         ment server acts as a
            gatewway and co  ould serve more than one equipm       ment server. As it com    mmunicates with the
            equippment
                                                         [22]
3.4.    Equ
              uipment S
                      Server

   It is a stand-
    t             -alone equip
                             pment contro
                                        oller, handli low-leve instrumen interfaces and hostin all the
                                                    ing          el          nt          s           ng
instr
    rument hard  dware togeth with the relay swit
                             her        e           tching matr rix. It is div
                                                                             vided into t three parts, the PXI
platf
    form, the rel switchin matrix an the PC th handles t commun
                  lay        ng        nd          hat          the         nication amo them wi server
                                                                                         ong          ith
softw installe in it. The server softw is writte in LabVIE Figure 2 And all th instrumen drivers
    ware         ed                    ware        en           EW,         22.           he          nt
insta
    alled in the L
                 LabVIEW are IVI (Interch
                              e         hangeable VVirtual Instru
                                                                uments) com mpliant [11].




                                     Figu 22. Equipm server soft
                                        ure        ment       ftware running

   The
   T equipmen server rec
                  nt      ceives a validdated sequen
                                                   ntial experim protoco requests fr
                                                               ment    ol           rom the measurement
serve in separat TCP sessions over TC
     er          te                   TCP/IP throu the port 5001 and ex
                                                  ugh                   xecutes it th
                                                                                    hrough the c
                                                                                               connected
instr
    ruments. Aft that, the results retur back to th client scre with the same sequence. The re
                 ter                   rn          he          een     e                        esults are
repreesented in fo of measu
                 orm       urements on the virtual i
                                       n           instruments..

   Most of undergraduate electronic la
   M                         e           aboratories o all the un
                                                     of            niversities a
                                                                               around the world have common
                                                                                           w
equipment (osc   cilloscopes, Function g generators, multi-meters DC pow supplies and brea
                                                                   s,         wer          s,          adboards)
   ardless of th
rega              heir model and manuf   facturer type. The curr   rent VISIR supports P   PXI, however, other
univ
   versities wou like to u another platform (L
                 uld         use                     LXI, GPIB, etc.). To en   nable interch
                                                                                           hangeability between
workkbenches an different grid nodes (
                 nd           g          (different un
                                                     niversities), V
                                                                   VISIR recom mmends fun  nctions and a
                                                                                                       attributes
defin by the I Foundat
    ned           IVI        tion [11] to be used to describe the base class capabilities and class e
                                                                  e                        s           extension
capa
   abilities of th lab hardw
                 he         ware.

    Accordingly, it should b possible to create a standardize approach which is easy to ado Base
    A                         be                                  ed        h,                     opt.
capaabilities are t functions of an instru
                  the         s          ument class that are commmon to most of the instruments avaailable in
the class. For ex
    c            xample, for a oscillosco the base capabilities mean edge triggering o
                             an         ope                      s                     only. Other t
                                                                                                   triggering
methhods are def fined as extension capab
                                        bilities. The f
                                                      functions su
                                                                 upported by t VISIR oscilloscope are listed
                                                                             the
in ta 3.
    able



                                                       [23]
Tab 3. The VISI oscilloscope capabilities
                                         ble         IR           e

                      Grou Name
                         up                                 Description
                                                            D         n
                                          Base Capabili    ities of the IviS     Scope
                                          speciification. TThis group includes the
                                                                      p
                      IviSco
                           opeBase
                                          capabbility to acq
                                                           quire wavefforms using edge
                                          triggeering.
                                          Extennsion: IviScope with the abilit to ty
                IviScopeWWaveformMeas calcu   ulate wavefo orm measur  rements, su as
                                                                                 uch
                                          rise t
                                               time or frequency.
                                          Extennsion: IviScope with the abilit to ty
                                          modi ify the be  ehavior of the trigg  gering
               I
               IviScopeTrigger Modi ifier
                                          subsyystem in th absence of an expe
                                                           he                     ected
                                          triggeer.
                                          Extennsion: IviScope with the autom     matic
                  IviScopeAuto- Setup
                                          configuration ab bility.

   The
   T goal of th IVI Foundation is to support 95 p
                he                                percent of th instrumen in a partic
                                                               he           nts         cular class. T VISA
                                                                                                     The
(Virt
    tual Instrum
               ment System Architecture standard [12] is accep
                                        e)                      pted too but the instrum
                                                                             t         ment function should
                                                                                                     ns
be th
    hose defined by the IVI standard. Fi
               d                       igure 23 exp
                                                  plains the fle
                                                               exibility (pro
                                                                            ovided by IV of selecti of the
                                                                                       VI)           ion
front panel and the platform
    tal         d           m.




                            Figure 23. The role of IVI in the frontal panel a the platform selection
                                                                            and          m


  After understanding the software f
  A                                   function of each part s
                                                            sequentially, we can su
                                                                        ,         ummarize th whole
                                                                                            he
oper
   ration proces as shown in figure 24.
               ss                      .




                                                             [24]
Figure 24. Overall operation process of VISIR
   u             l             o




                    [25]
4. INSTA
           ALLATIO
                 ON

   Before startin with the installation an overvi
   B              ng         e            n,          iew on the connection is given. A mentione in the
                                                                                          As          ed
prev
   vious chapter the web se
                 r,           erver, the meeasurement server and th equipmen server sof
                                                                  he          nt          ftware, each could be
runnning on a sepparate comp puter and the can comm
                                          ey         municate wit each other by TCP po
                                                                 th            r          orts. At UNE all of
                                                                                                      ED
these servers are running on the same m
     e           e           n            machine (NI PXI-Contro
                                                     I            oller), however, they sti communic with
                                                                                          ill         cate
each other throu TCP por The hard
    h            ugh          rts.        dware compponents shou be conne
                                                                 uld         ected properl before sta
                                                                                          ly          arting the
insta
    allation. All the matrix cards should be connecte properly t their corre
                             c                       ed          to           esponding in
                                                                                         nstruments in the PXI
                                                                                                      n
platf
    form. The co omponents a distribute on the co
                              are          ed        omponent bo  oard. The mmatrix is conn
                                                                                          nected to an external
                                                                                                     n
(12 V) dc power source and to the controller through a USB cab A PC scr
     V           r                                    h          ble.         reen, a keybo
                                                                                          oard and a m
                                                                                                     mouse are
connnected to the controller. Figure 25 s
                 e                        show the VISIR connect  tion at UNE Windows XP is the o
                                                                             ED.          s           operating
syste of the co
    em          ontroller.




                                         Figure 25. VIS connected at UNED
                                                      SIR

   To
   T understan the instrum
               nd          ment connec ctions, figure 26 and 27 explain the internal con
                                                    e                                  nnection bettween the
PXI- -Instruments and the vi
                s          irtual board After chec
                                      d.            cking all th connectio
                                                               he         ons, software installation can be
                                                                                       e            n
start Coming up next, the step by step installation process.
    ted.                  e            p           n




                                                       [26]
Figure 26 Connection o the DMM an the oscillosc
                6.           of         nd            cope




Figu 27. Connec
   ure        ction of the DC power supply and the functi generator
                            C            y              ion



                               [27]
4.1.      Lab
                bVIEW

   LabVIEW is the platform with which the equipm server s
   L                     m           h          ment       software is d
                                                                       developed. It must be ins
                                                                                    t          stalled on
the machine tha runs the equipment se
    m         at                     erver softwa The equi
                                                are.        ipment server software that include a relay
                                                                                               es
switc
    ching matrix version 4 is compatible with LabVIEW v
                          4.1                               version 8.6 or higher. LabVIEW l   license is
purc
   chased from N
               National Ins
                          struments [13]. LabVIEW 2010 is the version ins
                                                W                       stalled curre
                                                                                    ently at UNE
                                                                                               ED.


    4.2.      NI D
                 Device Dr
                         rivers

   All
   A the NI PX    XI-Instruments (DMM, Oscilloscop DC Powe Supply an Function Generator) mounted
                                                   pe,        er          nd
in th PXI chassis and described in t equipme server software mu be define in the L
     he                                  the       ent                   ust         ed         LabVIEW
platfform. The N device driv comes w the Lab
                NI           vers         with     bVIEW licen however it is recomm
                                                              nse,        r          mended to install the
lates NI device driver versi from the National in
    st                       ion         e         nstruments w
                                                              webpage to mmake sure th it contain all the
                                                                                     hat         ns
                          1
funcction files (.v files) nee
                  vi         eded to run the equipm
                                                  ment server s
                                                              software. Ni device driv
                                                                          i          vers version released
                                                                                                n
Aug 2010 [14 is the vers
    gust         4]          sion currently at UNED.

   T check the installed devices in the LabVIE platform go to star menu P
   To          e                                EW        m,         rt           Programs National
Instr
    rumentsMMeasurement & Automati Explorer In Devices and Interfa
                                    ion          r.        s        faces, if you click the dro
                                                                                              op-Down
men beside the PXI chass all the i
   nu         e          sis,       installed instruments wi appear w their rel
                                                           ill      with         lated slot nuumber as
show in figure 28.
    wn




                              Figu 28. Instruments defined in the Measurem & Automa
                                 ure                        n            ment     ation Explorer

   1.
   1    The “.vi” files for each inst
                                    trument are requ
                                                   uested to execute the equipment server. They are found inside th “inst.lib” and the “vi.lib”
                                                                   e                              e               he             d
        folders, both folders are fou within the La
                    h               und             abVIEW installaation folder.

                                                                     [28]
4.3.    Rel Switch
              lay    hing Matri Driver
                              ix

    After connect
    A             ting the rela switching matrix to th controller or the PC, W
                              ay                     he                      Windows as for the dr
                                                                                      sks        river file.
It is a “.inf file” that come with the m
                  ”           es         matrix to iddentify it in the LabVIE platform There is a file for
                                                                            EW       m.
winddows XP and another for windows 7.
                 d            r

   To
   T check th installed relay sw
                he         d         witching maatrix in the LabVIEW platform, go to sta menu
                                                            e          W                    art
Pr rogramsN  National Inst
                           trumentsMMeasurement & Automat
                                                 t           tion Explore In Device and Interf
                                                                        er.       es         faces, the
relay switching m
    y           matrix shoul be defined as shown i figure 29.
                            ld        d          in




                    Figure 29. Relay switchi matrix defin in the Mea
                             .             ing          ned        asurement & Automation Exp
                                                                                            plorer



    4.4.    Com
              mponent L
                      List

   The
   T compone list file (
              ent          (componentss.list) is loca
                                                    ated inside th equipmen server sof
                                                                 he          nt            ftware folder All the
                                                                                                        r.
com
  mponents inst
              talled in the component bboards of the matrix sho
                                                     e          ould be listed in it (as exp
                                                                             d              plained prev
                                                                                                       viously in
the “
    “Hardware D
              Description” chapter), so that, to be d
                                      o             defined.




                                                        [29]
4.5.    Equ
              uipment S
                      Server Soft
                               ftware

   It is the soft
    t           tware written in LabVIE
                              n           EW. Before executing t server y must ma sure tha all the
                                                                  the       you         ake         at
instr
    ruments and the relay switching m
                d                        matrix is coorrectly defin in the LabVIEW platform. Th server
                                                                  ned                   p          he
softw
    ware is writt with the assumption that all the mentioned NI PXI-inst
                 ten         e           n           e                       truments (D
                                                                                       DMM, Power Supply,
                                                                                                    r
Funcction Generator and Os    scilloscope) and relay sswitching m
                                                                matrix are in
                                                                            nstalled. Oth
                                                                                        herwise it sh
                                                                                                    hould be
redesigned depe  ending on t  the availabl instrumen The server can be started by executing the file
                                          le          nts.                  e           y
“EquuipmentServ ver.vi” inside the server s
                             e            software fold (see figu 22).
                                                      der        ure

   To
   T configure the equipm
               e          ment server ssoftware, op the conf
                                                  pen         figuration fil “Equipme
                                                                           le       entServer.ini figure
                                                                                                i”,
31, located inside the softw
                           ware folder. Before exe
                                       .          ecuting the server softwware you ha to confi
                                                                                    ave        figure the
    rument addr
instr          ress and the slot related to each, s that, the server can recognize the location of each
                          e            d          so                                t          n
instr
    rument. Othe configurat
                er         tions could b done (if r
                                       be         required) suc as, Log fi location, communicat
                                                              ch           ile                  tion port,
com
  mponent types etc.
                s,




                                        Figure 30. Eq
                                                    quipmentServe
                                                                er.ini file




                                                       [30]
4.6.      Measurement Server

   It is a server software written in C++ by Microsoft Visual C++. Since, it is built with Microsoft
compiler, therefore, the Microsoft runtime libraries (Microsoft Visual C++ Redistributable Package) should
be installed before running it. The server can be started by executing the file “measureserver_win.exe”
inside the server software folder (see figure 21).

  There are few configurations should be done before starting the measurement server:
       1) The max list files “.max” are considered the programing language of the measurement server. It
          acts as a virtual instructor. They should be written (as explained previously in the “Hardware
          Description” chapter) and inserted in the folder “/config/maxlists” which is located inside the
          measurement server software folder.
       2) After writing all the max list needed, they should be put down in the “maxlists.conf” file which is
          located inside the “/conf/” folder.
       3) The configuration file “measureserver.conf” contains all the necessary configurations for the
          server operation. It have to be created by copying all the contents inside the
          “measureserver.conf.dist” file into a simple text file and then change the extension into “.conf”.
          The “.dist” file is located in the “/conf/” folder. Likewise, the new created “measureserver.conf”
          file should be located in the same folder.
       4) In the “measureserver.conf” file, it is very important to determine through which port the server is
          going to communicate with HTTP server, usually the TCP/IP port 80 is reserved for the
          “wampserver” (discussed later), so we have to choose another port (for example, the port 81).
       5) In the “measureserver.conf” file, check “BypassAuth 1”, it checks if the user comes from the web
          interface or not.
       6) To see a detailed screen while the server is running, so that it could be easier to detect any error,
          in the “measureserver.conf” file, check “LogLevel 5”.

  The “measureserver.conf” file is configured at UNED as the following:

  ……………………………………………………………………………………………………………………………….
  Port                      2324
  HTTPPort                  81

  #MaxClients               16
  #MaxSessions 50

  # Config file base directory
  #ConfBaseDir              conf/

  # Component type definitions
  #CompTypes                          component.types

  # Max list configuration file, should contain a list of maxlists to load
  #MaxListConfig                      maxlists.conf

  # If the circuits should be saved, set the directory path
  #SaveCircuits savedcircuits/


                                                                       [31]
# If left empty, a default "allow all" flash policy is used
  PolicyFile flashpolicy.xml

  # Disabled all authentication, usable when testing without authentication backend
  BypassAuth      1

  # Keep alive sessions are needed when using http
  AllowKeepAlive 1

  # Module names should be separated by , and no space
  # Only one authentication module (like dbmysql) is allowed
  # Example LoadModules mod1,mod2,mod3

  Enable logging
  Log                      1
  # Logs directory must exist for the logging to work)
  #LogDir                  logs
  # 1-5, 5 being the most verbose
  LogLevel 5

  ### Equipment server module configuration
  UseEQ        1
  #EQ.Host                                 127.0.0.1
  #EQ.Port                                 5001
  #EQ.RetryCount                         4
  #EQ.RetryTimeout                    10

  ### Database module configuration          # DBEnabled 1
  DB.Host               localhost
  # DB.Port             3306
  # DB.User             <user>
  # DB.Password        <password>
  # DB.Database       <database>
  # DB.Database       <database>

  ### GPIBcontrol module
  #Signal analyser adress
  GPIB.SignalAnalyser      0:9:0
  # New line required at end of file
…………………………………………………………………………………………………………………………..

   To set the database authentication module (it verifies that the user comes from web interface), you have
to copy the file”libmySQL.dll” from the wampserver folder to the directory”conf/” in the measurement
server software folder. Then set the (BypassAuth    0) and add the line “LoadModules eqcom, dbmysql”. As
shown in the following code:

  LoadModules eqcom, dbmysql
  DB.Host                localhost
  DB.Port                3306
  DB.User                root
  DB.Password          <password>
  DB.Database          electronics




                                                                 [32]
4.7.      We Server
               eb

   T install the web server the followin software packages w be needed the curren installed v
   To           e                      ng                    will          d,        nt         version at
UNE of each p
   ED           package are shown betwween brackets, since, other versions c
                                                                           caused some compatibility errors
                                                                                     e
with the actual p
   h            project web p
                            page source:
                                       :

        1) Apach HTTP ser 1[15]
               he       rver                                (versi 2.2.11)
                                                                 ion
        2) PHP2[
               [16]                                         (version 5.3.0)
                                   3
        3) MySQ Database [17]
              QL       e                                    (versi 5.1.36)
                                                                 ion
                                       4
        4) Text_
               _WIKI Packa [18]
                         age                                (versi 1.2.1)
                                                                 ion
                     5
        5) Smart [19]
               ty                                           (vers
                                                                sion 2.6.26)


   The
   T “WampS    Server 2.0” package for windows includes the mentioned versions of the Apach HTTP
                                        r                      e           d         o           he
serve the MyS
    er,        SQL databas and the P
                            se         PHP packag In the g
                                                  ges.         guide, it wil be assume that you have the
                                                                           ll        ed
Wammpserver 2.0 installed on the hard dr C: in the folder “C:/wamp/”.Als it will be assumed th default
               0            n          rive                                 so,      e          he
conf
   figurations, s
                server port i 80, server address is localhost, s
                            is          r                      server remot address is 127.0.0.1, database
                                                                            te        s
port 3306 and daatabase user is root@loc
                                       calhost. The following P
                                                              PHP modules should be activated:
                                                                           s         a
        •   php5-
                -mysql
        •   php5-p
                -pcre
        •   php5-
                -session
        •   php5-
                -sockets


    4.7.1. Text_WIKI Package

  First you hav to install th pear insta
  F           ve            he         aller to insta the Text_WIKI packag
                                                    all                  ge:
                 Open the ““Command P  Prompt”
                 Go to the d
                            directory: “C
                                        C:wampbin          3.0” (where the file pear
                                                  nphpphp5.3                       r.go.bat exis
                                                                                                 sts)
                 Type the c
                           command: “p -d phar.require_has
                                        php                  sh=0 PEAR/ /go-pear.pha and press enter
                                                                                     ar”
   It will ask yo some que
    t           ou       estions to co
                                     ontinue then the pear in
                                                n           nstaller will be installed After that start to
                                                                        l            d.         t,
insta the Text_WIKI packag
    all                  ge:
                 Open the ““Command P  Prompt”
                 Go to the d
                            directory: “C
                                        C:wampbin nphpphp5.3
                                                               3.0”
                 Type the c
                           command: “p  pear install Text_Wiki” and press en
                                                                           nter


   1.
   1    Apache HTTP Server is an open-source HT server for m
                                                  TTP             modern operating systems includi UNIX, Microsoft Windows, etc.
                                                                                   g                ing
   2.
   2    PHP is a wwidely-used gene eral-purpose scri
                                                   ipting language that is especiall suited for We development and can be em
                                                                                     ly             eb             t               mbedded into
        HTML.
   3.
   3    MySQL dat  tabase is the wor
                                   rld's most popula open source d
                                                   ar              database because of its high perfo
                                                                                    e              formance, high re
                                                                                                                   eliability and eas of use.
                                                                                                                                    se
   4.
   4    Transforms Wiki and BBC   Code markup into XHTML, LaT or plain tex markup. This is the base engi for all of the Text_Wiki
                                                   o               TeX             xt                              ine              e
                   .
        sub-classes.
   5.
   5    Smarty is a template engine for PHP, facilit
                                   e               tating the separa
                                                                   ation of presentat
                                                                                    tion (HTML/CSS) from applicat  tion logic.
                                                                     [33]
4.7.2. Smarty

       Extract the smarty package in the folder: “C:wampSmarty”
       Open to edit the file “php.ini”, which is located in the folder
        “C:wampbinapacheApache2.2.11bin”
       Under “Paths and Directories” type this line:
        “ include_path = "C:wampbinphpphp5.3.0PEAR;C:wampSmartylibs" ”
  To check that Smarty has been installed correctly:
       Open to edit the file “index.php”, which is located in the folder “C:wampwww”
       Create the two folders: “C:wampwwwsmartyconfigs” and “C:wampwwwsmartytemplates”
       Create the file “index.tpl” inside the folder “C:wampwwwsmartytemplates”
       Open to edit the file “index.tpl” and add the following code:
        <html>
          <body>
            Hello, {$name}!
          </body>
        </html>
       At the end of the file code add the following code:
           <?php
              // load Smarty library
              require ('Smarty.class.php');
              $smarty = new Smarty;
              $smarty->template_dir = 'C:wampwwwsmartytemplates';
              $smarty->config_dir = 'C:wampwwwsmartyconfigs';
              $smarty->cache_dir = 'C:wampSmartycache';
              $smarty->compile_dir = 'C:wampSmartytemplates_c';
              $smarty->assign ('name','World!');
              $smarty->display ('index.tpl');
           ?>
       Start the WampServer and go to the WampServer homepage by typing: http://localhost/ or
        http://127.0.0.1/.
       At the end of the page, you should see this message: “Hello, world!!”


    4.8.    Web Interface

   The VISIR web Interface package is written in PHP and hosted by the Apache HTTP server. The
package folder is called “trunk”, it should be placed in the folder “C:wampwww”. After that, some
configurations should be done to start up the site. Next, these configurations are going to be discussed.




                                                       [34]
4.8.1. Database

  To create a database for the web interface page follow the following steps:
       Go to the link http://localhost/phpmyadmin/ .
       Go to “Run SQL query/queries”
       Type the SQL command: “create database electronics” and click on “Go”. Now a database called
        electronics are created for the web interface page.
       Create the database contents by opening the link
        http://localhost/trunk/sites/electronics/dbscripts/create_database.php
  To create a database administrator:
       Copy the file “C:wampwwwtrunksiteselectronicsdbscriptscreate_admin.php” to the folder
        “C:wampbinphpphp5.3.0”
       Open the file “C: wampbinphpphp5.3.0create_admin.php”
       Change the code line 3:
         “require_once "../config.php";”
        To:
        “require_once "C:/wamp/www/trunk/sites/electronics/config.php";”
       Open the Command Prompt
       Go to the folder “C:wampbinphpphp5.3.0”
       Type: “php create_admin.php admin@hotmail.com password” and press enter.(put your own
        administrator email and password)
       If any error appears because of the location of the file “Smarty.class.php”: copy this file from the
        folder “C:wampSmartylibs” into the included folder path that is shown in the error so that, the
        compiler could find it.
  To check that the administrator account is created correctly:
       Go to the link http://localhost/phpmyadmin/
       Open the database “electronics”
       The created administrator account should be created in the table “anv”


    4.8.2. HTTPS

   The VISIR web page requires Hypertext Transfer Protocol Secure (HTTPS). Therefore, the SSL/TLS
protocol should be installed to allow HTTPS connection. To allow HTTPS, follow the following steps.
       Add an environment variable “OPENSSL_CONF”
           - Go to: Control Panel > System > Advanced > Environment Variables
           - Add a new system variable, name: “OPENSSL_CONF”, Value:”
              C:wampbinapacheapache2.2.11confopenssl.cnf”
           - Log out and then log in
           - Go to the Command Prompt
           - Type: “set | more” and press Enter


                                                     [35]
-   Make sure that the variable “OPENSSL_CONF=
           C:wampbinapacheapache2.2.11confopenssl.cnf” exists among the listed variables
   Generate key
        - Open the “Command Prompt”
        - Go to the directory “C:wampbinapacheApache2.2.11bin”
        - Type the command: “openssl req -new > webserver.csr”, and press Enter
        - The command runs and prompts you to enter a PEM pass phrase and verify it. Write
           down the phrase because you will need it later. It will then ask you to enter information
           that will be incorporated into your certificate request. When the command finishes, it has
           created several files, including “privkey.pem”, in
           “C:wampbinapacheapache2.2.11bin”.
   Write RSA key
        - Open the “Command Prompt”
        - Type the command: “openssl rsa -in privkey.pem -out webserver.key”
        - You will be prompted for the pass phrase from the previous step. Then, the RSA key is
           written and the file “webserver.key” is now available in the folder.
   Convert into signed certificate
        - Open the “Command Prompt”
        - Type the command: “openssl x509 -in webserver.csr -out webserver.cert -req -signkey
           webserver.key -days 365”
        - A certificate is created which will expire after one year.
   Store certificate files
        - Create the folder “C:wampOpenSSL” with the following subfolders: “certs”, “crl”,
           “newcerts”, “private”
        - Copy the files (“webserver.cert”, “webserver.csr”, “webserver.key”) from the folder
           “C:wampbinapacheApache2.2.11bin” to the folder “C:wampOpenSSLcerts”
        - Copy the files (“.rnd”, “privkey.pem”) from the folder
           “C:wampbinapacheApache2.2.11bin” to the folder “C:wampOpenSSLprivate”
   Create error log files
        - Create the two text files (“ssl_ErrorLog.txt“, “ssl_TransferLog.txt“) in the folder
           “C:/wamp/logs”
   Modify “httpd-ssl”
        - Go to the folder “C:wampbinapacheApache2.2.11confextra”
        - Make a backup copy of the file “httpd-ssl.conf” and rename it to “httpd-ssl.conf.old”
        - Open to edit the file “httpd-ssl.conf”
                1. DocumentRoot "C:/Program Files/Apache Software
                    Foundation/Apache2.2/htdocs"
                2. <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
                3. Edit the following lines: SSLSessionCache        "shmcb:C:/Program Files/Apache
                    Software Foundation/Apache2.2/logs/ssl_scache(512000)".
                4. ServerAdmin me@localhost.
                5. ErrorLog "C:/Program Files/Apache Software
                    Foundation/Apache2.2/logs/error.log".
                6. TransferLog "C:/Program Files/Apache Software
                    Foundation/Apache2.2/logs/access.log".
                                              [36]
7. SSLCertificateFile "C:/Program Files/Apache Software
                   Foundation/Apache2.2/conf/server.crt".
               8. SSLCertificateKeyFile "C:/Program Files/Apache Software
                   Foundation/Apache2.2/conf/server.key".
               9. #SSLCARevocationPath "C:/Program Files/Apache Software
                   Foundation/Apache2.2/conf/ssl.crl".
               10. CustomLog "C:/Program Files/Apache Software
                   Foundation/Apache2.2/logs/ssl_request.log" "%t %h
                   %{SSL_PROTOCOL}x%{SSL_CIPHER}x "%r" %b".
       - Replace the above lines with the following lines respectively:
               1. DocumentRoot "C:/wamp/www"
               2. <Directory "C:/wamp/www/">
               3. SSLSessionCache "shmcb:C:/wamp/logs"
               4. ServerAdmin Admin-email
               5. ErrorLog "C:/wamp/logs/ssl_ ErrorLog.txt"
               6. TransferLog "C:/wamp/logs/ssl_TransferLog.txt"
               7. SSLCertificateFile "C:/wamp/OpenSSL/certs/webserver.cert"
               8. SSLCertificateKeyFile "C:/wamp/OpenSSL/certs/webserver.key"
               9. SSLCARevocationPath "C:/wamp/OpenSSL/crl"
               10. CustomLog "C:/wamp/logs/ssl_request.log" 
                   "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x "%r" %b"
   Modify the base directory
       - Open to edit the file “C:wampbinapacheApache2.2.11confopenssl.cnf”
       - Change the line “dir= ./demoCA ” with “dir = C:/wamp/OpenSSL”
   Modify “httdp.conf”
       - Make a backup copy of the file “C:wampbinapacheApache2.2.11confhttpd.conf”
       - Open to edit the file “C:wampbinapacheApache2.2.11confhttpd.conf”
       - Activate the following modules by removing the comment sign “#”:
               1. LoadModule rewrite_module modules/mod_rewrite.so
               2. LoadModule ssl_module modules/mod_ssl.so
       - Under the following comment lines:
                   # Secure (SSL/TLS) connections
                   #Include conf/extra/httpd-ssl.conf
          Add the following code line: “Include conf/extra/httpd-ssl.conf”
   Test https
       - Open “command Prompt”
       - Type the command “httpd –t”
       - You should see syntax is OK. If not, then you may have miss some of the steps above
   Check the port 443 is opened
       - Restart the Apache server
       - Open “command Prompt”
       - Type the command: “netstat -an | more”
       - If the port is not open, then you may have missed some of the steps above.



                                            [37]
4.8.3. Config.php

   The file “config.php” of the web interface package should be modified so that, the web site could be
adapted to our machine. It is very important to modify the file correctly to start the web page without any
errors. First, the file should be created by copying the code inside the file
“C:wampwwwtrunksiteselectronicsconfig.php.dist” and past it in a new created PHP file
“C:wampwwwtrunksiteselectronicsconfig.php”. The file code to be modified is shown.

1 <?php                                                                    34 $smarty->assign("experiment_index",
2 $openlabs_dir = "/usr/home/zeta/dav/openlabsweb/trunk";                  $site_root."/experiment.php");
3 $distpath = $openlabs_dir . "/common/inc";                               35 // number of seconds for a non-reserved experiment
4 $incpath = ini_get("include_path");                                      36 $g_immediate_experiment_time = 60 * 60; // 1h
5 ini_set("include_path", $incpath.":".$distpath);                         37 $g_allow_http_proxy = false;
6 // database settings                                                     38 $g_proxy_measurement_server = "localhost";
7 $site_db_hostname = "localhost";                                         39 $g_proxy_measurement_port = 2324;
8 $site_db_user = "electronics";                                           40 // wiki settings
9 $site_db_password = "X";                                                 41 $wiki_index = $site_root . "/index.php";
10 $site_db_db = "electronics";                                            42 $wiki_edit = $site_root . "/index.php?sel=wiki_edit";
11 $src_dir = $openlabs_dir . "/sites/electronics";                        43 $wiki_upload_dir =
12 $log_dir = $src_dir . "/logs";                                          "/usr/home/zeta/dav/openlabsweb/trunk/sites/electronics/pub
13 $site_admin = "staff@some.domain";                                      lic/wiki_upload";
14 $site_mailfrom = "staff@some.domain";                                   44 $wiki_upload_root = $site_root . "/wiki_upload";
15 $site_name = "electro_lab";                                             45 // meta settings
16 $site_root = ""; // url prefix if the site isn't located at the root    46 $description = "A meta page description";
17 // smarty settings                                                      47 $keywords = "keywords, separated, by, comma";
18 $smarty_template_dir = $src_dir."/templates";                           48 //$smarty->assign("page_description", $description);
19 $smarty_compile_dir = "/path/to/webcache/electronics";                  49 //$smarty->assign("page_keywords", $keywords);
20 $smarty_shared_templates = $openlabs_dir .                              50 // ldap example configuration
"/common/templates";                                                       51 /*
21 require_once "openlabs.smarty_helper.inc"; // initialises               52 require_once "openlabs.auth.inc";
smarty                                                                     53 LDAPAuth::AddLDAPLookup("ldap.someplace",
22 // page constants                                                       "OU=Staff,O=XXX", "mail=%s");
23 $site_index = "index.php";                                              54 LDAPAuth::AddLDAPLookup("ldap.someplace",
24 $admin_index = "admin.php";                                             "OU=Staff,O=XXX", "uid=%s");
25 $teacher_index = "teacher.php";                                         55 LDAPAuth::AddLDAPLookup("ldap.someplace",
26 $instructor_index = "instr.php";                                        "OU=People,O=XXX", "mail=%s");
27 $student_index = "student.php";                                         56 */
28 $smarty->assign("site_url", "http://dev.openlabs.bth.se");              57 // function returns maximal number of seats/simultanious
29 $smarty->assign("site_root", $site_root);                               sessions
30 $smarty->assign("site_index", $site_root."/".$site_index);              58 function GetMaxSessions() { return 16; }
31 $smarty->assign("admin_index", $site_root."/".$admin_index);            59 // use db based sessions
32 $smarty->assign("teacher_index",                                        60 require_once "openlabs.session_db.inc";
$site_root."/".$teacher_index);                                            61 ?>
33 $smarty->assign("student_index",
$site_root."/".$student_index);


   Regarding to all the assumptions made in this guide, we would only have to change the following code
lines.

2 $openlabs_dir = "c:/wamp/www/trunk";
5 ini_set("include_path", $incpath.";".$distpath);
12 $log_dir = $src_dir . "/logs"; // the logs file should be created manually in the folder “C:wampwwwtrunksiteselectronics”
13 $site_admin = "admin@hotmail.com"; // the administrator email
14 $site_mailfrom = "admin@hotmail.es";// the administrator email
16 $site_root = "/trunk/sites/electronics/public";
19 $smarty_compile_dir = "C:/wamp/Smarty/templates_c";
28 $smarty->assign("site_url", "http://62.204.201.71/trunk/sites/electronics/public");// 62.204.201.71 Is the IP of the hosting server
machine
43 $wiki_upload_dir = "c:/wamp/www/trunk/sites/electronics/public/wiki_upload";


                                                                          [38]
4.9.   Experiment Client

   The experiment client is a software package written in Adobe Flash. The package should be extracted to
the folder “C:wampwwwtrunksiteselectronicspublic”.


    4.9.1. Config.xml

   The file “C:wampwwwtrunksiteselectronicspublicflashconfig.xml” should be configured to the
current running machine as shown:

  <configuration>
      <hostname>62.204.201.71</hostname>
      <port>2324</port>
      <http>1</http>#http set to one means that the client uses http as default
      <httpurl>http://62.204.201.71:81/measureserver</httpurl>
      <teacher>1</teacher> #if you set it at 0, the component button will not be shown to the students
  #<ignorecookie>1</ignorecookie>
  #<allow_continuous>1</ allow_continuous >
  #<proxyurl>http://localhost/proxy.php</ proxyurl >…not adjusted
  </configuration>


    4.9.2. Library.xml

   the file “C:wampwwwtrunksiteselectronicspublicflashbreadboardlibrary.xml” describes all the
available components for the user, it should be modified with regard to the available components on the
breadboard. For instance, to add a resistor of 4 K ohm, insert the code:

       <component type="R" value="4.0k" pins="2">
             <rotations>
                     <rotation ox="-27" oy ="-7" image="r_4k.png" rot="0">
                             <pins><pin x="-26" y="0" /><pin x="26" y="0" /></pins>
                     </rotation>
                     <rotation ox="-8" oy ="-26" image="r_4k.png" rot="90">
                             <pins><pin x="0" y="-26" /><pin x="0" y="26" /></pins>
                     </rotation>
             </rotations>
       </component>

  And the image “r_4K.png” should be inserted in the folder
“C:wampwwwtrunksiteselectronicspublicflashbreadboardimages”




                                                     [40]
4.10. Get
            tting Start
                      ted

   Before startin the page, you have to make sure that the equ
   B             ng                       o         e           uipment serv measure
                                                                            ver,         ement server and web
                                                                                                    r
serve
    er     are     all       ning.
                          runn         Fina
                                          ally   you    can    st
                                                                tart   the     page     th
                                                                                         hrough    th
                                                                                                    he    link
http:
    ://localhost/t
                 trunk/sites/el
                              lectronics/pu
                                          ublic/ and log in with the administrator ac
                                                                h                       ccount usernname and
password. After logging in, it will ask yo to create a wiki page as shown in the figure 32.
                                          ou                               n            3




                                            Figure 31. Create wiki page

   Start designin your own page using the wiki form
                ng       n                        matting [19] and by ente
                                                             ]           ering a link for each pag such as:
                                                                                      f          ge

                ost/trunk/sites/electronics
   http://localho                         s/public/inde
                                                      ex.php?page
                                                                e=StartPage

   http://localho
                ost/trunk/sites/electronics
                                          s/public/inde
                                                      ex.php?page
                                                                e=AboutPage
                                                                          e

   http://localho
                ost/trunk/sites/electronics
                                          s/public/inde
                                                      ex.php?page
                                                                e=DemoPage
                                                                         e

   http://localho
                ost/trunk/sites/electronics
                                          s/public/inde
                                                      ex.php?page
                                                                e=FaqPage#

  Finally, you s
  F            should edit the code of th file
                                         he
“C:wampwwwtrunksitese  electronicst
                                        templatesme
                                                   enubar.xml” to include t created pages in the m
                                                             ”            the       p            menu bar.




                                                       [41]
5. CONCLUSION AND FUTURE WORK

   The VISIR software is an open source to catalyze developers to study it and expand its application range.
In this way, many efforts could be done to modify the software structure as well as the hardware design to
implement it in more complex applications. From the possible works, the experiment protocol could be
expanded to include new types and modules of instruments, the structure of the relay switching matrix could
be developed to include more component range, instruments, and more complex circuits, etc. Moreover, the
VISIR integration with other learning technologies could lead to creation of a rich remote laboratory
platform; it could be integrated with a learning management system (LMS) or with other remote lab
technologies such as iLAB [4]

   Another important objective of the VISIR project is to create a lab community consisting of all the
participant universities and organizations. Consequently, it would be possible to create a grid laboratory
where the nodes are online lab workbenches distributed among those universities. This would allow sharing
lab recourses and sharing online workbenches. At the same time, it would allow the project development.
The International Association of Online Engineering (IAOE) has organized a Special Interest Group for
VISIR (SIG VISIR) [16] to be the first approach towards the community concept.




                                                     [42]
REFERENCES

[1]      Electrical and Computer Engineering Department of Spanish University for Distance
       Education (UNED). Retrieved, January 30, 2011 from http://www.ieec.uned.es/ .
[2]    VISIR webpage at Bleking Institute of technology. Retrieved, January 30, 2011 from
       http://www.bth.se/tek/asb.nsf/0/cccfd186b0e24c0dc125722200271db8?OpenDocument
       .
[3]    VISIR - Software Development and Installation webpage. Retrieved, January 30, 2011 from
       http://svn.openlabs.bth.se/trac.
[4]    PCI eXtensions for Instrumentation (PXI). Retrieved, January 30, 2011 from
       http://www.pxisa.org/.
[5]    LXI Consortium. Retrieved, January 30, 2011 from http://www.lxistandard.org/.
[6]    History of GPIB. Retrieved, January 30, 2011 from
       http://zone.ni.com/devzone/cda/tut/p/id/3419.
[7]    National Instruments – Test and Measurements. Retrieved, January 30, 2011 from
       http://www.ni.com/.
[8]    PC/104 Consortium. Retrieved, January 30, 2011 from http://www.pc104.org/.
[9]    I2C-Bus: What’s that?. Retrieved, January 30, 2011 from http://www.i2c-bus.org/.
[10]   Licenses – GNU project – Free software. Retrieved, January 30, 2011 from
       http://www.gnu.org/licenses/.
[11]   IVI Foundation. Retrieved, January 30, 2011 from http://www.ivifoundation.org/.
[12]   VISA Specifications. Retrieved, January 3, 2011 from
       http://www.ivifoundation.org/specifications/default.aspx.
[13]   NI LabVIEW – Improving the productivity of Engineers and Scientists. Retrieved, January
       30, 2011 from www.ni.com/labview/.
[14]   NI Device Drivers released August 2010. Retrieved, January 30, 2011 from
       http://joule.ni.com/nidu/cds/view/p/id/2064/lang/en.
[15]   The Apache HTTP Server Project. Retrieved, January 30, 2011 from
       http://httpd.apache.org/.
[16]   Hypertext Preprocessor. Retrieved, January 30, 2011 from http://www.php.net/.
[17]   MySQL: The world most popular database. Retrieved, January 30, 2011 from
       http://www.mysql.com/.
[18]   PHP Template Engine- Smarty. Retrieved, January 30, 2011 from http://www.smarty.net/.
[19]   Wikiformating. Retrieved, January 30, 2011 from
       http://svn.openlabs.bth.se/trac/openlabsweb/wiki/WikiFormatting




                                            [43]

More Related Content

PPTX
Skin stringers-in-an-aircraft
PPTX
Limits and fits (machine design & industrial drafting )
PPT
Aerodynamic theories
PPTX
C-clamp
PPT
Lecture-1- Compressor and its Types.ppt
PPT
Turbocharger and Supercharger (Anil Sharma)
PPTX
Air Compressors
PDF
CFD analysis of an Airfoil
Skin stringers-in-an-aircraft
Limits and fits (machine design & industrial drafting )
Aerodynamic theories
C-clamp
Lecture-1- Compressor and its Types.ppt
Turbocharger and Supercharger (Anil Sharma)
Air Compressors
CFD analysis of an Airfoil

What's hot (17)

PDF
Design of Machine Elements 2 mark Question and Answers
PDF
ME6503 - DESIGN OF MACHINE ELEMENTS UNIT - IV NOTES
PPTX
Technical seminar on chevron nozzles
PDF
Aircraft intake aerodynamics
PPTX
Gas Turbine PPT
 
DOCX
Turbocharger and Supercharger (Anil Sharma)
PPTX
Presentation on To study the concept of comparison between Activa, Dio, Unic...
PPT
Basic aerodynamics
PDF
Design and construction of Bevel gear
PPTX
Aged aircraft maintenance.
PPTX
Springs & uses of springs
PPTX
Air compressor
PPTX
Aircraft Oxygen System
PPT
Basics on airfoils and lift generation
PDF
Haas lathe operator manual
PPT
Landing Gear -1.ppt
PPTX
Aircraft Wing
Design of Machine Elements 2 mark Question and Answers
ME6503 - DESIGN OF MACHINE ELEMENTS UNIT - IV NOTES
Technical seminar on chevron nozzles
Aircraft intake aerodynamics
Gas Turbine PPT
 
Turbocharger and Supercharger (Anil Sharma)
Presentation on To study the concept of comparison between Activa, Dio, Unic...
Basic aerodynamics
Design and construction of Bevel gear
Aged aircraft maintenance.
Springs & uses of springs
Air compressor
Aircraft Oxygen System
Basics on airfoils and lift generation
Haas lathe operator manual
Landing Gear -1.ppt
Aircraft Wing
Ad

Similar to VISIR INSTALLATION & START-UP GUIDE V.1 (20)

PDF
Tesi ph d_andrea_barucci_small
PDF
Photometry guide contents
PDF
Manuscrit de Doctorat_El Abdellaouy Hanane
DOCX
EMBEDDED SYSTEM
PDF
IRJET- Digital Dynamometer for Stationary Waves
PDF
IRJET - Talking Plant using IoT and Machine Laerning
PDF
Know Your Teacher(KYT)
PDF
Masters_Raghu
PDF
FINAL PROJECT REPORT
DOCX
College of Engineering and Technology.docx
PDF
Smart networked objects and the Internet of Things
PDF
Fundamentals of Telecommunication Engineering
PDF
IRJET- Design and Implementation of Smart Dustbin using IoT Notifications
PDF
Internet+of+things+iot+learn+faster+the+io t+
PDF
Dual-Band Mobile Phone Jammer
PDF
Research Gate Smart Grid
PDF
Quantum Dot Photodetectors 1st Edition Xin Tong
DOCX
Dissertation report 2_3
PDF
Final Report Ultrasonic Radar System.pdf
PDF
WIRELESS ULTRASONIC WATER LEVEL TRANSMITTER
Tesi ph d_andrea_barucci_small
Photometry guide contents
Manuscrit de Doctorat_El Abdellaouy Hanane
EMBEDDED SYSTEM
IRJET- Digital Dynamometer for Stationary Waves
IRJET - Talking Plant using IoT and Machine Laerning
Know Your Teacher(KYT)
Masters_Raghu
FINAL PROJECT REPORT
College of Engineering and Technology.docx
Smart networked objects and the Internet of Things
Fundamentals of Telecommunication Engineering
IRJET- Design and Implementation of Smart Dustbin using IoT Notifications
Internet+of+things+iot+learn+faster+the+io t+
Dual-Band Mobile Phone Jammer
Research Gate Smart Grid
Quantum Dot Photodetectors 1st Edition Xin Tong
Dissertation report 2_3
Final Report Ultrasonic Radar System.pdf
WIRELESS ULTRASONIC WATER LEVEL TRANSMITTER
Ad

More from Mohamed Tawfik (20)

PDF
Azure Cosmos DB
PPTX
Azure SQL Database & Azure SQL Data Warehouse
PPTX
Designing big data analytics solutions on azure
PPTX
Microsoft Azure Offerings and New Services
PPTX
SCCM on Microsoft Azure
PPTX
IBM Watson
PPTX
Upcoming Challenges in E-Learning & Online Learning Environments
PPTX
FINTDI 2011 - Remote Laboratories for Electrical & Electronic Subjects in New...
PPTX
UNED MURE Project Amman
PPTX
GOLC 2012 - On Standardizing the Management of LabVIEW-based Remote Laborator...
PPTX
REV 2011 - A New Node in the VISIR Community
PPTX
REV 2013 - Grid Remote Laboratory Management System: Sahara Reaches Europe
PPTX
TAEE 2011- State-of-the-Art Remote Laboratories for Industrial Electronics Ap...
PPTX
IEEE Presentation
PDF
Copec ICECE 2011- DESIGN OF PRACTICAL ACTIVITIES IN ELECTRONICS
PPTX
TAEE 2012- Shareable Educational Architectures for Remote Laboratories
PPTX
TAEE 2012- PAC - Performance-Centered Adaptive Curriculum for Employment Needs
PPTX
Educon 2012- On the Design of Remote Laboratories
PPTX
ASEE 2012 - Common Multidisciplinary Prototypes of Remote Laboratories in the...
PPTX
TAEE2012-Putting Fundmentals of Electronic Circuits Practices online
Azure Cosmos DB
Azure SQL Database & Azure SQL Data Warehouse
Designing big data analytics solutions on azure
Microsoft Azure Offerings and New Services
SCCM on Microsoft Azure
IBM Watson
Upcoming Challenges in E-Learning & Online Learning Environments
FINTDI 2011 - Remote Laboratories for Electrical & Electronic Subjects in New...
UNED MURE Project Amman
GOLC 2012 - On Standardizing the Management of LabVIEW-based Remote Laborator...
REV 2011 - A New Node in the VISIR Community
REV 2013 - Grid Remote Laboratory Management System: Sahara Reaches Europe
TAEE 2011- State-of-the-Art Remote Laboratories for Industrial Electronics Ap...
IEEE Presentation
Copec ICECE 2011- DESIGN OF PRACTICAL ACTIVITIES IN ELECTRONICS
TAEE 2012- Shareable Educational Architectures for Remote Laboratories
TAEE 2012- PAC - Performance-Centered Adaptive Curriculum for Employment Needs
Educon 2012- On the Design of Remote Laboratories
ASEE 2012 - Common Multidisciplinary Prototypes of Remote Laboratories in the...
TAEE2012-Putting Fundmentals of Electronic Circuits Practices online

VISIR INSTALLATION & START-UP GUIDE V.1

  • 1. 1 March 2011 VISI IR INST LATIO & STA TALL ON ART-U UP GUIIDE V V.1 Electrical a Compute Engineering Department and er g t Spanish Un niversity for D Distance Educ cation-UNED Authors: Mohamed T Tawfik Sergio Mar rtín Charo Gil Pablo Losaada Alberto Pessquera Elio Sancristobal Gabriel Díaaz Juan Peire Manuel Castro This w work has been sponsored by the Span nish Science and Innovation Ministry through the project e TIN22008-06083-C C01/TSI “s-Labs – Open s services integ gration for d distributed, r reusable and secure remote and virtu laboratories” ual
  • 2. Summary In December 2010, the Electrical and Computer Engineering Department of Spanish University for Distance Education (UNED) [1] installed a Virtual Instrument Systems in Reality (VISIR) [2]. VISIR is a remote laboratory for undergraduate electric and electronic circuits practice. It allows a student to wire a real circuit remotely and get results from real instruments on their PC screen. The purpose of UNED is to apply it, the second semester of this academic year 2010-2011, on the practice of the undergraduate engineering grades. On the other hand, to work on its development and integration with other outstanding learning technologies and research areas in which the department is currently researching to improve and enrich distance education. For instance, learning management system (LMS), fingerprints, mobiles, remote laboratories, web services, etc. UNED aims to be an active member in the VISIR community by sharing its lab resources and experiments with the rest of the community to enhance the experimentation skills in the electric and electronic engineering fields. Furthermore, it aims to bring out satisfactory results with respect to the practice as well as the research areas directed to the enhancement of the distance education quality level. This work reflects the acquired experience during the set up and the installation process of VISIR at UNED. The guide contains all the stages of the installation and the necessary configurations required for the VISIR start-up, correct usage and administration. This work aims to be a reference for any university interested in setting up a VISIR and to be a one more contribution from UNED to its community.
  • 3. Table of Contents 1. INTRODUCTION ..................................................................................................................................... 6 2. HARDWARE DESCRIPTION ................................................................................................................. 7 2.1. PXI-Platform ........................................................................................................................................................................................ 8 2.2. Relay Switching Matrix .................................................................................................................................................................. 9 2.2.1. Component List ........................................................................................................................ 14 2.2.2. Max lists ................................................................................................................................... 17 3. SOFTWARE DESCRIPTION AND OPERATION CYCLE ................................................................. 18 3.1. Web Interface .................................................................................................................................................................................. 19 3.2. Experiment Client .......................................................................................................................................................................... 19 3.3. Measurement Server .................................................................................................................................................................... 22 3.4. Equipment Server .......................................................................................................................................................................... 23 4. INSTALLATION .................................................................................................................................... 26 4.1. LabVIEW ............................................................................................................................................................................................ 28 4.2. NI Device Drivers ........................................................................................................................................................................... 28 4.3. Relay Switching Matrix Driver ................................................................................................................................................. 29 4.4. Component List ............................................................................................................................................................................... 29 4.5. Equipment Server Software ...................................................................................................................................................... 30 4.6. Measurement Server .................................................................................................................................................................... 31 4.7. Web Server ....................................................................................................................................................................................... 33 4.7.1. Text_WIKI Package ................................................................................................................. 33 4.7.2. Smarty ....................................................................................................................................... 34 4.8. Web Interface .................................................................................................................................................................................. 34 4.8.1. Database.................................................................................................................................... 35 4.8.2. HTTPS ...................................................................................................................................... 35 4.8.3. Config.php ................................................................................................................................ 38 4.9. Experiment Client .......................................................................................................................................................................... 40 4.9.1. Config.xml ................................................................................................................................ 40 4.9.2. Library.xml ............................................................................................................................... 40 4.10. Getting Started ................................................................................................................................................................................ 41 5. CONCLUSION AND FUTURE WORK ................................................................................................ 42 REFERENCES ............................................................................................................................................... 43
  • 4. Glossary API Application Programming Interface DPST Double pole, single throw GND Ground GPIB General Purpose Interface Bus HTML Hypertext Markup Language I2C Inter-Integrated Circuit IC socket Integrated circuit socket IEEE Institute of Electrical and Electronics Engineers IP Internet Protocol IVI Interchangeable Virtual Instruments LabVIEW Laboratory Virtual Instrumentation Engineering Workbench LMS Learning management system LXI LAN Extensions for Instrumentation NI National Instruments PXI PCI Extensions for Instrumentation SOAP Simple Object Access Protocol SSL Secure Socket Layer TCP Transmission Control Protocol TLS Transport Layer Security USB Universal Serial Bus VISA Virtual Instrument Software Architecture VISIR Virtual Instrument Systems In Reality [3]
  • 5. Figure Index Figure 1. Common traditional instruments in an undergraduate ............................................................... 7 Figure 2. Relay switching matrix ................................................................................................................. 9 Figure 3. Component Board ...................................................................................................................... 10 Figure 4. Two leads components connected to DPST relays .................................................................... 10 Figure 5. Internal connection of a resistance connected to relay one and to the nodes (B, C) ................ 11 Figure 6. Internal connection of instruments with the nodes of the matrix ............................................... 12 Figure 7. A graph with 5 nodes and 10 branches ...................................................................................... 13 Figure 8. A circuit of 5 nodes and 3 components ...................................................................................... 13 Figure 9. Numbering single and dual pole relays on the component board ............................................. 14 Figure 10. Components installed in the component board ........................................................................ 15 Figure 11. Internal connection of the 6V power source using shortcut wires........................................... 15 Figure 12. Internal connection of the 6V power source using single pole relays ..................................... 16 Figure 13. Operational amplifier connection ............................................................................................ 16 Figure 14. Component list ......................................................................................................................... 17 Figure 15. A max list for an operational amplifier circuit ........................................................................ 17 Figure 16. An overview about how VISIR works ....................................................................................... 18 Figure 17. VISIR web interface ................................................................................................................. 19 Figure 18. Client selects available modules .............................................................................................. 20 Figure 19. Virtual workbench of VISIR ..................................................................................................... 20 Figure 20. Pull-down component list menu ............................................................................................... 21 Figure 21. Measurement server running ................................................................................................... 22 Figure 22. Equipment server software running ......................................................................................... 23 Figure 23. The role of IVI in the frontal panel and the platform selection ............................................... 24 Figure 24. Overall operation process of VISIR ......................................................................................... 25 Figure 25. VISIR connected at UNED ....................................................................................................... 26 Figure 26. Connection of the DMM and the oscilloscope ......................................................................... 27 Figure 27. Connection of the DC power supply and the function generator ............................................ 27 Figure 28. Instruments defined in the Measurement & Automation Explorer .......................................... 28 Figure 29. Relay switching matrix defined in the Measurement & Automation Explorer ........................ 29 Figure 30. EquipmentServer.ini file .......................................................................................................... 30 Figure 31. Create wiki page ...................................................................................................................... 41 [4]
  • 6. Table Index Table 1. The role of each component of the NI PXI-platform……………………………………………………………..…....8 Table 2. Board label and I2C address scheme……………………………….…….…………………………………………………13 Table 3. The VISIR oscilloscope capabilities.………………………..………………………………………….……………………24 [5]
  • 7. 1. INTRODUCTION The Signal Processing Department (ASB) at Bleking Institute of Technology (BTH) in Sweden together with National Instruments in USA (as a supplier of instruments) and Axiom EduTECH in Sweden (as a supplier of education, technical software, and engineering services for noise and vibration analysis) have launched the Virtual Instrument Systems in Reality (VISIR) Project in the end of 2006. It is an open source remote laboratory project, financially supported by BTH and the Swedish Governmental Agency for Innovation Systems (VINNOVA). In December 2010, the Electric and Computer Engineering Department of UNED installed a VISIR with the aid and guidance of the project founder Ingvar Gustavsson, together with the two engineers, Johan Zackrisson and Kristian Nilsson, from Bleking Institute of Technology (BTH). This guide is an installation reference from the Department. It includes the gained experience during the installation. The guide consists of four main chapters. The first chapter (Hardware Description) describes the VISIR hardware components types, models and their suitable connection. The second chapter (Software Description and Operation Cycle) explains the VISIR operation cycle and the software role of each part during the operation and its source building. The third chapter (Installation) shows the VISIR installation step by step process at UNED and all the configurations needed to get it to run. The Fourth and the last chapter (Conclusion and Future works) discusses the main parts on which a future work could be realized , on the one hand, for the VISIR development and integration, and on the other hand to Develop the available remote lab technology and enhance distance education. Most of the compiled information in this guide is retrieved from documents released by the project founders through the project webpages [2] [3], all these documents are freely accessible. This guide provides complementary information to that is found in the project web pages. Accordingly, before installing a VISIR, the resources of the project web pages should be considered first. [6]
  • 8. 2. HARD DWARE DESCRIP PTION The common traditiona instrumen in an u T n al nts undergraduat engineeri te ing laborato for elec ory ctric and elect tronic circui Figure 1, are: a po its, ower supply a function generator, a digital m y, n , multi-meter (DMM); brea adboard and an oscillosco ope. Figure 1. Common traditional instrument in an underg ts graduate engineerin laboratory f electric and electronic cir ng for d rcuits In VISIR, the instrume are repla n ese ents aced with an equipment platform, w n which is suite for remot control ed te 1 such as PXI (PC eXtension for Instrum h CI ns mentation) [4], LXI (LA eXtensio for Instru AN ons umentation) 2 [5] and 3 IEEEE-488or GPI (General Purpose Int IB terface Bus) [6]. The current VISIR is based on PXI. In ad R o ddition, a relay switching matrix is connected to the PXI eq y quipment plaatform. The matrix con nnects the diigital pxi instr rument cards to the comp s ponents inst talled inside the matrix. By this way it possible to design an wire a y, nd real electronic c circuit remot tely thanks t this matri In this part, all the V to ix. VISIR hardw ware compon nents are goin to be desc ng cribed, illustr rating the funnction of eac of them. ch 1. 1 PXI (PCI eXtensions for In nstrumentation) is a rugged PC- -based platform for measureme and automati systems. Wi PXI, you ent ion ith can select t modules (ins the struments) from a large number of vendors and easily integrat them into a si r d te ingle PXI system PXI uses m. PCI-based t technology and an industry stan ndard governed b the PXI Syst by tems Alliance (P PXISA) to ensur standards com re mpliance and system interroperability. 2. 2 LXI is the power of Ethern and the Web applied to Te & Measurem net est ment offering you new possibilit in test syste u ties ems – local, remote, disttributed, time-aw ware. LXI is the current and fut e ture standard for Test & Measur r rement. It's seen the fastest ram n mp-up of any communica ations standard in the history of t test industry and products fro leading test a measuremen companies. n the om and nt 3. 3 GPIB or IEEE-488 is a sho ort-range digital communications bus specificatio It was create for use with automated test e s on. ed a equipment in the late 1960s, and is still in use for that pur n rpose. It was cre eated as HP-IB (HHewlett-Packard Interface Bus). d . [7]
  • 9. 2.1. PXI I-Platform m The T PXI plat tform consis of instrum sts ment module cards, a co e ontroller car and a cha rd assis in whic all the ch 1 card are suited All the pl ds d. latform com mponents are manufactur by National Instrum e red ments (NI) [7]. For ever componen there are a various m ry nt, models depen nding on its technical characteristic Table 1 i cs. illustrates the r of each component a its available model a UNED role and at Table 1. Th role of each component of the NI PXI-pla he f atform NI PXI-Ch hassis NI N PXI-Mod dules NI-P Control PXI ller Fun nction: It is the backbone of the PXI s e Or NI PXI-Instruments, The modules card ds It is an e embedded PC, which is em in which all instrument syste that substitut the instrum te ments. They ar re plugged int the NI PXI-Chassis. It to cards (NI PXI-mod s dules) and NI plugged into t NI PXI-Cha the assis. All of thes se comes with standard featur such as h res PXI-controller are pl lugged into. cards can be a added and remov depending o ved on an integrate CPU, hard dr ed rive, RAM, the demands. Ethernet, video, keyboa ard/mouse, serial, USB Microsoft win B, ndows etc. All these ddevice drivers a already are installed. Hence, it elim H minates the need for an external PC. H n However, it could be repplaced with a PC C. • NI PXI-Chassis (N PXI-1031). I NI • NI PXI-DC Power Supply ( PXI-4110). C (NI • NI-PXI Controller (NI PX C XI-8105). Model M • NI PXI-Dig gital Multi-meter (NI PXI -4072) r ). inst talled at UNNED: • NI PXI-Fun nction Generator (NI PXI-5412). r . • NI PXI-Osc cilloscope (NI PX XI-5114). 1. 1 National Innstruments is a l leader company for production of automated t y test equipment a virtual instr and rumentation soft tware. Their software prooducts include L LabVIEW, LabW Windows/CVI, T TestStand, etc. T Their hardware p products include VXI, VMEbus, PXI, GPIB, I²C, and oth industrial aut her tomation standar rds. [8]
  • 10. 2.2. Rel Switch lay hing Matri ix It is a stack o PCI/1041 sized boards [8] which act as a circ t of s cuit-wiring ro obot. It is m manufactured in BTH. d It is designed for low freque r ency analog e electric and electronic ci ircuit experi iments and cconsists of in nstrument and component boards. Eac instrumen board (DM Oscillo ch nt MM, oscope, Powe source an function g er nd generator Boar correspo rd) onds to its NI PXI-Devi in the N PXI-Chas and con N ice NI ssis nnected to it using eithe coaxial er cable or cords, Figure 2. es Figure 2. Re switching matrix elay Relay switch R hing matrix can hold up to 16 com p mponent boards. Each component board comp prises 10 sock for comp kets ponents with two leads ( h (Each socket is connecte to a doubl t ed le-pole singl le-throw rela DPST) ay and two 20-pin IC sockets for complex circuit conn f nections. Th relay sw hus, witching matr can cont rix tain up to 16×1 relays as maximum. Two leads component occupy on relay wh more leads compon 10 s . ts ne hile nents e.g. amplifier, occup more relay Figure 3. Putting the switching m py ys, . matrix into a closed case is not recom e mmended becaause it should be easy to swap comp d ponents and r rewire brancches. Howev it is very important t protect ver, y to the s switching ma atrix from no on-qualified persons. d 1. 1 PC/104 is a common international embedde computer stan ed ndard controlled by the PC/104 C Consortium. [9]
  • 11. Figure 3. Component Bo oard According to the data s A o sheet, the m maximum car current of the relay is 2 A an the minim rry y nd mum life 8 expe ectancy is 3 3×10 operat tions (appro oximately tw operation per secon continuously for fiv years). wo ns nd ve Figu 4 shows t leads co ure two omponents co onnected to DPST relays inside the m matrix. Figure 4. T leads comp Two ponents conne ected to DPST r relays [10]
  • 12. In relay swit n tching matri each boa has a ce ix, ard ertain number of relays controlling the interco s g onnection betw ween the boa compone and the b ard ents board. Howeever, there a common nodes propa are agating with all the hin boar to conne them tog rds ect gether, creati a node b ing bus. These nnodes are diivided into two groups, the first , conttains the nod A-I and 0 (GND). While the s des d second conta ains the nod X1-X6 and COM as seen in des a s figur 3. re Figure 5 expl F lains the inte ernal connec ction of a commponent in the compon nent breadboa The com ard. mponents can be connecte only to t nodes of the first gr ed the f roup depend ding on the components distributio on the on commponent boar Figure 6 shows the internal co rd. onnection of the instrum f ments with the nodes in t nside the matr The grou terminal of the func rix. und ls ction genera and the o ator oscilloscope are hardwir to node 0 (GND). e red The function gen nerator outp can be co put onnected to nnode A only While the oscilloscope channels a well as y. e as the D DMM chann are dyna nels amically con nnected to an node depe ny ending on th user circui design and they are he it d not llisted in the component list design. T Power s The source conne ectors (0, CO +6V, +20V, -20V, A OM, AUX) are connnected intern nally to the node 0 (GN and th nodes of the second group (CO GND) he OM, X1, X2, X3, X4) respe ectively, the depending on the com en g mponent list design (see componen list), they are connect to the t e nt ted first group (by a shortcut wi as seen in figure 3 or by two rela switches i series) as the second g ire n r ay in group are not ssupported in the current software ver n rsion. Figure 5. Int ternal connecti of a resista ion ance connected to relay one a to the node (B, C) d and es [11]
  • 13. Fig gure 6. Internal connection of instruments with the nodes of the matrix l f [12]
  • 14. The T complex of the matrix depend on the nu xity m ds umber of nodes it have e.g. from a matrix with N nodes we c obtain N (N-1)/2 br can N. ranches. How wever, the c current matri which hav 10 nodes (A-I, 0) is s ix ve s sufficient for undergraduat Engineeri practice. Figure 7 sho the num u te ing ows mber of brancches (10) co ould be obtai ined from a5n node circuit. Figur 7. A graph w 5 nodes an 10 branches re with nd s For F instance, if we conne a resistan (R1) to th nodes (A, B), a resista ect nce he ance (R2) to the nodes (B C) and B, a res sistance (R3) to the node (D, E) as s ) es shown in fig gure 8, we wo ould have to consider so facts suc as: o ome ch • The DDMM chann nels are dynnamic but th nodes ar not, so w can meas he re we sure R1, R2, R3 and , R1+R To measu R2+R3 ( R2. ure (nodes B, E) we have to make a sho ), o ortcut betwe the node (C, D). een es The shhortcut is a single wire t connects two nodes and occupie one relay as seen in th relay 3 s that s es he of the matrix of figure 3. If th user conn e fi he nects R2 and R3 in serie the intern shortcut r d es, nal relay will be connnected autoomatically to combine th two nodes the user do o he s, oesn’t have t draw it. to • The fu function gene erator is con nnected only to the node (A, 0), so to connect it to any oth node, y es o her we shhould have a shortcut bet tween the no A and the other node ode e. Figur 8. A circuit o 5 nodes and 3 components re of d s In the matrix, a matrix Controller (PI n C IC18F4550) hosted on t source board commu ) the unicates with a board h conttroller (PIC1 16F767) on eeach board v a bus [8], so that, eac board has a label, whi correspo via , ch ich onds to an addrress, which w be need later for writing the component list file. Ta will ded r e t able 2 shows each board label at s d UNE with its e ED equivalent I2C address. Tab 2. Board lab and I2C add ble bel ddress scheme Bo oard Type Board Labe el I2C Add dress Co omponent board 1 1 COMP 1 Co omponent board 2 2 COMP 2 Etc. Os scilloscope b board 16 OSC 16 DM board MM 17 DMM 17 7 Etc. So ource board 24 SRC 24 [13]
  • 15. 2.2.1. Com mponent Lis st The T compone list descr ent omponents a instrume 1 in the m ribes all the installed co and ents matrix to ma them ake know to the so wn oftware. The is only o compone list per s ere one ent switching m matrix. Next, some guideelines are given to list instr ruments and component in the com d ts mponent list f file.  Befor listing a co re omponent w have to co we onsider a ver important remark. The are four dual pole ry ere relays in the comp s ponent board that can be replaced b eight sing pole relay as shown in figure d e by gle ys 9. The 10 dual pole relays a numbered 1, 2,3,5,7, are d ,8,9,10,11 and 13 respe ectively. Wh if we hile replac four of the with 8 si ce em ingle pole relays, they w be numbe will ered (1-14) respectively. r . Figu 9. Number ure ring single and dual pole rela on the comp d ays ponent board  The t leads components (R C, SHORT two R, TCUT, L, etc are listed as the follow c.) wing: <Com mponent typ pe>_<board label>_<re d elay numbe er> <Node e1>< Node2 <etc.> 2> <Value> < For instance, the components installed in the compo n onent board of figure 10 will be described as 0 ollowing: the fo - R_2_1 I IH 10K : represents a resistor of 10K ohm installed on the relay 1 and s ms connected to the nodes (I, H) in th board 2. s he - SHORTCU UT_2_3 HG represents a shortcut installed on the relay 3 and connect to the G: n ted nodes (H, G) in the bo oard 2. - C_2_4 AB A 10n: represents a capacitor of 10n far installed on the rela 4 and : r rad d ay connected to the nodes (A, B) in th board 2. s he If a c component ddemands mo than one relay to be c ore connected to the circuit, we separate the two o , e relay connection by the sig “:”. For example, “ y ns gn “R_1_1:8_10 E F 1 0 10k” means that, by s activating rely 1 on board 1 and rely 10 on board 8 a resistor with the va 0 alue of 10k oohms are going to be conne g ected betwee node E an F. en nd 1. 1 The DMM a oscilloscope connections are fixed and are n listed in the c and e e not component list. [14]
  • 16. Figure 10 Components installed in the component b 0. e board  The fu function gene erator is con nnected to th node “A” internally th he hrough the r relay 1 on th source he board (board labe = 24) and its ground is hardwire to “0” th d el d d ed hrough the reelay 5 on th source he board it can be lis as “VFG d, sted GENA_24_5 A 0”1.  The nnodes of the second gro (X 1-X6 and the n e oup 6) node COM a not supp are ported in the current versio of the sof on ftware and m not be used in the component list. The pow supply t must wer terminals (6V, + +25V, -25V a COM) a connecte internally to the nodes (X1, X2, X3 and 0) respectively and are ed s X throug the relays (3, 4, 5 ad 2) on the so gh s d ource board (board label= 24)1. The power supp could e ply be connnected to th nodes of t first grou (A-I) by e he the up either one of the followi two ways: f ing  Shortcut w wires connec cting the (X X1-X3) node to the nod of the f es des first group ( (the node COM is ha ardwired to the node 0). For exampl figure 11 explains the internal co . le, onnection of the 6V DC pow source which will be describ V wer l bed in the componen list as nt “VDC+6V_ V_24_3 A”. Figu 11. Internal connection of the 6V power source using s ure l f r shortcut wires 1. 1 The describ matrix is the one connected a UNED. bed at [15]
  • 17.  Single pole relays on componen board. Fo example, figure 12 e n nt or explains the internal e connection of the 6V DC power s n source, whic will be de ch escribed in the compone board t ent as “VDC+66V_24_3:10_ A”. 0_5 Figure 12. Internal c e connection of t 6V power source using sin pole relay the ngle ys  For co omponents w more th two lead more rela are used and they ar mounted o the 20 with han ds, ays re on pin IC sockets. Fo example, the operatio C or onal amplifie shown in f er figure 13 ha 8 connecto Pin 1 as ors. and 5 are not connnected, thi operationa amplifier will be des is al scribed in th component list as he “OP_44_10:4_11:4 4_13 NC B D G NC C F N uA741” NC Fig gure 13. Operational amplifie connection er [16]
  • 18. Figure 14 sho how a si F ows imple compo onent list cou look like uld e. Figure 1 Component list 14. t 2.2.2. Max lists x The T max lists are lists that describe a safe circu that cou be create and preve hazardou circuits s all uits uld ed ent us from being activ m vated. It is o only possibl to activate circuits th are safe according to a defined max list. le hat o Each list lists a n h number of so ources and c components and it descri ibes also how they can b connected to other w be d listed sources or components if appropri relay sw d r iate witches are cllosed The max list forma is: at <Com mponent typ pe>_<Serial number> <Node1>< Node2><e l < etc.> <Va alue> The T serial nu umber is a se elected value to name th instrumen and the c e he nts components. There is no need to . o inclu the DMM set as volt ude M tage meter a the oscill and loscope in th max lists b he because they are high im y mpedance and do not affect the circuit so much. Fi t igure 15 sho the max list of an op ows perational am mplifier circu uit. Figure 15 A max list for an operation amplifier circuit 5. nal [17]
  • 19. 3. SOFT TWARE D DESCRIP PTION AN OPER ND RATION CYCLE VISIR is an open source project, w V e which offers a software distribution released un nder a GNU General U Publ License [ lic [10]. Thus, BBTH has assigned a web bpage [3] for its software developme and insta r e ent allation to allow other univ w versities and organizations to study its source and cooper d y e rate in its d development All the t. softw source buildings, p ware packets and i information are available in this web e bpage. This chapter desc cribes the VISI operation mechanism and the software fu IR n m unctionality and of eac part and its source building ch regaardless to its version as it could be up t pdated frequ uently. To T get an ove erview of ho VISIR w ow works, imagine that you have a PC c controlling y your PXI insstruments and a breadboar with all th required c rd he components connected tthrough relay If you se comman to the ys. end nds relay to determ ys mine which relay should be connec d cted and whhich should not, you w build the desired will e circu If you se comman to the PX instrumen terminals to determin to which node they s uit. end nds XI nts s ne should be connnected, you w manage to see the results on your PC. The relay switc will e e ching matrix acts as a ro x obot who receiives the com mmands sen to the rela as well as the ones sent to the PXI instru nt ays s e uments termi inals and inter rprets them t a physical wiring as sh to l hown in figu 16. In view of that, t relay swi ure the itching matri should ix have an interior connection between com e b mponents, noodes and ins struments. It receives the commands from the e PC ((through USB as shown in figure 16 B) n 6. Figur 16. An overv re view about how VISIR works w s Software func ctionality an its source building are going to be discussed a nd e e according to the whole o o operation hanism proc starting from the client login till receiving th results ba on the cli screen. mech cess l he ack ient [18]
  • 20. 3.1. We Interfac eb ce It is the webp t page of VISIR through w which user c access t the experi can to iment client, it is written in PHP , n again MySQL and installe in the w nst ed webserver as ssigned for VISIR. It h handles all t client lo the og-in and auth hentication procedures ov HTTPS protocol. W ver When a client logs in, it generates an experimen session t n nt cook with the client charac kie cteristics (stu udent, teach priority, IP address. etc.) and sto it in the database her, ores to be recalled by the measur e y rement serve for authent er tication purp pose, Figure 17. Figure 17. VISIR web inte erface 3.2. Exp periment C Client It is a packag integrated in the VISIR webpag and creat by Adob Flash. It represents t entire t ge ge ted be the laboratory work kbench (with all its instr h ruments, commponents an breadboa simulated through a HTML nd ard d) an page as an emb e bedded object. Client is free to cho s oose the ins strument mo odule with wwhich he is familiar s rega ardless to its model or manufacturer as shown i figure 18. By this wa it is possible to use a virtual m r in ay, front panel dep t picting one- -instrument model to c control a d different instrument moodel as long as the g perfo formance of the real inst trument is eq qual or bette than the p er performance of the depi e icted instrum ment. The avail lable module are: es • Tradittional breadb board. • Defau PXI-instru ult uments inter rfaces of Nat tional Instru uments. • Digita Multi-Met (Fluke 23 al ter 3). • Functtion generato (HP 33120 or 0A). • Oscill loscope (Agi ilent 54622A A). • DC Po ower Supply (E3631A). y [19]
  • 21. Av vailable mod dules Selected modules d Fig gure 18. Client selects availa modules t able However, oth modules could be bu with Ad H her uilt dobe Flash. AAfter choosi the prefe ing erred modul client les, start to wire the circuit wit the mouse and with t available componen in that se ts th the e nts ession, and a adjust his instr ruments as if he was loc f cated inside a real labor ratory. Figur 19 shows the virtual w re workbench o VISIR of wher all the in re nstruments teerminals and componen list are available to de d nt esign the de esired circuit All the t. time spent in des e signing the c circuit, the c client is occu upying his ow PC not th real instru wn he uments. Use manual er docuumentations are available at the project website [2]. Figure 19. Virt F tual workbench of VISIR h [20]
  • 22. When the client clicks on the com W mponents but tton as show in figur 20, a pul wn re ll-down men of all nu avail lable compo onents is shoown. This m menu can be configured and modifie through t “library.xml” file ed the locat in the sa location of the “brea ted ame adboard.swf file, in the experiment client packa within th VISIR f” e t age he webppage source (to be discu ussed later in the installat n tion chapter) ). Fig gure 20. Pull-d down compone list menu ent When the cl W lient gets hi circuit rea and clic on the (perform ex is ady cks xperiment) button, the c b client PC (exp periment clieent) starts t call the “ to “measureme server” (see the ne section) through ex ent ext xperiment protoocol. The ex xperiment pr rotocol is an XML based protocol, w n which use eeither XML Socket API or HTTP S requ uests to trans sport the req quest data to the measur o rement serve The expe er. eriment proto ocol transmi all the its instr ruments adjuustment and configuratio and the circuit design through an XML messa For exa on n n age. ample, an expeeriment proto request sent by a 54 function generator c ocol 411 n could look lik ke: nctiongenerat <fun tor> g_waveform value="sine" /> <fg " <fg g_amplidute value="1000 /> 0.0" <fg g_frequency value="1000 /> 0.0" <fg g_offset value="0.0" /> <fg g_startphase value="0.0" /> e <fg g_triggermod value="co de ontinous" /> <fg g_triggersource value="immmediate" //> <fg g_burstcount value="0" /> t / <fg g_dutycycle vvalue="0.5" / /> <fg g_userdefineedwave lengt th="20" enco oding="BASE E64">ABCD12 234ABCD1234ABCD</fg g_userdefined dwave> </functiongenerator>. [21]
  • 23. Web W services prescribe XML based m X messages co onveyed by I Internet protocols such as SOAP to b sent to a be the “measureme server”. TCP/IP on p 2324 d “ ent port does the con nnection curr rently. Henc Experime client ce, ent (web server) co b ould run on a separate machine. T XML b n e The based protoc describe what sett col es tings and func ctions each instrument type can perform, independent of hardware manufacture that’s w f er, why, it is poss sible to selec an instrum ct ment simulat module i ted independently on the ma anufacturer, also it is po ossible to creat new modu of instru te ules uments that d not exist in the curren set. do nt 3.3. Measuremen Server nt It is a softwar program written for M t re w Microsoft W Windows in C C++ using M Microsoft Vissual C++. It receives t the m measuremen requests fr nt rom the expperiment clie each req ent, quest is sent in a separat TCP sessi te ion, thus, conn and disc nect connect are required for every reque made to t server. T requests/ r est the The /responses sh hould not exce 64 KB in size. Figure 21 shows a running me eed n e easurement server on a M Microsoft wiindows systeem. Figure 21. Mea F asurement server running The T role of th measurem server c be define in four ma steps. he ment can ed ain 1) Authhentication: At each req quest, it verifies that the client is a v valid user by validating t client y the cook generate by the web server agai the data kie, ed b inst abase. 2) Validdation: It ac as a virtu instructor it compare the receiv circuit da with the max lists cts ual r; es ved ata before sending i to be exec it cuted on the real instrum e ments, to avvoid any dammage to inst truments. The max lists ar created b the admin re by nistrator (tea acher) to de efine the per rmitted valu of the ues circu componen and instr uit nts ruments. Thi lets him to be the only responsible for any dam is o y e mage. 3) Time e-sharing: It can handle requests fro 16 simul e om ltaneous clie with less than a seco (1/16 ents s ond second is the ma aximum time for each re e equest) by qu ueuing all simmultaneous rrequests and perform d them sequentiall with regar to priority reservation etc. m ly rd y, n, 4) Cont trol: After v validating an queuing th requests, it starts to h nd he handle them either direc using m ctly GPIB module or sending them sequ B uentially ove TCP/IP through the port 5001 to the er e “equuipment serv ver” (see the next section). In the se e econd case t measurem the ment server acts as a gatewway and co ould serve more than one equipm ment server. As it com mmunicates with the equippment [22]
  • 24. 3.4. Equ uipment S Server It is a stand- t -alone equip pment contro oller, handli low-leve instrumen interfaces and hostin all the ing el nt s ng instr rument hard dware togeth with the relay swit her e tching matr rix. It is div vided into t three parts, the PXI platf form, the rel switchin matrix an the PC th handles t commun lay ng nd hat the nication amo them wi server ong ith softw installe in it. The server softw is writte in LabVIE Figure 2 And all th instrumen drivers ware ed ware en EW, 22. he nt insta alled in the L LabVIEW are IVI (Interch e hangeable VVirtual Instru uments) com mpliant [11]. Figu 22. Equipm server soft ure ment ftware running The T equipmen server rec nt ceives a validdated sequen ntial experim protoco requests fr ment ol rom the measurement serve in separat TCP sessions over TC er te TCP/IP throu the port 5001 and ex ugh xecutes it th hrough the c connected instr ruments. Aft that, the results retur back to th client scre with the same sequence. The re ter rn he een e esults are repreesented in fo of measu orm urements on the virtual i n instruments.. Most of undergraduate electronic la M e aboratories o all the un of niversities a around the world have common w equipment (osc cilloscopes, Function g generators, multi-meters DC pow supplies and brea s, wer s, adboards) ardless of th rega heir model and manuf facturer type. The curr rent VISIR supports P PXI, however, other univ versities wou like to u another platform (L uld use LXI, GPIB, etc.). To en nable interch hangeability between workkbenches an different grid nodes ( nd g (different un niversities), V VISIR recom mmends fun nctions and a attributes defin by the I Foundat ned IVI tion [11] to be used to describe the base class capabilities and class e e s extension capa abilities of th lab hardw he ware. Accordingly, it should b possible to create a standardize approach which is easy to ado Base A be ed h, opt. capaabilities are t functions of an instru the s ument class that are commmon to most of the instruments avaailable in the class. For ex c xample, for a oscillosco the base capabilities mean edge triggering o an ope s only. Other t triggering methhods are def fined as extension capab bilities. The f functions su upported by t VISIR oscilloscope are listed the in ta 3. able [23]
  • 25. Tab 3. The VISI oscilloscope capabilities ble IR e Grou Name up Description D n Base Capabili ities of the IviS Scope speciification. TThis group includes the p IviSco opeBase capabbility to acq quire wavefforms using edge triggeering. Extennsion: IviScope with the abilit to ty IviScopeWWaveformMeas calcu ulate wavefo orm measur rements, su as uch rise t time or frequency. Extennsion: IviScope with the abilit to ty modi ify the be ehavior of the trigg gering I IviScopeTrigger Modi ifier subsyystem in th absence of an expe he ected triggeer. Extennsion: IviScope with the autom matic IviScopeAuto- Setup configuration ab bility. The T goal of th IVI Foundation is to support 95 p he percent of th instrumen in a partic he nts cular class. T VISA The (Virt tual Instrum ment System Architecture standard [12] is accep e) pted too but the instrum t ment function should ns be th hose defined by the IVI standard. Fi d igure 23 exp plains the fle exibility (pro ovided by IV of selecti of the VI) ion front panel and the platform tal d m. Figure 23. The role of IVI in the frontal panel a the platform selection and m After understanding the software f A function of each part s sequentially, we can su , ummarize th whole he oper ration proces as shown in figure 24. ss . [24]
  • 26. Figure 24. Overall operation process of VISIR u l o [25]
  • 27. 4. INSTA ALLATIO ON Before startin with the installation an overvi B ng e n, iew on the connection is given. A mentione in the As ed prev vious chapter the web se r, erver, the meeasurement server and th equipmen server sof he nt ftware, each could be runnning on a sepparate comp puter and the can comm ey municate wit each other by TCP po th r orts. At UNE all of ED these servers are running on the same m e e n machine (NI PXI-Contro I oller), however, they sti communic with ill cate each other throu TCP por The hard h ugh rts. dware compponents shou be conne uld ected properl before sta ly arting the insta allation. All the matrix cards should be connecte properly t their corre c ed to esponding in nstruments in the PXI n platf form. The co omponents a distribute on the co are ed omponent bo oard. The mmatrix is conn nected to an external n (12 V) dc power source and to the controller through a USB cab A PC scr V r h ble. reen, a keybo oard and a m mouse are connnected to the controller. Figure 25 s e show the VISIR connect tion at UNE Windows XP is the o ED. s operating syste of the co em ontroller. Figure 25. VIS connected at UNED SIR To T understan the instrum nd ment connec ctions, figure 26 and 27 explain the internal con e nnection bettween the PXI- -Instruments and the vi s irtual board After chec d. cking all th connectio he ons, software installation can be e n start Coming up next, the step by step installation process. ted. e p n [26]
  • 28. Figure 26 Connection o the DMM an the oscillosc 6. of nd cope Figu 27. Connec ure ction of the DC power supply and the functi generator C y ion [27]
  • 29. 4.1. Lab bVIEW LabVIEW is the platform with which the equipm server s L m h ment software is d developed. It must be ins t stalled on the machine tha runs the equipment se m at erver softwa The equi are. ipment server software that include a relay es switc ching matrix version 4 is compatible with LabVIEW v 4.1 version 8.6 or higher. LabVIEW l license is purc chased from N National Ins struments [13]. LabVIEW 2010 is the version ins W stalled curre ently at UNE ED. 4.2. NI D Device Dr rivers All A the NI PX XI-Instruments (DMM, Oscilloscop DC Powe Supply an Function Generator) mounted pe, er nd in th PXI chassis and described in t equipme server software mu be define in the L he the ent ust ed LabVIEW platfform. The N device driv comes w the Lab NI vers with bVIEW licen however it is recomm nse, r mended to install the lates NI device driver versi from the National in st ion e nstruments w webpage to mmake sure th it contain all the hat ns 1 funcction files (.v files) nee vi eded to run the equipm ment server s software. Ni device driv i vers version released n Aug 2010 [14 is the vers gust 4] sion currently at UNED. T check the installed devices in the LabVIE platform go to star menu P To e EW m, rt Programs National Instr rumentsMMeasurement & Automati Explorer In Devices and Interfa ion r. s faces, if you click the dro op-Down men beside the PXI chass all the i nu e sis, installed instruments wi appear w their rel ill with lated slot nuumber as show in figure 28. wn Figu 28. Instruments defined in the Measurem & Automa ure n ment ation Explorer 1. 1 The “.vi” files for each inst trument are requ uested to execute the equipment server. They are found inside th “inst.lib” and the “vi.lib” e e he d folders, both folders are fou within the La h und abVIEW installaation folder. [28]
  • 30. 4.3. Rel Switch lay hing Matri Driver ix After connect A ting the rela switching matrix to th controller or the PC, W ay he Windows as for the dr sks river file. It is a “.inf file” that come with the m ” es matrix to iddentify it in the LabVIE platform There is a file for EW m. winddows XP and another for windows 7. d r To T check th installed relay sw he d witching maatrix in the LabVIEW platform, go to sta menu e W art Pr rogramsN National Inst trumentsMMeasurement & Automat t tion Explore In Device and Interf er. es faces, the relay switching m y matrix shoul be defined as shown i figure 29. ld d in Figure 29. Relay switchi matrix defin in the Mea . ing ned asurement & Automation Exp plorer 4.4. Com mponent L List The T compone list file ( ent (componentss.list) is loca ated inside th equipmen server sof he nt ftware folder All the r. com mponents inst talled in the component bboards of the matrix sho e ould be listed in it (as exp d plained prev viously in the “ “Hardware D Description” chapter), so that, to be d o defined. [29]
  • 31. 4.5. Equ uipment S Server Soft ftware It is the soft t tware written in LabVIE n EW. Before executing t server y must ma sure tha all the the you ake at instr ruments and the relay switching m d matrix is coorrectly defin in the LabVIEW platform. Th server ned p he softw ware is writt with the assumption that all the mentioned NI PXI-inst ten e n e truments (D DMM, Power Supply, r Funcction Generator and Os scilloscope) and relay sswitching m matrix are in nstalled. Oth herwise it sh hould be redesigned depe ending on t the availabl instrumen The server can be started by executing the file le nts. e y “EquuipmentServ ver.vi” inside the server s e software fold (see figu 22). der ure To T configure the equipm e ment server ssoftware, op the conf pen figuration fil “Equipme le entServer.ini figure i”, 31, located inside the softw ware folder. Before exe . ecuting the server softwware you ha to confi ave figure the rument addr instr ress and the slot related to each, s that, the server can recognize the location of each e d so t n instr rument. Othe configurat er tions could b done (if r be required) suc as, Log fi location, communicat ch ile tion port, com mponent types etc. s, Figure 30. Eq quipmentServe er.ini file [30]
  • 32. 4.6. Measurement Server It is a server software written in C++ by Microsoft Visual C++. Since, it is built with Microsoft compiler, therefore, the Microsoft runtime libraries (Microsoft Visual C++ Redistributable Package) should be installed before running it. The server can be started by executing the file “measureserver_win.exe” inside the server software folder (see figure 21). There are few configurations should be done before starting the measurement server: 1) The max list files “.max” are considered the programing language of the measurement server. It acts as a virtual instructor. They should be written (as explained previously in the “Hardware Description” chapter) and inserted in the folder “/config/maxlists” which is located inside the measurement server software folder. 2) After writing all the max list needed, they should be put down in the “maxlists.conf” file which is located inside the “/conf/” folder. 3) The configuration file “measureserver.conf” contains all the necessary configurations for the server operation. It have to be created by copying all the contents inside the “measureserver.conf.dist” file into a simple text file and then change the extension into “.conf”. The “.dist” file is located in the “/conf/” folder. Likewise, the new created “measureserver.conf” file should be located in the same folder. 4) In the “measureserver.conf” file, it is very important to determine through which port the server is going to communicate with HTTP server, usually the TCP/IP port 80 is reserved for the “wampserver” (discussed later), so we have to choose another port (for example, the port 81). 5) In the “measureserver.conf” file, check “BypassAuth 1”, it checks if the user comes from the web interface or not. 6) To see a detailed screen while the server is running, so that it could be easier to detect any error, in the “measureserver.conf” file, check “LogLevel 5”. The “measureserver.conf” file is configured at UNED as the following: ………………………………………………………………………………………………………………………………. Port 2324 HTTPPort 81 #MaxClients 16 #MaxSessions 50 # Config file base directory #ConfBaseDir conf/ # Component type definitions #CompTypes component.types # Max list configuration file, should contain a list of maxlists to load #MaxListConfig maxlists.conf # If the circuits should be saved, set the directory path #SaveCircuits savedcircuits/ [31]
  • 33. # If left empty, a default "allow all" flash policy is used PolicyFile flashpolicy.xml # Disabled all authentication, usable when testing without authentication backend BypassAuth 1 # Keep alive sessions are needed when using http AllowKeepAlive 1 # Module names should be separated by , and no space # Only one authentication module (like dbmysql) is allowed # Example LoadModules mod1,mod2,mod3 Enable logging Log 1 # Logs directory must exist for the logging to work) #LogDir logs # 1-5, 5 being the most verbose LogLevel 5 ### Equipment server module configuration UseEQ 1 #EQ.Host 127.0.0.1 #EQ.Port 5001 #EQ.RetryCount 4 #EQ.RetryTimeout 10 ### Database module configuration # DBEnabled 1 DB.Host localhost # DB.Port 3306 # DB.User <user> # DB.Password <password> # DB.Database <database> # DB.Database <database> ### GPIBcontrol module #Signal analyser adress GPIB.SignalAnalyser 0:9:0 # New line required at end of file ………………………………………………………………………………………………………………………….. To set the database authentication module (it verifies that the user comes from web interface), you have to copy the file”libmySQL.dll” from the wampserver folder to the directory”conf/” in the measurement server software folder. Then set the (BypassAuth 0) and add the line “LoadModules eqcom, dbmysql”. As shown in the following code: LoadModules eqcom, dbmysql DB.Host localhost DB.Port 3306 DB.User root DB.Password <password> DB.Database electronics [32]
  • 34. 4.7. We Server eb T install the web server the followin software packages w be needed the curren installed v To e ng will d, nt version at UNE of each p ED package are shown betwween brackets, since, other versions c caused some compatibility errors e with the actual p h project web p page source: : 1) Apach HTTP ser 1[15] he rver (versi 2.2.11) ion 2) PHP2[ [16] (version 5.3.0) 3 3) MySQ Database [17] QL e (versi 5.1.36) ion 4 4) Text_ _WIKI Packa [18] age (versi 1.2.1) ion 5 5) Smart [19] ty (vers sion 2.6.26) The T “WampS Server 2.0” package for windows includes the mentioned versions of the Apach HTTP r e d o he serve the MyS er, SQL databas and the P se PHP packag In the g ges. guide, it wil be assume that you have the ll ed Wammpserver 2.0 installed on the hard dr C: in the folder “C:/wamp/”.Als it will be assumed th default 0 n rive so, e he conf figurations, s server port i 80, server address is localhost, s is r server remot address is 127.0.0.1, database te s port 3306 and daatabase user is root@loc calhost. The following P PHP modules should be activated: s a • php5- -mysql • php5-p -pcre • php5- -session • php5- -sockets 4.7.1. Text_WIKI Package First you hav to install th pear insta F ve he aller to insta the Text_WIKI packag all ge:  Open the ““Command P Prompt”  Go to the d directory: “C C:wampbin 3.0” (where the file pear nphpphp5.3 r.go.bat exis sts)  Type the c command: “p -d phar.require_has php sh=0 PEAR/ /go-pear.pha and press enter ar” It will ask yo some que t ou estions to co ontinue then the pear in n nstaller will be installed After that start to l d. t, insta the Text_WIKI packag all ge:  Open the ““Command P Prompt”  Go to the d directory: “C C:wampbin nphpphp5.3 3.0”  Type the c command: “p pear install Text_Wiki” and press en nter 1. 1 Apache HTTP Server is an open-source HT server for m TTP modern operating systems includi UNIX, Microsoft Windows, etc. g ing 2. 2 PHP is a wwidely-used gene eral-purpose scri ipting language that is especiall suited for We development and can be em ly eb t mbedded into HTML. 3. 3 MySQL dat tabase is the wor rld's most popula open source d ar database because of its high perfo e formance, high re eliability and eas of use. se 4. 4 Transforms Wiki and BBC Code markup into XHTML, LaT or plain tex markup. This is the base engi for all of the Text_Wiki o TeX xt ine e . sub-classes. 5. 5 Smarty is a template engine for PHP, facilit e tating the separa ation of presentat tion (HTML/CSS) from applicat tion logic. [33]
  • 35. 4.7.2. Smarty  Extract the smarty package in the folder: “C:wampSmarty”  Open to edit the file “php.ini”, which is located in the folder “C:wampbinapacheApache2.2.11bin”  Under “Paths and Directories” type this line: “ include_path = "C:wampbinphpphp5.3.0PEAR;C:wampSmartylibs" ” To check that Smarty has been installed correctly:  Open to edit the file “index.php”, which is located in the folder “C:wampwww”  Create the two folders: “C:wampwwwsmartyconfigs” and “C:wampwwwsmartytemplates”  Create the file “index.tpl” inside the folder “C:wampwwwsmartytemplates”  Open to edit the file “index.tpl” and add the following code: <html> <body> Hello, {$name}! </body> </html>  At the end of the file code add the following code: <?php // load Smarty library require ('Smarty.class.php'); $smarty = new Smarty; $smarty->template_dir = 'C:wampwwwsmartytemplates'; $smarty->config_dir = 'C:wampwwwsmartyconfigs'; $smarty->cache_dir = 'C:wampSmartycache'; $smarty->compile_dir = 'C:wampSmartytemplates_c'; $smarty->assign ('name','World!'); $smarty->display ('index.tpl'); ?>  Start the WampServer and go to the WampServer homepage by typing: http://localhost/ or http://127.0.0.1/.  At the end of the page, you should see this message: “Hello, world!!” 4.8. Web Interface The VISIR web Interface package is written in PHP and hosted by the Apache HTTP server. The package folder is called “trunk”, it should be placed in the folder “C:wampwww”. After that, some configurations should be done to start up the site. Next, these configurations are going to be discussed. [34]
  • 36. 4.8.1. Database To create a database for the web interface page follow the following steps:  Go to the link http://localhost/phpmyadmin/ .  Go to “Run SQL query/queries”  Type the SQL command: “create database electronics” and click on “Go”. Now a database called electronics are created for the web interface page.  Create the database contents by opening the link http://localhost/trunk/sites/electronics/dbscripts/create_database.php To create a database administrator:  Copy the file “C:wampwwwtrunksiteselectronicsdbscriptscreate_admin.php” to the folder “C:wampbinphpphp5.3.0”  Open the file “C: wampbinphpphp5.3.0create_admin.php”  Change the code line 3: “require_once "../config.php";” To: “require_once "C:/wamp/www/trunk/sites/electronics/config.php";”  Open the Command Prompt  Go to the folder “C:wampbinphpphp5.3.0”  Type: “php create_admin.php admin@hotmail.com password” and press enter.(put your own administrator email and password)  If any error appears because of the location of the file “Smarty.class.php”: copy this file from the folder “C:wampSmartylibs” into the included folder path that is shown in the error so that, the compiler could find it. To check that the administrator account is created correctly:  Go to the link http://localhost/phpmyadmin/  Open the database “electronics”  The created administrator account should be created in the table “anv” 4.8.2. HTTPS The VISIR web page requires Hypertext Transfer Protocol Secure (HTTPS). Therefore, the SSL/TLS protocol should be installed to allow HTTPS connection. To allow HTTPS, follow the following steps.  Add an environment variable “OPENSSL_CONF” - Go to: Control Panel > System > Advanced > Environment Variables - Add a new system variable, name: “OPENSSL_CONF”, Value:” C:wampbinapacheapache2.2.11confopenssl.cnf” - Log out and then log in - Go to the Command Prompt - Type: “set | more” and press Enter [35]
  • 37. - Make sure that the variable “OPENSSL_CONF= C:wampbinapacheapache2.2.11confopenssl.cnf” exists among the listed variables  Generate key - Open the “Command Prompt” - Go to the directory “C:wampbinapacheApache2.2.11bin” - Type the command: “openssl req -new > webserver.csr”, and press Enter - The command runs and prompts you to enter a PEM pass phrase and verify it. Write down the phrase because you will need it later. It will then ask you to enter information that will be incorporated into your certificate request. When the command finishes, it has created several files, including “privkey.pem”, in “C:wampbinapacheapache2.2.11bin”.  Write RSA key - Open the “Command Prompt” - Type the command: “openssl rsa -in privkey.pem -out webserver.key” - You will be prompted for the pass phrase from the previous step. Then, the RSA key is written and the file “webserver.key” is now available in the folder.  Convert into signed certificate - Open the “Command Prompt” - Type the command: “openssl x509 -in webserver.csr -out webserver.cert -req -signkey webserver.key -days 365” - A certificate is created which will expire after one year.  Store certificate files - Create the folder “C:wampOpenSSL” with the following subfolders: “certs”, “crl”, “newcerts”, “private” - Copy the files (“webserver.cert”, “webserver.csr”, “webserver.key”) from the folder “C:wampbinapacheApache2.2.11bin” to the folder “C:wampOpenSSLcerts” - Copy the files (“.rnd”, “privkey.pem”) from the folder “C:wampbinapacheApache2.2.11bin” to the folder “C:wampOpenSSLprivate”  Create error log files - Create the two text files (“ssl_ErrorLog.txt“, “ssl_TransferLog.txt“) in the folder “C:/wamp/logs”  Modify “httpd-ssl” - Go to the folder “C:wampbinapacheApache2.2.11confextra” - Make a backup copy of the file “httpd-ssl.conf” and rename it to “httpd-ssl.conf.old” - Open to edit the file “httpd-ssl.conf” 1. DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" 2. <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin"> 3. Edit the following lines: SSLSessionCache "shmcb:C:/Program Files/Apache Software Foundation/Apache2.2/logs/ssl_scache(512000)". 4. ServerAdmin me@localhost. 5. ErrorLog "C:/Program Files/Apache Software Foundation/Apache2.2/logs/error.log". 6. TransferLog "C:/Program Files/Apache Software Foundation/Apache2.2/logs/access.log". [36]
  • 38. 7. SSLCertificateFile "C:/Program Files/Apache Software Foundation/Apache2.2/conf/server.crt". 8. SSLCertificateKeyFile "C:/Program Files/Apache Software Foundation/Apache2.2/conf/server.key". 9. #SSLCARevocationPath "C:/Program Files/Apache Software Foundation/Apache2.2/conf/ssl.crl". 10. CustomLog "C:/Program Files/Apache Software Foundation/Apache2.2/logs/ssl_request.log" "%t %h %{SSL_PROTOCOL}x%{SSL_CIPHER}x "%r" %b". - Replace the above lines with the following lines respectively: 1. DocumentRoot "C:/wamp/www" 2. <Directory "C:/wamp/www/"> 3. SSLSessionCache "shmcb:C:/wamp/logs" 4. ServerAdmin Admin-email 5. ErrorLog "C:/wamp/logs/ssl_ ErrorLog.txt" 6. TransferLog "C:/wamp/logs/ssl_TransferLog.txt" 7. SSLCertificateFile "C:/wamp/OpenSSL/certs/webserver.cert" 8. SSLCertificateKeyFile "C:/wamp/OpenSSL/certs/webserver.key" 9. SSLCARevocationPath "C:/wamp/OpenSSL/crl" 10. CustomLog "C:/wamp/logs/ssl_request.log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x "%r" %b"  Modify the base directory - Open to edit the file “C:wampbinapacheApache2.2.11confopenssl.cnf” - Change the line “dir= ./demoCA ” with “dir = C:/wamp/OpenSSL”  Modify “httdp.conf” - Make a backup copy of the file “C:wampbinapacheApache2.2.11confhttpd.conf” - Open to edit the file “C:wampbinapacheApache2.2.11confhttpd.conf” - Activate the following modules by removing the comment sign “#”: 1. LoadModule rewrite_module modules/mod_rewrite.so 2. LoadModule ssl_module modules/mod_ssl.so - Under the following comment lines: # Secure (SSL/TLS) connections #Include conf/extra/httpd-ssl.conf Add the following code line: “Include conf/extra/httpd-ssl.conf”  Test https - Open “command Prompt” - Type the command “httpd –t” - You should see syntax is OK. If not, then you may have miss some of the steps above  Check the port 443 is opened - Restart the Apache server - Open “command Prompt” - Type the command: “netstat -an | more” - If the port is not open, then you may have missed some of the steps above. [37]
  • 39. 4.8.3. Config.php The file “config.php” of the web interface package should be modified so that, the web site could be adapted to our machine. It is very important to modify the file correctly to start the web page without any errors. First, the file should be created by copying the code inside the file “C:wampwwwtrunksiteselectronicsconfig.php.dist” and past it in a new created PHP file “C:wampwwwtrunksiteselectronicsconfig.php”. The file code to be modified is shown. 1 <?php 34 $smarty->assign("experiment_index", 2 $openlabs_dir = "/usr/home/zeta/dav/openlabsweb/trunk"; $site_root."/experiment.php"); 3 $distpath = $openlabs_dir . "/common/inc"; 35 // number of seconds for a non-reserved experiment 4 $incpath = ini_get("include_path"); 36 $g_immediate_experiment_time = 60 * 60; // 1h 5 ini_set("include_path", $incpath.":".$distpath); 37 $g_allow_http_proxy = false; 6 // database settings 38 $g_proxy_measurement_server = "localhost"; 7 $site_db_hostname = "localhost"; 39 $g_proxy_measurement_port = 2324; 8 $site_db_user = "electronics"; 40 // wiki settings 9 $site_db_password = "X"; 41 $wiki_index = $site_root . "/index.php"; 10 $site_db_db = "electronics"; 42 $wiki_edit = $site_root . "/index.php?sel=wiki_edit"; 11 $src_dir = $openlabs_dir . "/sites/electronics"; 43 $wiki_upload_dir = 12 $log_dir = $src_dir . "/logs"; "/usr/home/zeta/dav/openlabsweb/trunk/sites/electronics/pub 13 $site_admin = "staff@some.domain"; lic/wiki_upload"; 14 $site_mailfrom = "staff@some.domain"; 44 $wiki_upload_root = $site_root . "/wiki_upload"; 15 $site_name = "electro_lab"; 45 // meta settings 16 $site_root = ""; // url prefix if the site isn't located at the root 46 $description = "A meta page description"; 17 // smarty settings 47 $keywords = "keywords, separated, by, comma"; 18 $smarty_template_dir = $src_dir."/templates"; 48 //$smarty->assign("page_description", $description); 19 $smarty_compile_dir = "/path/to/webcache/electronics"; 49 //$smarty->assign("page_keywords", $keywords); 20 $smarty_shared_templates = $openlabs_dir . 50 // ldap example configuration "/common/templates"; 51 /* 21 require_once "openlabs.smarty_helper.inc"; // initialises 52 require_once "openlabs.auth.inc"; smarty 53 LDAPAuth::AddLDAPLookup("ldap.someplace", 22 // page constants "OU=Staff,O=XXX", "mail=%s"); 23 $site_index = "index.php"; 54 LDAPAuth::AddLDAPLookup("ldap.someplace", 24 $admin_index = "admin.php"; "OU=Staff,O=XXX", "uid=%s"); 25 $teacher_index = "teacher.php"; 55 LDAPAuth::AddLDAPLookup("ldap.someplace", 26 $instructor_index = "instr.php"; "OU=People,O=XXX", "mail=%s"); 27 $student_index = "student.php"; 56 */ 28 $smarty->assign("site_url", "http://dev.openlabs.bth.se"); 57 // function returns maximal number of seats/simultanious 29 $smarty->assign("site_root", $site_root); sessions 30 $smarty->assign("site_index", $site_root."/".$site_index); 58 function GetMaxSessions() { return 16; } 31 $smarty->assign("admin_index", $site_root."/".$admin_index); 59 // use db based sessions 32 $smarty->assign("teacher_index", 60 require_once "openlabs.session_db.inc"; $site_root."/".$teacher_index); 61 ?> 33 $smarty->assign("student_index", $site_root."/".$student_index); Regarding to all the assumptions made in this guide, we would only have to change the following code lines. 2 $openlabs_dir = "c:/wamp/www/trunk"; 5 ini_set("include_path", $incpath.";".$distpath); 12 $log_dir = $src_dir . "/logs"; // the logs file should be created manually in the folder “C:wampwwwtrunksiteselectronics” 13 $site_admin = "admin@hotmail.com"; // the administrator email 14 $site_mailfrom = "admin@hotmail.es";// the administrator email 16 $site_root = "/trunk/sites/electronics/public"; 19 $smarty_compile_dir = "C:/wamp/Smarty/templates_c"; 28 $smarty->assign("site_url", "http://62.204.201.71/trunk/sites/electronics/public");// 62.204.201.71 Is the IP of the hosting server machine 43 $wiki_upload_dir = "c:/wamp/www/trunk/sites/electronics/public/wiki_upload"; [38]
  • 40. 4.9. Experiment Client The experiment client is a software package written in Adobe Flash. The package should be extracted to the folder “C:wampwwwtrunksiteselectronicspublic”. 4.9.1. Config.xml The file “C:wampwwwtrunksiteselectronicspublicflashconfig.xml” should be configured to the current running machine as shown: <configuration> <hostname>62.204.201.71</hostname> <port>2324</port> <http>1</http>#http set to one means that the client uses http as default <httpurl>http://62.204.201.71:81/measureserver</httpurl> <teacher>1</teacher> #if you set it at 0, the component button will not be shown to the students #<ignorecookie>1</ignorecookie> #<allow_continuous>1</ allow_continuous > #<proxyurl>http://localhost/proxy.php</ proxyurl >…not adjusted </configuration> 4.9.2. Library.xml the file “C:wampwwwtrunksiteselectronicspublicflashbreadboardlibrary.xml” describes all the available components for the user, it should be modified with regard to the available components on the breadboard. For instance, to add a resistor of 4 K ohm, insert the code: <component type="R" value="4.0k" pins="2"> <rotations> <rotation ox="-27" oy ="-7" image="r_4k.png" rot="0"> <pins><pin x="-26" y="0" /><pin x="26" y="0" /></pins> </rotation> <rotation ox="-8" oy ="-26" image="r_4k.png" rot="90"> <pins><pin x="0" y="-26" /><pin x="0" y="26" /></pins> </rotation> </rotations> </component> And the image “r_4K.png” should be inserted in the folder “C:wampwwwtrunksiteselectronicspublicflashbreadboardimages” [40]
  • 41. 4.10. Get tting Start ted Before startin the page, you have to make sure that the equ B ng o e uipment serv measure ver, ement server and web r serve er are all ning. runn Fina ally you can st tart the page th hrough th he link http: ://localhost/t trunk/sites/el lectronics/pu ublic/ and log in with the administrator ac h ccount usernname and password. After logging in, it will ask yo to create a wiki page as shown in the figure 32. ou n 3 Figure 31. Create wiki page Start designin your own page using the wiki form ng n matting [19] and by ente ] ering a link for each pag such as: f ge ost/trunk/sites/electronics http://localho s/public/inde ex.php?page e=StartPage http://localho ost/trunk/sites/electronics s/public/inde ex.php?page e=AboutPage e http://localho ost/trunk/sites/electronics s/public/inde ex.php?page e=DemoPage e http://localho ost/trunk/sites/electronics s/public/inde ex.php?page e=FaqPage# Finally, you s F should edit the code of th file he “C:wampwwwtrunksitese electronicst templatesme enubar.xml” to include t created pages in the m ” the p menu bar. [41]
  • 42. 5. CONCLUSION AND FUTURE WORK The VISIR software is an open source to catalyze developers to study it and expand its application range. In this way, many efforts could be done to modify the software structure as well as the hardware design to implement it in more complex applications. From the possible works, the experiment protocol could be expanded to include new types and modules of instruments, the structure of the relay switching matrix could be developed to include more component range, instruments, and more complex circuits, etc. Moreover, the VISIR integration with other learning technologies could lead to creation of a rich remote laboratory platform; it could be integrated with a learning management system (LMS) or with other remote lab technologies such as iLAB [4] Another important objective of the VISIR project is to create a lab community consisting of all the participant universities and organizations. Consequently, it would be possible to create a grid laboratory where the nodes are online lab workbenches distributed among those universities. This would allow sharing lab recourses and sharing online workbenches. At the same time, it would allow the project development. The International Association of Online Engineering (IAOE) has organized a Special Interest Group for VISIR (SIG VISIR) [16] to be the first approach towards the community concept. [42]
  • 43. REFERENCES [1] Electrical and Computer Engineering Department of Spanish University for Distance Education (UNED). Retrieved, January 30, 2011 from http://www.ieec.uned.es/ . [2] VISIR webpage at Bleking Institute of technology. Retrieved, January 30, 2011 from http://www.bth.se/tek/asb.nsf/0/cccfd186b0e24c0dc125722200271db8?OpenDocument . [3] VISIR - Software Development and Installation webpage. Retrieved, January 30, 2011 from http://svn.openlabs.bth.se/trac. [4] PCI eXtensions for Instrumentation (PXI). Retrieved, January 30, 2011 from http://www.pxisa.org/. [5] LXI Consortium. Retrieved, January 30, 2011 from http://www.lxistandard.org/. [6] History of GPIB. Retrieved, January 30, 2011 from http://zone.ni.com/devzone/cda/tut/p/id/3419. [7] National Instruments – Test and Measurements. Retrieved, January 30, 2011 from http://www.ni.com/. [8] PC/104 Consortium. Retrieved, January 30, 2011 from http://www.pc104.org/. [9] I2C-Bus: What’s that?. Retrieved, January 30, 2011 from http://www.i2c-bus.org/. [10] Licenses – GNU project – Free software. Retrieved, January 30, 2011 from http://www.gnu.org/licenses/. [11] IVI Foundation. Retrieved, January 30, 2011 from http://www.ivifoundation.org/. [12] VISA Specifications. Retrieved, January 3, 2011 from http://www.ivifoundation.org/specifications/default.aspx. [13] NI LabVIEW – Improving the productivity of Engineers and Scientists. Retrieved, January 30, 2011 from www.ni.com/labview/. [14] NI Device Drivers released August 2010. Retrieved, January 30, 2011 from http://joule.ni.com/nidu/cds/view/p/id/2064/lang/en. [15] The Apache HTTP Server Project. Retrieved, January 30, 2011 from http://httpd.apache.org/. [16] Hypertext Preprocessor. Retrieved, January 30, 2011 from http://www.php.net/. [17] MySQL: The world most popular database. Retrieved, January 30, 2011 from http://www.mysql.com/. [18] PHP Template Engine- Smarty. Retrieved, January 30, 2011 from http://www.smarty.net/. [19] Wikiformating. Retrieved, January 30, 2011 from http://svn.openlabs.bth.se/trac/openlabsweb/wiki/WikiFormatting [43]