Using ICD. Issues with variables not displayed correctly

Moderator: Benj

Post Reply
medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Using ICD. Issues with variables not displayed correctly

Post 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.
Attachments
Burgular alarm String ICD.fcf
(21.67 KiB) Downloaded 231 times
Martin

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Re: Using ICD. Issues with variables not displayed correctly

Post 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

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Using ICD. Issues with variables not displayed correctly

Post 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
Martin

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Using ICD. Issues with variables not displayed correctly

Post 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
Martin

Post Reply