Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Save settings

Hello

 

is there a way to save all the settings in runtime of a scattergraph without writing each property?

 

Best regards

 

Gerald

0 Kudos
Message 1 of 6
(4,014 Views)

Hi Gerald,

 

maybe this helps:

Can I Programmatically Change the Style of a Measurement Studio Graph Created in Visual Basic 6?

 

Regards,

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 2 of 6
(3,992 Views)

Sorry the Knowledgebase Article is empty...

 

Best regards

 

 

Gerald

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

Can I Programmatically Change the Style of a Measurement Studio Graph Created in Visual Basic 6?

Primary Software: Measurement Studio>>Visual Basic Support
Primary Software Version: 1.1
Primary Software Fixed Version: N/A
Secondary Software: N/A


Problem:
Can I programmatically change the style of a Measurement Studio graph created in Visual Basic 6?

Solution:
You can access the Measurement Studio graph property pages programmatically. The styles listed on the property pages are just convenient groupings of individual properties. To create your own style (or to find the settings used to create one of the options listed), simply adjust the settings to achieve the desired look. Once you know what the individual properties need to be set to, you can adjust these in the code. The attached example demonstrates changing a line graph to a bar graph and back again. The zip file contains a readme that describes the function of this example.

 

Related Links:
KnowledgeBase 0KN6L57I : How Can I Programmatically Print Out a Measurement Studio Graph Object? 

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 4 of 6
(3,986 Views)

OK I will refine my question:

 

I have in runtime a scattergraph with plots, cursors 2 xaxis and two yaxis. The user can change all properties of the graph, plots, cursors and axis.

Now I want to save all the settings for eaxample range, color.... and the data in a file. When the user opens this file, the graph should appear

as the last time he has closed.

 

At the moment i take all the properties of objects and write the value in an XML-File. I have also tried it with an serializer but the dlls are not serializable.

Is there an easier way to store the properties?

 

I hope you understand me.

 

Best regards

 

Gerald

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

Hi,

 

I don't know about a function to store all settings at once. You have to loop through them.

 

Regards,

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 6 of 6
(3,935 Views)