4/18/2011 11:58 AM | |
Joined: 10/7/2005 Last visit: 9/2/2024 Posts: 3018 Rating:
|
Hello PowerTags When using temporary variables, remember that they are only valid within the relevant block or are only available as previous local data for other blocks called in this block.
|
Last edited by: fritz at: 4/19/2011 1:50 AMLast edited by: fritz at: 4/18/2011 12:03 PMuploaded pic Last edited by: fritz at: 4/18/2011 12:01 PMfixed typos Cheers |
|
This contribution was helpful to
8 thankful Users |
6/22/2011 12:11 PM | |
Posts: 1 Rating:
|
Hi PowerTags, As fritz mentioned , you should not use temporary variables for Set or Reset or to latch something. Temporary variables are really temporary meaning they just work in one cycle and for the next cycle they won't keep the values! It could be really misleading in a way that they could work sometimes and not some other times. As I checked your program , in FC70 you are using temp variable (latchit) or (SetIt) to store memory which is not correct. If you want to use FC and have memory like this you need to use IN_OUT variable instead. Temporary variables are just usable for cases where you use the result in the same cycle! For example you can add to values and store it in a temp variable, temp1, and use temp1 in next network to convert it to "Real" for example. Please let me know if your need more help. Best Mostafa Samadimaleh |
Last edited by: Mostafa.Samadimaleh at: 6/22/2011 12:16 PMLast edited by: O_Moderator at: 6/22/2011 12:12 PMcontact data deleted |
|
Follow us on