Brian,
I did some testing with the Alien GPIO today, and I may have reproduced
the bug that you are seeing, but I'm not sure.
First, here is the scenario you are trying to emulate with Rifidi,
according to an earlier email:
We have a conveyor belt set up with a light stack. Green = GPO0, Red =
GPO1, Yellow = GPO2. We also have two photoelectric eyes plugged into
GPI0 and GPI1.
We have a conveyor belt set up with a light stack. Green = GPO0,
Red = GPO1, Yellow = GPO2. We also have two photoelectric eyes
plugged into GPI0 and GPI1.
We push a box a box with a gen2 tag on it through the first
photoelectric eye. While the box is between the two sensors, the
light should be yellow. When the box goes through the second
sensor, the light should be green or red. Now we've set the reader
to have an infinite persist time, so the first time the box goes
through the light is green. Every other time the light should be
red, unless the tag list is cleared.
I started a Rifidi Alien Reader and ran your configurator script which
set up the reader with the following commands.
myReader.NetworkTimeout = "9000";
myReader.RFAttenuation = 90;
myReader.AcquireMode = "Global Scroll";
myReader.PersistTime = "-1";
myReader.AutoAction = "Acquire";
myReader.AutoWaitOutput = "0";
myReader.AutoWorkOutput = "4";
myReader.AutoTrueOutput = "1";
myReader.AutoFalseOutput = "2";
myReader.AutoStartTrigger = "0,1";
myReader.AutoStopTrigger = "2,0";
myReader.AutoStopTimer = "-1";
myReader.AutoTruePause = "3000";
myReader.AutoFalsePause = "3000";
myReader.TagType = 16;
myReader.ExternalOutput = "0";
if (myReader.AutoMode.Equals("OFF"))
myReader.AutoMode = "ON";
Then I did the following (please note that I am using the new GPIO view,
in which GPIs and GPOs are numbered starting at one and increase by
powers of two for the alien reader):
1)Checked and unchecked GPI 1 (which corresponds to the first photo eye
in your example)
Result: I saw GPO 4 light up (which corresponds to yellow in your light
stack).
2) Added a Gen 2 tag to the reader
3)Checked GPI 2 (which corresponds to the second photo eye in your example)
Result: I saw GPO 2 -- the autofalse output-- light up (which
corresponds to the Red light in your light stack)
4) Unchecked GPI 2
Result: GPO 2 unlit after a couple of seconds.
In subsequent runs of this example, the GPO1 --the auto true output--
(corresponding to the green light) flashed after I checked GPI 2.
So the error appears to be that we have the autotrue output and
autofalse output reversed, because the autotrue output (GPI1 / green)
should have lit the first time, and the autofalse output (GPI2 / red)
should have lit in times after that.
In addition, the clear taglist did not seem to make a difference. What
should happen is that after I click "clear taglist" in your demo, the
autotrue output should happen again, and subsequent runs should have the
autofalse output flash up again.
Are these the bugs you guys are seeing?
Thanks,
Kyle
--
Kyle Neumeier
Technical Lead
Pramari, LLC.
Manchester, CT.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Rifidi-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rifidi-developers