TCP speed not logged
s084706
✭
Hi all,
I'm trying to log the TCP speed of my simulation, by linking it to the system output 'TCP speed'. This is all fine and if I add the value in the rapid watch I can see that it actually gets the TCP speed, but when I try to log everything to a .csv file, so I can make a graph of it, I only log 'TCP Speed: 0'. It comes down to this: I see there is a value in the variable but I can't get logged in the Excel sheet.
Programmed:
VAR num TCPSpeed; (I tried both as a 'num'- and 'signalao'-variable
I'm trying to log the TCP speed of my simulation, by linking it to the system output 'TCP speed'. This is all fine and if I add the value in the rapid watch I can see that it actually gets the TCP speed, but when I try to log everything to a .csv file, so I can make a graph of it, I only log 'TCP Speed: 0'. It comes down to this: I see there is a value in the variable but I can't get logged in the Excel sheet.
Programmed:
VAR num TCPSpeed; (I tried both as a 'num'- and 'signalao'-variable
TCPSpeed:=AOutput(aoTCPSpeed);
rWritelog "TCP SPeed: "+valToStr(TCPSpeed);
result in logging = TCP Speed: 0
I think something is wrong with the 'TCPSpeed'-variable, because I don't see this change to anything else than 0.
Thank you!!
s084706
rWritelog "TCP SPeed: "+valToStr(TCPSpeed);
result in logging = TCP Speed: 0
I think something is wrong with the 'TCPSpeed'-variable, because I don't see this change to anything else than 0.
Thank you!!
s084706
Tagged:
0
Comments
-
In your log file is it being written repeatedly or just the one line? If it is just one line you probably left off the \Append optional argument.Lee Justice0
-
lemster68 said:In your log file is it being written repeatedly or just the one line? If it is just one line you probably left off the \Append optional argument.
It is written down repeatedly, so I don't think that there is anything wrong?
0 -
OK, so what I think you should do is force a value into the AO in teach. Then single step through, line by line while you observe changes (or lack of), in your variables. Best troubleshooting practice most of the time.Lee Justice0
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)
- 799 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings