What's new
DLL upgrade: 4.1221 → 4.1239
This release bundles the updated IviumSoft driver DLL (4.1239) and exposes all new commands it introduces, across both the Core and Pyvium layers.
New commands
General
| Pyvium |
Core |
Description |
get_max_device_number() |
IV_MaxDevices |
Returns the maximum number of devices IviumSoft can manage |
get_version_host() |
IV_VersionHost |
Returns the DLL version required by the active IviumSoft |
check_dll_version() |
IV_VersionCheck |
Returns True if the DLL version matches the IviumSoft requirement |
get_host_handle() |
IV_HostHandle |
Returns the host handle |
get_dll_version_string() |
IV_VersionDll |
Returns the DLL build number as a string |
select_serial_number(str) |
IV_SelectSn |
Selects a device by serial number, ready to connect |
Direct Mode
| Pyvium |
Core |
Description |
set_device_current(int, float) |
IV_selectdevicesetvalue |
Set current on a specific IviumSoft instance |
set_device_potential(int, float) |
IV_selectdevicesetvalue |
Set potential on a specific IviumSoft instance |
set_digital_output(int) |
IV_setdigout |
Set digital output lines on the external port (bitmask) |
get_digital_input() |
IV_getdigin |
Read digital input lines on the external port (bitmask) |
set_we32_channel(int) |
IV_we32setchannel |
Select the active WE32 channel |
set_we32_offset(int, float) |
IV_we32setoffset |
Set WE32 offset for a single channel |
set_we32_offsets(int, list) |
IV_we32setoffsets |
Set WE32 offsets for multiple channels at once |
get_we32_offsets(int) |
IV_we32getoffsets |
Read current WE32 offset values for N channels |
read_we32_currents() |
IV_we32readcurrents |
Read all 32 WE32 currents simultaneously |
get_current_trace(int, float) |
IV_getcurrenttrace |
Capture a current sample sequence at a defined rate |
get_current_we2_trace(int, float) |
IV_getcurrentWE2trace |
Capture a WE2 current sample sequence |
get_potential_trace(int, float) |
IV_getpotentialtrace |
Capture a potential sample sequence |
Method Mode
| Pyvium |
Core |
Description |
get_db_file_name() |
IV_getDbFileName |
Returns the path of the last created SQL database file |
update_temperature(float) |
IV_UpdateTemperature |
Updates the shared temperature across all channels (beta) |
save_dataset(str) |
IV_savedataset |
Saves the full measurement list to disk |
Batch Mode (new category)
| Pyvium |
Core |
Description |
set_status_par(int) |
IV_StatusParSet |
Sets the global synchronisation variable |
get_status_par() |
IV_StatusParGet |
Reads the global synchronisation variable |
Bug fixes
IV_selectdevice — ffi.cdef declared return type as long; DLL actually returns void. Was reading garbage as return code on every instance switch.
IV_we32setoffsets / IV_we32getoffsets / IV_we32readcurrents — all three allocated a single double* instead of a double[N] array. Only the first channel value was written or read; remaining channels silently ignored.
- Trace functions —
IV_getcurrenttrace, IV_getcurrentWE2trace, IV_getpotentialtrace had the same single-element array bug. Now return the full sample list.
IV_getDbFileName buffer overflow — buffer was 16 bytes; any real filesystem path would overflow it. Increased to 260 bytes.
get_active_iviumsoft_instances off-by-one — range(1, 32) silently excluded instance 32. Fixed to range(1, 33).
get_device_status wrong label — status code 0 was labelled 'connected'; DLL defines it as 'not connected'.
- Trace functions missing state guards —
get_current_trace, get_current_we2_trace, get_potential_trace called Core directly without verifying driver/device state.
IV_getDbFileName in wrong module — was in GenericFunctions; moved to MethodModeFunctions to match DLL documentation.
Documentation
Nine Jupyter notebooks covering the full pyvium API from first connection to multi-device synchronization:
| Notebook |
Topic |
01_getting_started |
Installation, driver lifecycle, error handling reference |
02_device_and_instance_management |
Connecting devices, switching instances, serial number selection |
03_direct_mode_basics |
Potential/current control, cell on/off, current ranges |
04_direct_mode_signals |
DAC/ADC, digital I/O, AC signal, MUX channel |
05_bipotentiostat_and_we32 |
BiStat WE2 channel and 32-channel WE32 array |
06_method_mode |
Load, parameterize, run, monitor, and save experiments |
07_data_processing |
Parse IDF files and export to CSV (no hardware needed) |
08_batch_and_synchronization |
Multi-device setpoints, parallel runs, synchronized channel start |
09_trigger_reference |
Complete reference for all Python–IviumSoft trigger mechanisms |
feedback welcome via GitHub Issues.
Full method list
See docs/method_list.md for the complete mapping of all Pyvium and Core methods.