Picture class/Origin property

From LabVIEW Wiki
Jump to: navigation, search
VI Server Property Information
Property ID 6339806
Scope Basic Development Environment
Data Name Origin
Short Name* Origin
Long Name* Origin
* Displayed here in English. Short and Long names appear in the language of the LabVIEW IDE.
Owning Class ID 15
Owning Class Name Picture Class
Data Type Numeric Cluster TypeDef data type

Numeric Cluster TypeDef

Property Node Origin
Available in Real-Time Operating SystemYes
Available in Run-Time EngineYes
Loads the block diagram into memoryNo
Loads the front panel into memoryNo
Need to authenticate before useNo
PermissionsRead/Write
Remote access allowedYes
Settable when the VI is runningYes

Horizontal and vertical coordinates of the point in the picture you want to display in the upper left corner of the picture control or indicator.

Increasing the horizontal coordinate shifts the picture to the left, and increasing the vertical coordinate shifts the picture to the top.

You can use this property to display a different portion of a picture in the picture control or indicator. For example, if you wire 100 and 100 to this property, LabVIEW draws the upper left corner of the picture 100 pixels above and 100 pixels to the left of the upper left corner of the control or indicator.

If you change the origin and LabVIEW draws part of the picture outside the draw area of the picture control or indicator, you can use the Horizontal Scrollbar Visible and Vertical Scrollbar Visible properties to display scroll bars for the picture control or indicator. As you move the scroll bars of the picture control or indicator, the origin of the picture in the control or indicator changes, and the coordinates returned by this property change.

Elements
Name Description
Left Horizontal coordinate of the point in the picture you want to display in the upper left corner of the picture control or indicator.
Top Vertical coordinate of the point in the picture you want to display in the upper left corner of the picture control or indicator.

Uses

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links