LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array is expecting a 1d array of void? Not double as expected.

Hi there, 

For some reason my script here, where i read in a wav to an array is not working. I cannot write the double values to the array as it is expecting a '1d array of void' as opposted to the double values i thought it would expect?

 

Any help is appreciated.

 

Watter

0 Kudos
Message 1 of 6
(5,058 Views)

You need to attach the VI, we cannot tell form a picture, espeically if you don't even show the array container on the front panel. Almost looks like the array container is just an empty shell without datatype.

 

What happens if you put a DBL indicator inside the empty array container on the front panel?

 

0 Kudos
Message 2 of 6
(5,053 Views)

@altenbach wrote:

You need to attach the VI, we cannot tell form a picture, espeically if you don't even show the array container on the front panel. Almost looks like the array container is just an empty shell without datatype.

 

What happens if you put a DBL indicator inside the empty array container on the front panel?

 


The 8-Ball said

~~~~~~That would fix it~~~~~


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 6
(5,032 Views)

@JÞB wrote:
The 8-Ball said

~~~~~~That would fix it~~~~~


 

Most likely, yes.

 

There are other scenarios where the terminal is black and it would not fix it, for example if the array container contains an empty cluster (or an array container containing an empty cluster or a cluster containing an empty array container, etc.). But yes, the error message would be slightly different in these cases 😄

0 Kudos
Message 4 of 6
(5,011 Views)

Your Array is empty (void) you need to put something in it like a double numeric constant.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 6
(5,001 Views)

Have you tried deleting the array,

 

right clicking the output terminal of the Y and clicking Create>indicator

 

this will create the correct indicator.

0 Kudos
Message 6 of 6
(4,960 Views)