Page 1 of 1

Using ICD. Issues with variables not displayed correctly

Posted: Sat Jun 02, 2012 9:22 pm
by medelec35
Developing a burglar alarm for Miac.

The idea is to store a Pass code in within string (from 1 to 8 Characters)
first with ICD connected program is working as intended, but the variables within Flowchart are not displayed correctly. Variables affected are array types (string and non string types).
E.g with Pass_Code_String = "1234"
Correct 1234 is shown on the bottom line of LCD, but on flowchart string is shown as empty. String variable is correctly assigned when ICD is disabled.

Please note: burglar alarm is work in progress, and does not yet function as a burglar alarm.
Incomplete flowchart is posted to demonstrate array issue only.

Edit: Opps, posted wrong flowchart.
Correct one is called Burgular alarm String ICD.fcf
Burgular alarm V1A.fcf has:

Code: Select all

Get_Key = Get_Key + 1
in wrong location.

Re: Using ICD. Issues with variables not displayed correctly

Posted: Sun Jun 03, 2012 7:53 pm
by JonnyW
Hi Martin. I'll take a look at this on Wednesday when we're back at work. I'm sure strings and array values are tested OK in ICD mode but maybe I missed something.

Does a specific index of a string or array display correctly? string[2], for example?

Jonny

Re: Using ICD. Issues with variables not displayed correctly

Posted: Mon Jun 04, 2012 12:38 am
by medelec35
JonnyW wrote: Does a specific index of a string or array display correctly? string[2], for example?
Hi Jonny,
All byte arrays show 0 when assigned to a non 0 number.
All string arrays just show "" when assigned with a number.
ICD Result1.png
(42.77 KiB) Downloaded 1463 times
Martin

Re: Using ICD. Issues with variables not displayed correctly

Posted: Mon Jun 04, 2012 10:11 am
by medelec35
Since I was using Miac,
I also tried with EB006:
ICD Result2.png
(142.87 KiB) Downloaded 1454 times
This time an 8 is placed in ADC[0] & 3 within the string
If all power including USB is removed then reconnected.
Then all values were cleared.

Martin