LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use property information as a control

Solved!
Go to solution

To all:

 

I would like get some help to use property information from a TDMS file.

 

what I want to do is get the sample clock rate from the file (which was previously written in another VI) and use that sample clock rate in the current vi without having to use another variable.

 

I can see the information just fine in a indicator panel, but how do I convert the "variant" data type to a double type, which I can use to feed into the reciprocal operation?

 

attached is a JPG with the bit of VI using the property

 

thanks for any instruction

A. Lopez
0 Kudos
Message 1 of 3
(2,655 Views)
Solution
Accepted by topic author lopez

Hi A. Lopez,

 

The "TDMS Get Properties.vi" has a input called "data type". You can wire a constant DBL numeric into that input and your property value output rather than being type variant will be of type DBL. You can also search LabVIEW's examples and find instances of this (for example "TDMS--Concurrent File Access example vi).

 

hope this helps.

 

Cheers,

 

--Russ

Message 2 of 3
(2,630 Views)

Russ,

 

thanks for pointing out this feature.  I also found the variant to data function, which I used over the weekend before understanding I could wire a data type to the get property function.

 

Thanks

 

AL

 

A. Lopez
0 Kudos
Message 3 of 3
(2,583 Views)