Writting I/O signals on RAB

Hi

I have created a virtual signal on the Robot with access level set to ALL, when i try to write values to the signal from RAM (PC Interaface) i get an error on the RAB application and the value is not written. I can read signal values from the Robot. The instructions i am using is as by the example provided on the user guide which is as follows:

private void checkBox1_Click(object sender, EventArgs e)
{
if (this.checkBox1.Checked)
{
digitalSig.Set();
}
else
{
digitalSig.Reset();
}
}
I tried even the Value property, the error arises on the line that attempts tp Set() or Reset(), even on implementing digitalSig.Value = 1. The error is “Invalid clied id” as by Visual studio (VS).

I am using VS2008, RW5.11 and RAB 5.11

Please assist on how I can get to write to IO signals using RAB, mainly using PC Interface.

Thanks’

Hello ,
As you mentioned ,you are getting error "“Invalid clied id”. This error is thrown if you are not logged on to the controller. I do not know your full code but use following code to log on ( e.g. ctr is controller instance)
ctr.Logon(UserInfo.DefaultUser);

reg