Save graph setting to previous last used setting

This is a discussion on Save graph setting to previous last used setting within the labview forums in Programming Languages category; I have a query like, i acquire data and see them on graph and modify for appearance and i need same settings for next measurement also.   Let me make it simple, i do measurement and modify the curves like color,thickness. I save file as .csv or .zip file, then i close the system and open the measurement but i see the graph settings to default. which should not happen, i need the graph settings to previous used setting. i guess i am clear about the description......let me know for any clarifications in the description. Any suggestions regarding this problem   -Kirit...

Go Back   Application Development Forum > Programming Languages > labview

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-05-2008, 11:10 AM
Kirit
Guest
 
Default Save graph setting to previous last used setting

I have a query like, i acquire data and see them on graph and modify for appearance and i need same settings for next measurement also.
 
Let me make it simple, i do measurement and modify the curves like color,thickness. I save file as .csv or .zip file, then i close the system and open the measurement but i see the graph settings to default. which should not happen, i need the graph settings to previous used setting.
i guess i am clear about the description......let me know for any clarifications in the description. Any suggestions regarding this problem
 
-Kirit
Reply With Quote
  #2  
Old 08-05-2008, 11:40 AM
Hillman
Guest
 
Default Re: Save graph setting to previous last used setting

Hi Kirit,You may be able to save your graph properties by click edit>>make selected items default.. this certainly works for values, I'm not sure about graphs.However, a more programmatic way would be using property nodes, which can be made by right clicking on the graph indictor on your block diagram, going to create >> property node.. then select whatever property you need.Hope this gets you on your way,*edit: Yes using make selected items default seems to work.Message Edited by Hillman on 08-05-2008 04:28 PM
Reply With Quote
  #3  
Old 08-05-2008, 12:40 PM
Kirit
Guest
 
Default Re: Save graph setting to previous last used setting

Hey Hillman
Thank you for the reply. Graph settings in the sense like color,style,thickness etc of the curves. I have checked with the property node but couldn't get an idea how i can assign the values which are to be re-trived.
Can you please gve a example showing how to assign the values or parameters which are to be re trieved again when we re-open the file for measurement.
Thank you
Regards
Kirit
Reply With Quote
  #4  
Old 08-06-2008, 07:10 AM
Hillman
Guest
 
Default Re: Save graph setting to previous last used setting

Hi Kirit,
 
I have attached an example on the way of forcing the properties you wish in the code using property nodes.
 
In the example I chose the line colour to be blue. If you save the file. And re-open it, it does remember the last settings associated with the chart.
 
Hope this helps
 
 


example of property node.vi:
http://forums.ni.com/attachments/ni/...7005/1/example of property node.vi
Reply With Quote
  #5  
Old 08-06-2008, 01:10 PM
Kirit
Guest
 
Default Re: Save graph setting to previous last used setting

Hey Hillman
 
First of all thank you for the example!
 
(In the example I chose the line colour to be blue. If you save the file. And re-open it, it does remember the last settings associated with the chart.), but when i change the range and save, its not getting updated. It remains in the same setting.
 
Ok lets assume this works with this VI, but in real time we have a got .exe file to run the application. I dont think if we make any changes in the chart(color,font,size) executed by exe file will get updated and remember the last settings associated with the chart.
 
Any suggestions regarding this
 
Thank you
Kirit
Reply With Quote
  #6  
Old 08-07-2008, 04:40 AM
Hillman
Guest
 
Default Re: Save graph setting to previous last used setting

Hi Kirit,
 
Thanks for your comments.
 
The range property should behave in exactly the same way - or at least it does for me.
 
So if I use a property node (x-scale>>range) and set the min value to 0 and the max value to 100, then the range on the x-axis is always 100.. obviously as time goes by you may see 1000 - 1100. Similarly, if you manually alter the x-axis range by clicking on the numbers and changing them to 0 and 100, and save, close and re-open this will also have the same effect - just as before. However, a word of warning, you need to turn off auto x scaling because this over-rides the property nodes/default settings at run time.
 
As for the real time exe this will work. There are some differences between the way a code works in real time compared to normal operation but the front panel behavior is not one of them.
 
If you are still having issues, please post an example code which shows your issue.
 
Thanks and have a nice day,
Reply With Quote
  #7  
Old 08-07-2008, 05:40 AM
daveTW
Guest
 
Default Re: Save graph setting to previous last used setting

Hi Kirit, I made an example to illustrate, how to restore the manually made settings.Greets, Dave


example of property node mod_LV851.vi:
http://forums.ni.com/attachments/ni/...7420/1/example of property node mod_LV851.vi
Reply With Quote
  #8  
Old 08-13-2008, 06:10 PM
Kirit
Guest
 
Default Re: Save graph setting to previous last used setting

(Hi Kirit,
I made an example to illustrate, how to restore the manually made settings.
Greets, Dave

&nbsp; <a href="http://forums.ni.com/ni/attachments/ni/170/347420/1/example%20of%20property%20node%20mod_LV851.vi" target="_blank"><img src="http://ni.i.lithium.com/i/global/icon_attachment.gif" border="0" alt="Attachment" hspace="5" width="22" height="22"></a> <a href="http://forums.ni.com/ni/attachments/ni/170/347420/1/example%20of%20property%20node%20mod_LV851.vi" target="_blank"> example of property node mod_LV851.vi</a> (49 kb) &nbsp;DaveThe example(<a href="http://forums.ni.com/ni/attachments/ni/170/347420/1/example%20of%20property%20node%20mod_LV851.vi" target="_blank"><img src="http://ni.i.lithium.com/i/global/icon_attachment.gif" border="0" alt="Attachment" hspace="5" width="22" height="22"></a> <a href="http://forums.ni.com/ni/attachments/ni/170/347420/1/example%20of%20property%20node%20mod_LV851.vi" target="_blank"> example of property node mod_LV851.vi</a> ( ) &nbsp;what you posted is&nbsp;not working if we make any changes in color or line width and close without save. It should restore the previous settings but it is not in this case.It is a good example you posted but some how not working. The version i am using is LV8.5 so there should be no problem i guess.Anyway lets see...thanks&nbsp;Kirit&nbsp;&nbsp;
Reply With Quote
  #9  
Old 08-14-2008, 08:10 AM
daveTW
Guest
 
Default Re: Save graph setting to previous last used setting

Hi Kirit,this is actually a quite simple VI and there are only a few reasons, why it shouldn't work. - You should check if the&nbsp; &quot;Graph-Props.ini&quot; is saved properly after stopping the VI.
- The VI has to be stopped with the &quot;STOP&quot;- button, not the &quot;Abort Execution&quot;- button from the button bar
- Write permissions to the LabVIEW- &quot;Default Data Directory&quot; are necessary to save the INI-file properly
Greets, Dave
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 10:23 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.