?
Solved

How to detail a process in C Sharp

Posted on 2012-06-26
3
Medium Priority
?
280 Views
Last Modified: 2016-05-20
I am working on application that write and read information from/to a PLC.

The problem is that PLC1 read the information from PLC2. The data in PLC2 is written by a robot that is transporting pallets with finish goods. ones the pallets are drop in the new conveyor, the data is writen in PLC2 and the PLC1 read from it. The time to copy this information is really small, the size of this data is 400 kb.

The problem here is that the network is to slow and PLC1 does not have enough time to copied all the data.

I am thinking is delaying the process one second right after the data is writen.

what would you recommend?  timer, counter, process delay?

thank you
0
Comment
Question by:iscivanomar
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
thiagossrs earned 1600 total points
ID: 38127537
That depends how the data is being transferred.
And if the thread can hang for some time.

But i think the easiest way would be to make the thread wait for a second...

System.Threading.Thread.Sleep(1000);
0
 

Author Comment

by:iscivanomar
ID: 38127675
thank you, it is what I did.
0
 

Author Closing Comment

by:iscivanomar
ID: 38127677
Thank you, it worked.
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Free Data Recovery software is an advanced solution from Kernel Tools to recover data and files such as documents, emails, database, media and pictures, etc. It supports recovery from physical & logical drive after a hard disk crash, accidental/inte…

589 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question