ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Input given from Index array type doesnt match for "case structure" ??

when i try to give Input from Index array type doesnt match for "case structure"
 
All i have is an input array and in which i take only some index, so i have index array
then i wanna check whether that number matches through the "Case Structure"
But the type doesnt match
Error is type mismatch like  source is 1D array of unsigned byte
                                          &  sink is long.
 
Should i convert or something else  ??
 
Thanks in advance
Praveen
 
 
0 Kudos
Message 1 of 5
(3,311 Views)
Best way to get help is to post a VI as an attachment or at least an image of the block of code causing problems.  Preferably as a .png, never as a .bmp.
0 Kudos
Message 2 of 5
(3,301 Views)

If you are using an Index Array function and the output is a 1D array (the source), then you are indexing a 2D array. The difference between a 1D and 2D array are pretty clear if you look at the type of wire. A 1D array is a solid thick line. A 2D array is 2 thin lines. You can't wire a 1D array to a case statement. If you wire up both row and column inputs of the Index Array, you'll get a scalar out.

As Ravens Fan mentions, though, attaching an image or the actual code will help everyone understand what exactly you are doing.

0 Kudos
Message 3 of 5
(3,298 Views)
 Thanks,,i will check. i am member of other boards,yes example should be given.
 
  i tried inserting image, but it prompts for URL server which i dont have.
  Is there an easy way to attach the Snap Shot  or Picture ?
 
~Praveen
0 Kudos
Message 4 of 5
(3,285 Views)
You can add a file to you post as attachement.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 5
(3,282 Views)