MotionView User's Guide

Read String

Read String

Previous topic Next topic No expanding text in this topic  

Read String

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Description:

This function reads a string value assigned to an attribute from the specified block.

C Calling Sequence:

int c_rto_read_string(const char *block, const char *attrib, int *alen, char *strvalue);

Arguments:

Argument

Type

 

Description

block

Character Array

Input

This contains the block name in a TeimOrbit file.

attrib

Character Array

Input

This contains the name of the attribute inside a block.

alen

Integer

Input

This contains the number of characters in the attribute name.

strval

Integer

Output

This returns the string value of the attribute.

FORTRAN Calling Sequence:

DLLFUNC void STDCALL RTO_READ_STRING_F2C(char *blockName, int len1, int *blockNameLen, char *attributeName, int len2, int *alen, char *strvalue, int len3, int *valueLen, int *success)

Arguments:

Argument

Type

 

Description

blockName

Character Array

Input

This contains the block name in a TeimOrbit file.

blockNameLen

Integer

Input

This contains the number of characters in the block name.

attributeName

Character Array

Input

This contains the name of the attribute inside a block.

alen

Integer

Input

This contains the number of characters in the attribute name.

strvalue

Integer

Output

This returns the string value of the attribute.

success

Integer

Output

If the value is read then success return 1 or else 0.