Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2016-04-14 11:39:18

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

GOTO block - TagVisibility parameter

The From / Goto blocks can be used to get a signal from one task to another task if the 'TagVisibility' is set to 'global', correct?
If yes, then how is this working exactly?
If not, what is the best way to get signals from one task to another?

Offline

#2 2016-04-14 13:10:04

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: GOTO block - TagVisibility parameter

...found the answer in this Topic.

FROM/GOTO only to be used inside the .mdl file. In- and outport to be used for communication between different tasks (.mdl files)

Offline

#3 2016-04-14 14:02:09

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: GOTO block - TagVisibility parameter

...I still don't get it....feel stupid.


Test project


Edit :
Oookaaay, the names do need to correspond not the port numbers. I was actually confused by the explanation in the manual.


Manual wrote:

The numbers of ports must be unique in the given hierarchy level, in case of manual modification of the port number the other ports are re-numbered automatically. Be aware that after re-numbering in an already connected subsystem the inputs (or outputs) in the upper hierarchy level are re-ordered, which results in probably unintended change in signal mapping!

If I swapped the port numbers around the mapping didn't change. All signals stayed connected with the name of the port and not with the port number.

2016-04-14-16_27_58_REX.png

Last edited by scoobsalamander (2016-04-14 15:31:28)

Offline

#4 2016-04-15 09:27:51

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: GOTO block - TagVisibility parameter

Hey scoobsalamander,

thank you for your question. You are completely right - From / Goto tags can be only used within one .mdl file.

About renumbering ports and connections:

Manual wrote:

The numbers of ports must be unique in the given hierarchy level, in case of manual modification of the port number the other ports are re-numbered automatically. Be aware that after re-numbering in an already connected subsystem the inputs (or outputs) in the upper hierarchy level are re-ordered, which results in probably unintended change in signal mapping!

The important information is that this issue is about subsystem inputs / outputs. See screenshots for explanation:
If you change portnumber at sine_wave Outport in SubSystem to for example "3", the signals of SubSystem are re-mapped according to port numbering. This will result in unexpected change.
Inport_subsystem_01.pngInport_subsystem_02.png

Your modified project files:
Inport-test.zip


Regards, Tomas

Last edited by tomáš čechura (2016-04-15 09:32:55)

Offline

#5 2016-04-15 11:35:37

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: GOTO block - TagVisibility parameter

Thx, perfectly clear...

Offline

#6 2016-11-20 17:07:06

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: GOTO block - TagVisibility parameter

I have two different tasks and I'm using some signals (double) from one task into the other task by using inport and outport FB's.

This method is working for only one signal for the other three identical signals it is not. There I have on the outport the value 0.
Is it possible that there is something corrupt and how do I solve this? Are there things were I should pay more attention when using the inport and outport for sending signals from one task to another one?

Offline

#7 2016-11-20 17:13:09

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: GOTO block - TagVisibility parameter

Just found out that if I remove the inport, which is connected to the PID1.pv (see image), the connection remains intact.

2016-11-20-17_08_44-Nieuws.png

Last edited by scoobsalamander (2016-11-20 17:13:38)

Offline

#8 2016-11-20 19:07:42

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: GOTO block - TagVisibility parameter

Can be closed....feel very stupid again. This was all due to the fact that I have been playing around with the compile and download window.....

Expert mode is definitely not for me yet....

2016-11-20-19_01_12-REX.png

Offline

#9 2016-11-21 13:43:15

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: GOTO block - TagVisibility parameter

Thank you for your comments. Expert mode can be really tricky even for experts wink

Offline

Board footer

Powered by FluxBB