-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Best way to create a "simulation-mode" #6
Comments
by the way, this is done in my forked copy. |
I did not find a full scaler in the simulators. Time to ask the DAMA
team...
…On 7/21/2020 10:13 AM, Gilberto Fabbris wrote:
by the way, this is done in my forked copy.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARMUMCMWDXHUEHK3TTZSR3R4WWAVANCNFSM4PDWLI2A>.
|
@prjemian: I tried the docker. The start_iocxxx.sh seems to run fine, I can access the container and see the ioc there. For instance "caget xxx:datetime" works fine if I run it within the container. But my the ioc is not visible to my computer, if I run "caget xxx:datetime", it says "Channel connect timed out: 'xxx:datetime' not found.". Any ideas? |
Are you starting the docker container with the |
It turns out docker in Mac does not support --net=host option (but it doesn't return any error if you try to use it). The only way to network with the container is through a port. I've tried using -p 8000:8000 when starting the container and caget 127.0.0.1:8000:xxx:datetime but it doesn't work. Do you know if/how caget would work through a port? |
EPICS ChannelAccess (CA) uses ports 5064 and 6065: |
Any of the PVs from the IOC, such as:
or maybe use docker's bridged network instead: The first of these references is the most useful (but not sure any of them help):
|
It works! It needs (both): I don't know why, but using 5065 doesn't work (but it also doesn't hurt). |
One of them (5064) is the |
This is working as discussed here. Closing this issue. |
I started playing with this by creating "sim_framework" and "sim_devices". Right now I just commented out the import calls in the collection.py, but we can create some conditions (like not being able to read from epics). With this, I could get it to run in my Mac.
@prjemian: Is this the best way to approach it? Creating simulated motors seem trivial based on a quick look at the bluesky tutorial, but it's not obvious to me how to create a simulated scaler.
The text was updated successfully, but these errors were encountered: