Poll

Interested/Instrument/Interface

Yes,3458A,GPIB
17 (23.9%)
Yes,3458A,Prologix
10 (14.1%)
Yes,K2001/K2002,GPIB
11 (15.5%)
Yes, post type of instrument and type of interface (GPIB,Prologix,USB,LAN, RS232)
29 (40.8%)
Not interested, why?
4 (5.6%)

Total Members Voted: 44

Voting closed: December 13, 2016, 11:12:53 am

Author Topic: Raspberry Pi2/3 logging platform for Voltnuts  (Read 75814 times)

0 Members and 1 Guest are viewing this topic.

Offline dkozel

  • Regular Contributor
  • *
  • Posts: 115
  • Country: gb
Re: Raspberry Pi2/3 logging platform for Voltnuts
« Reply #375 on: December 05, 2018, 11:46:40 am »
Ha, managed to miss this thread completely over the last week while setting up a pi to do 3458A data logging. Oops.

As for linux-gpib, I agree that it's been a little involved to get setup. I did a bit of work over the weekend and have made Debian packages for the kernel module and userspace library. I need to make one for the firmware and then do a bit of polishing, but it should be available in the next Debian and Ubuntu releases through apt. Rasbian builds their packages from the Debian repo but since this has a kernel module I'm guessing there'll be some additional work needed.

In the meanwhile I'm in the middle of pushing the packages to a PPA so it will be available for at least 16.04 onwards. The link below should work in the next day or so.
https://launchpad.net/~dkozel/+archive/ubuntu/linux-gpib
 
The following users thanked this post: bitseeker

Offline philipz

  • Contributor
  • Posts: 20
  • Country: bg
Re: Raspberry Pi2/3 logging platform for Voltnuts
« Reply #376 on: May 06, 2019, 03:42:04 pm »

After image recovery run
Code: [Select]
curl https://raw.githubusercontent.com/PlesaEEVBlog/RPi_LogNut/master/Install_GPIB_Support.sh | sudo bashFor settng web and Samba
Code: [Select]
curl https://raw.githubusercontent.com/PlesaEEVBlog/RPi_LogNut/master/Web_Samba.sh | sudo bash
Supported interfaces are Agilent 82357B, National Instruments NI GPIB-USB-HS and their clones eg. Keithley ones.Also the Ethernet GPIB gateway Agilent E5810A/B are supported and tested.
On github there are www and Python folders with multiple examples with D3.js and C3.js ( easier for configuration)

Only BME280 and DS18S20 supported, but adding support will be easy.
Plesa, Thank you for you hard work to make this project working.
I prepare sdcard today and there is some changes:
1. Current version of raspbian is 2019-04-08-raspbian-stretch with kernel 4.14.98+
2. linux-gpib-4.0.4 is not available any more. Please, update your script Install_GPIB_Support.sh to download  https://downloads.sourceforge.net/project/linux-gpib/linux-gpib%20for%203.x.x%20and%202.6.x%20kernels/4.1.0/linux-gpib-4.1.0.tar.gz and change according followed commands.
3. For script Web_Samba.sh change python-wxglade to wxglade (name was changed). During creation of directory in pub you made small typo and create 'log' instead of 'logs' .

I can confirm that this setup working fine with counterfeit 82357B and Raspberry Pi Model B Rev 2 and talk with Amrel PPS 30-2.5 .

Note for the other users - don't use
Code: [Select]
sudo rpi-update because it upgrade the kernel to 4.19.37+, but apt-get still download 4.14.98+ source and compilation of linux-gpib finish with errors.
 
The following users thanked this post: bitseeker, alm, velik_kazakov

Offline branadic

  • Super Contributor
  • ***
  • Posts: 1487
  • Country: de
Re: Raspberry Pi2/3 logging platform for Voltnuts
« Reply #377 on: July 11, 2019, 01:17:15 pm »
Hi,

with the support of Santa's little helper I was able to get RPi3 up and running with linux-gpib and GPIB-USB-adapter. I can strongly recommend this solution and have to say thanks to the guys that helped not only to get the adapter running, but also snake script controlling GPIB devices and serial interface for my ambient sensors.  :-+
My tool chain is RPi3 running the Python script in the background, which writes all data I need into a file, Bitwise on my Windows10 laptop to grap latest data via SSH and control RPi and GNU Octave on my Windows machine to visualize data with nice plots. So a complete open source solution/tool chain. I won't become a Python fanboy, but it's doing it's job reliable by now.

-branadic-
Fluke 8050A | Prema 5000 | Prema 5017 SC | Advantest R6581D | GenRad 1434-G | Datron 4000A | Tek 2465A | VNWA2.x with TCXO upgrade and access to: Keysight 3458A, Keithley 2002, Prema 5017 SC, 34401A, 34410A, Keithley 2182A, HDO6054, Keysight 53230A and other goodies at work
 
The following users thanked this post: TiN, 2N3055, MiDi

Offline MiDi

  • Frequent Contributor
  • **
  • Posts: 293
  • Country: de
Re: Raspberry Pi2/3 logging platform for Voltnuts
« Reply #378 on: July 11, 2019, 03:12:12 pm »
Note for the other users - don't use
Code: [Select]
sudo rpi-update because it upgrade the kernel to 4.19.37+, but apt-get still download 4.14.98+ source and compilation of linux-gpib finish with errors.

NEVER do this if not needed and unless you know what you are doing:

Quote
The rpi-update utility will download the latest (unstable, testing) kernel.
A good reason for using this would be if you like to help with the testing effort, and are happy to risk breakages and submit bug reports.

If you need to update Kernel (there should be good reasons to do that), this would be recommended:

Quote
sudo apt-get update && sudo apt-get install --reinstall raspberrypi-bootloader raspberrypi-kernel

@branadic which Version of Linux-gpib have you installed?
« Last Edit: July 11, 2019, 03:28:42 pm by MiDi »
 

Offline branadic

  • Super Contributor
  • ***
  • Posts: 1487
  • Country: de
Re: Raspberry Pi2/3 logging platform for Voltnuts
« Reply #379 on: July 11, 2019, 04:26:57 pm »
Quote
@branadic which Version of Linux-gpib have you installed?

LINUX-GPIB 4.2.0 Driver

-branadic-
Fluke 8050A | Prema 5000 | Prema 5017 SC | Advantest R6581D | GenRad 1434-G | Datron 4000A | Tek 2465A | VNWA2.x with TCXO upgrade and access to: Keysight 3458A, Keithley 2002, Prema 5017 SC, 34401A, 34410A, Keithley 2182A, HDO6054, Keysight 53230A and other goodies at work
 

Offline MiDi

  • Frequent Contributor
  • **
  • Posts: 293
  • Country: de
Re: Raspberry Pi2/3 logging platform for Voltnuts
« Reply #380 on: July 11, 2019, 04:41:38 pm »
There are several bug fixes and improvements in current (dev) repository, but if you do not encounter any problems with 4.2.0 there is no need to follow the complicated way.
« Last Edit: July 11, 2019, 04:44:52 pm by MiDi »
 

Offline picburner

  • Regular Contributor
  • *
  • Posts: 204
  • Country: it
Re: Raspberry Pi2/3 logging platform for Voltnuts
« Reply #381 on: October 03, 2019, 04:15:51 pm »
Has anyone tried to install the new Linux-GPIB 4.3.0 drivers?
 

Offline branadic

  • Super Contributor
  • ***
  • Posts: 1487
  • Country: de
Re: Raspberry Pi2/3 logging platform for Voltnuts
« Reply #382 on: November 14, 2019, 03:26:46 pm »
Hi,

with a little help of a voltnut I got the latest GPIB driver 4.3.0 up and running on a RPi4 with EEPROM update, so power consupmtion and CPU temperature already dropped.

A very nice solution for longterm logging and visualization is the installation of the TICK stack (or at least influxdb plus Chronograf), saving time series data such as output of a voltage reference together with ambient sensor data into an influxdb database, a time series database (TSDB). Chronograf can be used to get fast access to the data and to plot them, without any line of code.
Here is how you install the stack: https://iotbyhvm.ooo/tick-satck-on-raspberry-pi/ I can share python skript and how to's to get it up and running.

Simply use a browser, enter the database directly on the system, drag and drop the graphs you need. Or access the data from any other computer in the network with a browser. I have nice little 10" displays 1280x800 all over the place to show what's going on during measurements or inside temperature controlled labs. We now have multiple systems up and running and also added an OPCUA server based on free opc ua (https://github.com/FreeOpcUa) so that data are also available over an industrial standard interface in a bigger network or if you prefer for AI based analysis.

It's fairly simple especially for people not experienced with Linux. I strongly recommend this solution and it is running stable.

-branadic-
Fluke 8050A | Prema 5000 | Prema 5017 SC | Advantest R6581D | GenRad 1434-G | Datron 4000A | Tek 2465A | VNWA2.x with TCXO upgrade and access to: Keysight 3458A, Keithley 2002, Prema 5017 SC, 34401A, 34410A, Keithley 2182A, HDO6054, Keysight 53230A and other goodies at work
 
The following users thanked this post: picburner, bitseeker, 2N3055, MiDi, Inconel-oh-el


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf