LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error1012 Metrics:Size of Block Diagram

Hi, there is something strange in LabView8.2. If I removed the block diagram from a VI and then I try to read the size of the block diagram with the property node "Metrics:Size of Block Diagram" it returns me an error: Error 1012 Property Node (arg 1) in prova82.vi<APPEND>
Property Name: <b>Metrics:Size of Block Diagram</b>.
If I do exactely the same thing in Labview 7.1 it correctly returns me "0" with no error.
 
Any idea?
 
Thanks.
0 Kudos
Message 1 of 2
(2,593 Views)
Returning an error may be acceptable if you are trying to get the size of an object that doesn't exist.
Check the attached vi: this code works for both LV8.2 and LV7.1
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 2
(2,587 Views)