LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

color problem (unix)

System      Sun, SunOS 5.8
LabView 5.1

Color preference toggles between 125 and 216 color palettes.
My application needs 60 colors at most.
This application works together with other ones, that assumes sharing
colormap.
For the perfomance reasons, used visual is pseudocolor (8 planes).
Among the applications running at the same time, there is one that
allocates colormap entries for 128 colors. Accounting default allocation
for ~12 colors, we have a conflict that is confirmed at runtime when
starting labview's application:

>./labview-app
See /tmp/LabVIEW_Failure_Log.file.txt for more information.
Failure : "color.c" line 365

For assistance in resolving this problem, please record the preceding
information and navigate to www.natinst.com/failure, or co
ntact National
Instruments.
Abort


Here is /tmp/LabVIEW_Failure_Log.file.txt

####
#Date: Tue, Nov 13, 2001 02:08:59 PM
#Desc: Failure : "color.c" line 365

For assistance in resolving this problem, please record the preceding
information and navigate to www.natinst.com/failure, or contact National
Instruments.
#RCS:
#OSName: Solaris
#OSVers: 5.8
#AppName: ./tools
#AppKind: AppLib
0x001b9ae0 - DumpStdStackCrawl + 0x154
0x001b98e0 - DBSetDebugStrings + 0x18
0x001b98b8 - DBAssert + 0xb4
0x001ea4bc - DAllocAppColor + 0xae8
0x001ea950 - DSetAppColors + 0x28
0x0009e85c - GetFlagRes + 0x118c
0x0009cae8 - InitApp + 0x330
0x000a16f0 - WMain + 0x4
0x001e14ac - main + 0x68
0x000482c4 - _start + 0xdc

An idea to use another visual doesn't work, i.e.
../labview-app -visual truecolor
yields always the result above.


Q: Is it possible for labview to allocate less than 125 colors?
Q: Is it possible to customize color features of the labview
applications?

Thanks in advance,
Alex
0 Kudos
Message 1 of 2
(2,526 Views)
....

>
> Q: Is it possible for labview to allocate less than 125 colors?
> Q: Is it possible to customize color features of the labview
> applications?
>


At this time, the options are the 6x6x6 color option, which
uses the HTML color set, the 5x5x5 color option that uses less
and will avoid flashing and color fighting between LV and other
apps, and I believe that you can run in black and white as well.
Not too sure about that one since I haven't had a Sparc on my
desk for about four years.

An upcoming version of LV will likely support True Colors, but
for now, it always uses an eight bit or B&W visual. LV is happy
to share colors with other apps, doesn't do any color animation
or anything. If another app has already claimed most of the
colors as read/wr
ite when LV is launched, it looks like it gives
up and gives the failure somewhere around line 360.

What happens if the apps are launched in the other order?

Greg McKaskle
0 Kudos
Message 2 of 2
(2,526 Views)