set_instrument
Deploy an instrument into a Multi-Instrument Mode slotset_instrument is a client-side function available in the Python, MATLAB and
LabVIEW APIs. There is no equivalent cURL call. After deploying
Multi-Instrument Mode via platform, instrument functions
can be called directly using either the instrument URL
/api/<instrument>/<function> or the explicit slot URL
/api/slot<n>/<instrument>/<function>.
Deploying an instrument into a slot will automatically upload the required bitstream to the device if it is not already present. Any slots not assigned an instrument will be filled with an empty placeholder bitstream.
Parameters
integer required
Target slot number. The number of available slots depends on the number of slots configured.
allowed values:Moku:Lab 1 to 3 Moku:Go 1 to 3 Moku:Pro 1 to 4 Moku:Delta 1 to 8
class required
Instrument class to deploy into the slot (e.g. WaveformGenerator, Oscilloscope, LockInAmp)
string
Path to the bitstream package (.tar file), or to a folder containing its .mokuinst files. Only required when deploying a MokuCompile, MokuCompilePlus or GenInst. In MATLAB, this can also be the single .mokuinst file for the slot.
default: None