Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Commit

Permalink
Update FolderDS.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
sergirubio authored Oct 19, 2016
1 parent ca3327c commit f0d70fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/devices/FolderDS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,25 @@ To start using the FolderDS API follow these steps:

* Create a FolderDS device:

.. code:: python
import fandango.tango as ft
ft.add_new_device('FolderDS/test','FolderDS','test/folder/tmp')
ft.put_device_property('test/folder/tmp','SaveFolder','/tmp/folderds')
ft.Astor('test/folder/tmp').start_servers()
* Load the API and save a file:

.. code:: python
import fandango.device
folders = fandango.device.FolderAPI()
folders.save('test/folder/tmp','test.txt','Hello World!')
* Retrieve the contents from a client, even from another tango_host

.. code:: python
import fandango.device
folders = fandango.device.FolderAPI()
v = folders.read('dbhost:10000/test/folder/tmp','test.txt')
Expand All @@ -36,6 +42,8 @@ To start using the FolderDS API follow these steps:
* Browse the stored files from FolderGUI (you'll need to add devices from other tango_hosts to FolderDS.ExtraDevices property)

.. code:: python
import fandango.tango as ft
devs = ft.get_class_property
import fandango.device.FolderGUI
Expand Down

0 comments on commit f0d70fb

Please sign in to comment.