@Sheepings I am not sure what you mean by run the loop in a new thread.
I assumed it would just be made after the port is opened similar to what I did with the DataReceived handler. I then complete more actions in the Handler function like this:
The same thing is not working for the...
@Skydiver Are you suggesting that my form will eventually turn red? Am I using the ErrorReceivedHandler in the correct way for what I am trying to detect or is there a better solution?
Ideally, i would use something as simple as but I don't know if anything like that exists:
if...
So I have a C# windows form application with a GUI that allows me to connect to an Arduino via a Bluetooth Serial connection and I want to turn the GUI background RED when the connection is broken.
I have created an ErrorHandler in my connectToArduino function but it does not seem to be working...
Using a Win 10 BT terminal from the app store worked and allowed me to send data from PC to Teensy so I believe there is something wrong with my C# code. My code freezes on the BTSend.Write line everytime I run it. This is what I have:
Teensy:
#define HWSERIAL Serial1
void setup() {...
I am attempting to send data from a C# GUI to the Teensy 3.2 via the Bluetooth port on my PC but am having no luck. The data transfer is working in the opposite direction (sending data from Arduino to C# GUI). I am using the Bluetooth port on Putty to try to see the "test string" but am getting...
@Skydiver I am getting my test array from the Basler SDK.
IGrabResult grabResult = camera.StreamGrabber.RetrieveResult(5000, TimeoutHandling.ThrowException);
using (grabResult)
{
// Image grabbed successfully?
if (grabResult.GrabSucceeded)
{
test = grabResult.PixelData...
@Sheepings Completely different is a stretch, I was using a slightly different approach to find the R,G,B pixels of the Bayer image but everything else was the same. Besides, the posts were asking different questions. I deleted my SO question because I solved the problem. I am now stuck on...
I am having a lot of trouble converting a BagerBG8 byte array to RGB and then populating the RGB image into a pictureBox. I believe the code below solves the transformation to RGB but I cannot get that new byte array to fit inside the pictureBox.
int src_width = 3840;
int src_height = 2748...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.