Visi Genie

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Visi Genie

Post by medelec35 »

Hi Stuart
acestu wrote:where do you open the component debugger
Its in the view menu.
It has a tick when enabled.


Maritn
Martin

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

Hi Martin,

Thanks for the tip, I will have a look now..

chees
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Visi Genie

Post by JohnCrow »

Still not got anything to work. :(
This is geting silly, must be doing something silly somewhere
1 in 10 people understand binary, the other one doesn't !

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

Hi John,

I really don't think that it is something that you are doing wrong, I have tried all sorts to get it working , I think there is still something wrong with the component to be honest, Benj said that "He thinks he has fixed it" also have you hooked your display up while you simulate the chart because it works perfectly......

cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Visi Genie

Post by JohnCrow »

Now Im not even getting it to simulate.
1 in 10 people understand binary, the other one doesn't !

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

Hi John,

What dosen't simulate the chart, the display or both ?

cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Visi Genie

Post by JohnCrow »

If I try to run simulation
It stops on the init icon.

If I use the step, it runs the simulation but the display does not resopnd.
1 in 10 people understand binary, the other one doesn't !

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

Hi John,

what is your console window saying under visi1 section, can you see any data being sent ?, if you have display connected and the right com port selected in visi component settings (you must connect your display before opening flowcode or com port will not show up) then you should see all the data being sent without any errors..

cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Visi Genie

Post by JohnCrow »

Thats showing errors
Ok lets check we have the same settings

Channel = Software
Baud = 9600
Comport = Com 1

TX on display to C6
RX on display to C7

Visi write object icon
Object ID = Visi4D1::VISI_ID_Meter
Object Index = 0
value = count
1 in 10 people understand binary, the other one doesn't !

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

Hi John,

Take a look at this video, if you are showing errors you probably have the wrong com port set...

http://www.youtube.com/watch?v=AZTwW8OG ... ERnCxvQamQ

cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

Hi John,

Pics of settings:
forjohn1.png
(19.81 KiB) Downloaded 5652 times
forjohn2.png
(26.41 KiB) Downloaded 5652 times
cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

Hi John,

Have you put this count declaration in the chart ?
forjohn3.png
(6.85 KiB) Downloaded 5652 times
cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Visi Genie

Post by JohnCrow »

I can only select com1
But the windows are different
Look at the way channel and baud in caps on yours and com on the bottom line is different.
settings.jpg
settings.jpg (80.09 KiB) Viewed 11411 times
1 in 10 people understand binary, the other one doesn't !

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

Hi John,

Just an idea, but did you put the updated visi component file in your Flowcode 6 Beta folder and not your Flowcode 6 folder?

It does seem to me that your displays com port is not present, does the FTDI show up in your windows device manager?
forjohn4.png
(38.87 KiB) Downloaded 5650 times
cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Visi Genie

Post by JohnCrow »

I uninstalled the beta before putting the full version on
1 in 10 people understand binary, the other one doesn't !

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

Hi John,

And you have the FTDI driver on a com port in device manager and it is the same as the com port in the visi component settings ?

Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

John,

This is a copy of the chart that I am using,
Meter_Test.fcfx
(6.51 KiB) Downloaded 235 times
BTW I am using this version of flowcode with the updated visi component:
forjohn5.png
(20.14 KiB) Downloaded 5646 times


Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

Hi John,

I have just written another chart that just has a simple momentary switch connected to port D1 and when pressed lights up the gauge, it simulates great, however when I program chip nothing works....so I think it's up to Benj now

cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Visi Genie

Post by JohnCrow »

ITS WORKING :D At last.

The display had defaulted to COM 10.(Which wasnt in use)
I used windows device manager to change the com port, I used com 2 the lowest available.

Tried simualation again and it works. I am now a happy bunny.
Flowcode still shows COM1 but now also COM2 and it lets me change it.
Now to try and get some hardware working :roll:
1 in 10 people understand binary, the other one doesn't !

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

Hi John,

Nice 1, glad you have sorted it, but does it work in hardware ?

cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Visi Genie

Post by JohnCrow »

Not tried that yet, but at least I know my display isnt faulty.

Anyway, thanks for helping last night.
I think the lower com ports were taken up by things like the arduino boards.

Im wondering now if I can use my Matrix EB076 Touch Screen with the $D genie software.
It has the same port on the board and the display used is on the list on the 4D software.
1 in 10 people understand binary, the other one doesn't !

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

Hi John,

I tried a few more charts last night which worked perfectly in simulation, however when programmed the hardware did nothing so I have asked Benj to have another look at the Visi component...

It will be interesting to see if you have the same results as me

cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Visi Genie

Post by acestu »

Hi Guys,

I have sussed it out, the 4D displays take a couple of seconds to initialize when you first power them up, so if you put a 2 second delay in your chart before the Visi Initialise Macro then your display will work with your uploaded program:
delay.png
(7.29 KiB) Downloaded 5612 times
http://www.youtube.com/watch?v=edc94_5K ... ERnCxvQamQ

cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Visi Genie

Post by JohnCrow »

Hey well done Stuart.

Im sure Benj will be happy he doesn't have to start bug hunting in his component.
Wonder if it is possible to code the delay into the Visi component itself.

Just tried it on my display and it works great.

I know its recommended to add a delay to the normal LCDs for power up, but these are normally only about 100 ms or less so it doesn't effect the average flowchart. Now its working I can try a little project I have in mind.

Worth pointing out as the display is labled with the pin function rather than where it goes on the microcontroller.
TX on display goes to RX Port C6
RX on display goes to TX Port C7
1 in 10 people understand binary, the other one doesn't !

Post Reply