Oscilloscope Features of FlowKIT

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.

Moderators: Benj, Mods

Post Reply

Please rate this article out of 5: (1 being the worst and 5 being the best)

1
0
No votes
2
0
No votes
3
1
20%
4
0
No votes
5
4
80%
 
Total votes: 5

User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Oscilloscope Features of FlowKIT

Post by Steve »

The FlowKIT device comes with a large USB microcontroller to control the USB functionalities of the device. As well as performing the main functionality there is some free memory on these USB chips and a lot of free I/O pins so we have created a very basic scope interface to add to the capabilities of FlowKIT. Basically we have provided connectivity for up to 12-digital channels and 2 analogue channels to be monitored and logged. This allows you to gain a further insight into what is actually happening on the hardware and can also be used to investigate how different bus technologies work.

For now, the scope capabilities are fairly low level but we feel that the software would be better out in the public rather then locked away awaiting a full-scale development upgrade. Therefore, here is the public release of the front-end software to drive the scope functionality.

To work with the scope all you have to do is plug in your FlowKIT to the USB and then select the device from the drop down list. Any compatible devices that are connected will be automatically added to the list. The open and close buttons allow a connection to the device to be established or terminated. Remember to open the device before you start using it and to close the device before you use it for ICD. Once you have opened a particular device you can use the user interface to specify the channels to sample, the drawing style of the output and the time period of the sampling. If you are sampling at a high speed or over a long period of time then you may need to use the log functionality to keep track of the data so you can view it later.

The Rate control handles how quickly FlowKIT samples where as the Time/Div control handles how the data is plotted on to the application.
OSC01.png
(21.39 KiB) Downloaded 6739 times
The Log check box will enable a write to a text file named “output.log” which lives in the same folder as the scope application. Each line of the log file contains the transaction between the USB PIC device and the computer. This allows you to see how much data is coming in on a single transaction. To modify the log file for use with a plotting program like Excel you can use a free text editor such as TextPad or Notepad++ to search and replace the following.

Firstly ensure you have regular expression enabled and then perform the following search and replace functions.

1) Search for \n and replace with nothing. This gets rid of all unwanted new lines.
2) Search for , and replace with \n. This replaces all commas with new lines to allow for unlimited amounts of data.
OSC02.png
(7.73 KiB) Downloaded 6739 times
This allows the output to all be all on one single column and therefore will create a constant stream of data of any length to be used with Excel. If the commas are left in then there is a limit on how many columns you can use with Excel. This limitation however does not exist with rows. Once you are done simply rename the file extension from .log to .csv and the file will open directly into Excel. Please note that this will only work for a single analogue channel or a single bank of digital channels.
OSC03.png
(119.31 KiB) Downloaded 4707 times
Attachments
ICDScope.zip
FlowKIT ICD Tool Scope files
(870.02 KiB) Downloaded 750 times

whem
Posts: 1
Joined: Mon May 24, 2010 2:01 pm
Contact:

Re: Oscilloscope Features of FlowKIT

Post by whem »

I have a little problem when i want to use this program . It give me the next message :" EB006 board with firmware version 2.2 are not supported for scope function! ".

My board is a EB-006-00-7

wath can i do to solve this problem ?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Oscilloscope Features of FlowKIT

Post by Benj »

Hello Whem,

The Scope functionality only runs on the FlowKIT sorry about this.

EtsDriver
Posts: 444
Joined: Tue Apr 15, 2014 4:19 pm
Location: Kajaani, Finland
Has thanked: 345 times
Been thanked: 227 times
Contact:

Re: Oscilloscope Features of FlowKIT

Post by EtsDriver »

Sorry for raising again pretty old topic.

Tested this today, and works fine with EB-006-8 and i think it runs fine on EB006-0-9 too =) Flowkit is coming in next weeks and ill see about it. Only bad thing is that after closing scope tool and trying to send program to target, you have to powercycle the EB006, otherwise the mLoader returns Bad response error when trying to send program (This happened when i was stepping program with ICD, and later i confirmed this happens with ICD disabled too.)
Attachments
Sieppaa.PNG
(21.78 KiB) Downloaded 4906 times
Ill just keep the good work up!

Post Reply