Accessing a channel field after accessing a gate field does not work. This happens only if both of the above are done in a single statement.
Example:
/* Works. */
setfield K_mit_usb Ek 0.07 Y_A>sy 5.0 Y_B->sy 5.0
/* Doesn’t work. */
setfield K_mit_usb Y_A->sy 5.0 Y_B->sy 5.0 Ek -0.07
Error message:
Error: cannot find field: B.Ek
Example script attached.
Reported by: niraj_