05-08-2009 11:37 AM
hi
im trying to add an AutoScale button to both X & Y scales of my graph.
i know about the right click and x scale, y thing.. but i wang the user to have AutoScale button.
i also tries this:
http://forums.ni.com/ni/board/message?board.id=170&message.id=367797&query.id=168419#M367797
and the vi that comes with it.. but it doesnt seems to do the job.
any suggestion?
Solved! Go to Solution.
05-08-2009 11:53 AM
i must say im also familier with visible Item->Scale Legend
it doesnt seem to do the job when i use high frequencies...
05-08-2009 12:21 PM
05-08-2009 12:26 PM
05-08-2009 12:41 PM
Harold,
Try not to post a VI that is set to autorun when loaded. It makes me nervous whenever a program starts before I have a chance to look at the block diagram.
05-08-2009 12:42 PM
05-08-2009 01:39 PM
Thank you Harold for the Code...
but iv seen it already in the link i have posted in the topic.
it doesnt seem to work,
1. iv put off the while loop.
2.iv linked the graph instead of the example wavform to the one i want to autoscale.
kept the case as it is
result: the program doest flow... only when i press the autoscale it change.
before that autoscale change, the program was running all the time.
and another thing: it still does not shrink the X scale to fit a proper view of a sin wave like real instrument do.
iv post my VI here
i think both files needed to run properly
05-08-2009 01:46 PM
Here is what i have added.
p.s
i cant really use 2 while loops in the Vi right? anyway , i called support and that was their suggestion to not complicate my VI
WHAY AM I DOING WRONG?
05-08-2009 02:16 PM
05-08-2009 03:00 PM
Im not sure i got what you said about the TIME OUT thing... and i didnt connect anything to that TimeOut, i just copied the code Harold put here... and the TImeOut thing was there already.
Ill be more specific in what i want to achive..
i added a screenshot of the simulate signal im generating...
im sure there is a way to creat AutoScale button that gonna change the X scale so the signal wont look so dense...