You are here: Home > LabviewDOOCS
!!! THE DOCU MOVED TO CONFLUENCE https://confluence.desy.de/pages/viewpage.action?pageId=131369844 !!!!!

How to read and write DOOCS properties with LABVIEW

General

Within the DESY network any computer and user can read DOOCS information via LabView. But in order to write DOOCS properties from Labview (or Windows in general) the computer and the user have to registered (so same computer and different login does not work). Registration can be done via Anna Petrosian (MCS4).

For this to work the computer must have either the ENSHOST environment variable set correctly (cumbersome) or desy.de added to the auto DNS suffixes.

network settings

Labview 64 bit

For Labview 64 bit a completely new dll has been written (doocslv.dll) based on the newer windoocs. This supports all the basic property types (float, int, string, ...) and some array types (int array, spectrum (TD), ...). More complex types like IFFF are not included but can be added if need be. Writing to DOOCS is only implemented for basic types, but other are also easy to add.

Based on this dll you get the Labview user.lib or instrument.lib here. Just copy and extract the archive into your user.lib or instr.lib directory. All functions and an example is then available on your Labview palettes. See picture below.

Find it on the SVN server https://svnsrv.desy.de/desy/GMD/LabView/doocslv/ or as single hopefully up to date archive here: doocslv_64.zip

You need to have MS Visual C++ Redistributable for Visual Studio 2015 installed, a.k.a. msvcp140.dll. Maybe you will still find it here.

user.lib.png

Labview 32 bit

Using the modern windoocs thru doocslv.dll (see explanations for 64 bit version above), you find the library on the SVN server https://svnsrv.desy.de/desy/GMD/LabView/doocslv_32/ or as single hopefully up to date archive here: doocslv_32.zip

There is also the older wdoocs based library; all text below discusses just that solution.

Using the dlls (lv_client2011) sub .vi s for reading and writing DOOCS properties are available. This is based on the wdoocs library (a.d. 2005). Data transfer is done via strings. If you need better performance (reading spectra etc) transfer in the real type (i.e. float) is available with the newer windoocs based library for Labview 64. Please read the notes there.

In the attachments the dlls and some sample files can be downloaded (lv_client2011.zip).

(Last test was working with Labview2014 and Windows 7)

(The dlls have to be in the same folder as the program (or the path has to be defined in Labview). No environment variables have to be set for DESY windows computers additionally (because they usually have the correct suffix set, imho (Fini)). Just extract and run ...)

DOOCS_USB_analog_output.zip: This is a collection of Labview programs (programmed March 2015 by MPK Heidelberg) that read DOOCS variables and sends them to a National Instruments DAC ADC USB device (NI USB 6009) to provide analog signals. The programs are specially made for the delayline and streak camera readouts but can be used for any DOOCS slow parameter. The USB6009 is in Soerens and Erlands office.

Topic attachments
I Attachment History Action Size Date Who Comment
Compressed Zip archivezip DOOCS_USB_analog_output.zip r1 manage 347.6 K 13 Apr 2015 - 14:54 StefanD programms to read doocs variables and send them to a USB DAC as analog signal
Unknown file formatvi ReadOut_Channel_LV2013.vi r1 manage 12.0 K 07 Apr 2015 - 15:50 StefanD Read a DOOCS channel with LV2013
Unknown file formatvi ReadOut_Channel_new.vi r1 manage 8.7 K 20 Nov 2014 - 18:03 StefanD read a property (LV2014)
Unknown file formatvi Set_PropertyValue_new.vi r1 manage 8.6 K 20 Nov 2014 - 18:04 StefanD write a property (LV2014)
Compressed Zip archivezip doocslv_32.zip r3 r2 r1 manage 278.1 K 28 Mar 2017 - 13:11 FiniJ doocslv based on windoocs, fully integrated 32 bit user-lib for Labview 13 and newer
Compressed Zip archivezip doocslv_64.zip r3 r2 r1 manage 302.3 K 28 Mar 2017 - 13:11 FiniJ doocslv based on windoocs, fully integrated 64 bit user-lib for Labview 13 and newer
Compressed Zip archivezip lv_client2011.zip r1 manage 294.2 K 20 Nov 2014 - 17:59 StefanD collection of the dlls needed for the Labview - DOOCS communication
Unknown file formatvi write_to__property_server.vi r2 r1 manage 10.3 K 26 Nov 2014 - 17:20 StefanD a samle how to wtrite to the property server. a server used to provide properties for various occations ( as well as testing programs ...) (LV2014)

Contact | Imprint
Copyright © 2003-2019 Deutsches Elektronen-Synchrotron DESY