ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DDC_GetFilePropertyNames crashes MATLAB

Whenever I use this function in MATLAB, it crashes with a segmentation fault error. There was already a thread about it over a year ago (http://forums.ni.com/ni/board/message?board.id=170&thread.id=289453&view=by_date_ascending&page=2|). Is this problem fixed by now?

 

I am using the following code:

 

           ppropnames=libpointer('stringPtrPtr',repmat(cellstr(repmat(',',1,255)),1,pnumprops.Value));       
           err = calllib('nilibddc','DDC_GetFilePropertyNames',file_handle,ppropnames,pnumprops.Value);           

 

I have tried other alternatives for declaring pointers, but none of them seem to work.

0 Kudos
Message 1 of 5
(3,219 Views)
0 Kudos
Message 2 of 5
(3,215 Views)
Yes that examples works great, but it doesn't use the function I mentioned. I think this error occurs with any function that returns an array of strings (file, goup, and channel property names).
0 Kudos
Message 3 of 5
(3,201 Views)

I am having similar issues returning to a stringPtrPtr. Has a workaround or fix been found for this problem?

0 Kudos
Message 4 of 5
(2,924 Views)

Hello jyan2

 

Can you please describe your problem in more detail so I can better address this issue?  Is there an error code or pop-up generated when MATLAB crashes?  Thank you very much!

Sincerely,

Greg S.
0 Kudos
Message 5 of 5
(2,906 Views)