I don't have time to help with coding but my advice is to pay $100 for PureBasic which runs on Windows, Linux & OSX and creates small, fast, standalone executables.
I don't have time to help with coding but my advice is to pay $100 for PureBasic which runs on Windows, Linux & OSX and creates small, fast, standalone executables.
Are you sure?
awaiting the long-promised Tibbo EM500/GA1000 firmware) and need something to do this afternoonLooked at it, also real basic and liberty basic. Nothing wrong with any of them and I have no issue paying for the software. But to get started in windoze apps, I figured I may as well use windoze software. For this adventure I have no need for cross platform deployment.but my advice is to pay $100 for PureBasic which runs on Windows, Linux & OSX and creates small, fast, standalone executables.
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Well no really I can't just yet. Haven't figured out how - LOLYou could use the timer
@Walter, what you suggest makes the Pic the master and the PC the slave. I guess that works just fine. Although I suppose if I put some code in the pic to be on continusely or to be polled, that would still let the PC be in charge. Then the pic can just watch for the "stop sending data" command.
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Yeah - while patiently waiting for the long-promised Tibbo EM500/GA1000 firmware, I'm filling the time adding one more ConnectOne WiFi module to the Amicus18/Arduino/Xino shield. Any of three modules - 2 WiFi, 1 NoFi can be plugged into it. (I hope I have room for the EEPROM mackrackit's going to fill with AT codes.)
Last edited by dhouston; - 30th May 2011 at 18:26.
Dave, did you check your spam folder? Sometimes when I am long awaiting stuff, I find it went there. Hahahaha.
Group- I feel like my interpretation of Walters post is prolly the best overall solution, but my root problem remains.
How to setup a timer trigger? Maybe it is in the control toolbox? I will check there next.
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Select the TIMER control from the toolbox and drag it into your project. Click on the control to display its properties. Enable the TIMER and set its interval to whatever you want (in mS) - see below.
Then code whatever you want to happen whenever a trigger occurs as in the example below.
Code:Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick count = Val(Label1.Text) * 100 count = count + 1 HScrollBar1.Value = count Label1.Text = Format$(count / 100, "#0.00") NumericUpDown1.Value = count / 100 count = Val(Label3.Text) * 100 count = count + 1 HScrollBar2.Value = count Label3.Text = Format$(count / 100, "#0.00") End Sub
Why pay for overpriced toys when you can have
professional grade tools for FREE!!!
Oh thank you rmteo! I had just found the timer, but didn't get the interval part. That works awesome!!
Ok, now to convert those 2's complimented numbers to show negative values instead of 65533 and such.
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Hi cncmachineguy;
To receive data from the serial port you should always use SerialPort Event Trigger like the one i posted.
Don't use timers to poll the serial port, it is not very efficient!!Code:Private Sub DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived Dim recepcao As String recepcao = SerialPort1.ReadExisting If recepcao = "%TE" Then GetCursorPos(rect) SetCursorPos(rect.X - 1, rect.Y) End IF End Sub
If you want to send data to PIC, like a press of a button, then you can use the timer. just put the code that you have inside the button, inside of the timer, and choose the interval!
I wrote this post in a little hurry, later i have more time and i came back here!
Thanks and Regards;
Gadelhas
Bookmarks