LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

resize intensity graph

Wouldn't it be nice to be able to resize the intensity graph in run-time using the left mouse button and dragging on the graph border?  Maybe this is coming is LabVIEW 8?  (I think you can do this in LabWindows).

I know we can use property nodes to adjust the plot area size.  I worked out a scheme with property node 'plot area size' that initially depends on image pixel dimensions.  It allows one to change plot area, aspect ratio, and zoom.  However, it does not operate to my expectations. And if I have the intensity graph on the tab control, the tab control lower bound changes location (gets lower as tab control expands) if I resize the intensity graph too much using my property node approach.

Has anyone come up with a really good scheme for adjusting intensity graph size and plot area size that works with widely varying image sizes?

thanks,

Don
0 Kudos
Message 1 of 6
(3,600 Views)
Hi Don,
 
I would have told you to try out the property nodes for the intensity graph but it looks like you have alrady worked with those. If you could be more explicit about how your scheme is not working upto your expectations and post your code, I would be happy to take  a look at it and see if I can improve it (I cannot promise any improvements though).
 
Also, what you said about the lower bound of Tab control changing location when you resize the intensity graph, isn't that how it should operate? Otherwise how could you embed an object in a tab control, enlarge the object and still expect the tab control to maintain the same size ?
 
Regards,
Ankita
0 Kudos
Message 2 of 6
(3,581 Views)

Well here is a real quick and dirty basic example of what I do now (not optimized but shows the kinds of things I would like to be able to do).

 

Regarding the tab control resize, I probably need to code up something that prevents the size of the intensity graph from exceeding the tab control lower bound.  Else what I am going to have to do is consider putting the image in its own window / subVI.

 

Sincerely,

 

Don

0 Kudos
Message 3 of 6
(3,579 Views)
Hi Don,
 
Chase down the examples that were shown in the NI-Week 2005 presentation entitled "Creating Flexible, User Configurable LabVIEW User Intefaces" that was presented by "G Systems".
 
One of their examples does this.
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 6
(3,575 Views)

Are the proceedings on-line or do you suggest I contact them directly?

 

Thanks,

 

Don

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

Call them directly.

I looked through the list and did not spot anything with an appropriate title.

I do remeber the presenter saying that all of his examples will be on the NI Week disk because I was suprised he would be givning away such neat examples.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 6
(3,569 Views)