7i96 Configuration Tool Questions

More
21 Jan 2021 08:47 #196066 by rvirnau
I am getting a couple of errors while installing. The output from the install is shown below.
Any idea what might have gone wrong?

bobby@linuxcnc:~$ sudo gdebi python3-c7i96_1.2.2-1_all.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done

Mesa configuration tool for 7i96
 # Mesa 7i96 Configuration Tool
 .
 The 7i96 Configuration Tool will create a complete configuration from scratch.
 .
 Read in the ini configuration file for changes.
 .
 You can create a configuration then run it with the Axis GUI and usebobby@linuxcnc:~$ sudo gdebi python3-c7i96_1.2.2-1_all.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
bobby@linuxcnc:~$ sudo gdebi python3-c7i96_1.2.2-1_all.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done

Mesa configuration tool for 7i96
 # Mesa 7i96 Configuration Tool
 .
 The 7i96 Configuration Tool will create a complete configuration from scratch.
 .
 Read in the ini configuration file for changes.
 .
 You can create a configuration then run it with the Axis GUI and use
 Machine > Calibration to tune each axis. Save the values to the ini file and
 next time you run the 7i96 Configuration Tool it will read the values from the
 ini file.
 .
 See the [documentation](https://jethornton.github.io/7i96/) for installation and
 usage instructions.
 .
 Note: The master branch might be broken from time to time while I improve the
 configuration tool. The 0.1.5 branch should be stable.
Do you want to install the software package? [y/N]:y
(Reading database ... 187412 files and directories currently installed.)
Preparing to unpack python3-c7i96_1.2.2-1_all.deb ...
Unpacking python3-c7i96 (1.2.2-1) over (1.2.2-1) ...
Setting up python3-c7i96 (1.2.2-1) ...
  File "/usr/lib/python3/dist-packages/c7i96/c7i96.py", line 307
    self.maxVelocityLbl.setText(f'{fpm} IPM')
                                           ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/c7i96/card-broken.py", line 10bobby@linuxcnc:~$ sudo gdebi python3-c7i96_1.2.2-1_all.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done

Mesa configuration tool for 7i96
 # Mesa 7i96 Configuration Tool
 .
 The 7i96 Configuration Tool will create a complete configuration from scratch.
 .
 Read in the ini configuration file for changes.
 .
 You can create a configuration then run it with the Axis GUI and use
 Machine > Calibration to tune each axis. Save the values to the ini file andbobby@linuxcnc:~$ sudo gdebi python3-c7i96_1.2.2-1_all.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done

Mesa configuration tool for 7i96
 # Mesa 7i96 Configuration Tool
 .
 The 7i96 Configuration Tool will create a complete configuration from scratch.
 .
 Read in the ini configuration file for changes.
 .
 You can create a configuration then run it with the Axis GUI and use
 Machine > Calibration to tune each axis. Save the values to the ini file and
 next time you run the 7i96 Configuration Tool it will read the values from the
 ini file.
 .
 See the [documentation](https://jethornton.github.io/7i96/) for installation and
 usage instructions.
 .
 Note: The master branch might be broken from time to time while I improve the
 configuration tool. The 0.1.5 branch should be stable.
Do you want to install the software package? [y/N]:y
(Reading database ... 187412 files and directories currently installed.)
Preparing to unpack python3-c7i96_1.2.2-1_all.deb ...
Unpacking python3-c7i96 (1.2.2-1) over (1.2.2-1) ...
Setting up python3-c7i96 (1.2.2-1) ...
  File "/usr/lib/python3/dist-packages/c7i96/c7i96.py", line 307
    self.maxVelocityLbl.setText(f'{fpm} IPM')
                                           ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/c7i96/card-broken.py", line 10
    command = f"mesaflash --device 7i96 --addr {ipAddress} --readhmid"
                                                                     ^
SyntaxError: invalid syntax

dpkg: error processing package python3-c7i96 (--install):bobby@linuxcnc:~$ sudo gdebi python3-c7i96_1.2.2-1_all.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done

Mesa configuration tool for 7i96
 # Mesa 7i96 Configuration Tool
 .
 The 7i96 Configuration Tool will create a complete configuration from scratch.
 .
 Read in the ini configuration file for changes.
 .
 You can create a configuration then run it with the Axis GUI and use
 Machine > Calibration to tune each axis. Save the values to the ini file and
 next time you run the 7i96 Configuration Tool it will read the values from the
 ini file.
 .
 See the [documentation](https://jethornton.github.io/7i96/) for installation and
 usage instructions.
 .
 Note: The master branch might be broken from time to time while I improve the
 configuration tool. The 0.1.5 branch should be stable.
Do you want to install the software package? [y/N]:y
(Reading database ... 187412 files and directories currently installed.)
Preparing to unpack python3-c7i96_1.2.2-1_all.deb ...
Unpacking python3-c7i96 (1.2.2-1) over (1.2.2-1) ...
Setting up python3-c7i96 (1.2.2-1) ...
  File "/usr/lib/python3/dist-packages/c7i96/c7i96.py", line 307
    self.maxVelocityLbl.setText(f'{fpm} IPM')
                                           ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/c7i96/card-broken.py", line 10
    command = f"mesaflash --device 7i96 --addr {ipAddress} --readhmid"
                                                                     ^
SyntaxError: invalid syntax

dpkg: error processing package python3-c7i96 (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Errors were encountered while processing:
 python3-c7i96

 subprocess installed post-installation script returned error exit status 1
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Errors were encountered while processing:
 python3-c7i96

 next time you run the 7i96 Configuration Tool it will read the values from the
 ini file.
 .
 See the [documentation](https://jethornton.github.io/7i96/) for installation and
 usage instructions.
 .
 Note: The master branch might be broken from time to time while I improve the
 configuration tool. The 0.1.5 branch should be stable.
Do you want to install the software package? [y/N]:y
(Reading database ... 187412 files and directories currently installed.)
Preparing to unpack python3-c7i96_1.2.2-1_all.deb ...
Unpacking python3-c7i96 (1.2.2-1) over (1.2.2-1) ...
Setting up python3-c7i96 (1.2.2-1) ...
  File "/usr/lib/python3/dist-packages/c7i96/c7i96.py", line 307
    self.maxVelocityLbl.setText(f'{fpm} IPM')
                                           ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/c7i96/card-broken.py", line 10
    command = f"mesaflash --device 7i96 --addr {ipAddress} --readhmid"
                                                                     ^
SyntaxError: invalid syntax

dpkg: error processing package python3-c7i96 (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Errors were encountered while processing:
 python3-c7i96

    command = f"mesaflash --device 7i96 --addr {ipAddress} --readhmid"
                                                                     ^
SyntaxError: invalid syntax

dpkg: error processing package python3-c7i96 (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Errors were encountered while processing:
 python3-c7i96

Mesa configuration tool for 7i96
 # Mesa 7i96 Configuration Tool
 .
 The 7i96 Configuration Tool will create a complete configuration from scratch.
 .
 Read in the ini configuration file for changes.
 .
 You can create a configuration then run it with the Axis GUI and use
 Machine > Calibration to tune each axis. Save the values to the ini file and
 next time you run the 7i96 Configuration Tool it will read the values from the
 ini file.
 .
 See the [documentation](https://jethornton.github.io/7i96/) for installation and
 usage instructions.
 .
 Note: The master branch might be broken from time to time while I improve the
 configuration tool. The 0.1.5 branch should be stable.
Do you want to install the software package? [y/N]:y
(Reading database ... 187412 files and directories currently installed.)
Preparing to unpack python3-c7i96_1.2.2-1_all.deb ...
Unpacking python3-c7i96 (1.2.2-1) over (1.2.2-1) ...
Setting up python3-c7i96 (1.2.2-1) ...
  File "/usr/lib/python3/dist-packages/c7i96/c7i96.py", line 307
    self.maxVelocityLbl.setText(f'{fpm} IPM')
                                           ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/c7i96/card-broken.py", line 10
    command = f"mesaflash --device 7i96 --addr {ipAddress} --readhmid"
                                                                     ^
SyntaxError: invalid syntax

dpkg: error processing package python3-c7i96 (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Errors were encountered while processing:
 python3-c7i96

 Machine > Calibration to tune each axis. Save the values to the ini file and
 next time you run the 7i96 Configuration Tool it will read the values from the
 ini file.
 .
 See the [documentation](https://jethornton.github.io/7i96/) for installation and
 usage instructions.
 .
 Note: The master branch might be broken from time to time while I improve the
 configuration tool. The 0.1.5 branch should be stable.
Do you want to install the software package? [y/N]:y
(Reading database ... 187412 files and directories currently installed.)
Preparing to unpack python3-c7i96_1.2.2-1_all.deb ...
Unpacking python3-c7i96 (1.2.2-1) over (1.2.2-1) ...
Setting up python3-c7i96 (1.2.2-1) ...
  File "/usr/lib/python3/dist-packages/c7i96/c7i96.py", line 307
    self.maxVelocityLbl.setText(f'{fpm} IPM')
                                           ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/c7i96/card-broken.py", line 10
    command = f"mesaflash --device 7i96 --addr {ipAddress} --readhmid"
                                                                     ^
SyntaxError: invalid syntax

dpkg: error processing package python3-c7i96 (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Errors were encountered while processing:
 python3-c7i96

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

More
21 Jan 2021 18:48 - 21 Jan 2021 19:03 #196126 by BigJohnT
Looks like your not using the deb and gdebi to install it. Maybe you have some stale code?

I'm working on replacing subprocess with QProcess and should have a fresh deb in the morning.

JT
Last edit: 21 Jan 2021 19:03 by BigJohnT.
The following user(s) said Thank You: tommylight

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

More
22 Jan 2021 02:48 #196175 by rvirnau
thanks. Found I needed to upgrade to LinuxCNC 2.8. Did that and used the 0.1.3 version of the tool. Had to do a couple of changes to the files generated to work on my setup, but got it working. Look forward to checking out the new version.
Thanks Again, Bobby

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

More
22 Jan 2021 12:34 #196207 by BigJohnT
The current deb is 1.2.3 and should be uploaded shortly.

JT

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

More
24 Jan 2021 14:25 - 24 Jan 2021 14:27 #196407 by Markyd
John, I've installed v1.2.3 . It now let's me select any number of encoders upto 5. I can see firmware for 7i96 1 PWM + 7i85s. Ive refreshed it (i had already flashed the one pete attached above). Problem i get is the ini file says "encoders = 0", regardless of how many i select in your tool. The only way I can get the ini to show anything other than 0 is to select 'default' at which point the ini shows "axis". Regardless of what I do the encoders aren't visible in the hal configuration tool. Am I doing something wrong or is it not working as intended?
Last edit: 24 Jan 2021 14:27 by Markyd.

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

More
24 Jan 2021 14:45 - 24 Jan 2021 16:19 #196410 by BigJohnT
I've updated the software to adjust the number of encoders you can select by which firmware has been selected. Download a fresh deb and reinstall and let me know.

JT
Last edit: 24 Jan 2021 16:19 by BigJohnT.

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

More
24 Jan 2021 16:21 #196422 by franstrein
Hi John,

I am more or less at the samepoint as Markyd above. Just got my 7i96 and 7i85S delivered from EUSURPLUS in Portugal within 48 hours from ordering. Good service.

I am using the tool now, I flashed my firmware with it, and just had the first axis moving on the machine!

One annoying thing is that the generated INI file is missing an entry for ENCODERS in the Hostmot2 entry. (Or reversed, the HAL file is using that undefined parameter).
hm2: loading Mesa HostMot2 driver version 0.15
    ./bob-7i96-test1.hal:17: Ini variable '[HOSTMOT2]ENCODERS' not found.
I fixed it by adding the mssing entry to the ini file...

Thanks for your help,
Frans

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

More
24 Jan 2021 16:54 - 24 Jan 2021 17:33 #196426 by BigJohnT
I just uploaded 1.2.4 with stepgens and encoders count based on firmware. I'll do the same for pwm after my nap...

Everything should work now...

Edit: I noticed on the install page the wget line was wrong, it will take travis a bit to build new docs.

JT
Last edit: 24 Jan 2021 17:33 by BigJohnT.
The following user(s) said Thank You: tommylight, franstrein, Markyd

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

More
24 Jan 2021 22:31 #196476 by Markyd
Thanks John. I've installed 1.2.4 and it will now let me select the number of encoders and stepgens. The ini now reflects the selections and I can see the encoders in the hal configuration tool. Thanks. I have to select 5 encoders to be able to use the one on the 7i96 (I haven't got the 7i85 connected at the moment).

I've still got problems reading the encoder in reverse, but I can't imagine that is related to your tool. It counts going forwards but won't count backwards. I've looked at the hal scope and the signals aren't as I'd expect for the reverse motion. They look OK forward, with A leading B, but In reverse A and B rise at the same time (not expected) and then B falls before A (as expected). I've just hooked the encoder up to a Saleae (clone) logic probe and the pulses look fine in both directions, although the Saleae won't read the A- and B- channels (I assume these are -5v?), only the A+ and B+.

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

More
24 Jan 2021 22:48 #196477 by PCW
Counting in only one direction is like a encoder or encoder interfacing issue

If you cannot read A- and B-, this most likely means
you do not have a differential encoder, as these signals
should be identical to the A+ and B+ signals level wise.

If you have a single ended encoder interface you must
jumper the 7I96 for single ended or TTL mode
The following user(s) said Thank You: BigJohnT, Markyd

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

Moderators: PCWjmelson
Time to create page: 0.196 seconds
Powered by Kunena Forum