LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data input constraints (using shift registers)

Solved!
Go to solution

@hurang wrote:

Data v2 is based on the 6th value.

In other words, if we receive a total of 10 pieces of data, data v1 is based on the first value, and data v2 is based on the 6th value. 


Well, that would be easy to change. Have you tried?

0 Kudos
Message 11 of 15
(263 Views)

Yes, I implemented the vi you helped me. it works well.

However, for data v2, changing to the 6th data standard has not been implemented yet....

0 Kudos
Message 12 of 15
(255 Views)

You need to make your VI scalable and generic as a simple state machine. The code should be independent of the desired size of the arrays and should simply have an input for an array of sizes.

0 Kudos
Message 13 of 15
(233 Views)

hello,

 

Do I need to create two shift registers containing NaN?

Or, do you operate a separate condition case for array data(data v1, data v2)?

I'm still trying, but honestly I'm not sure that I can do it...

0 Kudos
Message 14 of 15
(213 Views)
Solution
Accepted by topic author hurang

You only need one shift register. You just fill it with the new reference value when the first element is added to the second array.

0 Kudos
Message 15 of 15
(197 Views)