Smart Dashboard Error

My team is trying to use the Smart Dashboard along with the driver station this year. We hope to be able to toggle through several USB cameras as well as use a limelight and have its stream constantly visible. When trying to set the driver stations Dashboard type to the Smart Dashboard, this error comes up. It also will randomly appear when opening up the Smart Dashboard manually. To open after this I have to uninstall and reinstall the dashboard.


What can I do to fix this?

If you seen that error again, can you go to the .vbs file its trying to use, and upload it here? That is a very interesting error we have not seen before.

How do I go about doing this. As far as I know it is just trying to open the Smart Dashboard. Can you lead me through what it is you would like me to do?

The Driver Station opens a .vbs file at C:\Users\Public\frc2019\tools\SmartDashboard.vbs in order to launch SmartDashboard. You can navigate to that file and copy the contents or upload it here. It likely starts something like this (unless the contents got corrupted, causing the compilation issue):

'Create File System Object for working with directories
Set fso = WScript.CreateObject("Scripting.FileSystemObject")

'Get the script name, and from that the jar name
jarName = fso.GetBaseName(WScript.ScriptName) + ".jar"

SmartDashboard.vbs (2.1 KB)

I am not sure if this is what you need. When following the pathway this is what I am led to. Thank you for all of your help.

That’s a SmartDashboard save file. How on earth did that happen?

Very interesting, seems like the SmartDashboard.vbs file got overridden by a Smart Dashboard save file. Try replacing the contents with

To add on, when you are saving your SmartDashboard layout, how are you doing that? Are you using Save As, or just saving when you close SmartDashboard?

Thank you! That worked. It is now opening with no errors.

I have been saving as it prompts me to when closing. I now realize that this was probably overriding the needed file. Am I correct on this assumption? Thanks for the help!