October 31, 2025, 07:38:02 AM

News:

IWBasic runs in Windows 11!


Custom Chart Library and Designer Question

Started by Techno, December 22, 2009, 07:21:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Techno

Larry

I'm licened user of your custom Chart Library and Designer. I found an very interesting libaray for creating maybe if that can create an virtual oscilloscope screen?

Is that possible with your library?


LarryMc

December 22, 2009, 07:52:08 AM #1 Last Edit: March 11, 2010, 06:52:59 PM by Larry McCaughn
The chart library has a y=f(x) chart type.

That's as close as it can get.

An O-scope is a plot function of voltage vs. time.

All my library does for a function is send a pixel based x value  (scaled to the user's x axis) to the user's function and the user's function returns the proper y value when the library scales properly for display.

It's up to the user to properly construct the nature of their function.

So if you created an array of x/y values with the x value being time having a value equal to the time for 1 pixel and having the y value be the voltage at that time you could probably have something that functioned like an o-scope

the problem might be the speed that you could update the values
If your scope was 800 pixels wide that is 800 values that would have to be updated very fast.  
If you wanted the chart to repaint every sec then all your data gathering would have to occur in less than that second.

I just don't know how well it would work out.

Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library