loading
 
Reading an array in API
from Australia  [87 posts]
9 years
Hi STeven,

I have attached a RR program that I would like to transfer into API format in C++. I looked into  the API documentation but have not seen an example of how to deal with an array.

Could you help me convert this program into API (C++). The main problem is reading the "SAMPLE_LINE_POINTS" from RR through API.

Cheers,
Nemanya
program.robo
Anonymous 9 years
Nemanya,

Have you tried to read the SAMPLE_LINE_POINTS using the GetVariable API call? It should return a list of comma delimited numbers.

<request><get_variable>SAMPLE_LINE_POINTS</get_variable></request>

you can literally use

telnet localhost 6060

and then paste in the above XML line ... a bunch of data points should be returned.

The C++ example has this routine in it as an example. Is this what you were having an issue with?

STeven.
from Australia  [87 posts] 9 years
Yes, that it what I wasn't sure about. I will give it a try.

Thanks,

Nemanya

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index