Rank: 285 based on 389 downloads (last 30 days) and 3 files submitted
photo

Jim Hokanson

E-mail
Company/University
Duke University
Lat/Long
40.4413, -79.9592

Personal Profile:

http://sites.google.com/site/jimhokanson/

Professional Interests:

 

Watch this Author's files

 

Files Posted by Jim View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
30 Jul 2012 TDMS Reader Read TDMS files v1 & v2 without DLL Current Version: 2.5 Author: Jim Hokanson tdms, labview, convert 235 87
  • 4.82353
4.8 | 22 ratings
26 Mar 2012 urlread2 Generalizes HTTP requests, providing more control and access to input and output Author: Jim Hokanson http, urlread, urlread2 95 13
  • 5.0
5.0 | 4 ratings
29 Nov 2009 Unique Rows for a cell array Find unique rows of a cell array containing columns with strings or scalars, or N-D matrices Author: Jim Hokanson cell array, unique, rows 59 8
  • 4.875
4.9 | 9 ratings
Comments and Ratings by Jim View all
Updated File Comments Rating
14 Feb 2014 TDMS Reader Read TDMS files v1 & v2 without DLL Current Version: 2.5 Author: Jim Hokanson

@David

I've really wanted to change that interface for a while :/

The issue is that the input should be a structure ARRAY that contains strings.

getStruct.group = '6120';
getStruct.channel = 'Untitled 3';

Feel free to email if you need more help.

Jim

21 Jan 2014 TDMS Reader Read TDMS files v1 & v2 without DLL Current Version: 2.5 Author: Jim Hokanson

@Joe,

National instruments won't release the specs for their daqmx format (I've asked), so I don't know what their binary data means. They recently updated their dll to support reading version 2 files, so you might have luck using that. I've been meaning to look at the dll but it's really low on my priority list at this point.

The link to the dll can be found at this page:
http://digital.ni.com/public.nsf/allkb/A3663DE39D6A2C5A86257204005C11CA

There used to be a specific page for the dll (in which it said it supported only version 1, and then recently version 2) but I can't find it anymore.

Good luck and feel free to email me if you have any more questions.

Jim

22 Oct 2013 TDMS Reader Read TDMS files v1 & v2 without DLL Current Version: 2.5 Author: Jim Hokanson

@Bob,

Sorry about the obtuse error message. In the new version I've been working on I am hoping to provide links to lengthy documentation on what each error message actually means. Each section of the tdms file starts with the characters tdsm (data file) or tdsh (if it is the index file). If those are not present, it indicates that there was either an error in parsing the file, or in writing the file. I think every time I've seen this error, the issue has been that the file is not closed properly (using tdms close in Labview) and the last segment is corrupted.

This problem can be fixed by replacing the error you are seeing with:
flags = [];
info = [];
eof_error = true;
return;

If you have any more problems feel free to contact me via email.

Jim

17 Oct 2013 TDMS Reader Read TDMS files v1 & v2 without DLL Current Version: 2.5 Author: Jim Hokanson

@Kadir,

Please get in touch with me via email and perhaps send a complaint to NI.

Jim

16 Oct 2013 TDMS Reader Read TDMS files v1 & v2 without DLL Current Version: 2.5 Author: Jim Hokanson

@Kadir,

That flag is updated on every segment, and is not constant throughout the file. The format of that type of data is not specified by NI even after I requested it. Alternatives include:
- trying the Excel TDMS reader
- trying their new dll code which might support Raw DaqMX code
- converting the data in Labview from Raw DaqMx into a regular array, and then using my code

Feel free to email me if you have any more questions.

Jim

Comments and Ratings on Jim's Files View all
Updated File Comment by Comments Rating
05 Mar 2014 urlread2 Generalizes HTTP requests, providing more control and access to input and output Author: Jim Hokanson Belas, Cary

Perfectly solved my quesionts

14 Feb 2014 TDMS Reader Read TDMS files v1 & v2 without DLL Current Version: 2.5 Author: Jim Hokanson Hokanson, Jim

@David

I've really wanted to change that interface for a while :/

The issue is that the input should be a structure ARRAY that contains strings.

getStruct.group = '6120';
getStruct.channel = 'Untitled 3';

Feel free to email if you need more help.

Jim

13 Feb 2014 TDMS Reader Read TDMS files v1 & v2 without DLL Current Version: 2.5 Author: Jim Hokanson DeVilbiss, David

Jim,

back on 22-Feb-2014, Joe Cuschieri had a question concerning reading in segments of data using your functions. I'm getting the same errors. Did you have a solution for him or some sample code to simple read in segments of data.

Thanks, Dave

04 Feb 2014 TDMS Reader Read TDMS files v1 & v2 without DLL Current Version: 2.5 Author: Jim Hokanson Currie, Jonathan

Great bit of code, worked first time, just how it should be!

21 Jan 2014 TDMS Reader Read TDMS files v1 & v2 without DLL Current Version: 2.5 Author: Jim Hokanson Hokanson, Jim

@Joe,

National instruments won't release the specs for their daqmx format (I've asked), so I don't know what their binary data means. They recently updated their dll to support reading version 2 files, so you might have luck using that. I've been meaning to look at the dll but it's really low on my priority list at this point.

The link to the dll can be found at this page:
http://digital.ni.com/public.nsf/allkb/A3663DE39D6A2C5A86257204005C11CA

There used to be a specific page for the dll (in which it said it supported only version 1, and then recently version 2) but I can't find it anymore.

Good luck and feel free to email me if you have any more questions.

Jim

Contact us