Search found 77 matches

Return

by medelec35
Wed Dec 29, 2010 11:34 am
Jump to forum
Jump to topic

Re: Strings

Hiya jollybv, What I would do is first convert string to an integer then use a decision branch if int=1 do something, if int=45 do something else etc Here is how you can convert string to integer (much easier with V4 as you have string to int function): Number = ( Input_string[0] - 48 ) * 100 + ( In...
by medelec35
Wed Dec 29, 2010 1:53 pm
Jump to forum
Jump to topic

Re: Strings

The calculation is after you have got the whole string. Take a look at this example within attached flowchart. I have set it up so you enter 678 to light LED connected to port A0 812 to turn LED off After entering three digits, key # to accept or * to re-enter the three digits. This is just a starin...
by medelec35
Thu Dec 30, 2010 9:48 am
Jump to forum
Jump to topic

Re: Strings

Your welcome Brian,
So long as it's what you are after.
Glad I could help.
Thank you for letting us know.
by medelec35
Wed Feb 23, 2011 5:47 pm
Jump to forum
Jump to topic

Re: Strings

Hi Brian,
There is a int to string function within the functions of String Manipulation macro
int to string.png

See attached Flowchart.
by Benj
Wed Mar 02, 2011 11:05 am
Jump to forum
Jump to topic

Re: Simulating

Hello Brian,

Sorry you first need to start the Vnet server by running the server executable file located in the "Flowcode v4" folder.

EG.
C:\Program Files\Matrix Multimedia\Flowcode V4\VNET Server\FlowServer.exe
by Steve
Wed Mar 09, 2011 2:02 pm
Jump to forum
Jump to topic

Re: Simulating

Are the nodes wired together in the VNET diagram?
by Benj
Mon Mar 21, 2011 4:08 pm
Jump to forum
Jump to topic

Re: RXINT

Ah I see,

Ok that explains things. I don't think that the RXINT works in simulation, should work correctly on hardware, sorry for any inconvenience.
by Benj
Fri Jul 06, 2012 10:31 am
Jump to forum
Jump to topic

Re: Char$() function

Hi Brian,

Code: Select all

(var > 10) && (var < 100)
by JonnyW
Mon Jul 09, 2012 1:42 pm
Jump to forum
Jump to topic

Re: Compairing Numbers

Hi. To test whether the byte values are equal you can add the code 'variable1 == variable2' into a decision or calculation icon. Other operators are != for not-equal, and <, >, <= >=.

You should not need to convert to strings to do anything other than display the numbers.

Jonny
by Enamul
Mon Jul 09, 2012 1:59 pm
Jump to forum
Jump to topic

Re: Compairing Numbers

Hi,
Compare$(string1, string2, compare_type)
Compares the two strings, parameters 1 and 2, and returns a BYTE value corresponding to the following results:
0 = strings are identical
1 = string1>string2
255 = string2>string1

You can generate this kind of function using the attached FC...
by JonnyW
Mon Jul 09, 2012 4:04 pm
Jump to forum
Jump to topic

Re: Compairing Numbers

Hello. Sometimes it helps to simplify the problem - your program sounds like it has a lot going on which is incidental to the problem you are having. Are you receiving your input data as a byte or as a string? If possible, avoid string processing as it takes needless processing and memory. To compar...
by JonnyW
Mon Jul 09, 2012 9:58 pm
Jump to forum
Jump to topic

Re: Compairing Numbers

Hi. All a string is is an array of bytes, so you are really already sending a byte over RS232. There are RS232 calls in Flowcode SendRS232Char and ReceiveRS232Char which send a byte - a char and a byte are the same thing. All you are doing by converting a byte to a binary text string is creating the...
by Enamul
Tue Jul 10, 2012 10:55 am
Jump to forum
Jump to topic

Re: Compairing Numbers

Hi Brian,
You can use Vnet to simulate master-slave RS232 communication using FC..Here goes the link for that...

viewtopic.php?f=26&t=6649

Ben has describe there excellent how to simulate..Vnet
by Enamul
Sat Jul 14, 2012 3:24 am
Jump to forum
Jump to topic

Re: Strings

Hi Brian, in the main program i enable the interrupt TMR0 and tell it to call a Macro that has a receive char in it it is looking for Char ^ (94) so when it sees this char it must jump in and out of setup which all works, now my problem is if I send a string say for example 001 the receive char in t...
by kersing
Sat Sep 29, 2012 9:16 am
Jump to forum
Jump to topic

Re: V5 Erro Message

I have just installed V5 i am now trying to program a PIC16F886 using my HP 488-00-3 board but it is giving me a Error message (Failed to get data for CONFIG8L) What should i do Have you tried searching the forum (top right corner of the browser window) for this error? Here is a solution for cases ...
by Benj
Tue Oct 02, 2012 1:46 pm
Jump to forum
Jump to topic

Re: V5 Erro Message

Hi Brian,

Are you using any specific antivirus or internet security software that may be slowing down compilation? Another thing to check would be the processes view of the task manager to see if anything else is claiming the CPU runtime.
by medelec35
Thu Jun 20, 2013 6:23 pm
Jump to forum
Jump to topic

Re: HP-488

Hi Brian, If it was me before replacing firmware I would try a known good microcontroller that always programmes. e.g 16F88 or 16F877a Or a different one you may have lying around. Im not sure if this will apply to you : http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=46&t=12450&#p4...
by Creative25
Wed Jul 24, 2013 3:49 pm
Jump to forum
Jump to topic

Re: Capasitive key Pads

Hi I think there is a serious problem with this code. I think at the place the calculation for the dave variable was it will alway give a positive number for every Key if it is pressed or not. I recommend you take the calculation out of the Macro for Capacitive touch sensing, Also you need to clear ...
by Benj
Wed Mar 26, 2014 5:57 pm
Jump to forum
Jump to topic

Re: I2C V6

Hello Brian, We do not currently have an I2C Slave component in v6 but there is an example of chip to chip comms using I2C available from here. http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=7&t=7081 The I2C slave component is on the ever growing to do list but hopefully we should get ...
by medelec35
Tue Apr 15, 2014 5:04 pm
Jump to forum
Jump to topic

Re: Confused on Flowcode 6

Hi Brian,
When you press F8 you should see the Simulation Debugger:
Variable watch.png

Just select the arrow next to expression to add variables.

Martin.
by kersing
Sat May 10, 2014 9:04 pm
Jump to forum
Jump to topic

Re: Simulating 2 programs

Take a look at the injector functionality. For two programs to exchange data you need the Vnet injector.
by cobra1
Mon May 12, 2014 4:33 pm
Jump to forum
Jump to topic

Re: writing to eeprom

Hi

This thread seems to have all the info you need to do this.
viewtopic.php?f=29&t=8103&p=22618#p22616
by medelec35
Sat May 17, 2014 5:34 pm
Jump to forum
Jump to topic

Re: Confused on Flowcode 6

Hi Brian,
This is how is can be done:
is x greater or =.png

If you click on question mark of Decision properties for help, then click on Calculation Properties then you can see the different option which can be used:
Options.png


Martin