System colors do not give correct RGB values

When using the IMAQ integer to color value function, I get correct RGB values for colors chosen via a color box control  - except if the colors are selected from the “system colors”. Is this supposed to happen? The RGB values for the system "White" is: 0, 0, 9.
Attachments:
ScreenShot010.jpg ‏21 KB

That function does look at the most significant byte. Try wiring the system color to a "Split Number" (numerics "Dat manipulation) to split the I32 to two I16 and then again to get four I8s.
You will find that the "other" bytes has a "1".
System colors are special.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • NonLinearFitWithMaxIters does not give correct results for phase

    Dear all,
    I am trying to fit a sin cuve with NonLinearFitWithMaxIters function of labwindows, but the results given by this function are dispersed a lot (the function does not give same results).
    In fact, I have two waveforms signals v and i (of 104 points), and I  find the phase between the two signals with NonLinearFitWithMaxIters.
    The two singals v and i are  measured with an osciloscope.
    I use the following fit functions :
    v=p1*sin(wt+p2) ;
    i=p3*sin(wt+p4) ;
    I use the NonLinearFitWithMaxIters function to fit the data and to have the parameters  p1, p2, p3, p4. Then, the phase is claculated as follow phase=p4-p3.
    The problem is that the phase calculted between the two signals (v and i) is different for each run for the same conditions.
    In fact, for a same condition, I measure different times the signals v and i, and I calculate the phase p4-p3, using NonLinearFitWithMaxIters. The goal is to calculate a mean of phases for the same condition. For example, there are cases where the phase=-5 degree, and other cases when phase=12 degree.
    For ten measures of v and i, the phase calculated is different. I get a big dispersion between the phases.
    I would like to know please why I have a big difference in phases calculated with the same condition?whern using NonLinearFitWithMaxIters.
    I read that this function does not give all time the correct results, is there a way to know when the results are not corrects and when they are correct ?
    And is there any solution to find accuratly the phase between the two waveforms.
    Thank you for your precious answer.

    The pseudocode which I am using is :
    v_err=NonLinearFitWithMaxIters(array_x,array_v,v_y_fit,1252,100,sinus,v_coef,2,&v_mean_squareError);
    The fit function is
    double sinus(double x, double a[],int noef){
        return (a[0]*sin((w*x)+a[1]));
     I use the same inital coeficient of v_coef for each run :     
    v_coef[0]=0.03;
    v_coef[1]=0.2;
    These coeficient are choosen arbitrary.
    In this case, the number of points of the data is 1252 (the data of array_v).
    The number of iterations is 100.
    For the array_x, the distance between adjacents values of the array is dt=0.4*1e-9(difference between array_x[i] anv array_x[i+1]=dt=0.4*1e-9 ).
    for (i=0;i<1252;i++){
    array_x[i]=i*(0.4*1e-9);
    The means square error returnned by the function when it is complished is  small, of the order of 0,001.
    I read the help
    « From the help:
    You must pass a pointer to the nonlinear function f(x,a) along with a set of initial guess coefficients a. NonLinearFitWithMaxIters does not always give the correct answer. The correct output sometimes depends on the initial choice of a. It is very important to verify the final result.
    That means that the function cannot be used, as it does not give correct results. How
    can we check if the results are good or not ? in my case.
    I think that in my case, the function does not give correct results, but how can I check if the results are good, or not ? The mean square error is small.

  • Upgraded to CS5 Illustrator form CS3 Illustrator. Colors are not printing correctly in CS5

                                                I have just recently purchased CS5 Premium Suite.  I am working with Illustrator.  When I print my CS3  Illustrator files in CS5 the colors are not printing correctly.  Is there a way to fix this problem

    I've been doing more troubleshooting since I wrote this post. I've now tried printing from a non-Adobe app and I'm getting the same margin error. So it is definitely a Xerox issue and I have a tech coming out on Monday.
    The reason I originally figured it must be an CS5 issue is because just two weeks ago when I was using CS2, our landscape-oriented programs were printing with .25" margins as they should. Then last week after upgrading to CS5, the inside page (2nd page) was noticeably out of whack and shifted to the right (not left). But when I started trying to troubleshoot this week, everything started shifting to the left.
    The only thing different between those two weeks was the fact I updated to CS5.
    But obviously, my printer as decided to go to crap in more ways than one all in a two week period. Hopefully the tech can sort it out next Monday.
    Thanks!
    Christi

  • Color gradients not displaying correctly

    I'm having an issue with my color gradients in type and objects not displaying correctly in the content viewer. For the last app I created, I made sure the colors were RGB and that seemed to fix it. With the current app I'm working on, that dosen't seem to fix the issue. Actually, when I test in the viewer on my iPad, it shows the correct gradient in the split second that it's loading the update but then once it's loaded, it goes to a gray white gradient (the correct gradient is from a yellow to a gray; attached a pict for referrence).
    Anyone know why this is happening? Thanks in advance!
    UPDATE: It seems to view fine if I preview the page via the foilo overlay but when I preview the folio, that's when it's no viewing correctly.

    The Color Picker is unreliable for choosing colors based on what you see because it is not color managed while Color panel and Swatches are.
    In your image, the color that you see in the Color Picker is how your monitor displays R=0 G=255 B=0. The color that you see in the Color Panel represents the same values in the file but the color management sends different values to the video card and thus to the monitor to display a color with appearance in the color space selected for the document. In your image this is a CMYK color space which you can check from the Show popup menu at the bottom left of the document window. To check the different values the video card is using, make a screen capture, save the image, open it in Illustrator and measure the color with the eyedropper. The color translation from the values in the file to the video card allows simulation of color spaces other than your monitor's. This simulation is accurate if you have a monitor profile installed in your system that correctly describes how your monitor displays colors. Such profile is created by using a color measuring device and profiling software. If your monitor profile (color space) installed in the system is the same as the color space of the document then there will be no translation (simulation) which in effects shuts down the color management - then the colors in the Color Picker will be the same as in the document. Many people do not bother to get an accurate profile of their monitor and use a generic sRGB profile for that. In such case working in RGB color mode using the sRGB color space (default in the Color Settings) will give the same colors in the Color Picker and the document. This usually is a sign of using a monitor that incorrectly displays colors.

  • Legalities of color-and why are my RGB values inconsistent?

    Hi there,
    I have a client who is trying to trademark their logo and the RGB values. I have sent them the files and corresponding RGB values, but when they check the files in their mac Digital Color Meter they come up with different values. On my own computer, the values are consistent in the DCM and Photoshop, although I opened it on another computer and found that while the values were still correct when I open the files in Photoshop, the DCM values were incorrect there too.
    Does anybody have any history with this? Should I just tell them to ignore their DCM and that Photoshop is correct, or am I doing something wrong with profiles or something? It wouldn't be such a big deal but for the legal implications behind it...
    Thanks for any help!!
    Eli

    I was referring to "Scene Referred" CCchart Lab reference numbers derived from measurements taken of this chart from a spectrophotometer. You'll note the black patch is at L20 according to X-rite. The white patch is quite easy to attain L96 without clipping during exposure of the CCchart to build the profile from using DNG Profile Editor.
    What's not easy to control during exposure is the contrast ratio recorded by the camera. Adjusting the middle slider in Levels or the Contrast slider in ACR will show just how much contrast affects hue and saturation viewed on a display. Reality doesn't behave this way.
    Contrast/Luminance ratio's are disregarded or barely adjusted for in the DNG CCchart Wizard to come up with proper hue/saturation levels for each of the 18 color patches. The contrast adjusts required to get all 24 patches to match exactly (especially black at L20) makes the image not look right or follow a normal human visual response or perception.
    You can adjust contrast in the image after applying the new profile to get a reasonably correct look but quite a few of the 24 patches go off the charts according to the X-rite reference Lab numbers. The whole reason for going by the Lab numbers in profiling a device like a DSLR in the first place is to maintain consistency image to image by using measured results. As you can see this is not possible to achieve in a photograph except maybe in a controlled studio environment, but it does work when trying to match single spot colors that aren't influenced by the surround effect that affects human perception inherent in a photographed scene. A pleasing photograph is not about accurate numbers.
    A spectrophotometer is a static device that only reads and measures color wave lengths from color patches and converts them to Lab numbers. It's not a constantly adjusting device like our eyes which adapts to hue, saturation, color temp and contrast levels in any given scene.
    I'm going to post three images of a CCchart exposed under a high noon sun that I used to build two different DNG profiles. The first is using ACR default DNG converted source image and doing a straight dual illuminant table profile according to instructions. They're screenshots that include Apple's DCM to show how the black patch changes to accommodate exact Lab numbers as opposed to achieving a pleasing look. You'll note the more the image is made to "pop" the less accurate the Lab readouts and appearance.

  • Timestamp when saved in text file and reloaded does not give correct dates

    Hello
    I am struggling with time stamp. I have almost corrected the problem but it is not as good as I expect it to be.
    I have data in the main vi which logs into text file with time stamp for everyday results logs.
    I then pull all this data to display on waveform graph with the performance data on y axis and time stamp on x axis.
    I convert the time stamp data from string back to time stamp using scan from function in string pallette. When I run the waveform graph vi. The time stamp data is not correct one. I see year values beginning 1974 etc. I change these values to 2011 and the correct dates and then could see the accurate logged data from data logger but I would like to have the starting date in my logged file the left most date on x-axis. I try modify dates in display format section of waveform graph but I think it gives the values in seconds which doesn't make much sense to me. Is it possible to automatically set the starting value of the graph as the first date in the logged file? I am new with using time stamps. Any feedback will be appreciated.
    Kind Regards
    Austin

    Hi Austin,
    "Is it possible to automatically set the starting value of the graph as the first date in the logged file?"
    Sure: Use autoscaling, format x-axis as time and use waveforms with correct t0 value...
    For all other questions you should attach a VI to show your current state of programming!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Color controls not working correctly

    Why do swatches suddenly not show in the conrol panel? When the object and document are brand new it works, then randomly goes into the stuck mode where if I click on the fill box I get a choice of only no fill or resgistration. I can work around this using the colors panel or color picker, but often the color picker goes haywire too. At that point the file is corrupted and there's no going back. Restarting the program and computer do not help. What's going on?

    As I recall, I had been working with 3 separate images, 2 originally grayscale and 1 RGB, that I had live traced (as above, without placing the image in a new ai file). One of the grayscale images let me use the color picker to change fill color, bu not consistenly, and the other one would let me type in values and changed colors on the picker, but only showed shades of gray in the fill box and in the image. The RGB file wouldn't let me change the fill color using swatches, but I don't remember what I tried with the picker.
    I think I'm going to chalk it all up to my original mistake of not placing the image in a new file, and subsequently trying everything I could think of to work around the original problem.

  • Strange color setting not saving correct color

    I am completely baffled why this is happening. I make a simple photoshop document with the color #OF457C and do a 'save for web' and save it as a jpeg at 100%. I then open it back up from my desktop and the color has darkened and changed the hex value to #10447D. Its darker and not the correct color for my background.
    Try it for yourself. Is it a color profile thing? I am using CS4 but have noticed this happening on CS3 on another computer. Does the 'save for web' pick an alternative color? I've never seen a color shift like this before.

    I believe save for web uses sRGB, so if you are working in sometihng else, the conversion could cause a color shift.

  • Enterprise Manager does not give correct results

    I am using version 9.0.2.0.1 core edition(oc4j & web-cache).
    My application consists of business components, java beans and jsp. It is running fine.
    Oracle enterprise manager is not giving correct results of memory/cpu usage by oc4j_home and bc4j.
    Some times it does not gives result, when i refresh it twice or thrice it shows results.
    But results are not correct. On each refresh it gives different results.
    Then it is very hard to find which resuslt is correct.
    waiting for response,
    Tahir.

    i have been using 9iAS versions 102*, 90200, 90201, and now using 903.
    As stated above, some times the results for oc4j_home is displayed.
    But the memory/cpu usage for bc4j is never shown.
    Also, its radio-button is always disabled. while its status is "running".
    On BC4J page, it also shows results of application modules created. But these results are usually wrong.
    How bc4j will be enabled, and how its memory results can be get ???
    Tahir.

  • My colors do not look correct in the colors window

    This is kind of hard to describe and I wish I could show you a screen shot but my colors do not look like the default colors when I first installed CS4.
    So for my lack of ability to explain my problem very well, how do I reset CS4 to show me the original color pallet?
    Thanks in advance
    Bob

    Are you talking about the colour
    picker
    If so, click on the radio button next to the "H".

  • Color Management Not Working Correctly with 2 Displays

    At work I am using two calibrated monitors connected to a Mac Pro. One of the monitors is a hardware calibrated wide-gamut NEC Spectraview, the other one is a software calibrated Apple Cinema Display.
    It seems like Adobe products only ever display correct colors for the one monitor that happens to be the main monitor. When “Displays have separate Spaces” is off in the system preferences, it is the monitor that has the menu bar. When that setting is on, it is the monitor that was active while the application launched.
    The main monitor always seems to display proper colors, while the secondary monitor shows exaggerated colors. It seems to me, like the applications only ever read the profile for the main monitor.
    I have noticed this behavior with Bridge and After Effects. I am not entirely sure about Photoshop, since I only ever use it on the wide gamut monitor, but it seems like it does NOT have the issue. I do not use any other Adobe applications.
    I had noticed this behavior back in Snow Leopard while using CS5 and CS6, but I never said anything, because I was using an outdated system. I was now moved to a new Mac with the most current version of Mavericks and the most current Creative Cloud versions of these apps and it seems like the issue remains.

    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform for bug reports

  • Child class not acessing correct var value

    I have 3 classes in different files:
    Test.java:
    public class Test {
    public Test() {
    public static void main(String[] args) {
    Jog t = new Jog();
    t.ini();
    Jok.java:
    class Jok extends Jog{
    public Jok(){}
    protected void pum(){
    System.out.println(configP);
    class Jog{
    protected int configP=1;
    public Jog(){
    public void ini(){
    configP = 5;
    Jok j = new Jok();
    j.pum();
    My problem is that it looks like the var configP inside the class Jok is set with the value it was initialized and not the value it should be: 5, as set in the method ini of Jog...
    Being Jok a child class of Jog i expect configP to be available with the correct value and i don't understand why this doesn't happen...
    Any theory behind Java OO-Programing i'm missing? should this happen?
    how to access configP in Jok class with the correct value? creating a getConfig in the Jog file and then calling it in the child class like: super.getConfig() also doesn't return the right value(5)? what is happening?
    thanks in advance for your time

    thanks for your code change but as you can guess this was a problem in a bigger project i have where i can't do that solution.
    Let me explain better my problem:
    my understanding of java is that the child inherits the vars of the super class.
    I have a super class that has a var configP, it's set for the default value 1, sometime in this class i change the value of this var, inside this class i print that value, it changes correctly.
    I then create the object of the child class and inside it i print the var configP. configP in the super class is now with the value 5, because I changed to it but in the child class the value is the default 1. At the time i created the child object the value was already 5.
    I now this is wrong but i can't understand why it's wrong in theory..
    (if i change the configP in the construtor of the super class, the value is correctly displayed inside the child class)

  • InDesign CS6 gives CMYK/RGB values when creating PDF.

    This results in a different white colors on the pdf - InDesign CS5 doesn't do this. Can someone inform me how this can be solved easily?

    Well during export to pdf the white balance of some pictures changes. This results in a pdf where white backgrounds of product shots become a different color. I clearly see it has something to do with the white balance but don't know what - tried already to export it as RGB of CMYK profile but the not all images of the same color coding (mix of RGB and CMYK saved visuals are used in one document).
    When I save the files as idml and open it in CS5, the problem is gone. So since the switch to CS6, I have this issue and as you might imagine, this is not very pratical.

  • Cl_abap_typedescr= describe_by_name not returning correct length value

    Hi,
    I am using cl_abap_typedescr=>describe_by_name  to get the length and field names of a table.  But it is returning incorrect values for length.    For example, all character fields and numc fields contain double the correct length
    REPORT  ZCA_BOB_CL_ABAP_STRUCTDESCR.
    PARAMETERS P_TABNAM type TABNAME OBLIGATORY.
    Data: wa_spfli type spfli,
          r_descr type REF TO cl_abap_structdescr,
          wa_comp TYPE abap_compdescr.
    ** Create references to the needed ALV Global Classes
      data: lr_events type ref to cl_salv_events_table.
      data: gr_table   type ref to cl_salv_table.
      Data: r_grid TYPE REF TO cl_salv_table.
      data: r_title_text TYPE REF TO cl_alv_variant,
            r_grid_title TYPE LVC_TITLE.
    Data:  abap_compdescr_tab TYPE STANDARD TABLE OF abap_compdescr
                         WITH KEY name.
    START-OF-SELECTION.
    **         ?=   means cast
    ** r_descr ?= cl_abap_typedescr=>describe_by_data( wa_spfli ).
    r_descr ?= cl_abap_typedescr=>describe_by_name( P_TABNAM ).
    Loop at r_descr->components into wa_comp.
    *   write:/ wa_comp-name, wa_comp-type_kind, wa_comp-length,
    *            wa_comp-decimals.
       append wa_comp to abap_compdescr_tab.
    EndLoop.

    Hello Bob
    Below is the output of your report run on a 4.6c system:
    Structure WA_SPFLI:                                   
    MANDT                          C          3           0
    CARRID                         C          3           0
    CONNID                         N          4           0
    COUNTRYFR                      C          3           0
    CITYFROM                       C         20           0
    AIRPFROM                       C          3           0
    COUNTRYTO                      C          3           0
    CITYTO                         C         20           0
    AIRPTO                         C          3           0
    FLTIME                         I          4           0
    DEPTIME                        T          6           0
    ARRTIME                        T          6           0
    DISTANCE                       P          5           4
    DISTID                         C          3           0
    FLTYPE                         C          1           0
    PERIOD                         b          1           0
    4.6c = non-Unicode
    Your system = Unicode
    Thus, the length is apprently the length in bytes.
    Simply check and RFC destination (SM59) using button "Unicode Test". You will get the following message on an Unicode system:
    Target is a unicode system (character size 2)
    Regards
      Uwe

  • Picture Colors Do Not Display Correctly

    Apple TV is very cool, however I noticed during a picture slideshow that colors seem off. For example, a red carpet that comes through on the TV as purple. I synced up my pics from my iPhoto library and have a great new Sony LCD TV. Wondering if anyone else has seen this color problem?
    Thanks All.
    Cheers.

    I have the same issue...I have a Mitsubishi 73" 1080i rear projection tv and the ATV is hooked up via component video. I also double-checked the cables to be sure it was hooked up to the colors correctly...and they are. All my photos look washed out and have a greenish tint! Uggg.

Maybe you are looking for