10-02-2018 06:48 AM
hi GerdW,
i tried it your way but this is what i was getting array 1 input and array 2 output
but what i was trying to do is this which is file11 if you can look at which i have uploaded a little earlier if you cant ding it i can upload it again.
10-02-2018 07:26 AM
Hi hasnain,
this is what i was getting array 1 input and array 2 output
The last image looks correct for me - as much as I can tell from just that image.
but what i was trying to do is this which is file11
That image is entirely unclear for me. I have no idea why/how you would empty strings in the output array - you didn't say so in your description of the problem.
Generic advice:
When you have problems with your VI then its a BAD IDEA to attach just some images of a frontpanel. It would make so much more sense to attach the VI instead!
Specific advice:
I prefer VIs saved for LV2017 (or older). LV2018 is rather fresh and not everybody has it installed yet (like me).
10-02-2018 07:35 AM - edited 10-02-2018 07:36 AM
@GerdW wrote:
but what i was trying to do is this which is file11
That image is entirely unclear for me. I have no idea why/how you would empty strings in the output array - you didn't say so in your description of the problem.
To me 11.png ("requested result") looks the same as 12.png ("your solution"). Main difference in 11 is, that the result array is transposed, so the 2D array has its values "in the same direction" as the input 1D array.
And somehow it only shows values for the first two (constant) input values, and both B's. I assumed that the output 2d array in 11.png was just a simplification showing the important values, rather than all. Hasnain, can you help us here?
Maybe like this: Is this way you need? If not, could you give some correct test cases?
Input: 10
Output: 10
Input: 00B
Output: 000, 001
Input: 10BB11
Output: 100011, 100111, 101011, 101111
Input: BBB
Output: 000, 001, 010, 011, 100, 101, 110, 111
And shall the result be inside an 1D array? Or a 2D array?
10-02-2018 08:20 AM - edited 10-02-2018 08:24 AM
@GredW your solution is right for 1D Array i was not able to explain it earlier. It gives the write answer and sorry about it.
And @ikaiser is saying it right it was my bad i didn't explain it better
10-02-2018 08:21 AM
"write" or "right" ???
10-02-2018 08:23 AM
here the result of what i got from your solution
10-02-2018 08:25 AM
@RavensFan nice catch corrected it
10-02-2018 08:29 AM
10-02-2018 08:31 AM
there is nothing wrong with the result it is the right one @GredW
10-02-2018 08:33 AM