Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 216329

Forum Post: RE: RE: General Purpose GUI

$
0
0

Ok, Xin, let’s try this:

 You want to show the user the values of eight variables over time.

 Since:

-          the rate at which these variables are being modified is 10,000 changes per seconds

-          the graph you showed me shows no more than 300 pixels

-          the user cannot make sense of the data if you update the graph with rate higher than 5 times per second.

 Let’s assume three times a second is a reasonable refresh rate for the graph.

That will give you a chance to display 3*300 = 900 samples in one second per variable.

It looks like you can only show 9% of all data on a 300 pixel graph with rate of 3 frames per second.

 

It is possible for you to modify the target to collect the variable on an array on the target.

If you can do that ( have enough memory) you can do some preprocessing on the target:

-          You can collect in one array element 11 samples – many be average, min or max.

-          You can collect in one array element one sample but will know that your graph will only show continuous 9% of the data.

 

So if you can modify your program and if you have enough memory to buffer data on the target, you can do your pre pressing on the target.

If you do so, you have much better control what you are showing to the user.

In that case you need to use LineGraph and bind to the array you buffer data on the target. Makes sure the array’s dimensions is rightly the number of pixels the graph shows.

 

If you can’t modify the target program, or if you don’t have enough memory to buffer data on the target then you can use ScalarGraph.

In ScalarGraph you bind to the original variable but you don’t really have much control how which samples will be skipped.

The ScalarGrpah will transfer only one variable and buffer and shift the data on the graph. You cannot achieve continuous samples in this case.

 

Please experiment with both options and see which fits you better.

 

For the other questions:

About finding documentation of GUI Composer – yes, there is no much yet, but the good news is that we are adding more.

Soon we will be releasing Code Composer Studio version 6 – I’d recommend you try experimenting with GUI Composer once it is available. I’ll let you know when.

For now don’t send me your projects – just try experimenting what I suggested today and see if you can make it work.

BTW means 'By the way' :) - don’t worry about it.

 

Regards

Dobrin

 


Viewing all articles
Browse latest Browse all 216329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>