User Profile
Collapse
-
The thing is I kinda need to poll the serialport. After every time it returns data, I need to run code in the original polling thread to basically reboot it. Lastly, I kinda need to poll it since the data doesnt come all at once. The serialdata doesnt all arrive at one time - sometimes the hardware will take up to five data dumps before its complete. This made it a pain before when I was simply using serialdata events to trigger processing. The thread... -
How to create a separate thread to process events?
Here is my problem. I have a thread which constantly polls a piece of hardware's serial output. Every time it detects a certain serial sequence, it triggers an event handler wherein I have code which processes said sequence.
The problem is that the processing is quite time intensive. I noticed that when the program is in the event handler, the hardware is not being polled. If possible, I would like the processing and polling to happen... -
Any help here? Would really appreciate any input. This has been bugging me for days already. Thanks in advance.Leave a comment:
-
Importing Custom Types from DLL into C#
Good day sirs,
I am currently working on creating windows GUI software for a hardware device. The hardware's functions are stored in a DLL. Here is the structure for a function I need to import
Code:CustomType CustomFunction (CustomType1, CustomType2)
No activity results to display
Show More
Leave a comment: