US English (US)
JP Japanese
CN Chinese
KR Korean

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Knowledge Base Home
  • Contact Us
English (US)
US English (US)
JP Japanese
CN Chinese
KR Korean
  • Home

Saving and uploading configuration files with Moku API

Written by Dylan Perez

Updated at September 24th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Moku:Go
    Moku:Go General Moku:Go Arbitrary Waveform Generator Moku:Go Data Logger Moku:Go Digital Filter Box Moku:Go FIR Filter Builder Moku:Go Frequency Response Analyzer Moku:Go Logic Analyzer & Pattern Generator Moku:Go Oscilloscope & Voltmeter Moku:Go PID Controller Moku:Go Spectrum Analyzer Moku:Go Waveform Generator Moku:Go Power Supplies Moku:Go Lock-in Amplifier Moku:Go Time & Frequency Analyzer Moku:Go Laser Lock Box Moku:Go Phasemeter
  • Moku:Lab
    Moku:Lab General Moku:Lab Arbitrary Waveform Generator Moku:Lab Data Logger Moku:Lab Digital Filter Box Moku:Lab FIR Filter Builder Moku:Lab Frequency Response Analyzer Moku:Lab Laser Lock Box Moku:Lab Lock-in Amplifier Moku:Lab Oscilloscope Moku:Lab Phasemeter Moku:Lab PID Controller Moku:Lab Spectrum Analyzer Moku:Lab Time & Frequency Analyzer Moku:Lab Waveform Generator Moku:Lab Logic Analyzer/Pattern Generator
  • Moku:Pro
    Moku:Pro General Moku:Pro Arbitrary Waveform Generator Moku:Pro Data Logger Moku:Pro Frequency Response Analyzer Moku:Pro Oscilloscope Moku:Pro PID Controller Moku:Pro Spectrum Analyzer Moku:Pro Waveform Generator Moku:Pro Lock-in Amplifier Moku:Pro Laser Lock Box Moku:Pro Digital Filter Box Moku:Pro FIR Filter Builder Moku:Pro Phasemeter Moku:Pro Multi-instrument Mode Moku:Pro Logic Analyzer/Pattern Generator Moku:Pro Time & Frequency Analyzer
  • Python API
  • MATLAB API
  • Arbitrary Waveform Generator
  • Data Logger
  • Digital Filter Box
  • FIR Filter Builder
  • Frequency Response Analyzer
  • Laser Lock Box
  • Lock-in Amplifier
  • Oscilloscope
  • Phasemeter
  • PID Controller
  • Spectrum Analyzer
  • Time & Frequency Analyzer
  • Waveform Generator
  • Logic Analyzer & Pattern Generator
  • Multi Instrument Mode
  • Moku Cloud Compile
  • Moku general
  • LabVIEW
+ More

The ability to save multiple configuration files and upload them to any Moku is a new feature in MokuOS 4.0.1, and with the release of 4.0.2, users can now save and upload configuration files with the Moku API. 

Each instrument now has a function called save_settings()/load_settings() which gives the ability to save the instrument configuration and load it on to any Moku. 

For the Multi-Instrument context, the function is called save_configuration()/load_configuration(). The Multi-Instrument configuration file includes information about slot count, sample rate, instrument placement, connections, and input/output settings. It does not include information about the configuration of each individual instrument. 

Save configuration files:

from moku.instruments import MultiInstrument, WaveformGenerator, Oscilloscope

## How to save configuration files

i=MultiInstrument('192.168.XX.XX', force_connect=True, platform_id=4)

## Configure Multi-Instrument settings
wg=i.set_instrument(1, WaveformGenerator)
osc=i.set_instrument(2, Oscilloscope)

connections=[dict(source='Slot1OutA', destination='Slot2InA'),
             dict(source='Slot1OutA', destination='Output1')]

i.set_connections(connections=connections)

## Save Multi-Instrument configuration
i.save_configuration(filename='/Path/to/Downloads/mim_configuration.mokuconf')

## Configure waveform generator and save settings
wg.generate_waveform(channel=1, type='Sine', frequency=1e6)
wg.generate_waveform(channel=2, type='Square', frequency=100e3, duty=50)
wg.save_settings(filename='/Path/to/Downloads/wavegen_config.mokuconf')


## Configure oscilloscope and save settings
osc.set_timebase(-1e-6, 1e-6)
osc.set_acquisition_mode(mode='Precision')
osc.set_trigger(type='Edge', source='ChannelA', level=0)
osc.save_settings(filename='/Path/to/Downloads/oscilloscope_config.mokuconf')


i.relinquish_ownership()	

 

Load configuration files:

from moku.instruments import MultiInstrument, WaveformGenerator, Oscilloscope

## How to upload configuration files

i=MultiInstrument('192.168.XX.XX', force_connect=True, platform_id=4)


## Load Multi-Instrument configuration
i.load_configuration(filename='/Path/to/Downloads/mim_configuration.mokuconf')

## Put instruments into slots before loading settings
wg=i.set_instrument(1, WaveformGenerator)
osc=i.set_instrument(2, Oscilloscope)

## Load instrument settings
wg.load_settings(filename='/Path/to/Downloads/wavegen_config.mokuconf')
osc.load_settings(filename='/Path/to/Downloads/oscilloscope_config.mokuconf')

i.relinquish_ownership()

 

 

 

upload moku

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • How can I import a .CSV file from Moku:Lab’s Data Logger into MATLAB?
  • How do I ensure that I have the latest instrument versions on my Moku?

Sitemap

  • Moku:Lab
  • Instruments
  • Software
  • Company
  • Support
  • Store
  • Terms & Conditions
  • Privacy Policy

Offices

United States
+1 (619) 332-6230
12526 High Bluff Dr
Suite 150
San Diego, CA 92130

Australia
+61 2 6171 9730
243 Northbourne Avenue
Suite 2
Lyneham, ACT 2602

Australia
+61 03 7073 3594
700 Swanston Street
Suite 5E, Level 5
Carlton, VIC 3053

Follow us

Youtube LinkedIn

官方微信

Contact us
© 2025 Liquid Instruments. All rights reserved.

Knowledge Base Software powered by Helpjuice

Definition by Author

0
0
Expand