loading
 
communication between labview and roborealm
Domingo from Spain  [1 posts]
7 year
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  [1446 posts] 7 year
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.

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