MATLABfromCSharp.AFAccess.setDataPrefs C# (CSharp) Method

setDataPrefs() public static method

Sets the Datapreferences in AFAccess.
public static setDataPrefs ( bool timestamp, int datapref, string format ) : void
timestamp bool if true: exports the Timestamp with the data.
datapref int Integer for Attribute.GetValues; 0(raw), negative(Samples), positive(profiled samples)
format string String representation of the Data Preference
return void
        public static void setDataPrefs(bool timestamp, int datapref, string format)
        {
            Timestamp = timestamp;
            dataPref = datapref;
            dataFormat = format;
        }

Usage Example

Beispiel #1
0
 // Data Preferences
 /// <summary>
 ///  Passes the Data Preferences from the MainForm to the AFAccess.
 /// </summary>
 /// <param name="timestamp"> true: exports the timestamp to Matlab.</param>
 /// <param name="datapref"> Integer for Attribute.GetValues; 0(raw), negative(sampling), positive(profiled sampling)</param>
 /// <param name="format"> String representation of the Data Preferences. </param>
 public void currentDataPrefChanges(bool timestamp, int datapref, string format)
 {
     AFAccess.setDataPrefs(timestamp, datapref, format);
 }