Draw value of AnalogIO into Diagram

Hey Guys, I’m new to the topic of app development for UR. I want to show the course of an analog input over time in a diagram. How do I get the values ​​of an analog input over a certain period of time?

Hello @j.widmann,

There isn’t any built in functionality to capture the data in this format, you’ll probably have to set some triggers over the period of time you want to log the data and handle the timescale/plotting on your end.

You can check out the manipulate IO example for access the IO: GitHub - BomMadsen/URCap-ManipulateIO: URCap resembling a gripper, that can be used as a sample to create a Gripper URCap.

Then depending on where you want to plot this data, you can check out this example that covers using Variable, VariableFactory and ExpressionBuilder: GitHub - UniversalRobots/CycleCounterSwing: URCap sample that mainly demonstrates the principle of Variable, VariableFactory and ExpressionBuilder