Page 1 of 1

Simulating

Posted: Tue Mar 01, 2011 3:56 pm
by jollybv
Hi

I am new to flow code 4 and a bit confused but would like to know is there any way you can simulate sending data via RS232 from one chip to to another e.g. I have my master program which sends data via RS232 to the slave program and sets it up. :?:

Brian

Re: Simulating

Posted: Tue Mar 01, 2011 4:19 pm
by Benj
Hello Brian,

Yes this is possible using the vNet simulation tool. Please refer to the video linked in below.

http://www.youtube.com/watch?v=_vzwgYKdBBI

Re: Simulating

Posted: Wed Mar 02, 2011 6:45 am
by jollybv
Hi ben

Have watched the video and have tries to click create in VNet and it tells me "Cannot connect to VNet" is there some application or something I need to install cause in the help file it says "Before the virtual network or Vnet can be used a small application called the Vnet server must be running on your PC or at least somewhere on your network." If i need to install this application where can i find it have looked on the disk cant find anything.

Brian

Re: Simulating

Posted: Wed Mar 02, 2011 11:05 am
by Benj
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

Re: Simulating

Posted: Fri Mar 04, 2011 8:26 am
by jollybv
Hi Ben

the VNet is a great feature my programs work fantastic in the simulation but i am having another problem if i program a Pic16F876 it works on the development board but if i program a PIC16F886 the upgraded version the chip dose not work i have tried changing chip settings and cant get it to work there must be something small i am doing wrong can you please help.

I am using a Cristal oscillator and i have tried changing to XT HS

Oscillator : HS
Watchdog Timer: 0ff
Power Up Timer: on
Master Clear Enable : /MCLR is external
Code Protect: off
Brown Out Protect: BDO & SBOREN disabled
Internal Esternal Switch over mode: disabled
monitor clock fail safe: enabled
Low Voltage Program: enabled
Background debug: enabled
Self Write Enable: no protection
Brown Out set bit: Brown out at 4.0V
:roll:

Re: Simulating

Posted: Fri Mar 04, 2011 12:05 pm
by Benj
Hello,

Try disabling the low voltage programming setting and see if this helps.

Re: Simulating

Posted: Wed Mar 09, 2011 1:37 pm
by jollybv
Hi Ben

Having another slight problem with the VNet when i send data via the RS232 it shows as it has been sent but on the other side it dose not receive the string which is funny cause it was working. If i manually type the string in on the other side it works so i assume there is something wrong with the VNet communications. What can i look at

Brian

Re: Simulating

Posted: Wed Mar 09, 2011 2:02 pm
by Steve
Are the nodes wired together in the VNET diagram?