LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Initializes an array and passes as a pointer causes labview to crash

Ah okay that makes a lot of sense. If only the wizard did perform magic! Luckily for me, that is the only function that would require this. I am getting an error saying: One or more required inputs to this function are not wired or are wired incorrectly. Do all the inputs need to be wired to something, even if they are a pointer?

 

Right now the inputs that are not wired are:

 

uint32_t* timeDomainFramesRead

uint32_t* frequencyDomainFramesRead

0 Kudos
Message 11 of 14
(912 Views)

That are most likely 32 bit integers passed as pointer. So have you configured them as

 

Control Type: Numeric

Data Type: 32 bit signed integet

Passed: as pointer

 

You can wire a 0 constant on the left side of the node to these two parameters and on the right side you get the number of actually filled in elements in the according array.

Rolf Kalbermatter
My Blog
0 Kudos
Message 12 of 14
(879 Views)

That is what I was thinking. It is nice to know how memory can actually be allocated in labview. I am trying to graph the output of timeDomainBuffer which will be an array of signed integers. The array will be segmented by a block size. For example, if I set my block size to be 1024 and input a 4k Hz signal, timeDomainBuffer's output should be multiple sine waves where array[0...1023], array[1024...2048]... are each a sine wave.

 

I am unsure what would be the best way to graph this.

0 Kudos
Message 13 of 14
(852 Views)

I figured it out. If I use array subset I can pick what I want from the array.

0 Kudos
Message 14 of 14
(834 Views)