Welcome, Guest
Username: Password: Remember me

TOPIC: Start Proview project with Ge Screen

Start Proview project with Ge Screen 13 years 8 months ago #898

  • Bjorn
  • Bjorn's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
Hi

I want to start my proview project with a desktop shortcut.
When it starts I want my Ge-screen \"Monitor\" started and on top and maximized.
This with only one click.

The machine has the development installed and the project is developed on the machine.

//Björn
The administrator has disabled public write access.

Re:Start Proview project with Ge Screen 13 years 8 months ago #901

  • Bjorn
  • Bjorn's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
I have read the other threads and tested multiple things, can't get it to start.

rt_xtt Nodes-LegoNodes-Op gives a lock/semaphore error \"invalid argument\".

I have to projects, proview and test. I can only get it to work when proview is built but test is the volume.

Does the Node have to correspond to a volume name? Changed it from test to LegoMonitor awhile back...

I can load test with sdf command and from there start volume view.

Who do I get rt_xtt to work or even start my Ge \"Monitor\"?
The administrator has disabled public write access.

Re:Start Proview project with Ge Screen 13 years 8 months ago #902

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3178
  • Thank you received: 502
  • Karma: 133
Hi Björn,

If you look at the Proview Demo desktop icon it looks like this

[code:1][Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Proview Demo
Type=Application
Comment=Start Proview Demo
Exec=xterm -title \"Proview Demo Console\" -e 'export pwra_db=/usr/pwrp/adm/db;source $pwra_db/pwr_setup.sh;source $pwra_db/pwra_env.sh set project pwrdemo46;export PWR_BUS_ID=999;pwr_rtmon'
Icon=/usr/pwrp/adm/db/proview_icon.png
Categories=GNOME;GTK;Application;
[/code:1]

You have to replace pwrdemo46 with your project name, and pwr_rtmon with rt_xtt and the OpPlace object. This requires that the runtime environment already is started, and that the bus id is 999.

To open a Ge graph at xtt startup you create a xtt_setup.rtt_com on you home directory and insert the command 'open graph /graph=monitor' into it (if you have a XttGraph object for the graph you can also use the /object qualifier on the open graph object).

The connection between node and volume is made in the directory volume which you start with 'pwrs'. Below the NodeConfig object for the node, you specify the volume that is to be loaded at Proview startup with a RootVolumeLoad object. The name of the RootVolumeLoad object specifies the volume. Also the bus identity, specified in the BusConfig object has to equal the $PWR_BUS_ID environment variable.

How did you change the name of the volume? Did you create a new volume, or did you try to change the name of an existing volume ? Changing the name of an existing volume is a bit tricky.

I didn't get if you managed to start Proview runtime. If not try with 'rt_ini -i' to get any error messages. Reset with '. pwr_stop.sh' before a start attempt.

/Claes
The administrator has disabled public write access.

Re:Start Proview project with Ge Screen 13 years 8 months ago #903

  • Bjorn
  • Bjorn's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
When running 'rt_ini -i' I get:
E Environment variable 'pwrp_load' is not defined
F Could not open file ld_boot_proview_0000.dat
F Could not open file ld_node_proview_0000.dat
F Cannot find my own node in ld_node_proview_0000.dat

The shortcut code would then look like:
[code:1]Exec=xterm -title \"Proview Console\"
-e 'export pwra_db=/usr/pwrp/adm/db;
source $pwra_db/pwr_setup.sh;
source $pwra_db/pwra_env.sh set project test;
export PWR_BUS_ID=999;
rt_xtt Nodes-LegoMonitor-Op'[/code:1]

The home folder: Do you men the '/home/pwrp/' folder?

The volume name is not change, it's been named 'test' all the time.
It was the node under NodeHeir 'Nodes' that has been changed.
Never noticed any problems because of it thou.

Under volume i have busconfig 'Sim999' and 'Prd1' with NodeConfig 'proview' and 'test'. 'Sim999' has bus 999 and 'Prd1' bus 1.

Post edited by: Bjorn, at: 2010/08/18 14:33
The administrator has disabled public write access.

Re:Start Proview project with Ge Screen 13 years 8 months ago #904

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3178
  • Thank you received: 502
  • Karma: 133
Before you start the runtime on a development station you have to attach to the project with 'sdf'.

You should also check that PWR_BUS_ID is defined with

> echo $PWR_BUS_ID

If is isn't you can set the bus id with

> export PWR_BUS_ID=999

Reset Proview runtime with

> . pwr_start.sh ( point + space + 'pwr_start.sh')

and try to start again with

> rt_ini -i

/Claes
The administrator has disabled public write access.

Re:Start Proview project with Ge Screen 13 years 8 months ago #905

  • Bjorn
  • Bjorn's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 0
Well no it starts!

the . pwr_start.sh wasn't found...

I did:
* sdf test - to start/load the project
the PS1 promt string change to pwrp@proview/test/-.login> from pwrp@proview:~$

the I set the buss (find nothing with echo)
export PWR_BUS_ID=999

The I do rt_ini -i and everything starts loading
get one error:
E ini_SetAttribute, %NONAME-W-NOMSG, Message number 00000000

But it starts fine and the usbio lights the green light.

From another terminal i execute the shortcut code from above:
xterm -title \"Proview Console\" -e 'export pwra_db=/usr/pwrp/adm/db;source $pwra_db/pwr_setup.sh;source $pwra_db pwra_env.sh set project test;export PWR_BUS_ID=999;rt_xtt Nodes-LegoMonitor-Op'

It's starts fine, BUT...

I'm prompted to login, can I have this on a default user?
The license agreement is also shown, who to hide it?
The graph is not started automatically, place the file in /home/pwrp/ as stated above.
When I try to start i manually it's blank (no subgraphs) and get the message in the console: **XttGe: Unable to open file

Post edited by: Bjorn, at: 2010/08/18 17:10
The administrator has disabled public write access.
Time to create page: 8.814 seconds