DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Get X axis name and X axis units of a waveform channel from LabVIEW

Hi community!

 

I am using LV and DIAdem 2010.

I looking for a way to get the "wf_xname" and "wf_xunits_string" properties of a waveform channel in DIAdem.

 

I can set these properties values with the "ChnWfPropSet" command, but no way to do the opposite. I guess I should use the "ChnPropValGet" command, but I can't figure out how to call this method from LV and get a property value !!!

 

I am sure I am missing something obvious!

 

If someone can open my eyes, I will worship him as a god! : )

 

Benjamin C.

0 Kudos
Message 1 of 3
(4,027 Views)

Hi Benjamin,

 

Thank you for posting on National Instruments' forum.

 

You don't missing something!

LV is able to get a property channel (name) but not getting a property value (directly). So, to carry out it to a successful conclusion, you have to make a script.

 

 

Regards,

Romain P.
National Instruments France

0 Kudos
Message 2 of 3
(4,010 Views)

Hi Benjamin,

 

If you wanted to read these waveform properties in a TDMS or TDM/DataPlugin file using LabVIEW, you would just use the generic property read VI from the TDMS palette or the Storage VI palette.  If instead you want a LabVIEW VI to peer into the Data Portal of a running DIAdem instance and read off a particular property value, you will indeed need to use a VBScript-style command such as ChnPropValGet().  There is no specific command to read the waveform properties like there is to write the waveform properties.  Calling VBScript functions with a return value is tricky if you're passing the automation command straight from LabVIEW-- you have to use the ScriptEvaluate() command and old AutoSequence syntax.  I agree with the previous post, it's probably easier to call a VBScript and have the VBScript populate global variables such as R1, T1, etc. with any information LabVIEW needs.  LabVIEW can easily read off the states of those variables.

 

Let me know if you need assistance with this,

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 3 of 3
(3,854 Views)