getting the actual value of a halpin

More
4 years 5 months ago #241854 by strahlensauger
For testing linear encoders I would like to show the position of the encoders on the right hand side of axis in a pyvcp.
I know I can view the values in Hal config, but I don't want to search each time I restart LCNC.
I didn't find an example, how to show pins like  [HMOT](CARD0).encoder.00.velocity or [HMOT](CARD0).encoder.00.position
in pyvcp. Could someone point me in the right direction?

Please Log in to join the conversation.

More
4 years 5 months ago #241860 by MaHa
A example

 

Attachment not found



In .ini file

[DISPLAY]
PYVCP = vcp.xml

[HAL]
POSTGUI_HALFILE = pyvcp.hal

If the numbers to display are floatinpoint, the vcp.xml is ready for that format.

In pyvcp.hal  the entry signalname  must be replaced with the signalname linked to [HMOT](CARD0).encoder.00.velocity  and [HMOT](CARD0).encoder.00.position.

Please Log in to join the conversation.

More
4 years 5 months ago #241861 by strahlensauger
Thank you very much, that is very helpful to me

Please Log in to join the conversation.

More
4 years 5 months ago #241948 by andypugh
If this is just a temporary measure you can add one or more lines like this to the HAL file:

loadusr halmeter -s pin [HMOT](CARD0).encoder.00.velocity

(the -s just makes it a smaller meter)

Please Log in to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum