Mirroring a Perspective Session

Good Morning Team,

I am currently working on an application where I have one Perspective project that I would like to deploy on two PCs, which I want to mirror one another. For example, I have a process where operators need to collect scrap at different points in the process, but they cannot see or interact with each other. However, I want them to work from one interface so that when User 1 adds a row, User 2 can see it, and when User 2 adds a row, User 1 can see it. I have tried to attach a diagram to explain. Please let me know if you need any clarification.

Thanks,
Ryan

I assume the row data has a database source?

In that case you could use a combination of system.util.sendMessage and system.perspective.sendMessage to tell each session to update certain bindings when polling is off.

Another way would be to have the source data held in a tag. Any session referencing that tag will have the same data.

When you say has a database source, What do you mean?

When someone creates a new row, is that inserting a record into a database table? It looks like you are using a flex repeater, where does the data for the flex repeater live, where does it come from.

3 Likes

Right, no its not going to a database. It goes to the tag path for that row (Examlpe Row 1 and Row 2 are active):

Are both projects referencing the same tag provider?
If not, can they?

Why tags specific to the rows and not just a dataset directly? I feel like this is making things more complicated.

2 Likes

I can kinda see it, as there can be race conditions if more than one user is modifying a dataset. Using a database table would help prevent that.

Is this on Ignition Edge or Ignition Standard? If Edge, using a database is out of the question.