Click or drag to resize

RapidDataValue Property

Gets or sets the value of the RapidData.

Namespace:  ABB.Robotics.Controllers.RapidDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public IRapidData Value { get; set; }

Property Value

Type: IRapidData
Exceptions
ExceptionCondition
GeneralExceptionA General Exception has occurred.
Examples
This example shows the value of a RapidData instance in the AlphaPad.
private void ShowValueInAlphapad(RapidData rd)
{
    try
    {
        // Create alphapad if not created
        if (_myAlphapad == null)
        {
            _myAlphapad = new AlphaPad();
            _myAlphapad.Closed += new EventHandler(_myAlphapad_Closed);
        }

        // Get value of Rapid data
        _irdValue = rd.Value;

        // Set value of Rapid data to alphapad
        _myAlphpad.SelectedText = iRd.ToString();

        // Launch alphapad
        _myAlphpad.ShowMe(this);
    }
    catch (GeneralException ee)
    {
        // TODO: Add error handling
    }
    catch (System.Exception ee)
    {
        // TODO: Add error handling
    }
}
private void _myAlphapad_Closed(object sender,EventArgs e)
{
    try
    {
        if (_myAlphpad.DialogResult == System.Windows.Forms.DialogResult.OK)
        {
            // Apply new value to the value of the Rapid data
            _irdValue.FillFromString(_myAlphpad.SelectedText);

            // Set the value to the Rapid data instance in the controller
            _myRapidData.Value = _irdValue;
        }
    }
    catch (GeneralException ee)
    {
        // TODO: Add error handling
    }
    catch (System.Exception ee)
    {
        // TODO: Add error handling
    }
}
See Also