Mesa 7i95t and THCAD pncconf screen

More
1 year 4 months ago #330815 by kworm
Hi,

I added support for the Mesa 7i95t to the pncconf wizard (private_data.py with changes attached) and it seems to work ok other than needing to rename the inm to inmux pins for the 7i95t.  However, the THCAD configuration screen doesn't appear even though I assign an encoder input to arc voltage.  I must be missing something in looking at the code but I don't find where self.d._arcvpin that is used to control the display of the THCAD screen is ever set to anything other than None.  I have QTPlasmaC selected as the gui. Any help is appreciated.

Solved:  Attached updated files with the THCAD tab working.  The pages.py and private_data.py go in /usr/lib/python3/dist-packages/pncconf and the pncconf.txt should be renamed to /usr/bin/pncconf.

Please Log in to join the conversation.

More
1 year 4 months ago #330819 by PCW
Did you also chose QTPlasmaC as the GUI?
(maybe that matters also)

Please Log in to join the conversation.

More
1 year 4 months ago #330821 by kworm
Sorry I should have had that in my initial post...yes I have QTPlasmaC selected as GUI.

Please Log in to join the conversation.

More
1 year 4 months ago #330822 by phino
Nice effort! How would one apply the changes to get 7i95t support in pncconf?

What are pros/cons of using pncconf vs mesa CT? github.com/jethornton/mesact

Please Log in to join the conversation.

More
1 year 4 months ago #330823 by kworm
You can just replace the private_data.py file in /usr/lib/python3/dist-packages/pncconf with the private_data.py that is attached to my post. I would backup the original file first just in case.

Well MesaCT doesn't support QTPlasmaC at the moment. I have done some work on supporting it but haven't heard from JT if he's interested in bringing those changes in if I make a pull request.

Please Log in to join the conversation.

More
1 year 4 months ago #330826 by PCW
This is the only place I noticed it set true:

                # for encoder pins
                elif widgetptype == _PD.ENCA:
                    #print"\nptype encoder"
                    halsignallist = 'hal_encoder_input_names'
                    humansignallist = _PD.human_encoder_input_names
                    addsignalto = self.d.halencoderinputsignames
                    relatedsearch = [_PD.ENCA,_PD.ENCB,_PD.ENCI,_PD.ENCM]
                    relatedending = ["-a","-b","-i","-m"]
                    customindex = len(humansignallist)-1
                    # check for a thcad encoder
                    if "Arc Voltage" in pinchanged:
                        self.d._arcvpin = pin
                    elif self.d._arcvpin == pin:
                        self.d._arcvpin = None
                    if self.d._arcvpin and self.d.frontend == _PD._QTPLASMAC:
                        self.p.page_set_state('thcad', True)
                    else:
                        self.p.page_set_state('thcad', False)

 

Please Log in to join the conversation.

More
1 year 4 months ago #330829 by kworm
Yes, I overlooked the /usr/bin/pncconf in my search. The problem was that the pin number for the 7i95t first encoder port was 0 which caused "if self.d._arcvin ..." to evaluate to false. I fixed it by using "if self.d._arcvin != None ...".

Please Log in to join the conversation.

More
1 year 3 months ago #331515 by alexandrap
thnx kworm

Please Log in to join the conversation.

Time to create page: 0.113 seconds
Powered by Kunena Forum