Weasis commands at startup ($dcmview2d:layout -n 2)

566 views
Skip to first unread message

Jon Ander Zuccaro

unread,
Mar 10, 2016, 8:33:41 PM3/10/16
to dcm4che

I was wondering if setting the layout is possible using the jnlp file. I have sent some commands and they work, for instance:

<argument>$dicom:close -a</argument>

To close everything before opening a new study.

Now, I am trying the following to start weasis with a 1x2 view


<argument>$dicom:get -i  ....data....</argument>

<argument>$dcmview2d:layout -n 2</argument>

The images take a while to load. This isn't working the first time, if I open the jnlp again it works. (It also works if I telnet to Weasis once the images are there)

I get the feeling that the layout command is sent before the images had a chance to load so it fails the first time, but I could be wrong.

Any insights? that command would be so useful for creating at least something similar to hanging protocols server side before launching the viewer.

Nicolas Roduit

unread,
Mar 11, 2016, 11:44:02 AM3/11/16
to dcm4che
The command "$dcmview2d:layout" has been made for driving Weasis from an external application. It cannot be used at launch because loading the images and the layout are in two separated process (so the sequence is unpredictable).

What kind of hanging protocols are you expecting?

Jon Ander Zuccaro

unread,
Mar 11, 2016, 12:55:10 PM3/11/16
to dcm4che
Yeah, I understand now.

On an ideal setting an user could save some custom hanging protocols like 2x2 for MR or something like that  on our system and we could then construct the jnlp accordingly, or the creating and loading of these protocols could be handled by Weasis itself. When the study loads the hanging protocol is applied automatically depending on modality or other criteria.

I know that hanging protocols is a feature that's coming, it was just tempting to try and see if we could play around a little with the commands to see what could be accomplished.

As weird as it sounds the fact that you can execute additional commands by launching a second jnlp after the first one is our only hope in implementing a weird requirement: or users want the current opened study to be closed automatically when they press a button in our application.

Anyhow.., thank you as always for the great work Nicolas.

Nicolas Roduit

unread,
Mar 12, 2016, 4:47:05 AM3/12/16
to dcm...@googlegroups.com
I update the documentation that was not clear at https://dcm4che.atlassian.net/wiki/display/WEA/Weasis+commands

Yes it will be available in the hanging protocols.

care foundation

unread,
Nov 22, 2017, 9:24:29 AM11/22/17
to dcm4che
Can someone tell me how to set the hanging protocol for weasis 2.5.3 portable distribution for different modalities or based on the number of series present in a study

Nicolas Roduit

unread,
Nov 23, 2017, 2:08:18 AM11/23/17
to dcm4che
Currently it is not possible at startup.

George Baloyi

unread,
Aug 3, 2020, 11:36:39 AM8/3/20
to dcm4che
How do you apply it on an already opened study then?

Jon Ander Zuccaro

unread,
Aug 3, 2020, 12:58:52 PM8/3/20
to dcm4che
Using a telnet session:


If you need more information about telnet and how to enable a telnet client on Windows: https://www.lifewire.com/what-is-telnet-2626026


Reply all
Reply to author
Forward
0 new messages