LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems With CIN Programming

I added a simple *.VI application for calculating x[n]^2.
A variable size vector x[n] is entered a CIN function. The output is x[n]^2.
 
This output data is also written to a file using the CIN program.
 
1. When a waveform graph is connected to CIN output indicator, the y axis are not shown.
    and sometimes the indicator indexes are vanished.
    sometimes the LABVIEW will crash.
 
What can be done in order to immune this CIN code?
 
Best Regards,
Nir
0 Kudos
Message 1 of 2
(2,602 Views)


@057768022 wrote:
I added a simple *.VI application for calculating x[n]^2.
A variable size vector x[n] is entered a CIN function. The output is x[n]^2.
 
This output data is also written to a file using the CIN program.
 
1. When a waveform graph is connected to CIN output indicator, the y axis are not shown.
    and sometimes the indicator indexes are vanished.
    sometimes the LABVIEW will crash.
 
What can be done in order to immune this CIN code?
 
Best Regards,
Nir


You can't just simply assign the dimSize of the input array to the output array. You first need to make sure the output array is properly sized. Read the External Reference Manual about LabVIEW memory management, pointers and such and then about the function NumericArrayResize().

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 2
(2,569 Views)