Search found 1570 matches

by kersing
Sun Mar 29, 2020 6:22 pm
Forum: Flowcode V8
Topic: Use return from macro
Replies: 3
Views: 1931

Re: Use return from macro

The macro call will be the value. So

Code: Select all

if Macro_1() then
In a decision you just enter 'Macro_1()' for the 'if:'.
If your macro requires arguments (say 2) you enter 'Macro_1(1,"second")' or 'Macro_1(.var1, .var2)' if you want to pass the values of local var1 and var2.
by kersing
Sat Mar 14, 2020 5:09 pm
Forum: Bug Reports
Topic: Problem in the round(x) Function
Replies: 8
Views: 4444

Re: Problem in the round(x) Function

Please describe what your results are and what you expect to see.
by kersing
Sat Mar 07, 2020 5:06 pm
Forum: Programming Tips & Tricks
Topic: Store & Retrieve ULong using EEPROM.fcfx
Replies: 16
Views: 24363

Re: Store & Retrieve ULong using EEPROM.fcfx

To modify strings you can use the string manipulations available. One of them being concatenation.

The result would be something like:

Code: Select all

newString = "000" + smallString
Where smallString would be the one you previously created from the number stored in eeprom.
by kersing
Sat Mar 07, 2020 3:56 pm
Forum: Programming Tips & Tricks
Topic: Store & Retrieve ULong using EEPROM.fcfx
Replies: 16
Views: 24363

Re: Store & Retrieve ULong using EEPROM.fcfx

The obvious question would be why are you comparing strings and not numbers?

If you need to compare strings you could compare the number to see if it is < 10, add three zeros in front if the string, check < 100, add two zeros and compare < 1000 and add one zero.
by kersing
Mon Mar 02, 2020 9:00 am
Forum: General Programming
Topic: storing data in memory
Replies: 6
Views: 3801

Re: storing data in memory

The eeprom will not handle power cuts while being written to. That is why I wouldn’t use it.
by kersing
Sun Mar 01, 2020 11:10 pm
Forum: General Programming
Topic: storing data in memory
Replies: 6
Views: 3801

Re: storing data in memory

Use something like a diode in the power feed to the controller and add the capacitor between the diode and the controller. That way only the controller draws power from the capacitor.
by kersing
Sun Mar 01, 2020 10:26 pm
Forum: General Programming
Topic: storing data in memory
Replies: 6
Views: 3801

Re: storing data in memory

It would be better to find a way to keep the controller powered while starting. You could use a super cap to try and bridge the low power period. The controller has no ‘deeper memory’ to store variables, external memory could be used but that would require battery backup or something like it and you...
by kersing
Fri Feb 28, 2020 10:56 pm
Forum: Bugs / Application Errors
Topic: Compare$() does not work as advertised?
Replies: 8
Views: 14255

Re: Compare$() does not work as advertised?

Are you trying to compare strings? Compare$ is for strings, not other data types.
by kersing
Wed Feb 12, 2020 11:44 pm
Forum: Flowcode V8
Topic: The Things network (TTN) anyone?
Replies: 9
Views: 4900

Re: The Things network (TTN) anyone?

The question what the coverage of a gateway will be is often asked but depends on too many variables to be predictable. From experience, if a gateway is deployed in a city within a building the range will be limited to a few kilometers at most. If the building is one of new types with all kinds of R...
by kersing
Wed Feb 12, 2020 12:26 pm
Forum: Flowcode V8
Topic: The Things network (TTN) anyone?
Replies: 9
Views: 4900

Re: The Things network (TTN) anyone?

Keep in mind LoRa and LoRaWAN are different things. LoRaWAN adds a lot of features and standards on top of LoRa.

Thanks for the suggestion, I am not looking for hardware. I designed (and build) my own 4 years ago.
by kersing
Wed Feb 12, 2020 1:09 am
Forum: Flowcode V8
Topic: The Things network (TTN) anyone?
Replies: 9
Views: 4900

Re: The Things network (TTN) anyone?

I found this one: https://www.benl.ebay.be/itm/LoRaGo-MOTE-RN2483-LoRaWAN-Node-in-Arduino-Nano-Form-Factor/123999985035?hash=item1cdef99d8b:g:m-wAAOSwSq1d6LNn Looks promising? There is a schematic in a link. I'm going to check this out or is there a reason why it doesn't meet the requirements? Woul...
by kersing
Wed Feb 12, 2020 1:03 am
Forum: Flowcode V8
Topic: The Things network (TTN) anyone?
Replies: 9
Views: 4900

Re: The Things network (TTN) anyone?

Currently there are issues with the software stack of that gateway. The Dragino LPS8 would be a better choice and also allows connecting a better antenna. (It does not include a USB power supply, that needs to be added) If you enjoy building your own gateway based on an Raspberry Pi you should proba...
by kersing
Tue Feb 11, 2020 8:21 pm
Forum: Flowcode V8
Topic: The Things network (TTN) anyone?
Replies: 9
Views: 4900

Re: The Things network (TTN) anyone?

Yes, first time in 2016.

I used an 8 bit pic (I have to check which one) with RN2483 LoRaWAN module from microchip. Created a Flowcode component for the RN2483.
by kersing
Sun Feb 09, 2020 1:37 pm
Forum: General Programming
Topic: FLOAT to INT and back again.
Replies: 33
Views: 15936

Re: FLOAT to INT and back again.

MX_FLOAT expands to a double on platforms that support double precision floating point.
by kersing
Sun Feb 09, 2020 9:57 am
Forum: General Programming
Topic: FLOAT to INT and back again.
Replies: 33
Views: 15936

Re: FLOAT to INT and back again.

Change your union to:

Code: Select all

 typedef union
{
  float AsFloat;
  MX_UINT8 AsByte[4];
} MX_FloatUnion;

MX_FloatUnion FloatUnion;
Assign the value to AsFloat and get the bytes from the 4 AsByte vast like your earlier example.
by kersing
Sat Feb 08, 2020 10:42 pm
Forum: General Programming
Topic: FLOAT to INT and back again.
Replies: 33
Views: 15936

Re: FLOAT to INT and back again.

You could try to use float for the union member in stead of the MX_FLOAT. That should result in a 4 byte float.
by kersing
Sat Feb 08, 2020 6:32 pm
Forum: User Components
Topic: Component request for rotary encoder module
Replies: 2
Views: 4257

Re: Component request for rotary encoder module

Perhaps you could attempt to create something yourself in stead of asking for every component you need to be created for you? Several users have used Flowcode to create components and shared them with community which is greatly appreciated. By the way, there is already a rotary encoder component , h...
by kersing
Sat Feb 08, 2020 6:27 pm
Forum: General Programming
Topic: FLOAT to INT and back again.
Replies: 33
Views: 15936

Re: FLOAT to INT and back again.

You added 4 bytes and read 8 into byte sized variables but your samples still show just 4 bytes worth of bits. Shouldn’t you look at 8 bytes and print the value of all 8?
by kersing
Thu Feb 06, 2020 9:25 pm
Forum: User Components
Topic: component for ADC
Replies: 8
Views: 6486

Re: component for ADC

There is no need to post the same request multiple times.
by kersing
Thu Feb 06, 2020 9:24 pm
Forum: Bug Reports
Topic: Internal DAC error FC8
Replies: 5
Views: 3329

Re: Internal DAC error FC8

Can you post (attach as file) a flowchart that shows the problem?
by kersing
Wed Feb 05, 2020 9:04 am
Forum: General Programming
Topic: ADC 16bit conversion to 1µm
Replies: 10
Views: 5893

Re: ADC 16bit conversion to 1µm

Please do not post questions as topic starters in "Programming Tips & Tricks".
by kersing
Sat Jan 11, 2020 10:36 pm
Forum: Flowcode V6
Topic: ULong Variable not working!
Replies: 10
Views: 8149

Re: ULong Variable not working!

Could you provide some context? May-be even a flowchart demonstrating the issue?
by kersing
Mon Jan 06, 2020 8:27 pm
Forum: Bug Reports
Topic: PIC16F1936 software set UART... NOT correct.
Replies: 10
Views: 5356

Re: PIC16F1936 software set UART... NOT correct.

DCW wrote:can you not rewrite the routines of FLOWCODE... so that they work correctly....????
Could you provide answers to the questions Ben asked? That would help finding issues.
by kersing
Thu Dec 26, 2019 11:00 pm
Forum: Flowcode V8
Topic: Merry Christmas!
Replies: 12
Views: 9172

Re: Merry Christmas!

A bit late for Christmas wishes, so

I’m wishing everyone an
Excellent 2020
by kersing
Thu Dec 26, 2019 10:52 pm
Forum: Flowcode V8
Topic: E32 LORA tranceiver module: quick start guide
Replies: 3
Views: 7566

Re: E32 LORA tranceiver module: quick start guide

Why are you asking this question on a Flowcode forum while referring to and attaching Arduino code? Is there not a more appropriate forum available?