11-29-2016 11:38 AM
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?
11-29-2016 03:45 PM
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_Amplitud
11-30-2016 12:26 AM
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
11-30-2016 04:53 AM
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!
11-30-2016 05:00 AM
From my point of view the correct syntax is this:
@@str(Data.GetChannel("[1]/Aliases\Chime_Amplitude
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
Greetings
Walter
11-30-2016 05:07 AM
I found out the solution!
I got sucess with:
Data.GetChannel("[1]/Aliases\Chime_Amplitude").Properties("standard").Value
Thanks so much for replying!