LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I add custom properties to a channel of a TDM file in LabVIEW7.1?

I Saved my measuring data to TDM files in LabVIEW7.1. Now I want to specify the sensor name to a certain channel.
I called "Functions>>File I/O>>Storage>>Advanced Storage>>Set Property.vi", and set "property name" parameter to "sensor". When running it, a error occured. Its error code is -2563, and its description is "This property does not exist".
Can I add custom properties to a channel of a TDM file in LabVIEW7.1?
0 Kudos
Message 1 of 8
(4,259 Views)
Hi Hmqi2002!

I understand your situation. Currently, I don't think you can add customized Properties to your TDM file. However, there are "general" properties that you can use such as (Free Text 1, Free Text 2, Free number 1, Free number 2, etc.). You can see this when you use the Storage Express VIs. I actually created an example program a little while ago:

Reading and Writing TDM Files with File, Group, and Channel Properties
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=EA4B3459BD54008FE034080020E74861&p_node=DZ52027&p_source=External

I'm also attaching a modified version of those VIs that read and write Free Text also. You can use this for your "custom property" to write the names of certain aspects of your data.

I hope this helps!

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 8
(4,245 Views)
Travis's reply is helpful to me. Thank you, Travis!
0 Kudos
Message 3 of 8
(4,229 Views)
Hi,

I've got the same problem now. My customer wants to analyse his measurement results from our testing program in DIAdem, so our LabVIEW 7.1 software has to be expanded with the DIAdem Connectivity VIs to write *.tdm-files with the storage VIs. This works but I need other options in the channel group properties and also other options for the channel properties in the Write Data express VI. Is it possible to edit the available list? Would the LabVIEW Express VI Development Toolkit be helpful to do this?
Thanks,
Matthias



0 Kudos
Message 4 of 8
(3,956 Views)

Matthias,

Have you downloaded the VIs provided by Travis? Those should provide some of the functionality you are looking for. The Express VI Development Toolkit will allow you to create new Express VIs but not to modify existing Express VIs provided by NI. What functionality are you looking for that isn't provided by the vis from Travis?

Regards,

Hillary E
National Instruments
0 Kudos
Message 5 of 8
(3,909 Views)
Hi Hillary E,

Thank you for your reply. Sure, I've checked the mentioned VIs. They show the whole procedure for writing a TDM-file with properties of the file, the channel group and the channel. This is clear to me, but our customer gave me an example of a TDM-file he would like to receive from our LabVIEW-software. This example shows other channel group properties in DIAdem than a TDM-file created with Travis's VIs, see the JPGs in the attachment. My problem is now to expand the properties of the Write Data [Channel Group] - Express VI. Are there any possibilities?

Thank You!
Matthias



Download All
0 Kudos
Message 6 of 8
(3,894 Views)

Hi Matthias,

You cannot modify the Express VI. Those Express VIs are locked by NI.

Regards,

Hillary E
National Instruments
0 Kudos
Message 7 of 8
(3,862 Views)

Matthias,

You may want to check out this KnowledgeBase. It has information on Creating Custom Properites for TDM files. This might be helpful for your situation.

Regards,

Hillary E
National Instruments
0 Kudos
Message 8 of 8
(3,830 Views)