comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDL and C-
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL and C- [message #39464 is a reply to message #39420] Mon, 24 May 2004 18:17 Go to previous messageGo to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Mon, 24 May 2004 13:02:26 -0700, Ryan Smith wrote:

> JD-
>
> Thanks a bunch for the reply. I tried plugging in the code you gave
> me and I got a variable redifinition error due to the fact that buffer
> is defined earlier as follows:
> Int8* buffer = NULL;
> I then took out the char *buffer and tried the looping statment to
> fill the array only to have it compile but crash IDL when the
> call_external is executed. Any other thoughts? Thanks again for your
> help-

Did `buffer' actually get filled up by camera data and did the loop
stay within the bounds of buffer and the output passed in from IDL?
If you don't know the size of buffer a priori, you can split it into
two calls: one which gets the size, and another which initializes the
variable in IDL and gets it filled up.

If you need really high speed, you might consider looking into IDL
shared memory implementation: see SHMMAP. You could then map a piece
of memory in both IDL and in C, and just dump the camera data directly
into it, at which point it would be directly visible in IDL. This
minimizes the number of times the data is copied, and would maximize
frame rate.

JD
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Choice of 64-bit platform for IDL
Next Topic: vector magnitude

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 17:18:48 PDT 2025

Total time taken to generate the page: 0.55807 seconds