Trying to break my VB habit...

Started by Robert Eaton, November 10, 2009, 01:44:40 PM

Previous topic - Next topic

Robert Eaton

Paul,
Yes that did the trick!  ;D
Thanks,
Bob

Stephane Fonteyne

Robert Eaton

Can you written this VB application for PBWin Developers. I would like to create the same in the form of an oscilloscope?

Do you have code that you can share for applications that send en control data via the RS232 communication to an PBWin application with an FF3 user interface?

Thanks
Stephane
Stephane Fonteyne
Ba. Elektronica - ICT
GSM : +32-xxxxxxxxxx
PowerBasic Developer & Hardware Support

Rolf Brandt

Stephane,

look on the first page of this thread. Near the bottom of the page Robert has the source code for download.
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Robert Eaton

Stephane,
I'm not sure exactly what you are trying to do. I have several VB applications that draw curves, but not in "real time" like an oscilloscope. The Fgrid control is the start of trying to port one of these applications into FF3/PBwin.

The first VB application screen shown in this thread connects to a Fluke RF generator through a National Instruments GPIB port and also to an Audio Precision analyzer (using OLE). The application I am currently working on with Fgrid will connect to a TEF analyzer for TDS (Tiime Delay Spectrometry) that will be used for end of line production testing of audio products. In this case the communication is over a USB port using a custom DLL purchased from the company that makes the analyzer.

Both of these applications are written in VB but the drawing code is done in a PB DLL, the drawing is done in a VB PictureBox control.

The Fgrid control doesn't have the curve drawing routines in it yet. For that I use the API Polyline routines just like is already in the Fgrid control only with more points. I would imagine this would also work for an oscilloscope type display.

I don't have much experience with RS232 except for simple relay controls, but there should be examples of using RS232 on the PBwin forums.