DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Confusion about curve labels in 2D Axis VIEW (DIAdem 2014)

Solved!
Go to solution

I have a 2D Axis System in VIEW (DIAdem 2014), the x-channel is a time channel, the y-channel has about 10000 values.  I wish to label about 10 points on this curve, and I have two corresponding time/data channels with these values.  But if I use my length 10 time/data channels as my index/"from channel" channels in the labels properties, it doesn't work 😞

 

I am able to get this to work by generating a channel with the same length as my original channel (10000 values), filled with mostly NOVALUES except for the 10 points I want to label, and just using this channel as the "from channel" in the label properties, but then I am getting very slow refresh rates as I have 4 curves with labels.  

 

I appreciate any help you can offer!

0 Kudos
Message 1 of 8
(3,359 Views)
Solution
Accepted by topic author JuliaDawkins

Hi Julia,

As far as I know the index channel has to have the same length as the data channel which is displayed.

If you just want to display some coordinates with labels you can do it like this:

2.PNG

In the curve parameters dialog of the second curve set Line color to "no color" and marker color to anything else than "same color as curve".

The example shown uses the example_data.tdm file with these additional channels for position and labels that you have to create:

1.PNG

If you just have the PosX values you can use ChnFind command to find the PosY values in the speed channel.

Regards

Christian
CLA, CTA, CLED
0 Kudos
Message 2 of 8
(3,302 Views)

Thank you, I didn't think of duplicating the curve, glad I asked 🙂

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

OK fine, How to solve it through script ... if I use curve.color("No Color") there is a error :  The value No Color is not a value of the enumeration ( It is true)

If I want to use colorindex "eColorIndexNone" - Error: Is expected object "color"

 

Please Help

Thanks

Ludek Souhrada

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

You could only use a color of the list definied in the variable ColorLst: http://zone.ni.com/reference/en-XX/help/370858M-01/varoff/colorlst/

If you want no color you simply use an empty string: curve.color = ""

You could always press CTRL+Shift+C to copy a script into the clipboard if you have a dialog box open. That is a good starting point if you don't know the script command or the syntax.

 

Hope this helps

Winfried

0 Kudos
Message 5 of 8
(3,163 Views)

Thank you very much Winfried,

I tried nearly everything but I didnt try empty string ... Now it works finelly well.

 

Could you please specify in more detail :"You could always press CTRL+Shift+C to copy a script into the clipboard if you have a dialog box open?" What dialog box you mean? How it could help help me?

 

Thanks

 

Ludek

0 Kudos
Message 6 of 8
(3,159 Views)

Press <Ctrl-Shift-C> to record the current settings of the dialog box that is open, in the recording mode of DIAdem SCRIPT. If the recording mode is not enabled, DIAdem copies the dialog box settings to the clipboard when you press <Ctrl-Shift-C>. This could be paste to the SCRIPT editor.

 

Open any dialog box in DIAdem and try it!

 

Winfried

0 Kudos
Message 7 of 8
(3,157 Views)

Miracle 🙂 !!!!!!!

It will help very much.

thanks

Ludek

0 Kudos
Message 8 of 8
(3,154 Views)