Difference between revisions of "MC-Basic:LOADCOMPDATA$"
m |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:LOADCOMPDATA$}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 50: | Line 51: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:LOADCOMPDATA|LOADCOMPDATA]] |
* [[MC-Basic:LOADCAMDATA|LOADCAMDATA]] | * [[MC-Basic:LOADCAMDATA|LOADCAMDATA]] | ||
}} | }} |
Latest revision as of 05:55, 22 June 2017
Language: | English • 中文(简体) |
---|
This command causes data to be loaded from a file on flashdisk into a Comp table structure. Any existing data associated with the specified Comp table is erased.
The <Filename> is a binary file with a .CMP extension.
The BasicMoves Development Studio will allow you to add a CSV Comp File to your project. It then converts it to a binary format automatically when the project is loaded. The values in the source column should be evenly spaced and monotonically increasing.
After loading a table from file the CompSet command is necessary to assign the axes.
Short form
LcompData$
Syntax
LoadCompData$ <Filename > <comptablename>
Availability
Versions 4.0.13 and higher
Type
<Filename>: String
Scope
Task and Terminal
Limitations
The Comp table must not be in use (CompActive=0)
Examples
LoadCompData$ “Compdata.cmp” comp1
Or
Common shared Str1 as string
Str1 = “Compdata.cmp”
LoadCompData$ Str1 comp1
CompSet Comp1 A1, A3, A4 on A2, A6, A5