ScopeFun

by ScopeFun

Open Source All-in-One Instrumentation

View all updates Jul 19, 2019

Taking Measurements Remotely

by Dejan Priversek

ScopeFun allows you to control its hardware and take remote measurements from nearly anywhere. In this update we will look into the client-server architecture that makes this possible.

ScopeFun Client-Server Setup

To setup a remote connection, we will run a server application on the computer connected to ScopeFun.

On the client side, the ScopeFun software must be setup to connect through that server application.

After you select the client-server option, your client will search for a server application on the configured IP address and port. Once a connection is established, the server works as a bridge and transparently handles all communication between connected clients and the ScopeFun hardware. The server allows multiple connections simultaneously, so all connected clients can control the hardware and receive data from it.

Using the Python API to Create a ScopeFun Server

The Python API provides another way to connect to ScopeFun. By creating a simple Python server, we can extract data using a Web browser.

On the server side, we have implemented a Python script that reads samples from the ScopeFun oscilloscope and formats the samples into a JSON array. This allow a simple exchange of data between the server and a Web browser. On the client side, we have incorporated JavaScript code into an HTML page that polls data from the server and displays them in a browser.

The following image shows how those data are rendered:

About the Author

Dejan Priversek


$35,100 raised

of $29,500 goal

118% Funded! Order Below

Product Choices

$750

Aluminum ScopeFun

A ScopeFun board in a custom made aluminum enclosure. USB cable included. All units will be delivered pre-calibrated.

Credits

ScopeFun

We make high-end, open source instrumentation.


Dejan Priversek

David Kosenina

Subscribe to the Crowd Supply newsletter, highlighting the latest creators and projects: