From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Variable: AreaLinePt in Diadem 9.0

When I try to execute the following lines to set the frame I get an error saying "Invalid Vector or Matrix Index"
AreaLinePt(1,1) = 2
AreaLinePt(1,2) = 67
AreaLinePt(1,3) = 87
AreaLinePt(1,4) = 79

the PicObjMaxSize = 100.

Can you please help me to resolve this probelm.
Thanks
Priya
0 Kudos
Message 1 of 3
(3,221 Views)
Hi Priya,

use the following lines instead:

GraphObjOpen(PicObj(1))
AreaLinePt(1) = 2
AreaLinePt(2) = 67
AreaLinePt(3) = 87
AreaLinePt(4) = 79
GraphObjClose(PicObj(1))

Instead of PicObj(i) you may use the name of object i, e.g. "FreeFrame1"

Christian
0 Kudos
Message 2 of 3
(3,221 Views)
Hey Thanks a lot christian, it was very helpful. 🙂
0 Kudos
Message 3 of 3
(3,221 Views)