Experimental Physics and Industrial Control System
|
Thanks for sharing the source.
Can you post the errors you get when renaming the .c file to .cpp?
It looks like the C file is mainly a convenience function for creating the Modbus drivers. Most if not all of that could probably be done in the startup script instead. But I can see what needs to be done to make it work with the current version of the
Modbus driver.
Mark
Sent from my iPhone
On Aug 26, 2022, at 8:41 AM, William Kirstaedter <kirstaedter at fhi-berlin.mpg.de> wrote:
Hi Mark,
unfortunately, it doesnt work, various casts fail.
I've saved a dump here:
https://gitlab.fhi.mpg.de/kw/eurotherm2k
(should be externally accessible)
William Kirstaedter
PP&B Computer Support Group
Fritz-Haber-Institut Berlin
Am 26.08.22 um 14:40 schrieb Mark Rivers:
Hi William,
You can probably just rename eurothermModbus.c to
eurothermModbus.cpp. See if that works.
How does eurothermModbus use drvModbusAsyn?
Mark
From: Tech-talk on behalf of William Kirstaedter via Tech-talk
Sent: Friday, August 26, 2022 7:20 AM
To:
tech-talk at aps.anl.gov
Subject: Eurotherm modbus support
Hi,
unfortunately the DLS site for the eurotherm support module is not available anymore...
(http://controls.diamond.ac.uk/downloads/support/eurotherm2k/)
does anybody still maintain eurotherms?
I kinda converted the 1-22 release to work with my environment and am now running into a C / C++ error...
newer asyn versions reference vector.h which is C++ while my eurotherm support file is C, which is bad because the C compiler doesnt know about the C++ vector.h ...
In file included from /home/epics/EPICS/epics-support/modbus/include/drvModbusAsyn.h:15,
from ../eurothermModbus.c:25:
/home/epics/EPICS/epics-support/asyn/include/asynPortDriver.h:4:10: fatal error: vector: No such file or directory
#include <vector>
^~~~~~~~
compilation terminated.
Im not sure how to get around this....
maybe someone with more experience in the EPICS build system can help me out.
thanks,
William
|
- References:
- Re: Eurotherm modbus support Mark Rivers via Tech-talk
- Re: Eurotherm modbus support William Kirstaedter via Tech-talk
- Navigate by Date:
- Prev:
Re: Eurotherm modbus support William Kirstaedter via Tech-talk
- Next:
RE: Eurotherm modbus support Mark Rivers via Tech-talk
- 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
- Navigate by Thread:
- Prev:
Re: Eurotherm modbus support William Kirstaedter via Tech-talk
- Next:
RE: Eurotherm modbus support Mark Rivers via Tech-talk
- 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
|
ANJ, 14 Sep 2022 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|