This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR2633: setting range of slider and wheel in captivate-bswp

Part Number: MSP430FR2633

hello,

I am new to captivate technology. I would like to know how to set the range of slider and wheel in code and  not in design center. basically i would like to take control of the slider and wheel. Help me with the code..

  • Hi Gourav,

    Absolutely. You can set a slider/wheel resolution in the CAPT_UserConfig.c file. Specifically you want to look at the slider/wheel sensor parameters.
    Here is an example:

    tWheelSensorParams wheelSensor_Params =
    {
    .ui8TotalElements = 3,
    .ui16Resolution = 100,
    .SliderBeta = 150,
    .SliderUpper = 100,
    .SliderLower = 0,
    .SliderAlgorithm = eVectors,
    .SliderFilterEnable = true,
    };
  • Hello Dennis,
    I have used your example in main.c flie as a function. But this updated values doesn't gets updated in the Captivate design center. But if I directly change in the driver, it gets updated. Is there any way to update in Design center.

    Thanks
    Gourav

  • Hi Gourav,

    Yes.  I apologize - I thought you wanted to know how to change these values directly in software and didn't care about the design center.

    So in that case you need to click on the slider to open up the slider view, then click on the Tuning tab.  In the list of parameters, scroll down to the bottom of the list.  You will see "Desired resolution", "Lower Trim" and "Upper Trim".

    Referring the the CapTIvate Design documentation, look in the workshop chapter, under the sensor tuning section and you will find a description on how to set the slider resolution, lower and upper trim value.

    Once you have the values set appropriately, then generate an updated project, import into CCS, re-build and program.

**Attention** This is a public forum