pyVCP Flow Chart

More
16 Apr 2018 16:02 #109129 by jensor
pyVCP Flow Chart was created by jensor

File Attachment:

File Name: 1BP_2018-04-16.ini
File Size:8 KB

File Attachment:

File Name: 1BPstepper...4-16.hal
File Size:2 KB

File Attachment:

File Name: ContIndicator.xml
File Size:0 KB

File Attachment:

File Name: LogitechOneHand.hal
File Size:5 KB
Does a flow chart exist that shows how the various pyVCP files are interfaced?

I am trying to put an indicator on the Axis screen that shows when my joypad (which is interfaced via hauli) is in the incremental vs continuous mode.

My ContIndicator.xml file contains:
<pyvcp>
<label text="Increment"/>
<led>
<halpin>"incr_cont"</halpin>
</pyvcp>

This file is called in the [DISPLAY] section of the ini file as "PYVCP = ContIndicator.xml"
Upon checking this indicator appears on the axis screen as it should.

Now I need to connect my signal to this halpin that I just created in the above file.

So in my POSTGUI_HALFILE I added "net incr_cont pyvcp.incr_cont"

The signal I wish to connect is named "incr_cont"
Now I get an error saying Pin 'pyvcp.incr_cont' does not exist.

How do I create this pin?
Attachments:

Please Log in or Create an account to join the conversation.

More
16 Apr 2018 19:17 #109137 by jensor
Replied by jensor on topic pyVCP Flow Chart
I found the problem. The .xml file was not constructed properly. I had:
<pyvcp>
<label text="Increment"/>
<led/>
<halpin>"incr_cont"</halpin>
</pyvcp>
then changed it to:
<pyvcp>
<label text="Increment"/>
<led halpin="incr_cont"/>
</pyvcp>
Then it worked properly.
However, I found that green and red colors were reversed for my purposes, so tried reversing them via:
<on_color>"green"</on_color>
<off_color>"red"</off_color>
and found it had no effect in the .xml file.
Then I tried to reverse the polarity in the hal file:
from: net incr_cont pyvcp.inncr_cont
to: net incr_cont pyvcp.inncr_cont-not
and get error that Pin doesn't exist.
How do simply reverse polarity other than adding another component?
Also tried to change size of led by adding:
<size>50</size>
to the xml file. It had no effect on the size.
Can I get help with this?

Please Log in or Create an account to join the conversation.

More
16 Apr 2018 19:33 #109138 by jensor
Replied by jensor on topic pyVCP Flow Chart
Changing color in .xml file has no effect so tried the reverse:
<on_color>"red"</on_color>
<off_color>"green"</off_color>
and still no change in result.
Are these changes possible when running in Axis?

Please Log in or Create an account to join the conversation.

Time to create page: 0.091 seconds
Powered by Kunena Forum