1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 <2016> 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 <2016> 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: About Visual DCT |
From: | hulusi <[email protected]> |
To: | Andrew Johnson <[email protected]>, [email protected] |
Date: | Tue, 19 Jul 2016 22:25:07 +0300 |
Hi, The hardware that I want to deal with is manufactured by CAEN and it is supported by EPICS. The device is a digitizier,I have its driver. I will search the Sequencer tool deeply. In fact, I have installed it,but I couldn't configurate it with my example. As far as I can understand, I should use Sequencer tool for the reading and processing the data. To do that, the data should be inside the database. I should take them from the device and put them into database via VDCT. But, I don't know how to configurate device with VDCT. Moreover, I don't also know how to read data inside the VDCT. As I said before, I can control the values of PVs by using "dbpf,dbpr.." inside the iocBoot application. These are the points that i am in trouble. Thanks in advance.. Regards, -Hulusi On 07/19/2016 09:38 PM, Andrew Johnson
wrote:
Hi Hulusi, On 07/19/2016 01:07 PM, hulusi wrote:If there is any way or any tool in order to make database generation, i'll be glad to know.There are many ways to generate databases since a .db file is just a text file, so you could write programs in almost any language to create them. However that isn't really what you're asking and generating databases programmatically is probably a rather advanced topic. While you are learning EPICS the Visual DCT program is probably the best tool for you to use.The thing is that i can do IOC installation. I mean, I made the database structure via VDCT and controlled it by using this path "../../iocBoot/iocmyexample" (epics> dbpf ..) . What I have done is, I used "dbpf,dbpr" commands to change and look the values of PVs. However, i want the program to read the data from the supported hardware and in somehow process them (which is basicly to say,e.g take the data under the desirable value).Information about how to use specific EPICS device support is usually included in the documentation for that device support; each one is slightly different, so you do have to read the documentation for your specific device sofware.The point that i was in trouble, I could not find how to configurate the database with hardware (I have the driver of the hardware). Another point is that let's say, i figure the configuration out ; how can i allow the database to read the data automatically ? Should i use any control loop to do that and where should i do if it is like that ?You say you have a driver for the hardware, is that an EPICS driver or is it something like a library from the manufacturer for use from C/C++ code? If you are asking how to write an EPICS device driver there are some later lectures in the series I pointed you to before about how to do that, although I think those took place in 2015 so they're on the other web-page. Since you seem to be just starting with EPICS you should probably get a bit more experience using existing device drivers before writing your own. Have you checked whether the hardware already has an EPICS driver available? If you can tell us what hardware you will be controlling we might be able to give more specific advice about how to interface to it.If i am not wrong, there is an extension called as "Sequencer" which uses "State Notation Language". Does this allow me to generate the database by using C language ? If it is like that,how can i use it ?The Sequencer is a tool that connects to (or is built into) a running IOC and can read and write data from specific PVs, monitor changes in the values of those PVs and write to other PVs in response. It does not create databases, you have to do that yourself. There is a lecture video that describes the sequencer and writing State Notation Language programs.Which tools should i use for whole project (or simple examples,e.g reading data,processing them and monitoring on the screen) ? Right now, i have these ones : MEDM, Alarm Handler, Probe, Strip Tool, Sequencer(but i don't know how to use it,i am searching..). In addition,i have these supports : SSCAN, Calc, Autosave (I couldn't configurate them with database,e.g i couldn't use "snc" command on the IOC application.) . I am in trouble about making/configurating whole project's parts together..You might want to take a look at the Virtual Linac example available from https://www.aps.anl.gov/epics/download/examples/index.php to see a more complex configuration that includes an IOC database, sequence program and a few MEDM screens that all work together. Unfortunately EPICS has a rather steep learning curve. Creating IOC applications is not like writing programs in C. - Andrew |