the rulbus labview library martin j. moene u n i v e r s i t e i t l e i d e n last update: 1...
TRANSCRIPT
![Page 1: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/1.jpg)
The Rulbus LabVIEW Library
Martin J. Moene
U n i v e r s i t e i t L e i d e n
Last update: 1 December 2004
![Page 2: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/2.jpg)
The Rulbus LabVIEW Library
• Rulbus, a simple peripheral input-output bus• Structure of the library• Application example• Implementation of the library
![Page 3: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/3.jpg)
Rulbus: a simple peripheral input-output bus
PC
ISA Rulbus interface
ADC DAC delay timer
PC, ...
EPP Rulbus interface
R u l b u s
computer
interface
peripheral
R u l b u s r a c k
R i j k s U n i v e r s i t e i t L e i d e n B u s
![Page 4: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/4.jpg)
Rulbus components
• computer – Rulbus interface• Rulbus rack• Rulbus modules• Rulbus rack selector
![Page 5: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/5.jpg)
Computer – Rulbus interface
E P P R u l b u s i n t e r f a c e
![Page 6: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/6.jpg)
Rulbus rack
H a l f w i d t h r a c k
![Page 7: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/7.jpg)
Rulbus module
R B 8 5 0 6 d u a l p a r a l l e l i n t e r f a c e
![Page 8: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/8.jpg)
Rulbus Rack Selector (1)
The figure above shows a rack with secondary address 3: binary 0011, 0*2^3 + 0*2^2 + 1*2^1 + 1*2^0
Selector located at rear of rack
![Page 9: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/9.jpg)
Rulbus rack selector (2)
Computer + Rulbus Interface
Rack
15
always selected
Rack
14
Rack
0
module address: [rack:address]
or
![Page 10: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/10.jpg)
Several Rulbus properties
• 8-bit address bus, 254 addresses per rack 1):– rack selector, address $00,
– bus idle, address $FF
– modules use 2 .. 32 addresses (DAC, Parallel Interface)
• 8-bit data bus• 1 MHz bus frequency• simple interface for peripherals
1) With rack selector: total of 15 x 254, or 3810 addresses
![Page 11: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/11.jpg)
Structure of the library
• Several VIs for each module• Contents VI for each module• Overall library Contents VI
![Page 12: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/12.jpg)
Application example (1)
• Set the named DAC to specified voltage
![Page 13: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/13.jpg)
Application example (2)
• Specify Rulbus Interface– EPP: prompt>set rulbus=epp,0x378 (this is the default)– ISA: prompt>set rulbus=isa,0x200
• Specify Rulbus Configuration file– contents of environment variable RULBUS_CONFIG_FILE, or– file .\rulbus.conf (current directory), or– file C:\etc\rulbus.conf
![Page 14: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/14.jpg)
Application example (3)
• Specify Rulbus devices
# rulbus-small.conf - example rulbus configuration file.
rack "top" { # rack definition address = 0 # this rack’s address
rb8509_adc12 "adc" # ADC with default settings
rb8510_dac12 "dac-ch0" { # DAC first output address = 0xD0 }
rb8510_dac12 "dac-ch1" { # DAC second output address = 0xD2; bipolar = false; voltperbit = 1.25m } }
![Page 15: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/15.jpg)
Implementation of the library
• Rulbus LabVIEW Library (RLL), uses the:
• Rulbus Device Library (RDL), a dynamic-link library
• Rulbus Device Class Library (RDCL), part of RDL
![Page 16: The Rulbus LabVIEW Library Martin J. Moene U n i v e r s i t e i t L e i d e n Last update: 1 December 2004](https://reader036.vdocuments.net/reader036/viewer/2022081602/551a7e0a550346b52d8b5529/html5/thumbnails/16.jpg)
References & Links
ELD: http://www.eld.LeidenUniv.nl/
RLL: http://www.eld.LeidenUniv.nl/~moene/software/rll/
RDL: http://www.eld.LeidenUniv.nl/~moene/software/rdl/
RDCL: http://www.eld.LeidenUniv.nl/~moene/software/rdcl/