loading
 
communication between labview and roborealm
Domingo from Spain  [1 posts]
3 months
Hello, I'm trying to read a Roborealm's picture from labview, for that I'm using the API server. When I send the following commands:

<request>
    <get_image>
      <name>original</name>
      <format>FBGR </format>
      <quality>256</quality>
    </get_image>
</request>

I recieve the following response:

<response><length>261450</length><width>350</width><height>249</height></response>

How can I get the RGB array?

thanks in advance!
Steven Gentner from United States  [1370 posts] 3 months
Domingo,

Unfortunately since there isn't an explicit way to get raw binary data in XML the above response is allowed by 261450 binary bytes of the image data. Most likely LabView will truncate this info unless explicitly read, i.e. you need to read <length> bytes after getting the </response> in order to get the binary data. Since this data can also include a zero byte the reading it as text will NOT work since its assumed text stops at a zero byte.

Have a look in the API examples labview folder to see if you can find the appropriate LabView modules to read in that extra binary data.

STeven.

 Reply  New Post   Forum Index