08-27-2019 01:38 AM
hi everyone, i want to ask you simple but maybe complicated, how we can count that how many knobs are present in this string array at run time.
Solved! Go to Solution.
08-27-2019 02:12 AM
08-27-2019 02:17 AM
Thanks but i already did.
Now i want to create truth table combination depends on input like, if one input then just two combination 0 and 1 and if two input then combinations are 00, 10, 01, 11 and the inputs are N so it creates depends on input number
08-27-2019 02:21 AM - edited 08-27-2019 02:22 AM
Hi sam,
how many knobs are present in this string array at run time.
There is no "string array": it's an array of clusters of [DBL, string]…
Please note there is a difference between the number of array elements and the number of the visible array elements (aka number of visible rows/columns)!
Now i want to create truth table combination depends on input like, if one input then just two combination 0 and 1 and if two input then combinations are 00, 10, 01, 11 and the inputs are N so it creates depends on input number
And what is the problem?
Did you search this forum for "combinations"?
08-27-2019 02:27 AM
@GerdW wrote:Did you search this forum for "combinations"?
Hi GerdW, I already searched but i didnt find.
I just need combination of truth table according to given input. 1 input make 2 combination and 2 input make 4 combinations and Nth input make Nth combinations.
08-27-2019 02:50 AM - edited 08-27-2019 02:53 AM
Hi sam,
search more…
Just to give an idea:
The "magic" is hidden behind the gray box.
(All you need is to "add" some rows/columns to the array stored in the shift register. It's a nice lesson to learn array handling in LabVIEW!)
I just need combination of truth table
Btw. that is not a "truth table", it's just a table with all possible combinations of 0 and 1…
08-27-2019 02:54 AM
The "magic" is hidden behind the gray box.
(All you need is to "add" some rows/columns to the array stored in the shift register. It's a nice lesson to learn array handling in LabVIEW!)
Thanks man, well i will try.
08-27-2019 03:43 AM
@GerdW wrote:
Hi sam,
search more…
Just to give an idea:
The "magic" is hidden behind the gray box.
(All you need is to "add" some rows/columns to the array stored in the shift register. It's a nice lesson to learn array handling in LabVIEW!)
I just need combination of truth table
Btw. that is not a "truth table", it's just a table with all possible combinations of 0 and 1…
I tried but hidden part contain logic that i need, if possible show me
08-27-2019 03:53 AM
Hi sam,
I tried but hidden part contain logic that i need,
What have you tried? Where are you stuck?
Why don't you attach your VI?
if possible show me
Not possible, I didn't save the VI.
Start with a sheet of paper. Draw the starting array of [0, 1]. Now where do you need to add a column/row with another pair of 0 and 1? How do you need to write the resulting array for the first iteration? Is there an algorithm you need to apply? And the last step: how to you reproduce that algorithm using LabVIEW's array functions?