From maintainers-request at octave dot org Wed Jun 22 07:02:06 2005 Subject: Re: Pointers data type in Octave to handle data structures From: =?ISO-8859-1?Q?S=F8ren_Hauberg?= To: Guillaume Schatz CC: "Octave's maintainers list" Date: Wed, 22 Jun 2005 14:01:08 +0200 Hi, I think you should have asked at help at octave dot org, but if I understand you correctly you should have a look at http://wiki.octave.org/wiki.pl?CodaTypes for a tutorial on how to create a new type in Octave. /Søren Guillaume Schatz wrote: > Hi, > > I want to implement a set of functions to perform data acquisitions > using my own hardware. I want to use handle to have a reference to my > hardware like the following instructions in Matlab > > handle = analogInput('nidaq','1'); > ... > data = getData(handle); > > Do you know how to use pointers in octave C++ files such as > > DEFUN_DLD(getData,args, ,"...") > { > handleType *myHandle; > myHandle = args(0).??? > ... > ... > ... > pthread_mutex_lock(&(myHandle->myMutex)); > ... > } > > I really need a pointer to this structure to manage my different threads. > > Thank you for your help > > Guillaume >