Test and Measurement Forum

WiNE on Linux

Post your Linux discussions here

WiNE on Linux

Postby skoobee » Mon Mar 10, 2008 6:32 am

Hi Guys,

I'm fairly new to Linux myself, although an experienced VB6 programmer and web-hack. I've been trying to get some of my Web-Dev stuff to work on my Linux Box (Ubuntu 7.04 (Feisty Fawn) with some great results and I figured I'd give the Pico stuff a go too.

I don't know enough c++ or have enough time to play with Qt4 to develop drivers or software of my own, so I decided to give WiNE a try. It works great for my Web-Dev applications, and the Pico Technology software boots great too!

However, I haven't tried plugging the Picoscope in to my box yet! This will be the tester! I'll let you know how it goes!

Screenshot of Pico running in WiNE on UBUNTU 7.04:
Attachments
Screenshot_pico2.png
PicoScope software running on UBUNTU 7.04 No scope attached though!
Screenshot_pico2.png (13.78 KiB) Viewed 13743 times
skoobee
Newbie
 
Posts: 1
Joined: Mon Mar 10, 2008 6:12 am

Postby ShadyCraig » Thu Nov 20, 2008 12:51 pm

Hi skoobee,

did you get anywhere with this?

I'm now thinking about it...

or does anyone know of a linux alternative???

Thanks,
Craig
ShadyCraig
Newbie
 
Posts: 1
Joined: Thu Nov 20, 2008 12:16 pm

Postby ziko » Wed Dec 03, 2008 1:25 pm

Hi,

According to our engineers the hardware will not work on WiNe. What I will say though is that we provide drivers for Linux if you wanted to write your own software for our products. You can find drivers on all our USB oscilloscopes.
Kind regards
Ziko

Technical Specialist
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

What is the main problem running Picoscope in wine?

Postby andromodon » Fri Jan 09, 2009 7:12 pm

Hi. I would really like to buy a Picoscope, partially because of the great user interface available in the software, and I run an all-Linux shop.

Wine seems like a great way to gain access to the picoscope software without requiring duplicate development and support effort. PicoTech could write one piece of (possibly tweaked) code and allow it to be run on both platforms.

Earlier in this post it was mentioned that the Picoscope software does not currently work in Wine when the hardware is connected. Why is that? We're all Engineers here... What is the fundamental, low-level issue? I assume it has to do with communicating with the scope. If the linux drivers provide a /dev/ interface for the scope, can the Picoscope software include a way to interact with that /dev special file? The software could take a command-line option, for example "PicoScope.exe -d /dev/pico0", which would communicate that it is being run from within Wine and should use the Linux-driver interface. That would solve a lot of development effort as most of the key elements are already implemented. It could take less than a week of development time to write the mapping between linux driver commands and windows driver commands, and that would open up the PicoScope market to everyone from ultra-mobile-PC buyers to uber-geek Linux enthusiasts.

The current open-source oscilliscope interfaces I've seen are lacking in features and have archaic interfaces. If given access to the PicoScope software in Linux, I would buy two scopes off the bat and would advertise the scope to all of my colleagues. I would hate to be forced into buying a Bitscope because they fully support Linux.

I look forward to a reply from one of your engineers involved with the software development process.

Thank you very much.

Sincerely,
Andy Doucette
Electrical Design Engiener
andromodon
Newbie
 
Posts: 1
Joined: Fri Jan 09, 2009 6:48 pm

Postby Robin » Tue Jan 13, 2009 10:36 am

Hi

We have looked in to this in the past and found that it would require significant development effort. This is because many of the functions used by PicoScope are not implemented in Wine.

We do not currently have any plans to alter PicoScope 6 to make it work with Wine.

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Postby Erik » Thu Jan 15, 2009 10:22 am

PicoScope5 running on Ubuntu/Wine with hardware support (PS3000).
Note the running label down in the left corner.

I have created a wine built-in dll.so which uses our linux driver.
Attachments
picoscope5_linux.png
PicoScope5 running on Ubuntu/Wine with hardware support (PS3000).
(21.97 KiB) Downloaded 228 times
Erik
PICO STAFF
PICO STAFF
 
Posts: 52
Joined: Mon Oct 23, 2006 8:16 am
Location: Cambridgeshire, UK

Hardware working with wine?

Postby dcammarota » Sun Jan 25, 2009 9:02 am

Hi folk

I'm trying to have a working PS2203 on my Ubuntu Intrepid 8.10 box.

Driver are OK and the sample program (ps2000con) compiled and worked well.

I was even able to have Picoscope 5 running (with Wine) but with no hardware support ;-(.

I just saw from Eric ...."I have created a wine built-in dll.so which uses our linux driver."

could you please explain better and ...eventually... give me more detailed instructions?
thank you

Davide Cammarota
davide.cammarota@istruzione.it

p.s. If my question depends upon the fact I'm not a Wine expert, please be patient...
Attachments
Immagine.png
(126.13 KiB) Downloaded 131 times
dcammarota
User
User
 
Posts: 2
Joined: Wed Nov 19, 2008 6:14 pm

WINE-Picoscope R5.20-Ubuntu: it works but..........

Postby dcammarota » Mon Jan 26, 2009 3:38 pm

Hi

thank to Eric that gave me the hint - and the file - I was able to have a working PS2203 with PicoScope R5.20 on by Ubuntu box but the hardware support works only for the input.

I was not able to get any waveform from the Signal Out BNC connector. In the enclosed picture I had to use an external generator.

When I start the PicoScope I get also some minor error messages about some function that are not present in the PS2000 dll, but these issues don't prevent the input channels to work correctly.

When I inspected the source files used for building the built-in wine dll (a sort of wrapper for the libps2000.so file) I discovered that the functions for running the signal generator weren't there (ps2000_set_sig_gen_built_in, ps2000_set_sig_gen_arbitrary) but even after putting them there and rebuilding --- no luck!

I'm waiting for further step ahead.
Eric, thank you again
Davide Cammarota
ITIS "E. Mattei" - Maglie (LE) IT
Attachments
Immagine2.png
(23.72 KiB) Downloaded 141 times
dcammarota
User
User
 
Posts: 2
Joined: Wed Nov 19, 2008 6:14 pm

Postby Erik » Mon Jan 26, 2009 3:45 pm

The signal generator is unfortunately not supported in PicoScope5.
Erik
PICO STAFF
PICO STAFF
 
Posts: 52
Joined: Mon Oct 23, 2006 8:16 am
Location: Cambridgeshire, UK

Details of Linux driver-dll workaround

Postby bubblewrap » Mon Feb 02, 2009 10:33 pm

I'm working in a college lab and desperate to get rid of hideously old 1980's eight bit BBCB computers used for data collection. All the plastic casings have turned a nasty mottled yellow and clunky basic programs do little to inspire students.

I like the idea of using a Pico scope as a replacement and there are plenty of unwanted PCs available that'll easily run such a device. Unfortunately needing windows licences is a fly in the ointment. This makes it exciting to hear Picoscope 5 can be made to run through Wine on Linux.

I have Picoscope 5 running on Ubuntu 8.10 - the Intrepid Ibex. The install package got stuck at the select device stage but the program seems to work OK if I just copy the installed files over from a windows PC.

Please could you give details of your Linux-dll workaround Erik. I don't yet have a Pico scope but I'm aggressively using the thumb screws on my manger so should only be a short matter of time. I really want to put the BBCB computers into landfill where they truly belong.

Many Thanks

Mark
bubblewrap
Newbie
 
Posts: 1
Joined: Mon Feb 02, 2009 7:49 pm
Location: Chichester, West Sussex, UK

Postby tobie.de.beer » Mon Mar 30, 2009 8:04 pm

Is there any info / source files / process discription available somewhere for creating this wrapper dll?

Thanks
Tobie
tobie.de.beer
Active User
Active User
 
Posts: 5
Joined: Tue May 06, 2008 7:02 am

Re: WiNE on Linux

Postby tfielden » Tue Dec 15, 2009 5:19 am

(Sorry for the cross-post)
Using Ubuntu 9.10 (Karmic) with Wine. Any info on a .dll wrapper for the linux drivers for a 2203?
tfielden
Newbie
 
Posts: 0
Joined: Tue Dec 15, 2009 4:16 am

Re: WiNE on Linux

Postby Erik » Tue Dec 15, 2009 7:55 am

Here is the info you need. Let me know if you have any trouble.
Attachments
picowine-1.0.0-src.tar.gz
Source for wine wrapper for the 2000 and 3000 series. PS2000 PS3000
(5.62 KiB) Downloaded 481 times
Erik
PICO STAFF
PICO STAFF
 
Posts: 52
Joined: Mon Oct 23, 2006 8:16 am
Location: Cambridgeshire, UK

Re: WiNE on Linux

Postby tfielden » Wed Dec 30, 2009 3:46 am

OK. So far so good. I installed wine-dev and after fixing line 40 of the ps2000wine.c file to read "else" instead of "elif" it compiles just fine and installs. But...

I put in the PicoScope CD and call %> wine Pico.exe
eventually I'm asked for the "Default Device Selection" and given an empty list of Devices to select from. That's the end of the road, of course.

How do I convince the installer to offer me a device choice?

Thanks, Tom
tfielden
Newbie
 
Posts: 0
Joined: Tue Dec 15, 2009 4:16 am

Re: WiNE on Linux

Postby Erik » Tue Jan 05, 2010 4:48 pm

If you can't install PicoScope5 under Wine, try to install it under Windows and copy the directory to Wine.

To make PicoScope5 use the wrapper rather than the windows .dll you can either delete the ps2000.dll and the ps3000.dll from the picoscope directory or create an override for the files.

See link for how to create overrides
http://www.winehq.org/docs/wineusr-guid ... -wine-main
Erik
PICO STAFF
PICO STAFF
 
Posts: 52
Joined: Mon Oct 23, 2006 8:16 am
Location: Cambridgeshire, UK

Next

Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest