Menu

Use_NETV_with_Arduino

This page describes how to make a simple oscilloscope with the Arduino + [NetworkViewer]. The idea behind NetworkViewer is that we need to be able to monitor the internal states of micro-controllers while they are running to avoid breaking their real-time constraints. This demonstration maps 6 analog input variables shared with the [NETVProtocolStack] and serial protocol.

NETVArduino Library

We are in the process of officially distributing the sources. Here is the procedure if you want to try it :

  1. Checkout the Arduino library (with a SVN client)
    1. svn checkout http://svn.code.sf.net/p/openecosys/code/trunk/NETVProtocolStack/NETVArduino
  2. Click on "Arduino IDE/Preferences" and you will know the sketchbook location.
  3. Create a "libraries" directory in the sketchbook location.
    1. Probably in "Documents/Arduino/libraries"
  4. Uncompress the openecosys-NETVArduino.tar.gz archive in the libraries directory
  5. Compile & Upload the example : NETVArduino/NETVArduino_Analog

Connecting with [NetworkViewer]

You must download & install NetworkViewer first. Version 1.1.13alpha or higher required.

1) Select the SerialEmulator driver

  1. Click on "Configure"

2) Select your serial port

  1. Select the COM port to wich the Arduino platform is connected
  2. Set the speed to "115200"
  3. Click OK
  4. Click OK in the driver selection window.
  5. Done !

Using NetworkViewer

You should see the Arduino device with the ID = 200 with the title "NETVArduino_Analog".

 Note : The ID have been changed in updated version to 1.

1) Double click on the device to view a listing of variables. A new window will open with the variables listing and values.

2) Drag & Drop or double click on a variable name to display it to the scope.

3) The scope can display multiple variables at once.

4) You can do a lot more with NetworkViewer, please see the documentation. You might be interested in the scripting capabilities of NetworkViewer.

5) Enjoy!

Supported Platforms


Related

OpenECoSys-Wiki: NETVProtocolStack::SerialImplementation
OpenECoSys-Wiki: NETVProtocolStack
OpenECoSys-Wiki: NetworkViewer
OpenECoSys-Wiki: PIC32Dev

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.