I have try separate the ui thread processing from data thread processing. The display log in main window updates now but still slower compared with same program running on other laptops which show fast and smooth update on display log. It may be that particular laptop has OS/program priority...
yes. that is because ProcessMessage does the decoding and parsing of raw data.
Invoke calls via Timer is for chart plotting.
Is there any way to better this?
Please advise .
Chee Wai
Ok.. Is the following method to exchange data between a thread running on sub form and main form ok?
public byte[] HS1_data // (on HS1 form)
{
get { return HS1_Message.data; }
set { HS1_Message.data = value; }
}
public bool HS1_canRead
{
get { return HS1_Message.msg_avail; }...
Sorry, To add on,
The slow down occurs WHEN NONE of the forms are clicked and held on. Clicking and holding onto ANY ONE FORM (either MAIN FOR or ANY OF THE SUB FORM DOING THE CHART PLOT) will cause things to go back to normal (smooth continuous update of message count in the main form and...
Hi All.
I have encountered a weird problem as follows:
I am running C# Win Form app build with Visual Studio Community 2019.
The main form will be constantly receiving CAN messages via USB-CAN adaptor using DLL file provided by CAN manufacturer.
I clicked a button to select which particular...
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.