gmoccapy: Cannot get messages working

More
03 Feb 2017 20:14 #87248 by bevins
One issue I am having is gmoccapy.messages. Cant seem to get this working.

gmoccapy 2.2.3.1

My ini file:
MESSAGE_BOLDTEXT = LUBE SYSTEM FAULT
MESSAGE_TEXT = WAY OIL LUBRICATION TANK LOW. PLEASE REFILL BEFORE CONTINUING.
MESSAGE_TYPE = okdialog
MESSAGE_PINNAME = lubelow

postgui.hal:
net lubelow hm2_5i25.0.7i70.1.0.input-24
net gmoccapy-lubelow gmocappy.messages.lubelow

I would expect the to pop up a message with an ok button. Not happening. Inputs and signal working but not gmoccapy.messages.lubelow

I tried status type also and cannot get a message to pop up.

If I put the pin in postgui like gmoccapy docs states the signal doesnt show up in HAL, I think I understand why but I wont be able to use it as a pin in HAL?

Also if I put it in my custom.hal, I have the signal in hal but it still doesnt work.

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

More
06 Feb 2017 17:32 #87408 by newbynobi
Sorry for the delay in responding.

Your hal connection is wrong. Try the following entry in your postgui.hal:
net  lubelow   gmoccapy.messages.lubelow    <=    hm2_5i25.0.7i70.1.0.input-24

if hm2_5i25.0.7i70.1.0.input-24 changes state to True, the message dialog should pop up.

Norbert

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

More
06 Feb 2017 17:45 - 06 Feb 2017 17:46 #87409 by bevins

Sorry for the delay in responding.

Your hal connection is wrong. Try the following entry in your postgui.hal:
net  lubelow   gmoccapy.messages.lubelow    <=    hm2_5i25.0.7i70.1.0.input-24

if hm2_5i25.0.7i70.1.0.input-24 changes state to True, the message dialog should pop up.

Norbert


I put this in postgui.hal... That is before I saw that the new version has this is the ini file...
POSTGUI_HALFILE = postgui_call_list.hal

I missed that.
Last edit: 06 Feb 2017 17:46 by bevins.

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

Moderators: newbynobiHansU
Time to create page: 0.068 seconds
Powered by Kunena Forum