I've not had consistent success running anything that fast in Ignition. If you are willing to accept occasional longer hiccups from garbage collection, 10-20ms pace should be do-able.
However, I think your real problem is that you are writing values directly into the node. I've only done similar high-speed operations writing to a driver's SubscriptionItem. Without a subscription (tag group pace) to indicate the allowed timing, your writes are probably not propagating. (Subscription pace is defined to mean no faster than given, not this fast.)
You don't create or configure a SubscriptionItem in your driver. Your driver is given a SubscriptionItem by the OPC Server. That item will include the pace you are expected to use.
Your driver should be adding a listener to the DriverSubscriptionModel to be informed when OPC tags are created/destroyed that point at your driver.
@448719222 I'm not sure you understand how OPC UA subscriptions work.
The client requests a publishing interval for the subscription and a sampling interval for the items. When Ignition is the client these parameters are controlled by the rate of Tag Group the OPC tags are in. You will not see values update faster than this.
You already subscribed when you created the "test" tag in the Ignition tag browser.
It subscribed at the rate dictated by the tag group it belongs to.
Your script is just reading the current Ignition tag value, which is only going to update as fast as the tag group rate in the best case. You are not reading directly from the OPC server. If you changed the script to use system.opc.readValue instead you would see the value update more frequently.