DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

View panel channel color display

Solved!
Go to solution

Does anyone know of a way to change the default channel colors (and other properties like line width) in the View panel?

 

i.e. 1st channel is red, 2nd channel is green, etc.

 

I do a lot of screen shots from the view panel and the default colors are not always best for viewing.

 

Thanks

0 Kudos
Message 1 of 11
(4,056 Views)

You can change it during runtime by right clicking on the legend or via property nodes

 

http://zone.ni.com/reference/en-XX/help/371361N-01/lvconcepts/customizing_graphs_and_charts/
See Color—Displays the color picker so you can select the color of the plot.


Certified LabVIEW Architect, Certified Professional Instructor
ALE Consultants

Introduction to LabVIEW FPGA for RF, Radar, and Electronic Warfare Applications
0 Kudos
Message 2 of 11
(4,052 Views)

Yes, thank you....but I want to change the default settings.

0 Kudos
Message 3 of 11
(4,047 Views)

Is this code or an exe?

Do you want the colors to be changed during runtime?

Do you want to store the last set colors to a file so that on the next run those are the colors?


Certified LabVIEW Architect, Certified Professional Instructor
ALE Consultants

Introduction to LabVIEW FPGA for RF, Radar, and Electronic Warfare Applications
0 Kudos
Message 4 of 11
(4,045 Views)

I want to open diadem, load a .tdm, drag channels into the view pane with specific default colors - ch. 2 want blue instead of green, for example.

0 Kudos
Message 5 of 11
(4,033 Views)

I apologize, the above info I posted is incorrect.

 

Any luck modifying the TDV file?


Certified LabVIEW Architect, Certified Professional Instructor
ALE Consultants

Introduction to LabVIEW FPGA for RF, Radar, and Electronic Warfare Applications
0 Kudos
Message 6 of 11
(4,026 Views)

In general you can modify the default settings for the color in any dialog box. But you could create a script that creates you layout or you define a "OnDrop" event.

For the ondrop event you find information in the DIAdem help: http://zone.ni.com/reference/en-XX/help/370858M-01/scriptview/properties/view_property_ondrop_itoeve...

If you want to create the layout by script the best starting point is to press Ctrl+Shift+C in the dialog box of the curves. Then open DIAdem SCRIPT and paste the code that was generated.

Hope that helps

Winfried

0 Kudos
Message 7 of 11
(4,021 Views)

There was an idea exchange post about default VIEW configuration some time ago.

Looks like this has not been implemented yet, so feel free to give Kudos for that 😉

Christian
CLA, CTA, CLED
0 Kudos
Message 8 of 11
(4,017 Views)
Solution
Accepted by topic author KenM_22056

As a workaround you can define your colors in DIAem: Settings --> DIAdem Settings --> Colors

Then use this example script to assign these colors in the same order to all 2D axis system curves in the current view sheet:

dim i,oArea
for each oArea in View.ActiveSheet.Areas
	if StrComp(oArea.DisplayObjType, "CurveChart2D") = 0 then
		for i=1 to oArea.DisplayObj.Curves2D.Count
			oArea.DisplayObj.Curves2D(i).Color = "other colors"
			oArea.DisplayObj.Curves2D(i).ColorRGB = UserDefColors(((i-1) mod 16)+1)
		next
	end if
next
call view.Refresh()
Christian
CLA, CTA, CLED
Message 9 of 11
(4,012 Views)

Thank you Christian...this works perfectly.

0 Kudos
Message 10 of 11
(3,998 Views)