Developer Portal Community

    We are still working on migrating to the new Bosch Connected Industry Online Portal. Stay tuned! Click here for the latest updates.

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    StationData is emptied if AnalogInput SetAdjustment function is used (rSave variable is connected)

    StationData is emptied if AnalogInput SetAdjustment function is used (rSave variable is connected)

    florrens
    Established Member

    If I run the SetAdjustment function of an AnalogInput 1.2.17.0 my StationData is emptied: all values set to 0 or empty strings.

    I have configured the AnalogInput as follows and use the _saveData method below.

    Is this method not suitable to handle the data storage for the AnalogInput?  (what else should be connected to rSave instead?)

    florrens_0-1697184907100.png

    florrens_1-1697185043003.png

     

     

    2 REPLIES 2

    SteffenR-
    Community Moderator
    Community Moderator

    Your code is wrong, check the documentation

    SteffenR_0-1697188387344.png

    Hint for old projects:
    The code is different for DatAccess or DataSetManager/DataSetAccess. If you are using DatAccess and manually delete StationDataNew, you also need the OpconMemCpy code for DatAccess.

    PS:
    The new value (parameter rAdjustment) is written into the ShadowDataSet in the background in the library while saving is running.

    florrens
    Established Member

    Thank you!

    I want to confirm if my call of the _saveData in the StationUnit OnUnitOperational is placed correctly to make sure the new data is applied properly to the ShadowDataSet by the AnalogInput object during the saving function? The AnalogInput object are placed further down in the tree.

    florrens_0-1697638161945.png

     

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist