EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  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  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: How to start EPICS IOC via LabVIEW on cRIO
From: "[email protected]" <[email protected]>
To: sbaily <[email protected]>, tech-talk <[email protected]>
Date: Sun, 25 Mar 2018 23:04:10 +0800
The error "seemingly" has been solved, but new problems occur.

I repeted the same make process I did yesterday in my PC with CentOS 7 instead of crio, the result didn't change. 
Thus I thought maybe the "Makefile" in the top directory doesn't contain informations about the subdirectory "lvPortDriverApp". 
So I want to "make" in this subdirectory firstly. I put those labview headers to ./lvPortDriverApp/src, 
commented out "CROSS_COMPILER_TARGET_ARCHS += win32-x86-mingw" in ./configure/CONFIG_SITE,
 "make" in /lvPortDriverApp and top directory sequentially, put liblvPortDriver.so liblvtest.so to /usr/lib and "ldconfig".
 After these steps I finnally built the lvPortDriver without "errors".

Then I installed the VIP file(Note that I use the inital version since my LabVIEW is 2015 32-bit),
and changed Initdone VI's library name from ".dll" to ".so". When I deploy and run the LabVIEW program on crio,
the connection between PC and crio would break. It seem was caused by "lvInitialized" function.
I just deleted other Call library function nodes except "callmain" since what I only want to do is starting IOC.
However in this case it neither produced error nor started the IOC successfully (I can't "caget" the PVs).

If the liblvtest.so file exists, why the LabVIEW program can't call it in right way? Is the .so file wrong?
When I use the "callmain" function, whether the program can stop?  Will it run the "iocsh" all the time?

Thank you very much!!!


Zefeng Zhao

Date: 2018-03-24 00:39
Subject: RE: How to start EPICS IOC via LabVIEW on cRIO

lvPortDriver.dbd should be located in lvPortDriverApp/src,

and when that directory builds, it should be installed into the dbd folder

for your system that would be: /usr/local/EPICS/synapp/support/lvPortDriver-master/dbd/

perhaps somethings going wrong the build or install from lvPortDriverApp/src  (like no permission to create the directory, or a case mismatch in the filename)

 

From: [email protected] <[email protected]>
Sent: Friday, March 23, 2018 7:49 AM
To: tech-talk <[email protected]>; Baily, Scott A <[email protected]>
Subject: RE: How to start EPICS IOC via LabVIEW on cRIO

 

Dear Dr. Baily,

 

Thank you very much for giving me these instructions about "lvPortDriver"! But I'm still unable to build it successfully. 

 

I built the EPICS base 3.14.12.7, asyn4-30, and put the LabVIEW header(my version is LabVIEW-2015 32-bit for windows) 

and the newer released version of lvPortDriver to my cRIO-9030.

Then I set the ./configure/RELEASE file like (annotations in the file are omitted ):

 

EPICS_RELEASE = R3.14.12.7

SUPPORT=/usr/local/EPICS/synapp/support

ASYN=/usr/local/EPICS/synapp/support/asyn4-30

LINUX_GPIB=NO

LABVIEW=/usr/local/EPICS/synapp/support/labview

EPICS_BASE= /usr/local/EPICS/base-3.14.12.7

 

Next I typed "make" in this configure directory, "cd ../",and "make" in the lvPortDriver directory.

But errors occur:

 

make[3]: Entering directory '/usr/local/EPICS/synapp/support/lvPortDriver-master/lvtestApp/src/O.linux-x86_64'
perl /usr/local/EPICS/base-3.14.12.7/bin/linux-x86_64/makeIncludeDbd.pl base.dbd lvPortDriver.dbd asyn.dbd lvtestInclude.dbd
echo "../O.Common/lvtestInclude.dbd : ../Makefile" >> lvtest.dbd.d
Expanding dbd
Can't open include file "lvPortDriver.dbd"
Error at or before ""lvPortDriver.dbd"" in file "../O.Common/lvtestInclude.dbd" line 2
dbExpand: Input errors, no output generated
/usr/local/EPICS/base-3.14.12.7/configure/RULES.Db:265: recipe for target '../O.Common/lvtest.dbd' failed
make[3]: *** [../O.Common/lvtest.dbd] Error 1
make[3]: Leaving directory '/usr/local/EPICS/synapp/support/lvPortDriver-master/lvtestApp/src/O.linux-x86_64'
/usr/local/EPICS/base-3.14.12.7/configure/RULES_ARCHS:61: recipe for target 'install.linux-x86_64' failed
make[2]: *** [install.linux-x86_64] Error 2

 

I tried to uninstall and rebuild it several times, but the result didn't changed.

What should I do to correct the error? Look forward to your guidance. 

 

Best Regards,

Zefeng Zhao


Replies:
RE: How to start EPICS IOC via LabVIEW on cRIO Baily, Scott A
References:
RE: How to start EPICS IOC via LabVIEW on cRIO [email protected]
RE: How to start EPICS IOC via LabVIEW on cRIO Baily, Scott A

Navigate by Date:
Prev: EPICS Collaboration Meeting, June 11-15 Andrew Johnson
Next: Job opening for embedded software engineer at PSI Dirk Zimoch
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: How to start EPICS IOC via LabVIEW on cRIO Baily, Scott A
Next: RE: How to start EPICS IOC via LabVIEW on cRIO Baily, Scott A
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 26 Mar 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·