| MATLAB Central > MATLAB Newsreader > Pass arbitrary pointer type between mex functions |
|
|
|
Subject: Pass arbitrary pointer type between mex functions From: Cody Date: 23 May, 2012 21:17:07 Message: 1 of 7 |
|
Hello, hopefully some of you will be able to shed some light on the problem. I'm trying to pass a user defined pointer type between calls to different mex functions in a Matlab script. More specifically, I have some custom hardware that is accessed over USB using an API written in C. In order to access the hardware, a pointer (of a user defined type) to a device handle is generated in C like this: |
|
Subject: Pass arbitrary pointer type between mex functions From: James Tursa Date: 23 May, 2012 22:19:09 Message: 2 of 7 |
|
"Cody" wrote in message <jpjk4j$41m$1@newscl01ah.mathworks.com>... |
|
Subject: Pass arbitrary pointer type between mex functions From: Cody Date: 24 May, 2012 02:58:08 Message: 3 of 7 |
|
"James Tursa" wrote in message <jpjnot$i91$1@newscl01ah.mathworks.com>... |
|
Subject: Pass arbitrary pointer type between mex functions From: Bruno Luong Date: 24 May, 2012 06:37:08 Message: 4 of 7 |
|
"Cody" wrote in message <jpk840$ko1$1@newscl01ah.mathworks.com>... |
|
Subject: Pass arbitrary pointer type between mex functions From: Philip Borghesani Date: 25 May, 2012 18:07:07 Message: 5 of 7 |
|
On 5/23/2012 5:17 PM, Cody wrote: |
|
Subject: Pass arbitrary pointer type between mex functions From: Cody Date: 26 May, 2012 21:00:30 Message: 6 of 7 |
|
Philip Borghesani <philipb@mathworks.com> wrote in message <jpohob$m9s$1@newscl01ah.mathworks.com>... |
|
Subject: Some hints or code snippets of the solution. From: Chris Date: 4 Dec, 2012 11:24:08 Message: 7 of 7 |
|
"Cody" wrote in message <jprg9e$184$1@newscl01ah.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| mex | Cody | 23 May, 2012 17:19:11 |
| opaque pointer | Cody | 23 May, 2012 17:19:11 |
| user defined point... | Cody | 23 May, 2012 17:19:11 |
