VB programming help wanted! Plotting serial data.
June 14, 2010
Hi guys, I`m attempting my own low speed arduino oscilloscope but have hit a brick wall with my mediocre programming skills. The arduino program and input stage works fine, it`s the PC software thats killing me.
I`ve created a program that connects to the right port at the right speed, I can read the values from the serial port, and I have a panel which I can draw pixels on. When I click the button to start sampling I want to plot these points in pseudo-real-time on the panel but the problem is that you can`t draw on the panel from the function that reads the serial data. It`s hard to explain the problem and I don`t entirely understand it either but I think it comes down to ownership and that a function can`t mess with stuff that doesn`t belong to it.
This page explains it somewhat but I still don`t get it. Does anyone have any experience with VB or this kind of thing?