VS Code Extension - Connecting to a Controller | MUSE
In this video, you’ll learn how to connect Visual Studio Code to an AMX MUSE controller using the MUSE extension. We’ll walk through adding a controller by IP address or hostname, selecting the appropriate connection method, and securely authenticating. You’ll also see how to verify your connection status and access controller resources like devices, programs, and system data directly within VS Code. By the end, you’ll be ready to develop and manage your MUSE projects from a single, streamlined interface.
What You’ll Learn:
• Connecting VS Code to a MUSE controller using the MUSE extension
• Adding controllers by IP address or hostname
• Choosing the correct connection method
• Authenticating securely with your controller
• Verifying connection status within VS Code
• Accessing devices, programs, and system data
• Streamlining your MUSE development workflow
Hello, and welcome to this video on connecting to a MUSE controller with VSCode.
The MUSE extension for VSCode allows you to do a number of things with your MUSE controller, but before any of those things can be done, we need to connect to the controller.
The first thing we need to do is open up VSCode.
Next, click on the Explorer button in the top left-hand corner. When the extension is installed, you will see a section of Explorer labeled MUSE CONTROLLERS.
To add a controller, expand the list and press the large Add MUSE Controller button, or there’s a smaller add muse controller button to the right of MUSE CONTROLLERS.
After you press the button, a dialogue window will pop up at the top of VSCode. Type in the hostname or IP address of your MUSE controller and press enter.
Next, it will ask you what port you would like to connect to the controller on. Auto will attempt to connect to the MUSE controller via the default https port first, and then the http port. Manual will allow you to enter the specific port number you want to connect to, either 443 or 80. For this example, we will choose auto.
Now you should see your device listed under MUSE CONTROLLERS. Notice the small black circle on the icon. This indicates the current communication state of the extension. Black being disconnected or not communicating.
Hover the cursor over your MUSE controller and click the refresh button that appears to the right of it.
Notice, the connection circle changed to yellow. This indicates that the extension has reached out to the controller and confirmed that it is there. Also notice that :443 has been appended to the controller, that is the port number the extension connected on.
Next, click the Login to MUSE Controller button to the right of your controller. When you do, a dialogue box will appear at the bottom right-hand side of VSCode telling you that you must authenticate to the controller. Click the Login button.
At the top of VSCode, fill in the username and password of your controller and press enter. Remember, the username and password were chosen on initial setup of the controller, so there is not a default to be entered here. Once you finish entering your login information, the connection circle will go green. In addition, you will see all the devices created on your controller, programs currently running, and Hcontrol devices seen by your controller.