LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fgv with two types of variables

Solved!
Go to solution

Do you really need the First call contruct at all? If the program is fresh the array is empty and the 1st Set will add to the empty array, no?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 21 of 26
(1,086 Views)

Nope, I don't need the first call construct, I've used the feedback node to initialize.

Trusting altenbach, it will be initiated during the first call to the "set" (store) action.

This is what I'm going with for now. (until my lecturer tells me I'm wrong or doesn't allow me to use this 🙂 )

0 Kudos
Message 22 of 26
(1,083 Views)

@Yamaeda wrote:

Do you really need the First call contruct at all? If the program is fresh the array is empty and the 1st Set will add to the empty array, no?


It is needed to define the datatype of the shift register (Of course there are other ways around this).

0 Kudos
Message 23 of 26
(1,073 Views)

Just a little update:

 

been to see the lecturer today and he told us that in our case it would be best to use a 3rd state of init which would allow to reset the FGV if needed.

Also advised to use a SR instead of a FBN since it would be "easier to understand"...

0 Kudos
Message 24 of 26
(1,070 Views)

Yeah i'd say that's a more common approach.

/y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 25 of 26
(1,055 Views)

I think this is what you looking for, in this VI there are 2 arrays in 1 cluster and which has the control for separately adding the DBL to any of the array and you have selection control to extract any of the 2 array at the output array.

0 Kudos
Message 26 of 26
(969 Views)