marcos.placona
Senior Member
So I've created this very basic C# application that simply sends data to a Picaxe 08m and activate some outputs according to what's received
I've been a long time outside of the "Picaxe Land" due to a number of factors, and am trying to catch up again.
What my Picaxe code is does is:
Pretty standard as you can see, I use "data" as my check point, so I know what's to be read and check for b1's value. In case it's equal 3, I'll set my output 2 to high
On my C# side of things, I have an interface with a button that will send "data3" when clicked.
It's also using a baudrate of 2400 and hooked to COM1 (same port as my picaxe)
Two things I'm finding difficult here is that as far as I could see, there's no way to check on the terminal what my C# application is sending, as whenever I try to open the terminal once my C# application is open, I get an error saying the port is already in use
Another thing is that if I try to serout 1,2400,(b1) right after I serin on the code, I get a lot of gibberish, and I only get this in case I remove the ("data") from my serin
I'm sure I'm doing something stupid here, but could anyone please give me a hand as per why my output 2 never goes high?
Thanks in advance
UPDATE: Just think it's important to mention that I've already scavenged the forum looking for answers, and couldn't find much regarding C#
I've been a long time outside of the "Picaxe Land" due to a number of factors, and am trying to catch up again.
What my Picaxe code is does is:
Code:
Do
SerIn 1,2400, ("data"),b1
if b1 = 3 or b1 = "3" then
high 2
end if
Loop
On my C# side of things, I have an interface with a button that will send "data3" when clicked.
It's also using a baudrate of 2400 and hooked to COM1 (same port as my picaxe)
Two things I'm finding difficult here is that as far as I could see, there's no way to check on the terminal what my C# application is sending, as whenever I try to open the terminal once my C# application is open, I get an error saying the port is already in use
Another thing is that if I try to serout 1,2400,(b1) right after I serin on the code, I get a lot of gibberish, and I only get this in case I remove the ("data") from my serin
I'm sure I'm doing something stupid here, but could anyone please give me a hand as per why my output 2 never goes high?
Thanks in advance
UPDATE: Just think it's important to mention that I've already scavenged the forum looking for answers, and couldn't find much regarding C#