EEPROM/FLASH dspMIAC

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: EEPROM/FLASH dspMIAC

Post by gavo4 »

Still no luck...I now can't read card 1 (showing the 3 infront) and it also keeps running in a loop,

Regards,

Gavin

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: EEPROM/FLASH dspMIAC

Post by LeighM »

Can you post your latest program?

Please check the Yes No of the new decision icon, they are swapped from normal.

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: EEPROM/FLASH dspMIAC

Post by gavo4 »

Hi Leigh,

Please see attached,

Looks the data is not written to Save_Data for the exception of B0[0]

Regards,

Gavin
Attachments
TAG+Reader+E3 LM.fcfx
(30.57 KiB) Downloaded 239 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: EEPROM/FLASH dspMIAC

Post by LeighM »

It might be a good idea to step through your program in the simulator.
After stepping over the read string from uart you can use the watch variables to edit the string to whatever you want to test all the options and check that the program is executing as you expect.

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: EEPROM/FLASH dspMIAC

Post by gavo4 »

Hi Leigh,

Ok I have it working now doing something different which I have attached, only problem is I need card 1 then card 2 etc I can't randomly choose a card which is a major problem for me, at least now it saves the data.

I still can't understand why it is doing what it is in the previous routine, it just does not make sense?, it keeps running in a loop before it can save any data?

Regards,

Gavin
Attachments
TAG+Reader+E4 LM.fcfx
(20.23 KiB) Downloaded 243 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: EEPROM/FLASH dspMIAC

Post by LeighM »

Glad to hear it's working now, and you are nearer to what you want.
Do you mean you need to detect card 1 after a previous detect of card 1?
If so, sounds like you need a timer and a flag, that is cleard when card detected (string input), then set it again after a timeout.
Then if you get a string input and the flag is set you know it's a new event.
This is assuming you are getting multiple string inputs whilst the card is present.
You probably need to think a bit more about your overall program flow.

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: EEPROM/FLASH dspMIAC

Post by gavo4 »

Hi Leigh,

I tried the attached, seems to work but still very buggy....

Regards,

Gavin
Attachments
TAG+Reader+E4 LM.fcfx
(21.7 KiB) Downloaded 236 times

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: EEPROM/FLASH dspMIAC

Post by gavo4 »

Hi Leigh,

Ok thanks!,

Sounds like what I need, I need to detect any card that has a "3" in it regardless of the position, do you have an examples of the timeout routine and flag that I could study?, or an example of what it should look like?

Regards,

Gavin

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: EEPROM/FLASH dspMIAC

Post by gavo4 »

Hi Leigh,

I have just seen something very, very strange, please see attached, same code for the exception of the adding calculation for .idx_1 on the No side of the Decision. It's now not saving and doing exactly the same as the last first code which i still can't seem to understand why it does not work?, basically when I swipe the tag it saved the data and then goes back into a loop showing the position of the Card number for example D3DD0B1E will show 2 on the Display Cursor of 0.0 and it keeps going back there showing 2 without the tag being swiped?

I have no idea why it is doing this?, would you know why?

Regards,

Gavin
Attachments
TAG+Reader+E5 LM.fcfx
(21.81 KiB) Downloaded 234 times

gavo4
Posts: 92
Joined: Sat Aug 25, 2018 7:58 pm
Been thanked: 8 times
Contact:

Re: EEPROM/FLASH dspMIAC

Post by gavo4 »

Hi Leigh,

This one attached looks really good!, lots of Macros but at least it looks good!,

My apologies for all the messages

Regards,

Gavin
Attachments
TAG+Reader+E6 LM.fcfx
(26.03 KiB) Downloaded 237 times

Post Reply