DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How Can I Set the Scaling of a Graph's Y-Axis dynamically?

Hello all!

I'm attempting to define a scaling range using a value stored in a Custom Property of a TDMS file. 

In Curve and Axis Definition » Axis Parameters » Y-Scaling, I set:
- Scaling mode: Manual
- Begin: 0
- End: @@Data.GetChannel("[1]/Aliases\Chime_Amplitude").Properties("standard").Value, "AutoAdj"@@

And I get the message: "Invalid character"

Could someone help me with a way to do that?

0 Kudos
Message 1 of 6
(3,324 Views)

At a quick glance it looks to me like you are missing an 'Open parenthesis' =   "("     at the beginning:

 

The third character in this string is missing:

 

@@(Data.GetChannel("[1]/Aliases\Chime_Amplitude").Properties("standard").Value, "AutoAdj"@@

Otmar D. Foehner
0 Kudos
Message 2 of 6
(3,301 Views)

Hello clebermarques,

If I get you correct, you stored the scaling parameter as a channel property.To use that in the 2D axis system you must format it, which is similar to what you defined. There is just missing the formatter command STR, like this:

 

@@str(Data.GetChannel("[1]/Aliases\Chime_Amplitude").Properties("standard").Value, "AutoAdj)"@@

 

Greetings

Walter

0 Kudos
Message 3 of 6
(3,295 Views)

Hi! Thanks for replying!

 

I've tried in these 2 ways:

 

@@str(Data.GetChannel("[1]/Aliases\Chime_Amplitude").Properties("standard").Value, "AutoAdj)"@@

 

@@(Data.GetChannel("[1]/Aliases\Chime_Amplitude").Properties("standard").Value, "AutoAdj"@@

 

And I still getting the same error: "Invalid character".

 

Any other idea?

 

Thanks in advance! 

0 Kudos
Message 4 of 6
(3,284 Views)

From my point of view the correct syntax is this:

@@str(Data.GetChannel("[1]/Aliases\Chime_Amplitude").Properties("standard").Value, "AutoAdj)"@@

What is the content of the property "Standard"?

What do you get in SCRIPT it you call this command:

Msgbox Data.GetChannel("[1]/Aliases\Chime_Amplitude").Properties("standard").Value

Greetings

Walter

 

0 Kudos
Message 5 of 6
(3,282 Views)

I found out the solution!

 

I got sucess with:

Data.GetChannel("[1]/Aliases\Chime_Amplitude").Properties("standard").Value

 

Thanks so much for replying!

 

0 Kudos
Message 6 of 6
(3,278 Views)