KyleLopin / Potentiostat_GUI

Graphical User Interface to control a potentiostat
10 stars 11 forks source link

Distribution just doesnt work #5

Open HBL001 opened 2 months ago

HBL001 commented 2 months ago

Hi @Zanith @KyleLopin

I took the latest version of the MASTER branch, and did a slight change to it.

Programming device 'PSoC 5LP CY8C5868AXI-LP035' with file 'C:\Users\User\Dropbox\67 PSOC\PSoC-Potentiostat\Amperometry_v059_2.cydsn\CortexM3\ARM_GCC_541\Debug\Amperometry_v059_2.hex'. Device ID Check Erasing... Programming of Flash Starting... Protecting... Verify Checksum... Finished Programming Device 'PSoC 5LP CY8C5868AXI-LP035' was successfully programmed at 08/19/2024 13:43:15.

So that worked, so excitedly I "switched ends" and loaded up the GUI software

image

And sure enough the front end reports no connection, and looking in the log

2024-08-19 13:50:29,047 INFO usb_comm 79: attempting connection 2024-08-19 13:50:29,388 INFO tkinter_pyplot 72: setting xlim (low, high): -900, 900 2024-08-19 13:50:30,064 DEBUG cv_frame 271: sending cv params here 2024-08-19 13:50:30,570 INFO usb_comm 393: Device not connected 2024-08-19 13:50:30,570 INFO amp_gui 189: failed connection 2024-08-19 13:50:30,586 INFO usb_comm 393: Device not connected 2024-08-19 13:50:30,586 INFO amp_gui 189: failed connection 2024-08-19 13:50:30,698 INFO usb_comm 393: Device not connected 2024-08-19 13:50:30,698 INFO amp_gui 189: failed connection

So working backwards, the USB is registered and the driver is installed

image

HBL001 commented 2 months ago

I take it back. It does work. The problem was that I followed the instructions to install the USB port driver because I was having problems with the latest firmware giving me errors. After I had fixed the errors in the latest commit, I had just uninstalled the Zadig USB drivers but Windows just reinstalled them again. So I worked out which drivers they were and deleted the *.inf files so when the board was plugged in again, it reverted back to image

The other thing was where to run the exe.file. I tried just running it where it was installed, but that just threw lots of errors complaining about lost files. I had cloned the repo, so I copied the executable from the dist directory back into the main directory where the settings files are kept.

Now everything ran perfectly, now to go and make a silver-silver chloride reference with a silver wire.

Plus a quick trip to supermarket to get some OJ.