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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: How to configurate MCA for Octave |
From: | Hulusi Öz <[email protected]> |
To: | Eric Norum <[email protected]>, [email protected] |
Date: | Fri, 22 Jul 2016 19:41:13 +0300 |
For the third step, it says, camonitor not found.
I wonder that did I miss something.. I was in other terminal in the path of "../../iocBoot/iocexample". And i type
>camonitor hulusiHost:ai1
It says like that.
Have you managed to build the example IOC?Can you use clients like caget or camonitor to read values from that IOC?Until you’re able to do that you won’t have any success trying things like octave.Here’s a very quick example — I did this on OS X — you’ll have to make the appropriate substitutions for linux.1 — Create the example application and an IOC:2 — Run the example application and get a list of record names:wenorum@205 283> makeBaseApp.pl -t example examplewenorum@205 284> makeBaseApp.pl -i -t example exampleUsing target architecture darwin-x86 (only one available)The following applications are available:exampleWhat application should the IOC(s) boot?The default uses the IOC's name, even if not listed above.Application name?wenorum@205 285> make. . .wenorum@205 286> cd iocBoot/iocexamplewenorum@205 287> ../../bin/darwin-x86/example st.cmd#!../../bin/darwin-x86/example## You may have to change example to something else## everywhere it appears in this file< envPathsepicsEnvSet("ARCH","darwin-x86")epicsEnvSet("IOC","iocexample")epicsEnvSet("TOP","/Users/wenorum/tmp/e")epicsEnvSet("EPICS_BASE","/usr/local/epics/R3.14.12/base")cd "/Users/wenorum/tmp/e"## Register all support componentsdbLoadDatabase "dbd/example.dbd"example_registerRecordDeviceDriver pdbbase## Load record instancesdbLoadTemplate "db/userHost.substitutions"dbLoadRecords "db/dbSubExample.db", "user=wenorumHost"## Set this to see messages from mySub#var mySubDebug 1## Run this to trace the stages of iocInit#traceIocInitcd "/Users/wenorum/tmp/e/iocBoot/iocexample"iocInitStarting iocInit############################################################################## EPICS R3.14.12.5 $Date: Tue 2015-03-24 09:57:35 -0500$## EPICS Base built Aug 19 2015############################################################################iocRun: All initialization complete## Start any sequence programs#seq sncExample, "user=wenorumHost"epics> dblwenorumHost:ai1wenorumHost:ai2wenorumHost:ai3wenorumHost:aiExamplewenorumHost:aiExample1wenorumHost:aiExample2wenorumHost:aiExample3wenorumHost:aSubExamplewenorumHost:calc1wenorumHost:calc2wenorumHost:calc3wenorumHost:calcExamplewenorumHost:calcExample1wenorumHost:calcExample2wenorumHost:calcExample3wenorumHost:compressExamplewenorumHost:subExamplewenorumHost:xxxExampleepics>3 — Run a client in a different terminal window and monitor a PV in the example IOC:4 — Use octave to read a value from the example IOC:wenorum@205 211> camonitor wenorumHost:ai1wenorumHost:ai1 2016-07-22 08:19:47.303034 4 LOW MINORwenorumHost:ai1 2016-07-22 08:19:48.302899 5wenorumHost:ai1 2016-07-22 08:19:49.302652 6 HIGH MINORwenorumHost:ai1 2016-07-22 08:19:50.303030 7 HIGH MINORwenorumHost:ai1 2016-07-22 08:19:51.302994 8 HIHI MAJORwenorumHost:ai1 2016-07-22 08:19:52.303159 9 HIHI MAJORwenorum@205 212> octave --no-guiGNU Octave, version 4.0.3Copyright (C) 2016 John W. Eaton and others.This is free software; see the source code for copying conditions.There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY orFITNESS FOR A PARTICULAR PURPOSE. For details, type 'warranty'.Octave was configured for "x86_64-apple-darwin15.5.0".Additional information about Octave is available at http://www.octave.org.Please contribute if you find this software useful.For more information, visit http://www.octave.org/get-involved.htmlRead http://www.octave.org/bugs.html to learn how to submit bug reports.For information about changes from previous versions, type 'news'.>> pv=mcaopen('wenorumHost:ai1')MCA Initializedpv = 1>> mcaget(pv)ans = 2>> mcaget(pv)ans = 4>> mcaget(pv)ans = 5>>On Jul 22, 2016, at 12:56 AM, Hulusi Öz <[email protected]> wrote:As an extra question, let's say I could do all of these things and I could use the commands. Once I write a script in Octave, where should I save this file ? Should that saved in my_example that I'm running in the iocshell ? If it is that so, which direction should it be ?--
Eric Norum
[email protected]