01-24-2008 12:52 PM - edited 01-24-2008 12:54 PM
01-24-2008 02:24 PM
Thanks ThSa,
the calllib really does return an error on the TDMS files when asking for the minvalue and maxvalue, returning error -6214 which is DDC_PropertyDoesNotContainData
I am writing with the "DAQ Assistant" module connected straight to the "Write To Measurement File" module, with a switch for the "enable" input on the latter module. Can you give me a hint where to change the format of the timestamp you suggested?
Thanks dearly,
WildCherry
01-25-2008 01:05 AM
01-26-2008 05:28 AM
ThSa, Thanks dearly for all your help! I will try it out in the beginning of next week,
Cheers,
Michael
01-29-2008 11:27 AM
Dear ThSa,
Regarding the timestamp data on TDMS, do you know when/how they will be able to be read by the nilibddc library? Does the problem currenly reside there you believe??
Gratefully yours,
WildCherry
01-29-2008 05:19 PM
01-31-2008 08:15 AM
ThSa:
Did you ever find what causes this error?
Thanks
01-31-2008 08:19 AM
Sunitha:
Did you find a work around to the error:
No appropriate method or public field Value for class handle
Thanks
Joe
02-27-2008 10:35 AM
COsiecki wrote:
I'm having a similar problem. Although I can get the channel names to work right, I am unable to get DCC_GetFilePropertyNames to work. I have all the libpointers set, I think, but I either get a segmentation fault and Matlab crashes, or it seems to work fine, but no values were output. Here's what I've done:
Once I open the file and get the file handle using the loadTDM.m sample, I create a pointer to a cell array of strings
pstrings = libpointer('stringPtrPtr',{'','','',''});
I have tried it without making the empty strings, but it crashes every time. That there are 4 strings is only because in this instance, there are 4 properties. I can read the number of properties and scale that appropriately.
Then I try to read the names
calllib ('nilibddc','DDC_GetFilePropertyNames', pfile.Value, pstrings, 4);
Supposing it crash, if I then look at pstrings.value, I get
''
''
''
''
Can anyone see what I'm missing? All help is appreciated.
libfunctions(
'nilibddc', '-full' )- you get the following result for the DCC_GetFilePropertyNames function:
[int32, stringPtrPtr] DDC_GetFilePropertyNames(int32, stringPtrPtr, uint32)
In other words, you can get the names via the output argument (in this case as a cell array of strngs). Here's my code:
emptycell = repmat( {
''}, double(pNumFileProps.Value), 1 );[ status, FilePropNames ] = calllib(
'nilibddc', 'DDC_GetFilePropertyNames', pfile.Value, emptycell, pNumFileProps.Value );The same method works with DDC_GetChannelGroupPropertyNames and DDC_GetChannelPropertyNames.
BUT - and it's a big BUT - I get repeated, randomly occurring segmentation errors when I run this code. Anyone got a solution for this one?
Thanks,
Alex
The views expressed in this post are those of the originator and do not necessarily represent the views of NPL Management Ltd. Nothing in this post shall bind NPL Management Ltd in any contract or obligation.
04-14-2008 06:57 AM