Page 2 of 2

Re: Visi Genie

Posted: Tue Sep 10, 2013 6:40 pm
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

Re: Visi Genie

Posted: Tue Sep 10, 2013 6:48 pm
by acestu
Hi Martin,

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

chees
Acestu

Re: Visi Genie

Posted: Tue Sep 10, 2013 7:02 pm
by JohnCrow
Still not got anything to work. :(
This is geting silly, must be doing something silly somewhere

Re: Visi Genie

Posted: Tue Sep 10, 2013 7:11 pm
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

Re: Visi Genie

Posted: Tue Sep 10, 2013 7:30 pm
by JohnCrow
Now Im not even getting it to simulate.

Re: Visi Genie

Posted: Tue Sep 10, 2013 7:36 pm
by acestu
Hi John,

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

cheers
Acestu

Re: Visi Genie

Posted: Tue Sep 10, 2013 7:41 pm
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.

Re: Visi Genie

Posted: Tue Sep 10, 2013 7:49 pm
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

Re: Visi Genie

Posted: Tue Sep 10, 2013 8:11 pm
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

Re: Visi Genie

Posted: Tue Sep 10, 2013 8:22 pm
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

Re: Visi Genie

Posted: Tue Sep 10, 2013 8:27 pm
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

Re: Visi Genie

Posted: Tue Sep 10, 2013 8:32 pm
by acestu
Hi John,

Have you put this count declaration in the chart ?
forjohn3.png
(6.85 KiB) Downloaded 5652 times
cheers
Acestu

Re: Visi Genie

Posted: Tue Sep 10, 2013 8:37 pm
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 12594 times

Re: Visi Genie

Posted: Tue Sep 10, 2013 8:49 pm
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

Re: Visi Genie

Posted: Tue Sep 10, 2013 8:58 pm
by JohnCrow
I uninstalled the beta before putting the full version on

Re: Visi Genie

Posted: Tue Sep 10, 2013 9:01 pm
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

Re: Visi Genie

Posted: Tue Sep 10, 2013 9:03 pm
by acestu
John,

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


Acestu

Re: Visi Genie

Posted: Tue Sep 10, 2013 10:20 pm
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

Re: Visi Genie

Posted: Wed Sep 11, 2013 7:06 pm
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:

Re: Visi Genie

Posted: Wed Sep 11, 2013 7:10 pm
by acestu
Hi John,

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

cheers
Acestu

Re: Visi Genie

Posted: Wed Sep 11, 2013 7:36 pm
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.

Re: Visi Genie

Posted: Wed Sep 11, 2013 7:42 pm
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

Re: Visi Genie

Posted: Fri Sep 13, 2013 10:03 pm
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

Re: Visi Genie

Posted: Sat Sep 14, 2013 9:31 am
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