After installing the library, include the library at the top of your code:
Python
C#
C++
JavaScript
MATLAB
Java
Octave
MATLAB (legacy)
from zaber_motion.binary import Connection
# The rest of your program goes here
using Zaber.Motion;
using Zaber.Motion.Binary;
// namespace name may differ in your codenamespaceexample
{
classProgram
{
staticvoidMain(string[] args)
{
// The rest of your program goes here
}
}
}
const { binary: { Connection } } = require('@zaber/motion');
asyncfunctionmain() {
// The rest of your program goes here
}
main();
// package name may differ in your codepackage example;
import zaber.motion.binary.Connection;
import zaber.motion.binary.Device;
publicclassApp
{
publicstaticvoidmain(String[] args)
{
// The rest of your program goes here
}
}
import zaber.motion.binary.Connection;
% The rest of your program goes here
import zaber.motion.binary.Connection;
% The rest of your program goes here
javaaddpath("motion-library-jar-with-dependencies.jar");
CONNECTION_CLASS = "zaber.motion.binary.Connection";
% The rest of your program goes here
#include<zaber/motion/binary.h>usingnamespace zaber::motion;
usingnamespace zaber::motion::binary;
intmain(){
/* The rest of your program goes here */return0;
}