Search found 759 matches

by JonnyW
Mon Feb 10, 2014 8:15 pm
Forum: Flowcode V6
Topic: Can component
Replies: 7
Views: 4421

Re: Can component

Hello. I will raise a bug on the hex-conversion function, and we can make sure it handles 32-bit values in future releases. As a workaround you could always do: tmp_string = IntToHex$(id_word) can_string = IntToHex$(id_word >> 16) can_string = can_string + tmp_string This should give you your full 3...
by JonnyW
Sun Feb 09, 2014 11:09 pm
Forum: Flowcode V6
Topic: upgrade to ver 6
Replies: 10
Views: 5615

Re: upgrade to ver 6

Hello. I think I see the problem. Lines such as: if (FCL_NUMBYTES > Incoming_String_Length) These are incorrect. This is to do with a corruption in the components code. I have tried to recreate this issue here but with no joy - maybe this was due to a previous bug that has since been fixed. We have ...
by JonnyW
Sat Feb 08, 2014 10:28 am
Forum: Flowcode V6
Topic: RotateTO Rotate ALONG and other 3D
Replies: 9
Views: 7557

Re: RotateTO Rotate ALONG and other 3D

Hi. Sorry, I missed that. I will have a good look into these functions and ensure they all operate as expected. It is possible the GetEuler() has a bug - if so it is an easy fix I think. I will try to look through your examples today. I think I know what the problem will be anyway, and have a diagra...
by JonnyW
Fri Feb 07, 2014 9:36 pm
Forum: Flowcode V6
Topic: upgrade to ver 6
Replies: 10
Views: 5615

Re: upgrade to ver 6

Hello. I am not aware of any issues with the USB component or the generated code in 6.0.4 (though obviously there is something up). I might get a chance to look into this over the weekend, other than that it will be Monday. In the meantime it would be a great help if you could post the generated .c ...
by JonnyW
Fri Feb 07, 2014 11:44 am
Forum: Flowcode V6
Topic: RotateTO Rotate ALONG and other 3D
Replies: 9
Views: 7557

Re: RotateTO Rotate ALONG and other 3D

Hello. The call RotateTo() can be confusing. It sets the angles to absolutes, so if you have positioned your model to exactly where you want then called RotateTo(0, 0, 0) it will in effect wipe your previous angles and reset the object. This commonly causes confusing when you have previously rotated...
by JonnyW
Thu Jan 30, 2014 12:26 pm
Forum: Flowcode V6
Topic: Updating to Alternate Component
Replies: 1
Views: 1868

Re: Updating to Alternate Component

Hi. You can replace one component with another if you have used only calls that exist and are compatible in both. Note that for Flowcode to be aware of a components available macros the component must be: Inherited from the same base component Be previously loaded onto the panel Load the replacement...
by JonnyW
Thu Jan 30, 2014 10:06 am
Forum: Flowcode V6
Topic: Whats wrong with this calculation/simulation?
Replies: 9
Views: 6117

Re: Whats wrong with this calculation/simulation?

Hi. OK, I will raise this as a bug (or 2 bugs) and we can look into it.

Cheers,

Jonny
by JonnyW
Wed Jan 29, 2014 8:06 pm
Forum: Flowcode V6
Topic: Whats wrong with this calculation/simulation?
Replies: 9
Views: 6117

Re: Whats wrong with this calculation/simulation?

Hi. Very possibly - may well be that the conversion is using 16-bit values internally instead of 32-bit values. For information, 2456657 as a 16 bit value is 31825. We can look into the conversion here. In the meantime, if you cast your final Julian Date to a temporary integer (long / 32-bit) and co...
by JonnyW
Wed Jan 29, 2014 12:54 am
Forum: Flowcode V6
Topic: Sub routine component creation
Replies: 6
Views: 4372

Re: Sub routine component creation

Hi. Yes, there are a few alternatives: Add a #include for your external source code in supplementary code Add the C code into a Flowcode macro Re-write the C code as flowcharts (this way it will simulate as well) Embed all the code in supplementary code Inject directly into the code at compile time ...
by JonnyW
Wed Jan 29, 2014 12:48 am
Forum: User Components
Topic: Use device file in code
Replies: 3
Views: 5066

Re: Use device file in code

Hi. I don't know what a .BAS file is or what format it is in, but you can use the SIM API calls to open a file and read its contents as strings, see: http://www.matrixmultimedia.com/wiki/index.php?title=API_File Once this is done, you can populate the list elements of a property which is set to be a...
by JonnyW
Wed Jan 29, 2014 12:39 am
Forum: Flowcode V6
Topic: Timer in Flowcode V6
Replies: 4
Views: 3837

Re: Timer in Flowcode V6

Hi. Try adding into a timer interrupt something like: counter = counter + 1 update_flag = ((counter & 31) == 0) Then in your main loop add a decision: if (update_flag) lcd_clear() lcd_print( counter ) This might slow the display down so it is not constantly working giving you values you can never se...
by JonnyW
Wed Jan 29, 2014 12:34 am
Forum: Flowcode V6
Topic: Whats wrong with this calculation/simulation?
Replies: 9
Views: 6117

Re: Whats wrong with this calculation/simulation?

Hello. In simulation Flowcode will detect that the result of 367 * 2014 is greater than 16 bits and store the result temporarily in a 32-bit integer until it is time to cast it to a float. The C compile on the AVR may not do this (I believe this is wrong, but more efficient - at the least it should ...
by JonnyW
Mon Jan 27, 2014 2:06 pm
Forum: Flowcode V6
Topic: V6 Config question
Replies: 4
Views: 3572

Re: V6 Config question

Hi. The config always being added issue looks like an omission in the code generation (a Flowcode bug). I will get that sorted.

Cheers,

Jonny
by JonnyW
Fri Jan 24, 2014 10:06 am
Forum: Flowcode V6
Topic: Sub routine component creation
Replies: 6
Views: 4372

Re: Sub routine component creation

Hi. There is a blog written here:

http://matrixmultimedia.com/blog/?p=146

This shows an example of how to link C code into Flowcode. Note that there are other ways (you do not necessarily need to use Supplementary code) but is as good a way as any.

Cheers,

Jonny
by JonnyW
Tue Jan 21, 2014 5:31 pm
Forum: Feature requests
Topic: Can module extension
Replies: 7
Views: 5036

Re: Can module extension

Hi.

This is most likely the protection system kicking in.

I will have a brows in our protection systems set-up to see if anything stands out.

Cheers,

Jonny
by JonnyW
Tue Jan 21, 2014 9:54 am
Forum: Flowcode V6
Topic: supplementary code
Replies: 1
Views: 2037

Re: supplementary code

Hello. This was an oversight (some old code from v5 - there is no restriction, or shouldn't be, in v6). We have fixed this in the build here but are waiting to roll this out. In the meantime I believe that only one of the definition/ implementation fields has this issue. If you add code to the imple...
by JonnyW
Mon Jan 20, 2014 12:45 pm
Forum: Flowcode V6
Topic: Problem with panel properties
Replies: 4
Views: 3060

Re: Problem with panel properties

Hi.

if you delete the registry key:

CURRENT_USER\Software\MatrixMM\FlowCodeV6\Workspace

This should reset your window layouts.

Cheers,

Jonny
by JonnyW
Thu Jan 09, 2014 12:31 pm
Forum: Feature requests
Topic: UTFT component? perfect for many graphic displays
Replies: 114
Views: 121284

Re: UTFT component? perfect for many graphic displays

Hi. We do read these forums, but sometimes things are not said as it is deemed no reply is necessary. It would be great for us to do components such as this one and I'm sure that once someone has completed (or attempted) it they would post their results here, but this takes time. We have just come b...
by JonnyW
Wed Jan 08, 2014 8:54 pm
Forum: Flowcode V6
Topic: Help needed: float calculations on AVR
Replies: 5
Views: 3649

Re: Help needed: float calculations on AVR

Hello. No problems. For x = x + (x < 0) * -89 Value = x - (x % 90) The expression (x < 0) will in Flowcode (and C) return 1 if x is negative and 0 if positive. Multiplying this gives -89 only if x is negative. If you then add this to the original value this will round-down positive values and round ...
by JonnyW
Wed Jan 08, 2014 11:21 am
Forum: Flowcode V6
Topic: Label error
Replies: 1
Views: 1625

Re: Label error

Hi. Cheers Jan, I will try to get something sorted for that in the next patch.

Jonny
by JonnyW
Tue Jan 07, 2014 10:22 am
Forum: Flowcode V6
Topic: Help needed: float calculations on AVR
Replies: 5
Views: 3649

Re: Help needed: float calculations on AVR

Hello. When doing rounding on -ve floating points it is always a bit of a headache. How I usually work around that is not to do it: Value = floor(abs(x / 90)) * sgn(x) * 90 You might want to try the expression: x = x + (x < 0) * -89 Value = x - (x % 90) This will do the same thing and should work fo...
by JonnyW
Fri Jan 03, 2014 11:46 am
Forum: Flowcode V6
Topic: Autodetect chip
Replies: 2
Views: 2159

Re: Autodetect chip

Hi Jan. We can have a think about how to get a similar functionality back into Flowcode then. v5 used PPP as an external (specialised) programming tool for chips. Now we do not have this Flowcode doesn't talk to the chip in config. Perhaps we can put something in there, or perhaps you could use PPP ...
by JonnyW
Fri Jan 03, 2014 11:41 am
Forum: Flowcode V6
Topic: Flowcode patch 6.0.4 Released
Replies: 6
Views: 7165

Re: Flowcode patch 6.0.4 Released

Hi techgrag. Thanks for that spot, it will be fixed in the next release. I think if that is the worst of the bugs we find we aren't on to a bad thing!

Jonny
by JonnyW
Tue Dec 31, 2013 9:59 pm
Forum: General Programming
Topic: german helpfile
Replies: 3
Views: 3624

Re: german helpfile

Hi. I might be wrong but the language translations may not be packaged in the free version of Flowcode. There is no protection on them and if they are not available already on this forum in a zip file I will be happy tomorrow to grab the version in my copy and post these, as I consider this to be a ...
by JonnyW
Fri Dec 20, 2013 2:25 pm
Forum: Getting Started
Topic: Flowcode 6 File icon
Replies: 3
Views: 7326

Re: Flowcode 6 File icon

Hi. Yeah, I think when the original install was done there was a typo in the command line for the installer. I thought subsequent patches had addressed this.

Either way, we can have a dig around and see what the original issue was and hopefully get it fixed for you.

Jonny