error in Logon(UserInfo.DefaultUser)
Hi,
I'm using RS 5.10 to write macros to access Virtual Controller data. However, as soon as I use the Logon function to log onto the controller:
controller.Logon(UserInfo.DefaultUser);
I get the following error:
Unable to find the specified file.
I tried logging off first, logging on with different users, etc. But the problem persists. If I comment it out, I get the error that I have no authenticated user.
My understanding is that Logon() failed because something was not set right. Could anyone help me unravel this mystery?
Thanks,
Sam
Comments
-
Hi
I have used the code I posted to you in RS thread and it works fine as a macro for me in 5.10.
So my questions are
1. How did you config your Virtual Controller?
2. What RobotWare version did you use when creating the Controller?Per Svensson
Robotics and Vision Specialist
Consat Engineering0 -
Hi Per,
The controller is automatically created by RS 5.10. I didn't do anything to create it or config it. But now I understand. I'm working on changing App.config file.
I'm using RobotWare 5.10.
Thanks,
Sam
chen2008-7-14 21:56:340 -
Hi
Tried your code an was able to logon without any errors but if you upload or mail the station as pack&go then I will be able to try it as you do because I had a lot off errors due to path's and all that stuff and I don't know if that's why the logon worked for me.
For your testing here is what I used
Used a IRB140 template controller
2008-07-14_220428_RSAddin_WriteWobjZ.zip2008-07-14_220607_RS_Addin.zipPer Svensson
Robotics and Vision Specialist
Consat Engineering0 -
Hi Per:
I attached my macro C# project here.
2008-07-14_223317_batteryLn.zip
However, my RS project is too big and I can't attach it.
I looked thru your files and really didn't see anything that makes yours different from mine. It's weird.
Sam
0 -
Hi
You can mail it to
per.svensson@consat.se
I got your previous macro working except for the stuff that's related to the RS station(to much to setup manually).Per Svensson
Robotics and Vision Specialist
Consat Engineering0 -
Hi Per:
I tested the code you gave to me. It returns the same error as I had:
Unable to find the specified file.
I think it must be something with the station I built.
Sam
0 -
What if you try my code in a new station with just a robot?Per Svensson
Robotics and Vision Specialist
Consat Engineering0 -
Hi Per:
Now I have no problem with your simple station and code.
However, I still have the same problem with my station. I think this Logon error might have to do with the fact that I built my station thru Robot Studio BEFORE I installed Robot Application Builder. My station may not be "used to" RAB. Is it possible?
Sam
chen2008-7-15 4:34:220
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 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