Difference between revisions of "Extensions.Flash.StoreUploadData"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
[[Category:Flash]]
+
{{DISPLAYTITLE:  '''StoreUploadData '''}}[[Category:Flash]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | StoreUploadData | Requests a OTX runtime to store data in a data storage | [[Action]]| [[Flash|OTX Flash extension]] | [[Flash related actions]] | [[InvalidReferenceException]] <br/> [[UnsupportedFormatException]] | - }}
+
{{ClassificationActivity | StoreUploadData | Requests a OTX runtime to store data in a data storage | [[Action]]| [[Extensions.Flash|OTX Flash extension]] | [[Flash related actions]] | [[InvalidReferenceException]] <br/> [[Extensions.Flash.UnsupportedFormatException|UnsupportedFormatException]] | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
Line 14: Line 14:
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| Append | [[Boolean]] | [[Value]] | FALSE | [1] | The Boolean value of this attribute specifies whether data is appended to existing data (true) or not (false). If not, the storage is cleaned before write access.}}
+
{{TableRowPropertie1| Append | [[Core.DataTypes.SimpleDataType.Boolean|Boolean]] | [[Value]] | FALSE | [1] | The Boolean value of this attribute specifies whether data is appended to existing data (true) or not (false). If not, the storage is cleaned before write access.}}
{{TableRowPropertie2| Format | [[FlashFileFormat]] | [[Value]] | @FlashFileFormat:BINARY | [1] | <nowiki>This attribute defines the format of the file. FlashFileFormat == {INTEL|SREC|BINARY}.</nowiki>}}
+
{{TableRowPropertie2| Format | [[Extensions.Flash.FlashFileFormat|FlashFileFormat]] | [[Value]] | @FlashFileFormat:BINARY | [1] | <nowiki>This attribute defines the format of the file. FlashFileFormat == {INTEL|SREC|BINARY}.</nowiki>}}
{{TableRowPropertie1| Data | [[ByteField]] | [[Term]] | - | [1] | This element provides the data to be stored.}}
+
{{TableRowPropertie1| Data | [[Core.DataTypes.ComplexDataType.ByteField|ByteField]] | [[Term]] | - | [1] | This element provides the data to be stored.}}
{{TableRowPropertie2| Target | [[String]] | [[Term]] | - | [1] | The element comprises a data store. If the target is a URI, which describes a file, the data is stored in this file.}}
+
{{TableRowPropertie2| Target | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1] | The element comprises a data store. If the target is a URI, which describes a file, the data is stored in this file.}}
{{TableRowPropertie1| Address | [[Integer]] | [[Term]] | - | [1] | This element is used to store address information in the memory.}}
+
{{TableRowPropertie1| Address | [[Core.DataTypes.SimpleDataType.Integer|Integer]] | [[Term]] | - | [1] | This element is used to store address information in the memory.}}
 
|}
 
|}
  
Line 34: Line 34:
  
 
== See also ==
 
== See also ==
[[GetDownloadData]] <br/>
+
[[Extensions.Flash.GetDownloadData|GetDownloadData]] <br/>
[[SetFlashSession]]
+
[[Extensions.Flash.SetFlashSession|SetFlashSession]]

Revision as of 07:15, 15 February 2016

Classification

Name StoreUploadData
Short Description Requests a OTX runtime to store data in a data storage
Class Action
Extension OTX Flash extension
Group Flash related actions
Exceptions InvalidReferenceException
UnsupportedFormatException
Checker Rules -
Standard Compliant Yes

OTL Syntax

Flash.StoreUploadData(BooleanTerm, ByteFieldTerm, StringTerm, NumericTerm, FlashFileFormat);

Description

A StoreUploadData activity requests a OTX runtime data in a data storage to store.

Properties

Name Data Type Class Default Cardinality Description
Append Boolean Value FALSE [1] The Boolean value of this attribute specifies whether data is appended to existing data (true) or not (false). If not, the storage is cleaned before write access.
Format FlashFileFormat Value @FlashFileFormat:BINARY [1] This attribute defines the format of the file. FlashFileFormat == {INTEL|SREC|BINARY}.
Data ByteField Term - [1] This element provides the data to be stored.
Target String Term - [1] The element comprises a data store. If the target is a URI, which describes a file, the data is stored in this file.
Address Integer Term - [1] This element is used to store address information in the memory.

OTL Examples

DiagCom.ComChannel ComChannel1;
List<String> List1;
Flash.FlashSession FlashSession1;

ComChannel1 = DiagCom.GetComChannel("DiagnosticsCan_ECU_1", null, false);
List1 = Flash.GetListOfValidFlashSessions(@Directions:DOWNLOAD, ComChannel1, @Audiences:SUPPLIER);
FlashSession1 = Flash.GetFlashSession(List1[0]);
Flash.StoreUploadData(false, &1234FFFF, "file:///E:/Data.txt", 0, @FlashFileFormats:BINARY);

See also

GetDownloadData
SetFlashSession