attempted pyVCP panel and now Error on startup

More
9 years 4 months ago #95065 by Beezerlm
I just tried the "This is a LED indicator" example from the pyVCP manual and it seems I broke something.

Created a file called tiny.xml wich contained the following:
Code:
<pyvcp> <label text="This is a LED indicator"/> <led/> </pyvcp>

Then I ran this command from terminal:
Code:
halrun -I loadusr pyvcp -c mypanel tiny.xml

here is the output from terminal:
Code:
halcmd: Traceback (most recent call last): File "/usr/bin/pyvcp", line 99, in <module> main() File "/usr/bin/pyvcp", line 87, in main pycomp=vcpparse.create_vcp(compname=component_name, master=pyvcp0) File "debian/tmp/usr/lib/python2.6/dist-packages/vcpparse.py", line 177, in create_vcp File "debian/tmp/usr/lib/python2.6/dist-packages/vcpparse.py", line 47, in read_file File "/usr/lib/python2.6/xml/dom/minidom.py", line 1918, in parse return expatbuilder.parse(file) File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 922, in parse fp = open(file, 'rb') IOError: [Errno 2] No such file or directory: 'tiny.xml'

And now I get an error when I boot and I don't know where to go from here. Any help would be appreciated. File attached:

Attachment not found



*update* - LinuxCNC will start on second attempt. Perhaps the tiny.xml file should be in a different folder? I put it in the ~Emc2/configs/HEALD folder.

Please Log in to join the conversation.

More
9 years 4 months ago #95068 by Beezerlm
Ok. so I added this to the .ini file:
Code:
PYVCP = tiny.xml

And the AXIS GUI will load with the led indicator in the top right corner (I didn't hook up hal pins yet)

My questions are: What do the error messages mean? Do you have to run the "halrun -I loadusr pyvcp -c mypanel tiny.xml" command if you are making a panel to run within AXIS?

Please Log in to join the conversation.

More
9 years 4 months ago #95069 by Beezerlm
Just tested it out and it appears you do not need the aforementioned Terminal command for creating a panel within AXIS.

Please Log in to join the conversation.

More
9 years 4 months ago #95076 by andypugh
Are you OK now. or are there still problems?

Please Log in to join the conversation.

More
9 years 4 months ago #95091 by Beezerlm
All is good and working as intended. I thought I made a mess of things when I got the error messages, but everything ended up working out fine.

Please Log in to join the conversation.

Time to create page: 0.152 seconds
Powered by Kunena Forum