Custom Code problem with v4 flowcode
Moderator: Benj
-
- Flowcode V4 User
- Posts: 61
- Joined: Tue Feb 01, 2011 7:21 pm
- Has thanked: 3 times
- Been thanked: 1 time
- Contact:
Custom Code problem with v4 flowcode
Hi,
Anyone had any issues regarding custom codes.
I had a custom code done for me by Ben Rowland and have updated flowcode a few times since then, why when I place the custom code in flowcode directory I cannot see it ?
The current version of flowcode starts with "PIC" my custom code I had done just starts "custom" , tried using the "PIC" prefixing the name and flowcode would not even stay open, just shuts down when I try to use the custom code ??
Many Thanks
James
Anyone had any issues regarding custom codes.
I had a custom code done for me by Ben Rowland and have updated flowcode a few times since then, why when I place the custom code in flowcode directory I cannot see it ?
The current version of flowcode starts with "PIC" my custom code I had done just starts "custom" , tried using the "PIC" prefixing the name and flowcode would not even stay open, just shuts down when I try to use the custom code ??
Many Thanks
James
- Steve
- Matrix Staff
- Posts: 3424
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
- Contact:
Re: Custom Code problem with v4 flowcode
Sounds like there is a problem with the custom code file. Please post it here and we'll have a look.
-
- Flowcode V4 User
- Posts: 61
- Joined: Tue Feb 01, 2011 7:21 pm
- Has thanked: 3 times
- Been thanked: 1 time
- Contact:
Re: Custom Code problem with v4 flowcode
Hi Steve,
The custom code is attached.
I am running version 4.5.18.74 flowcode
Thanks
James
The custom code is attached.
I am running version 4.5.18.74 flowcode
Thanks
James
- Attachments
-
- Custom_Code.c
- (19.89 KiB) Downloaded 216 times
-
- Flowcode V4 User
- Posts: 61
- Joined: Tue Feb 01, 2011 7:21 pm
- Has thanked: 3 times
- Been thanked: 1 time
- Contact:
Re: Custom Code problem with v4 flowcode
Hi,
I can't read the "C" file details on the pc at home, I'm running win7, at work I can see the details on xp ?
Don't understand the "start tag" command ??
Cheers
James
I can't read the "C" file details on the pc at home, I'm running win7, at work I can see the details on xp ?
Don't understand the "start tag" command ??
Cheers
James
-
- Posts: 258
- Joined: Wed Nov 29, 2006 6:32 pm
- Location: Finland
- Has thanked: 7 times
- Been thanked: 36 times
- Contact:
Re: Custom Code problem with v4 flowcode
HI.
I thin Steve means that this
Should be like this
You can open the c file, like notepad, you just need to choose program notepad to open files at c, or even better download Notepad++...
Mika
I thin Steve means that this
Code: Select all
/*Macro_SetFlash_End*/ //THIS IS WRONG!
cs_enable(cs);
command();
send(0);
send(0);
send(0);
send(0);
send(1);
send(0);
send(0);
if(flash)
send(1);
else
send(0);
send(0);
cs_disable(cs);
/*Macro_SetFlash_End*/
Code: Select all
/*Macro_SetFlash_Start*/ //IT SHOULD BE LIKE THIS!
cs_enable(cs);
command();
send(0);
send(0);
send(0);
send(0);
send(1);
send(0);
send(0);
if(flash)
send(1);
else
send(0);
send(0);
cs_disable(cs);
/*Macro_SetFlash_End*/
Mika
-
- Flowcode V4 User
- Posts: 61
- Joined: Tue Feb 01, 2011 7:21 pm
- Has thanked: 3 times
- Been thanked: 1 time
- Contact:
Re: Custom Code problem with v4 flowcode
Hi,
Thanks for that, but when I use the custom code the program "flowcode v4" closes, use any other component and it works fine.
Same on the both computers !
Help
Regards
James
Thanks for that, but when I use the custom code the program "flowcode v4" closes, use any other component and it works fine.
Same on the both computers !
Help
Regards
James
-
- Posts: 258
- Joined: Wed Nov 29, 2006 6:32 pm
- Location: Finland
- Has thanked: 7 times
- Been thanked: 36 times
- Contact:
Re: Custom Code problem with v4 flowcode
Try this component...
- Attachments
-
- Custom_Code (1).c
- (19.89 KiB) Downloaded 217 times
-
- Flowcode V4 User
- Posts: 61
- Joined: Tue Feb 01, 2011 7:21 pm
- Has thanked: 3 times
- Been thanked: 1 time
- Contact:
-
- Posts: 258
- Joined: Wed Nov 29, 2006 6:32 pm
- Location: Finland
- Has thanked: 7 times
- Been thanked: 36 times
- Contact:
Re: Custom Code problem with v4 flowcode
Just change the one row which Steve say, the code is above...
So I change this:
/*Macro_SetFlash_End*/
.....
/*Macro_SetFlash_End*/
to that
/*Macro_SetFlash_Start*/
....
/*Macro_SetFlash_End*/
Mika
So I change this:
/*Macro_SetFlash_End*/
.....
/*Macro_SetFlash_End*/
to that
/*Macro_SetFlash_Start*/
....
/*Macro_SetFlash_End*/
Mika
-
- Flowcode V4 User
- Posts: 61
- Joined: Tue Feb 01, 2011 7:21 pm
- Has thanked: 3 times
- Been thanked: 1 time
- Contact:
Re: Custom Code problem with v4 flowcode
Hi,
Yes I tried that but it would not work for me, and another thing the display is flashing all the time, the data is working and is displaying, just won't stop flashing ?? I have tried a few displays and they do the same, must be something else in the custom code or flowcode itself ??
Not sure really.
Thanks anyway
James
Yes I tried that but it would not work for me, and another thing the display is flashing all the time, the data is working and is displaying, just won't stop flashing ?? I have tried a few displays and they do the same, must be something else in the custom code or flowcode itself ??
Not sure really.
Thanks anyway
James
-
- Flowcode V4 User
- Posts: 61
- Joined: Tue Feb 01, 2011 7:21 pm
- Has thanked: 3 times
- Been thanked: 1 time
- Contact:
Re: Custom Code problem with v4 flowcode
Hi,
Forget the last thread, the flash command is all part of the configuration after studying it.
In the original custom code it did work, but the flash command did not, now I know why, when the custom code was done for me by matrix they had the flash code incorrect on the "start" command.
All is working now and happy once again until the next problem !
Cheers for all the input
James![Smile :)](./images/smilies/icon_smile.gif)
Forget the last thread, the flash command is all part of the configuration after studying it.
In the original custom code it did work, but the flash command did not, now I know why, when the custom code was done for me by matrix they had the flash code incorrect on the "start" command.
All is working now and happy once again until the next problem !
Cheers for all the input
James
![Smile :)](./images/smilies/icon_smile.gif)