Axis problem

More
28 May 2021 00:05 - 28 May 2021 00:10 #210480 by vedatech
Replied by vedatech on topic Axis problem
Thanks for the tip. The pin names are different when loading from port_test.xml the .ini file with PYVCP = port_test.xml
## show pin with .ini load of port_test.xml
# 53 bit OUT FALSE pyvcp.btn00
# 53 bit OUT FALSE pyvcp.btn01
# 53 bit OUT FALSE pyvcp.btn03
# 53 bit OUT FALSE pyvcp.btn17
# 53 bit OUT FALSE pyvcp.btn18
...
## show pin with .hal load of port_test.xml
# 36 bit OUT FALSE port_test.btn00
# 36 bit OUT FALSE port_test.btn01
# 36 bit OUT FALSE port_test.btn03
# 36 bit OUT FALSE port_test.btn17
# 36 bit OUT FALSE port_test.btn18
...

Is there anything I can do about this?
Oh, of course, I'll just make two different postgui files. One for stand alone, the other for Axis
Last edit: 28 May 2021 00:10 by vedatech. Reason: Answered my own question

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

More
28 May 2021 00:19 #210482 by vedatech
Replied by vedatech on topic Axis problem
I tested this out with a different postgui.hal file and it works! Thanks for your help.
Any reason why the two methods are different?

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

More
28 May 2021 00:52 - 28 May 2021 00:53 #210483 by cmorley
Replied by cmorley on topic Axis problem
'loadusr -Wn port_test pyvcp -c port_test port_test.xml'

-c sets the component name; which sets the pin base name - feel free to change it (you'll have to change the -Wn name to match.)
Last edit: 28 May 2021 00:53 by cmorley.

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

More
28 May 2021 01:36 #210487 by vedatech
Replied by vedatech on topic Axis problem
Ok, I'll change the loadusr to pyvcp so I can switch back and forth for testing with the same postgui.hal file.
I understand how it works now but I found the examples in the manual confusing. If I want to develop panels outside of axis I'll have to always use pyvcp as the base name to avoid problems.
Thanks for you help.

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

Time to create page: 0.138 seconds
Powered by Kunena Forum