Hello,
I have several PCSD based units which have parallel phases active. The PCSD unit banner displays each phase on a tab strip and this is great. What I am looking for is a way to make the most recently activated phase either be the first tab, or have it's tab automatically displayed once the phase loads and starts.
The reason for this is that usually the parallel phase is mundane (controlling an agitator or some such), and all of the action is happening in the other phases. By default, the mundane phase will take or work it's way to the first tab and always be displayed.
Thanks,
Dave
In reply to dave_marshall:
Dave,
The links are setup based on the value of the Tabstrip, you will need to modify this logic to change to be the (NumPhases - TabStrip.Value) instead of the Tabstrip. In my version of PCSD it is done via the logic below:
pn_SelectedPhase1.CurrentValue = tabPhaseList.Value + 1 sPhaseLink = "DVSYS." & txtUnit1.Caption & "/P" & Trim(Str(pn_SelectedPhase1.CurrentValue)) hcdSetBatchBanerAnimationSources dynMsgBanner, sPhaseLink, pb_ShowPrompts1
I think changing to this will work for you:
pn_SelectedPhase1.CurrentValue = pn_NumPhases.CurrentValue - tabPhaseList.Value sPhaseLink = "DVSYS." & txtUnit1.Caption & "/P" & Trim(Str(pn_SelectedPhase1.CurrentValue)) hcdSetBatchBanerAnimationSources dynMsgBanner, sPhaseLink, pb_ShowPrompts1
You will essentially need to modify anywhere the pn_SelectedPhase1.CurrentValue is getting updated. The pn_NumPhases variable may have a number but it will be the variable in the grpSettings for that Dynamo
If you have any issues or questions, give me a call.
Regards,
Matt