Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 16 Aug 2018, 22:16
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
How to run 1-op-amp-ECG Windows software in Puppy? SOLVED!
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
Roy

Joined: 31 Dec 2008
Posts: 453

PostPosted: Thu 19 Apr 2018, 15:49    Post subject:  How to run 1-op-amp-ECG Windows software in Puppy? SOLVED!
Subject description: Is a puppy linux version (.pet) even possible?
 

As an old (read:retired) guy who still serves as a part-time wilderness medic, this concept REALLY intrigues me -- it is a simple, portable, laptop-monitored, ECG (electrocardiograph) machine, built on Windows (open-source) software.

https://www.swharden.com/wp/2016-08-08-diy-ecg-with-1-op-amp/

A currently run Puppy Linux on my 32-bit laptop (Slacko Puppy 6.9.9.9), but started running Puppy on this Dell Latitude D610 machine back when the current version was Puppy 4.3.

I also have a 64-bit laptop available to use, but not sure of the specs on that machine.

Regardless, the open-source software designed for this ECG project is Windows based, and I am not going to budge away from Linux. I am willing to change (regress or update) to ANY Puppy Linux version that will run on either laptop available to me in order to have this ECG function available. Warning: the software is based on Python (which might or might not be an issue).

It will take me some time to get the physical project parts (no small parts stores anymore), but I seriously want this.

Is anybody willing to help with the software end of this?

https://github.com/swharden/diyECG-1opAmp

Thank you,
-Roy

Last edited by Roy on Thu 26 Apr 2018, 13:56; edited 1 time in total
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 2521
Location: 500 seconds from Sol

PostPosted: Thu 19 Apr 2018, 16:49    Post subject: Maybe -- help from experienced python handlers requested  

Hi Roy,

It's been a couple of lifetimes since I took 11th Grade Physics --it had an Electronics component-- and a shop-class in things electrical. Now, I even hesitate to changing light-bulbs. So, other than noting that the website provides the schematics, I'm not going to venture any advice about building the device.

Regarding the software, using the pre-packaged WinPython-64bit-3.5.2.1.exe is the easiest way to proceed. Obviously, a 64-bit computer would be necessary. Although Windows 7 or above was its intended target, considering your reluctance to venture to the darkside, it may --as in maybe, maybe not-- be possible to run it under 64-bit Wine. Version2013 has packaged both WOW version (solely 64-bit) and Wine 3x versions (32-bit with 64-bit support). You'll find the newest versions at the end of this thread, http://murga-linux.com/puppy/viewtopic.php?t=88711, but it's worth reading the the beginning of the thread for information. And this thread may help in creating a Menu for your program. http://murga-linux.com/puppy/viewtopic.php?p=882255#882255.

The alternate instructions require "certain libraries like PyQt4 and numpy". I don't know python. My efforts to build applications which require it have not been successful*. Other than that numpy is a python module and that both PyQt4 and numpy are available via XenialPup64's Puppy Package Manager --and probably most Puppies published in the last couple of years-- I can't tell you much. On the other post, Scott, the author, also mentions scipy, matplotlib, pyqrgraph about which I know nothing. More disturbing, however, is that I didn't find a "recipe" so I can't tell what other bits and pieces may be needed. I would suggest an email to him requesting at least a dependency list.

mikesLr

* ldd (list dynamic dependencies) does tell what python modules are missing. Consequently, my efforts have consisted with starting here, https://packages.ubuntu.com/, plugging a known item into the search box, and recursively following the links to its dependencies and their dependencies.

Last edited by mikeslr on Thu 19 Apr 2018, 16:55; edited 1 time in total
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 908
Location: Staffordshire

PostPosted: Thu 19 Apr 2018, 16:51    Post subject:  

Roy,

I managed to ge t the software running on Quirky Xerus which I happened to be on at the time. It is 64bit. The software is all Python and needed to download a fair few dependencies (which were all available via PPM).
The point is that this should be do-able. I might try again on Slacko later, or hopefully some Python savvy packager will butt in and do it properly!
ecg.jpg
 Description   
 Filesize   78.78 KB
 Viewed   276 Time(s)

ecg.jpg

Back to top
View user's profile Send private message 
Roy

Joined: 31 Dec 2008
Posts: 453

PostPosted: Thu 19 Apr 2018, 18:15    Post subject:  

Thanks for your quick replies! Building the physical part of this gizmo is no challenge for me -- after I locate and accumulate the few parts required.

In my early days of Puppy Linux, I had very little luck trying to run programs via WINE and shortly thereafter abandoned all efforts, so not a lot of experience with such on my end... and I'm pretty much hooked on Puppy (going ALL the way back "to the dark side" is just NOT going to happen).

I'll try to locate that 64-bit laptop and give Quirky Xerus a go, but would ultimately appreciate a .pet or .sfs to keep my ECG machine running long term, should a packaged product like that become available.

In spite of my years, I still feel like a dumb computer end-user at times....

- Roy
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4019
Location: King's Lynn, UK.

PostPosted: Thu 19 Apr 2018, 19:07    Post subject:  

Roy/Mike/Keef:-

No idea if this'll help at all, but I've located a 32-bit version of WinPython-3.5.2.1.exe, here:-

https://github.com/winpython/winpython/releases

....down near the bottom of the page.

As I understand it, Python is almost entirely script-based, although it does contain a handful of binaries (which 'mange' and co-ordinate those scripts). I'm no expert on this (like Mike, I stumble along, and frequently manage to amaze myself where Python's concerned, if I manage to get a Python-based package to work in places where it was never originally intended to!)

From what I can see of it, there is nothing to say that this wouldn't work in 32-bit WINE with a 32-bit Qt4 .exe package. But we'd need to figure out which version of Qt4 to use.....and then, of course, find out which version of WINE the whole 'kit & caboodle' would run under.

What d'you reckon? Do-able? Could be a step closer to manufacturing that .pet or SFS package Roy would like to have.....


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
mikeslr


Joined: 16 Jun 2008
Posts: 2521
Location: 500 seconds from Sol

PostPosted: Thu 19 Apr 2018, 20:17    Post subject:  

FWIW neither WinPython-64bit-3.5.2.1.exe nor the WinPython-3.5.2.1.exe Mike Walsh located functioned under Wine 3.3. (32-bit with 64-bit support). Both installed without a problem, but most of the exes were unresponsive; from the sound of the hard-drive one attempted to start but then did nothing. I have no idea how to diagnose Windows programs which don't run.

It's possible that WinPython-64bit-3.5.2.1.exe might work under WOW, the pure 64-bit, version of Wine. But the pure 64-bit version of wine is still in its infancy, so I don't give it much hope.

Considering how far keef has gotten, the "all LInux" path seems the most likely to succeed.

I took a look at some of the scripts found here: https://github.com/swharden/diyECG-1opAmp/tree/master/software. Two of them started with Import calls:

from PyQt4 import QtGui,QtCore
import sys
import ui_main
import numpy as np
import pyqtgraph
import swhear
import time
import pyqtgraph.exporters
import webbrowser

and

import pyaudio
import time
import numpy as np
import threading
import scipy.io.wavfile

swhear is, itself, a script on that page. Numpy is a "module*" I know can be downloaded as it was required in building either flowblade or Openshot. So perhaps that, or further examination of the provided scripts, will tell someone who knows python what the dependencies of diyECG are.

mikesLr

* As I said I don't know python. I've used the term "module" to mean a pre-assembled/written script with whatever it needs to perform a function under python.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4019
Location: King's Lynn, UK.

PostPosted: Thu 19 Apr 2018, 21:03    Post subject:  

I agree.

It would make far more sense to build it to run natively in Linux's Python. But, again, I'll pose the question. Just because the developer makes some vague reference to a 64-bit version of WinPython, doesn't mean to say it's got to run under 64-bit. No reason it wouldn't run under 32-bit, too.

To recap; Python, as I understand it, consists of a whole bunch of scripts (which are architecture-independent), and a handful of binaries, which co-ordinate and run the whole shebang. It's only those binaries which are architecture-specific. And Python, AFAIK, is still manufactured in both versions.

The binaries aren't what 'run' your apps.. It's specific Python 'modules', supplied by the developer of an app, that 'plug-in' to fixed locations in the Python directory, which actually 'run' individual apps, and enable their functionality. Those Python binaries will do their job regardless of what Python-based application you're running, since they simply enable all the scripts to function together as a cohesive whole.

Yes, I know 64-bit is the way it's going (and I applaud Keef's efforts in this matter, since he's got it to run. Well done indeed!) All I'm saying is that there's no reason why this couldn't run under 32-bit. There's an awful lot of 32-bit Puppy boxes still out there, still going strong.

The 64-bit mention by the developer could simply be because he built this on a 64-bit machine, following the general consensus of opinion by the majority that you must move to 64-bit ASAP because 32-bit's days are numbered. Sorry to labour the point, but I'm simply saying that there's no reason Roy couldn't run this on his existing box, rather than having to set-up a whole new one.

--------------------------------------------------------------

This should be possible to build in both 32- and 64-bit versions, if necessary. The binaries run Python; it's the scripts that actually run your app.

Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
666philb


Joined: 07 Feb 2010
Posts: 3177
Location: wales

PostPosted: Sun 22 Apr 2018, 06:18    Post subject:  

hi Roy,

here's some sfs's to test https://drive.google.com/open?id=1HTNP2hlzqDmdpxWe1Vq3AXvlMI6kAdEv

one for
slacko 6.9.9.9 32bit
xenialpup 64bit
xenialpup 32bit

it can be run from menu>>utility>>>diyECG
or in a terminal diyecg

the circuit diagrams are in /usr/share/diyECG-1opAmp

_________________
Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=96178
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 908
Location: Staffordshire

PostPosted: Sun 22 Apr 2018, 08:41    Post subject:  

666philb

I can confirm that the Slacko version runs, which will please Roy. I had tried to make an sfs myself but failed miserably.
Back to top
View user's profile Send private message 
Roy

Joined: 31 Dec 2008
Posts: 453

PostPosted: Sun 22 Apr 2018, 09:42    Post subject:  

666philb,

Thank you for the SFS's!

Unfortunately, I must be doing something wrong on my end, as I can VIEW but not DOWNLOAD any of the packages.

Do I need to be signed in to an account of some kind to download them for testing?

-Roy
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 908
Location: Staffordshire

PostPosted: Sun 22 Apr 2018, 15:04    Post subject:  

No need to log in. What browser are you using?
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4019
Location: King's Lynn, UK.

PostPosted: Sun 22 Apr 2018, 16:31    Post subject:  

The one thing I've just found I need to do is to confirm that it's me, by using my Google a/c password.....but the way Google have been tightening-up on security this last year or so, I can't really say as I'm even remotely surprised (given that I've had a Google a/c since 2003).

I'm currently using Chrome 26 in Lucid (it's the newest Chrome Lucid will handle; 40 versions out-of-date, and I've just had a wee reminder that this will very soon be totally unsupported. Hardly surprising Google want account confirmation, really...)

Not sure how accessing G-Drive works if you're viewing through summat like Firefox, or Opera. Perhaps Phil needs to give sharing permissions at his end? It's something I've occasionally needed to do with my own Drive account.

@ Roy:-

If you really can't access the files on Phil's Drive a/c, I'm sure we can, if necessary, move things around from one a/c to another so you can access them. Which one in particular are you interested in?


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Roy

Joined: 31 Dec 2008
Posts: 453

PostPosted: Mon 23 Apr 2018, 10:21    Post subject:  

I am using Pale Moon version 27.6.2SSE (the latest, I think).

Actually, I am MOST interested in the Slacko version, but wish to download all of them, since you guys went to the trouble of creating them. Besides, I can't count how many laptops I've owned in my life, and have learned through experience that they are not indestructible in austere environments (keeping in mind that, although Slackware is pretty darned good with hardware recognition, vastly different hardware often requires different Puppy versions).

- Roy

EDIT: Disregard the download issue... I think I just got them after logging out of my Microsoft account and logging into my Google account. Still, strange that only the "Download" was not in BOLD.

Now for testing to see if they run on my system, then on to building the physical interface hardware! My sincere thanks to all of you!
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 891
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Mon 23 Apr 2018, 12:03    Post subject:  

I have no trouble downloading from the link Keef provided.

Only need to allow google via noscript to let it do javascript.
Then I disallow google when done.

No social media account required, ever. I am proof.

Palemoon 27.6.2

_________________
Giving with an expectation for return brings misery.
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 3177
Location: wales

PostPosted: Wed 25 Apr 2018, 13:55    Post subject:  

hi Roy,

i've also uploaded them to dropbox (dropbox may ask you to create an account but you can X out of that and just download)

https://www.dropbox.com/s/wqs5s2gzbporunm/diyECG-1opAmp-slacko-6.9_i386.sfs?dl=0
https://www.dropbox.com/s/kp3c8auspdfoycz/diyECG-1opAmp-xenial_i386_7.5.sfs?dl=0
https://www.dropbox.com/s/2tlbun5jyqkvoih/diyECG-1opAmp-xenial_x86_64_7.5.sfs?dl=0

note that the slacko version requires the devx.sfs loaded for python, the xenialpup ones don't require it as xenialpup comes with python included.
slacko devx here http://distro.ibiblio.org/puppylinux/puppy-slacko-7.0/testing/32/

_________________
Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=96178
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2092s ][ Queries: 12 (0.0502s) ][ GZIP on ]