LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to store a file path in a TDMS Property

Solved!
Go to solution

I need to store some Windows paths to other files as TDMS properties, but (according to another forum post I now can't find), the following characters are all illegal in TDMS properties: . : , ; ' \ @ < > # [ ] % ( ) { } | * ? = ! "

 

Many of those are used in paths. I thought of converting each of them to its ASCII character code like an HTTP URL, but the '%' character is in the list, too. Can anyone recommend an approach to handling this situation?

0 Kudos
Message 1 of 12
(3,533 Views)

Don't think it's a problem - perhaps the property name can't contain those values. I just modified the TDM write example to wire a channel group property called path that contained the file's own path (converted to a string) and it worked fine. The modified example ran, the TDMS file viewer opened and there was my property.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 12
(3,516 Views)

Can that property be read from DIAdem? I believe the characters I listed only become an issue in DIAdem; the LV API is much more forgiving.

0 Kudos
Message 3 of 12
(3,512 Views)

That I don't know, don't have diadem installed. Give it a try.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 12
(3,510 Views)

Hi David

 

I went ahead and tried to store a path as a TDMS property and it worked fine:

 

 

 

Paths as TDMS Property.png

Best Regards

 

David

 

EDIT: Sorry for the redundant post. Am sitting on a alow connection and didn't see the previous responses

 

0 Kudos
Message 5 of 12
(3,507 Views)

David -

 

How about DIAdem? Smiley Wink

0 Kudos
Message 6 of 12
(3,505 Views)

Sorry, not installed in this computer or any I can reach at the moment

0 Kudos
Message 7 of 12
(3,500 Views)

Could you check when you have the chance? I have no guarantee that my TDMS file won't be used in DIAdem.

0 Kudos
Message 8 of 12
(3,497 Views)

You have now had two people take time out of their day to test the insertion process for you and that works.

 

You are the one who has customers that use Diadem, why don't you try it? It is after all your problem.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 9 of 12
(3,491 Views)
Solution
Accepted by topic author David_Staab

I actually did something I almost never do. I searched DIAdems online help. I found a page on name conventions for properties on TDMS files which states the following:

 

"If you use one of the following characters in a custom property name, DIAdem replaces this character with an underscore: .,:,;'\@<>#[]%(){}|*?=!"^$&+-/, and a space. DIAdem also replaces a leading number in the property name with an underscore."

 

It however does not state anywhere that I've found that you can't use these symbols in a text as part of the property data

 

Best Regards

 

David

Message 10 of 12
(3,488 Views)