Joint value with different config

Hi,

I need to get the joint values of all PTP statments in the main sequence, those points with config_1 is fine, but when I read the points with config_2 I still got the value with config_1. And I’m using VC 2014.

Anyone can help?

https://vc-forum-files.s3-eu-west-1.amazonaws.com/uploads/hm_bbpui/14390/xttbtqpfuqfik9c91vlf8mrw9zv14pcs.PNG

Below is my code:

r1 = app.findComponent('robot1')
rc = r1.findBehavioursByType(VC_ROBOTCONTROLLER)[0]
target = rc.createTarget()
stmt.writeToTarget(target)
jv = target.JointValues

BR

 

Did you touchup the configuration of each PTP statement to be Config_2?