LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make nested case and feedback

Solved!
Go to solution

This program is used to detect eye movements based on the polarity of the signal. the polarity detected on channel 1 and channel 2 is the half-signal polarity. I will make the results of this motion detection as a command input for the device.

in this program, the polarity relationship with the command as shown below.

 

Array01_0-1665042699088.png

 

 

eye activity that is detected looking up is when the eye from its normal position then looks up. but when looking back to the normal position, a signal will be detected as when looking down.

 

how to make the image algorithm below in labview, I want the first relatime signal to be executed for the direction of eye movement, and the second signal to be treated as a stationary signal, to eliminate errors in the output ?

Array01_1-1665042879747.png

The detected eye activity looking up is when the eye from its normal position then looks up I want to execute the signal. but when looking back to the normal position, a signal will be detected as when looking down this signal I don't want to execute as output

 

please help me, thanks

 

 

0 Kudos
Message 1 of 9
(1,763 Views)
0 Kudos
Message 2 of 9
(1,762 Views)

Your table is incomplete, because your typedef has three states Positive, negative, neutral.

 

You did not attach your various type definitions.

0 Kudos
Message 3 of 9
(1,702 Views)
Solution
Accepted by topic author Array01

@Array01 wrote:

 

Array01_0-1665042699088.png

 


Assuming that negative and positive are the only two possibilities for each CH, all you needs is the following:

 

altenbach_0-1665067578460.png

 

Once you know what to do if neutral is also possible, the code can be expanded accordingly.

 

Message 4 of 9
(1,696 Views)

@Array01 wrote:

The detected eye activity looking up is when the eye from its normal position then looks up I want to execute the signal. but when looking back to the normal position, a signal will be detected as when looking down this signal I don't want to execute as output


You need another variable (shift register) to store what the previous state was.  If negative and previous state was positive, set it to neutral.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 9
(1,693 Views)

thank you sir

0 Kudos
Message 6 of 9
(1,651 Views)

thanks for your suggestion sir,
can you give me some example program tu get before status?

0 Kudos
Message 7 of 9
(1,650 Views)

@Array01 wrote:

can you give me some example program tu get before status?


 

I don't understand what that means.

0 Kudos
Message 8 of 9
(1,628 Views)
@Array01 wrote:

The detected eye activity looking up is when the eye from its normal position then looks up I want to execute the signal. but when looking back to the normal position, a signal will be detected as when looking down this signal I don't want to execute as output

You need another variable (shift register) to store what the previous state was.  If negative and previous state was positive, set it to neutral.

 

 

 

Thanks Sir, can you give me some example to execute the signal

0 Kudos
Message 9 of 9
(1,599 Views)