02-26-2018 12:41 PM
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
02-26-2018 12:44 PM - edited 02-26-2018 12:50 PM
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?
02-26-2018 01:09 PM
@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~~~~~
02-26-2018 01:51 PM
@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 😄
02-26-2018 02:34 PM
Your Array is empty (void) you need to put something in it like a double numeric constant.
02-27-2018 06:02 AM
Have you tried deleting the array,
right clicking the output terminal of the Y and clicking Create>indicator
this will create the correct indicator.