SCALE-RT

Using other COMEDI supported boards in SCALE-RT

Top  Previous  Next

I/O boards which are not listed in the SCALE-RT HW-Interface list can also be used.

However COSATEQ does not provide any support for these I/O boards.

 

The following steps are needed to add a COMEDI supported I/O board to SCALE-RT:

 

1.Insert a new I/O board description entry in the file /home/model/scripts/hwtab.conf. The hwtab.conf entries consist of:
1.1. Board-Name        (a user defined unique name)
1.2. Vendor-ID        (the PCI Vendor ID can be found using the command "lspci")
1.3. Device-ID                (the PCI Device ID of the I/O board can be found using the command "lspci")
1.4. Driver                (the name of the driver used for this I/O board)
1.5. Bustype          (the bus type of the I/O board e.g. PCI)
1.6. Calibtype                (the calibration type "none", "soft" or "hard")

 

2.Normally the COMEDI board name is identical with the name of the driver.
If the COMEDI board name differs from the driver name an alias name can be configured in /home/model/scripts/alias.conf.
The alias will be assigned to the (user defined) Board-Name defined in /home/model/scripts/hwtab.conf.

 

3.Run the hardware auto detection on the real-time target using the "prosys_hwcfg" command.
 
4.Finally the board has to be integrated in the Simulation Tool.
4.1. For MATLAB®/Simulink® a S-Function and Simulink® block has to be created.
4.2. For Scilab®/Scicos® the I/O board has to be added in the list of supported boards in the file "<ScilLab_Installation_Directory>\macros\SCALE_RT\scale_rt_blocks\RT_ScaleFktLib.c"
4.3. For SimulationX® see the SimulationX® documentation.