LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why would VI's with my XControl want to be saved when opened?

Hi Bob,

I search LV help and the forum and could not find the term "color map".

What is a "color map"?

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 18
(1,682 Views)
A color map is part of the Sound and Vibration Toolkit.

What is interesting about it is that when it was "upgraded" to the Sound and Vibration Measurement Suite 5.0 it seemed to lose functionality, as I can't really edit any part of the graph like you can on most other types of graphs.  This is perhaps why in 8.5 it's having some sort of "change"... but I don't know for sure.

But a quick explanation from the LabVIEW help:

Colormap

Displays the results of transient analysis or order analysis on a customized intensity graph with a rainbow color scale. You can display these 3D results using colors to represent the third dimension. You also can add frequency or order lines to indicate locations of specific frequencies or order components on the colormap.


Message 12 of 18
(1,678 Views)

Hi Bob,

Could you post a VI with the color map?

I wonder if it is implemented as an XControl.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 13 of 18
(1,665 Views)
Hi Ben,

When I go to drop a color map onto my front panel it is actually listed as "Colormap.xctl"  so based off of that I would say it is indeed an X-control.

I've attached a VI in which I simply dumped a colomap onto the front panel, no other code is involved.  The application in which we are using the colormap hasn't been fully developed yet and we have not created the code that writes data to the colormap.

The VI was created in 8.5.

-Bob
0 Kudos
Message 14 of 18
(1,657 Views)

Thank you very much Bob!

I now suspect a bug in LV rather than my code.

I'm going to get support to follow-up.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 15 of 18
(1,652 Views)

This issue was reported to NI under servie request # 1096387.

NI was able to duplicate the bug.

Ether they or I will update this thread with the CAR when it is available.

Thanks to All!

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 16 of 18
(1,643 Views)
This was reported to R&D (# 4HFAQJRK) for further investigation. 

Ben's VI is prompting to be saved when opened because the "State Changed?" Boolean was being set to TRUE during the Panel Resize event of the Facade VI. 

The Panel Resize event should not be fired when the VI hosting the XControl is opened, but to workaround this situation, you can compare the NewBnds and OldBnds parameters returned during that event.  If the two clusters are different, indicating a resize did occur, then set the State Changed? to TRUE, otherwise, do not set the Boolean.  This will avoid setting the modification flag with the hosting VI, so you can close the VI without the prompt to save it again.
before ===>fixed ====>

The Colormap XControl that Bob mentioned is modifying the State Changed Boolean (similar to Ben's VI) when you open the hosting VI, but is it doing it in multiple places.  That is mentioned in the report to R&D as well. 

Cheers,


Message Edited by Spex on 01-16-2008 05:44 PM
Spex
National Instruments

To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be has a 2x safety factor...
Download All
Message 17 of 18
(1,597 Views)

Excellent work Matt!

It looks like we will fix more than one issue with this CAR.

Ben

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