04-23-2020 03:25 PM
That is brilliant, thank you so much.
I will try to incorporate that into our experiment with our lasers.
Thank you
Mathias
04-23-2020 04:00 PM
Again I really appreciate the help and apologize for repeatedly having questions.
I am struggling to adapt that code from a virtual fish to two voltage signals from the two lasers going over and under a threshold limit.
04-23-2020 04:34 PM
04-23-2020 07:58 PM
@Math808 wrote:
It complicates it a lot but is a relatively important detail.
Not really. See if this gets you closer.... (of course there are many ways to do all that)
04-24-2020 10:47 AM
Altenbach:
Is your code 'scaleable'? 🙂
-AK2DM
04-24-2020 11:10 AM
@AnalogKid2DigitalMan wrote:
Altenbach:
Is your code 'scaleable'? 🙂
You mean for an infinite number of tanks, infinite number of fish, and an infinite number of tunnels with two lasers each?
Even for one fish and three tanks, the geometry could be linear with two passages (4 lasers) or triangular with three passages (6 lasers). For even larger system, you'll quickly run out of IO ports anyway.
So, no, it's probably not really scalable. 😄
(Of course if will scale well geometrically and, given correctly sized hardware, would work identically for a guppy or a blue whale. No change in code needed :D)
04-24-2020 04:11 PM
How do you change it from a virtual fish to two independent numerical control variables? So that the first numerical control simulates the activation of laser one and the second numerical control simulates the activation of laser 2, but with all the same principles where its the last laser that turns off that indicates the position of the fish.
Thank you
Mathias
04-24-2020 04:23 PM - edited 04-24-2020 04:25 PM
@Math808 wrote:
How do you change it from a virtual fish to two independent numerical control variables? So that the first numerical control simulates the activation of laser one and the second numerical control simulates the activation of laser 2, but with all the same principles where its the last laser that turns off that indicates the position of the fish.
Well, these are booleans, not numericals (laser beam blocked? T|F).
Just turn the two laser booleans into controls and delete the slider and related code.
(later replace the controls with hardware IO, of course)
03-17-2024 09:14 PM
Hi Altenbach,
It's been a few years now and thanks to your help we have successfully run a lot of experiments with this setup, so thank you for your help.
We are now scaling up the experiment, and to be honest, my LabVIEW skills are very rusty.
We are now setting up 8 tanks lined up in a line and we have two lasers between each tank (14 lasers in total). How would you scale up this program so we can detect when the fish moves between the 8 tanks? Again it should have the same criteria for the order of breaking the lasers. For example, if the fish moves from Tank 1 to Tank 2 and there are two lasers (laser A & B) between Tank 1 and 2 (laser A being closest to Tank 1 and laser B being closest to Tank 2 inside the tunnel between Tanks 1 & 2) it's first gonna break laser A then break laser B then release laser A and then release laser B before the program says it has moved tanks.
I hope you can still help me with this, would very much appreciate it!