LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

value comparison for specific time

This should meet your requirements.  I chose the limits and target time sort of at random.



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
Message 11 of 19
(1,642 Views)

Thanks

.I made a version too.Will it keep on updating ? cause i am selecting an element from a 1d array and comparing it and at 51.2khz.My version works real time but the button has to be in the loop.Would it update  or take new values if i use in range and input values from outside the loop ? since i cannot auto index do i have to put the 1d array in the loop itself and extract the element to compare?

I really appreciate your help.

Download All
0 Kudos
Message 12 of 19
(1,632 Views)

Below is the vi that i am working on.

 

0 Kudos
Message 13 of 19
(1,627 Views)

Did you really do an Equals to False?  Want to end up in the Rube Goldberg Thread?  Just use a NOT.  And none your case structures are needed, as I have already shown.

 

You will need a seperate timer for each comparison you want to do.  And these comparisons will need to be in your main loop that you are getting the data.  You have not shown enough context in order to give a better answer.



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 14 of 19
(1,608 Views)

LOL.sorry about that.Still a newbie.Any ways i have attach the first half of my vi.

0 Kudos
Message 15 of 19
(1,602 Views)

Ok, so you are just finding the peak of your FFT and doing a comparison on that.

 

1. No need for the Index Array.  You already have that value with the Max & Min.

2. I would turn the VI I gave you into a reentrant VI.  You can then call this VI in parallel as many times as you need and each comparison will have its own timer.  It will make your life a lot easier.



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
Message 16 of 19
(1,582 Views)

Thanks.Thats a new concept to me.So if i use 4 clones of that vi how can i enforce four different comparision ranges/values?

0 Kudos
Message 17 of 19
(1,576 Views)

Excues my ignorance,I am looking at examples now.Thanks a lot for your help.Will try this tonight!!!

0 Kudos
Message 18 of 19
(1,572 Views)

It works like a charm.Thanks a lot Crossrulz!!

0 Kudos
Message 19 of 19
(1,526 Views)