How to connect your hardware to Artificial#
To start running hardware with Artificial, you will need to complete these steps to create an adapter and connect to the hardware. As a prerequisite, you should have a lab with a digital twin of the hardware in Lab Builder. See How to build a Lab for assistance with that.
Install your driver on the lab instrument’s PC. See Connecting to On-Site Lab Hardware for the steps.
- Develop an adapter for the lab that can interface with the lab equipment’s drivers. This should be based on the specific drivers’ resource libraries. The top level steps for this process are:
Setup your artificial-adapter-template adapter project development environment. See Set Up a Local Dev Container.
Configure the adapter for your hardware. See Hardware-Specific Adapter Setup.
- Launch your adapter and confirm it is connecting to Artificial and the driver by:
In Visual Studio Code with your adapter project loaded in a dev container, go to
Run and Debug
in the left pane, and click the button to start running your adapter.Confirm your adapter is connected to your Artificial by going to the adapters tab of the correct Lab and see if this adapter is listed. For more info, consult Testing adapter connectivity. For troubleshooting, consult the troubleshooting section on Adapter Configuration.
Test connectivity by starting your driver and checking your the driver’s command window to see if it is connected. For more info, see Connecting to On-Site Lab Hardware.
Congratulations, your adapter can communicate with Artificial and the hardware driver!
Now, you are ready to run your first test workflow to see your instrument run! Add and run a simple connectivity test workflow to your adapter by following the steps in Adding and Running a Simple Connectivity Test Workflow.
This successfully completes the guide to connecting your hardware to Artificial.
What’s next#
Once you are ready, you can write your own workflows by checking out the tutorial Step 2: Create your first Workflow and the other workflow sections.
Deploy to a real lab: To deploy your adapter to the lab IPC see Deployment.