iseg VME Control

iseg VME Control is a graphical program to control iseg high voltage VME devices.

The connection to VME bus is done with the WIENER VM-USB controller.

Linux

To use the VM-USB controller, the library libusb must be installed (best via packet manager of your Linux distribution).

Furthermore, the Wiener library libxx_usb.so must be copied to /usr/lib/. This library is a wrapper that uses libusb to access the VM-USB controller. After connecting the VM-USB to the PC, it is recognized as USB 2.0 device. Depending on system, you can get more information (e.g. serial number) about this by

/sbin/lsusb -v
or (only with recent kernels):
dmesg

The VM-USB serial number is always VMxxxx, where xxxx is the four digit serial number, e.g. VM0124.

For iseg Control, the Qt libraries (version 4.2 or higher) are needed on your system. If not installed yet, please do so via your systems packet manager.

Ubuntu

sudo apt-get install g++
sudo apt-get install libusb-dev
sudo apt-get install qt4-dev-tools libqt4-dev

Building iseg Control from source

The easiest way to build iseg Control is to use Qt Creator (Version 3.3.0 or newer is recommended). Just load the isegControl.pro project file and choose Build All (Ctrl+Shift+B). Otherwise, use the shell and create a build directory parallel to the source directory:

mkdir isegControl-build-desktop
qmake ../isegControl/isegControl.pro
make

SELinux

If your system uses SELinux, the following message appears at program start from a console:
./isegControl: error while loading shared libraries: /usr/lib/libxx_usb.so:
	cannot restore segment prot after reloc: Permission denied
In this case, you can temporary turn off SELinux with:
/usr/sbin/setenforce 0
or, if you want to, disable SELinux permanently by editing /etc/selinux/config, set enforcing disabled and reboot your system.
chcon -t texrel_shlib_t libxx_usb.so
should also work, but was not tested.

Non-root access to VM-USB

On most systems, access to USB hardware via libusb is only allowed with root rights. To allow a normal user to access the USB hardware, the following changes have to be made.
Debian Lenny
Change MODE to "0666" in the following lines in /etc/udev/rules.d/50-udev.rules and reboot your system:
ACTION=="add", SUBSYSTEM=="usb_device", \
	PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev};
	printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", \
	NAME="%c", MODE="0666"
Ubuntu 14.04
Change MODE to "0666" in the following line in /lib/udev/rules.d/50-udev-default.rules:
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb-device", MODE="0666"
Following, you can re-plug the VME-Controller's USB cable.

Index