Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

multiple models for poolmotor in taurusgui #1147

Open
dschick opened this issue Sep 9, 2020 · 6 comments
Open

multiple models for poolmotor in taurusgui #1147

dschick opened this issue Sep 9, 2020 · 6 comments
Labels

Comments

@dschick
Copy link

dschick commented Sep 9, 2020

Hi, I am trying to add a Sardana poolmotor panel to my taurus gui which works perfectly fine for a single motor/model.
The poolmotor itself also works fine with multiple motors/models when started from the command line.
But when trying to add multiple motors/models to the poolmotor panel in taurus gui it just not works and shows some wired panel instead with the following warning:

MainThread     WARNING  2020-09-09 08:53:32,813 PoolMotorTV: Exception caught while setting model: TaurusException("Invalid Tango device name 'tango://ampere.sxr.lab:10000/motor/mbitangomotorctrl/0, tango://ampere.sxr.lab:10000/motor/mbitangomotorctrl/7'",)

This might be related to #1143

@dschick
Copy link
Author

dschick commented Sep 9, 2020

I just want to add, that the poolmotor panel also does not work after a restart of the taurus gui

@reszelaz
Copy link

reszelaz commented Sep 9, 2020

Hi Daniel,
I can not reproduce this issue. What I do is:

  1. Open TaurusGUI, in my case: taurus gui macrogui
  2. Open "New panel..." dialog: Panels -> New panel
  3. Select TaurusForm panel type and give it a name
  4. In Advanced settings select 4 motors (model is compsed as following: tango://pc255.cells.es:10000/motor/motctrl04/1, tango://pc255.cells.es:10000/motor/motctrl04/2, tango://pc255.cells.es:10000/motor/motctrl04/3, tango://pc255.cells.es:10000/motor/motctrl04/4)
  5. Finish

@dschick
Copy link
Author

dschick commented Sep 9, 2020

thanks for the quick reply.
For the TaurusForm it also works for me but I use the Other and use poolmotor out of the Sardana repo.
Therefor I have a symlink of the Sardana qtgui folder to my taurus gui folder.
I am not sure if this is the correct way of using the poolmotor widget in the taurus gui.

@reszelaz
Copy link

reszelaz commented Sep 9, 2020

For the TaurusForm it also works for me but I use the Other and use poolmotor out of the Sardana repo.

I have tried it in this way and what I get is a bunch of floating widgets.

I am not sure if this is the correct way of using the poolmotor widget in the taurus gui.

I think the PoolMotorTV (TaurusValue sub-class) is only foreseen to be used within a TaurusForm. Maybe one could try to use it in another widget with a grid layout, but this was not the idea behind its original design.

Is it in some sense not what you expect, or not convenient way of using it?

@cpascual
Copy link
Member

cpascual commented Sep 9, 2020

I think the PoolMotorTV (TaurusValue sub-class) is only foreseen to be used within a TaurusForm

I confirm that.

TaurusValue and its descendents are "weird" widgets that mess with the parent layout. They should only be used within a TaurusForm, and only by letting the TaurusForm creating and inserting them.
If you want to force the use of a specific item class (such as PoolMotorTV) in a taurus form , have a look at the ItemFactory API

@dschick
Copy link
Author

dschick commented Sep 10, 2020

I just use PoolMotor without TV and then it is not floating around. For the +TV widget I confirm the floating behaviour

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants