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

Home » Public Forums » archive » Re: Talking with my C data
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: Talking with my C data [message #13434 is a reply to message #13429] Thu, 12 November 1998 00:00 Go to previous message
Luis Oliveira is currently offline  Luis Oliveira
Messages: 4
Registered: November 1998
Junior Member
Eric Williams <eric@astro.wesleyan.edu> wrote:
> Howdy, (...)
> I am collecting images with a CCD using C code I wrote with some
> supplied C libraries we purchased with the camera. Right now once the
> data is readout from the camera it is stored in a data stream in memory
> and is then put into a file using fwrite. I have a couple of questions:
>
> Once the data is read out of the camera into memory can I use IDL to
> read the data from the memory or should I continue to have C write the
> data with fwrite and then can I have IDL read that data from the file
> created with fwrite? In either case I am not sure how to make IDL get
> the data.
> (...)

Hi,

I've had the same problem and I made the option to let the C code generated
program write the data to a file. Then I've created structures in IDL that
mimic the C structures and used READU procedure.

The only problem is to create arrays of bytes instead of string variables
in the structures. Use also named structures, cause the fields don't change
of data type.

About call_external or linkimage, I'm sorry, but I didn't tryed that...

Hope this helps,

Luis
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Access to serial ports
Next Topic: Re: Unknown #INFO

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

Current Time: Fri Nov 28 07:45:04 PST 2025

Total time taken to generate the page: 0.00908 seconds