5. Simulating Node Values in atvise

Created by Vester Business, Modified on Mon, 1 Sep at 10:14 PM by Agent Aaron Camacho


You can create a node in atvise, is it possible to make it have simulated data without being connected to any data source.
For this you will need to create a script in the Node itself or in the test section:


SYSTEM.LIBRARY.PROJECT.MENUSCRIPTS.MyScript


This script will be time trigered.


✅Steps


  1. Configure the trugger section:

  2. Code example:

    //Node
    var TI = Ua.findNode("AGENT.OBJECTS.Simulation.Frecuency.Frecuency_1");
    
    //Limits
    var Vmax=60;
    var Vmin=50;
    
    //Assing the result
    TI.result.assign({value: Vmin + (Math.random()*(Vmax-Vmin))});

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article