01-18-2008 09:05 AM
I am sorry.
my program is connect to a machine wth TCP/IP at the beginning so it can't run with connection.I Just design my program step by step and I have made it very large.
KIM
01-18-2008 09:21 AM
01-18-2008 09:34 AM
01-18-2008 12:22 PM - edited 01-18-2008 12:23 PM
01-18-2008 11:39 PM
01-19-2008 03:06 AM - edited 01-19-2008 03:12 AM
01-19-2008 09:19 AM
01-19-2008 09:37 AM - edited 01-19-2008 09:41 AM
01-19-2008 09:46 AM
Ton,
With the code snippet you posted, It is unless and It just for GOOD LOOK. ^^!!
It was developed on last month and i have just learnt Laview for two month ago.At last month, i did not know that it could affect my porogram running time. I will correct it later.
Thanks for your suggections^^!
KIM
01-21-2008 10:06 AM - edited 01-21-2008 10:06 AM
As Ton indicated, "the time delay should be connected between sending and receiving of the command". This means you have to use the error cluster to enforce execution order. This, again, stems from a lack of understanding dataflow. Take the following cases:
The "Time Delay" use to give time for the feedback of the machine. If there is not time delay, the result s incorrect. By my learning, Must the "time delay" connect to the command? or Just put inside the squence frame is OK?
You are actually converting them from a string to a number each time in the loop, which is Ton's point. Also, they don't change after you've read them, so there's no point in reading the value through a local variable, because the value doesn't change until the next time you perform a TCP Write.
Yes. Coeff A & Coeff B is easy to store because they are constant.However, I just need to convert only once.
My program is a REAL TIME monitoring system so there are some coefficient are constant and some are changing every second. I need to convert then with while/for loop.
All jokes aside, Ton's point is an important one, as it reiterates the point about understanding dataflow, which is clear you do not.
With the code snippet you posted, It is unless and It just for GOOD LOOK. ^^!!
If I had a nickel for everytime I heard that, and it actually happened, I would be retired and living in luxury already.
I will correct it later.