01-21-2008 11:45 PM
01-21-2008 11:45 PM
01-22-2008 09:34 AM - edited 01-22-2008 09:36 AM
@kim515 wrote:Question : What is the different/effect of case A and Case B in the disgram? (attachment)
Will the running time different? or the memory problem??
You do not need a for loop to convert a string to a sequence of numbers. The following accomplishes the same thing, based on the example you provided earlier:
@kim515 wrote:In 'dB values Convection & Calculation', the for loop is required.
When i give a order to a machine, the machine provide a string of Hexadecimal string to me each cyclic.
The for loop is used to convert a string of Hexadecimal string to 4-bits Hexadecimal string and then convert them in to decimal number for calculation. (Result : a many number of 'dB's).
The while loop is used to get a string of Hexadecimal string from the machine continuouly(per second).Because it is real time system, the string of Hexadecimal string are not constant.
01-22-2008 10:05 AM
01-22-2008 12:50 PM - edited 01-22-2008 12:50 PM
01-23-2008 01:17 AM
Dear smercurio_fu,
Do you mean this while loop??(Attachment) If you mention this one, I explain to you now.
I want to create a program which look like a real electronic machine. It includes Power ON/OFF, monitor, value button, etc..
Therefore, I used this while loop in the power ON/OFF function. I can use this function to stop this program for a while which can instead of pressing "run" again to restart.
When it is true, the program can run continuouly. When it is false(Power OFF), the state only loop in this while loop and It looks like a Power Off state. All functions of the program look like stop until i switch to Power ON.
Is It a stupid method?? Because i Just know this method to do that.
So thanks for yours example. It is a good hint for for me but I have some commands which I don't know how to use it and its function. Can you tell me? I have circle them in the Attachment.
THANK YOU AGAIN~
Kim
01-23-2008 08:59 AM
01-23-2008 09:42 AM
01-23-2008 10:23 AM
01-23-2008 10:32 AM - edited 01-23-2008 10:42 AM