
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
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings