M5i20_Halvcp_Test_Panel - rmu75/linuxcnc-wiki GitHub Wiki


date: '2009-02-22T20:00:59' title: M5i20 Halvcp Test Panel

pyVCP m5i20 HOSTMOT-4 test panel

updated version thanks to Anders Wallin This is a test panel for the m5i20 fpga card with Hostmot-4 configuration. Use at your own risk ! upload:iotest.png

*The LEDs will show the state of the digital inputs. *The digital output buttons will set the corresponding digital output to TRUE ("1" = +5 V) for as long as the button is pressed and held down. *The DAC Enable buttons enable the correspodning DAC and set the ENA 0-4 pins high copied from awallin's page: <PRE> For testing the servo-drives and all the electronics I found this test-panel for the HOSTMOT-4 conifiguration of the m5i20 quite useful.

          It uses an XML file (iotest.xml) to define the pyVCP panel layout,
          and then a HAL file (pyiotest.hal) to hook up the IO pins of the m5i20 to the panel.

          I’m also using a shell script (iotest.sh) to start the realtime environment 
          and run pyvcp followed by the HAL file automatically.

          Compare this to my earler effort with the old VCP. 
          Now with many more widgets in pyVCP I have better control of the DACs etc.

</PRE>

iotest.xml

[upload:iotest.xml]

pyiotest.hal

[upload:pyiotest.hal]

iotest.sh

[upload:iotest.sh]

testpanel package

[upload:testpanel.tar.gz]

This version uses the net command still old hostmot-4

[upload:pyvcp-m5i20-01.hal] [upload:5i20-panel01.xml]

download above files, run hal file in terminal with (start realtime if needed) /etc/init.d/realtime start pyvcp -c panel01 5i20-panel01.xml