Simulating

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
jollybv
Flowcode v5 User
Posts: 374
Joined: Thu Feb 12, 2009 5:20 am
Location: Cape Town
Has thanked: 81 times
Been thanked: 25 times
Contact:

Simulating

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Simulating

Post 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

User avatar
jollybv
Flowcode v5 User
Posts: 374
Joined: Thu Feb 12, 2009 5:20 am
Location: Cape Town
Has thanked: 81 times
Been thanked: 25 times
Contact:

Re: Simulating

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Simulating

Post 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

User avatar
jollybv
Flowcode v5 User
Posts: 374
Joined: Thu Feb 12, 2009 5:20 am
Location: Cape Town
Has thanked: 81 times
Been thanked: 25 times
Contact:

Re: Simulating

Post 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:

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Simulating

Post by Benj »

Hello,

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

User avatar
jollybv
Flowcode v5 User
Posts: 374
Joined: Thu Feb 12, 2009 5:20 am
Location: Cape Town
Has thanked: 81 times
Been thanked: 25 times
Contact:

Re: Simulating

Post 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

User avatar
Steve
Matrix Staff
Posts: 3418
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Simulating

Post by Steve »

Are the nodes wired together in the VNET diagram?

Post Reply