Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Simulation Tools → Thread

   

FE-C change resistance with script python

Rank

Total Posts: 8

Joined 2012-11-16

PM

Hello Community ,

I need to create a python script to change automatically the power form 0 to max power and inverse max power to 0 as a cycle.
Can anyone help me ? There is no documentation about this or some examples.

Kind Regards,
Marco

     
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Hello Marco,

The "SimulANT+ Scripting Interface.chm" file which comes with SimulANT+ details all of the functions you can use to manipulate the simulator, while there are other sample scripts which show how to create up/down cycles for sensors in Python.

In particular you will want to look under the "FitnessEquipmentDisplay Class" section, and the command you will want to use is "SendTargetPower". I will see if we can get a sample script added sooner than later.

Best regards,
Harrison