Casting Signal to GroupSignal - PCSDK
Bryan
✭
Has anyone tried working with group signals from PC SDK for 5.07?
According to documentation, it is necessary to cast a signal to its particular type (DigitalSignal, AnalogSignal, GroupSignal) before reading or writing to the signal. When I attempt to cast to GroupSignal, it fails and says it is not possible. It only lets me cast to DigitalSignal.
DigitalSignal giMyGroup = (DigitalSignal)ioSystem.GetSignal("giMyGroup");
MessageBox.Show( giMyGroup.Value.ToString() );
giMyGroup.Dispose();
If I cast my group signal to a DigitalSignal, it allows me to access the value, and the value is correct. But if I try to write to the value when it is cast to a DigitalSignal, I get huge numbers written to the group signal in the controller.
DigitalSignal giMyGroup = (DigitalSignal)ioSystem.GetSignal("giMyGroup");
giMyGroup.Value = 1;
giMyGroup.Dispose();
Has anyone else seen these problems when working with group signals?
Bryan Johnson
bryan.johnson@wolfrobotics.com
Wolf Robotics
4600 Innovation Dr.
Fort Collins, CO 80525
USA
bryan.johnson@wolfrobotics.com
Wolf Robotics
4600 Innovation Dr.
Fort Collins, CO 80525
USA
0
Comments
-
This was a bug in the initial 5.07 release. The next release will correct this problem. I tested a beta version recently and everything worked correctly.Bryan Johnson
bryan.johnson@wolfrobotics.com
Wolf Robotics
4600 Innovation Dr.
Fort Collins, CO 80525
USA0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings