run-time display of varying rapid variabl
sxc86
✭
Hi,
Could anyone help me displaying a varying(~40 Hz) sensor signal on FlexPendant. ? (RAB ver 5.09)
This is what I've done so far...
-------------------------------------------------
1) Since my sensor is connected to IRC5's COM1 (RS232), I first wrote a "background" Rapid task to open/read the COM1 port and assign to a PERS variable (let's say, mysig)
2) Next, I want build a FP SDK application to read this PERS variable (mysig) and display on an object(I use TpsLabel) on FlexPendant.
I've only made a FP application to place a TpsLabel, in which I like to display mysig variable. After a week of reading manual, I am still stuck in this stage...
I am newbie at RAB, so any suggestion/tip would be greatly appreciated !!!
Could anyone help me displaying a varying(~40 Hz) sensor signal on FlexPendant. ? (RAB ver 5.09)
This is what I've done so far...
-------------------------------------------------
1) Since my sensor is connected to IRC5's COM1 (RS232), I first wrote a "background" Rapid task to open/read the COM1 port and assign to a PERS variable (let's say, mysig)
2) Next, I want build a FP SDK application to read this PERS variable (mysig) and display on an object(I use TpsLabel) on FlexPendant.
I've only made a FP application to place a TpsLabel, in which I like to display mysig variable. After a week of reading manual, I am still stuck in this stage...
I am newbie at RAB, so any suggestion/tip would be greatly appreciated !!!
0
Comments
-
Use the RapidDatabindingSource object to create a connection to "mysig" then bind the value to the label's caption property. This requires no code to be written, it will be generated automatically. Here is a summary of the steps:
1. Drag a RapidDataBindingSource object to your view.
2. Add a RapidDataObject to the RapidDataList collection of the RapidDataBindingSOurce, specifying the var name, task name, and module name of mysig
3. Set the data binding property of the Tpsabel.Caaption to the Value of your RapidDataBindingSource
Russell Drown0 -
Dear RussD,
I just tried and found it works ! ==>
(FYI.. It was TpsLabel.text (not caption) in this RAB 5.09 version.)
Thank you very much !!
sxc862008-1-7 22:54:220
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings