Jump to content

Sub Arrays Taking a 1D out of 2D


Recommended Posts

Hello all,

I've been fiddling with some of the array controls and I can't seem to get this working properly. I think I'm doing it right, but I seem to be having issues with type mismatch. I've attached a simple example VI that illustrates basically what I want to do - I want to take a section of a 2D array and output it as a 1D array.

[ A B C D ] _____________________[ B ] (I want the entire B column in case theres any confusion)

[ A B C D ] -----> Grab sub array ----->[ B ]

[ A B C D ] _____________________[ B ] * Labview tells me that this is a 2D array?

Heres the Background if you're wondering:

- I have a case where both the true condition and false condition output to the same place (register? - blueish block on the wired to the side of the structure?) Anyways if the case is true the output is a (should be) 1D array that is a subset of another larger 2D array, and if the case is false, the output is a constant 1D array. - Im having issues because the subset is not a 1D array and thus the outputs of the true and false conditions arn't the same type!

Thanks in advance,

- Waren.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.