Conversion of coordinates to screen coordinates of part of LabVIEW

Hi all.

I have a reminder of .NET that returns percentages of screen which I want to convert them into LabVIEW Panel coordinates.  The goal is to have an indicator move to the right in the LV Panel coordinates when the .NET event fires.  The management of the events is supported, but I have a problem with the math converting the percentage of the screen in an accurate position on a glass of LV.

The first thing I did is to multiply the percentage by the resolution of the screen, but I'm stuck on how to take the screen pixel data and understand where it is compared to the part of the LV.

I'm sorry if this was not the message more clear, I'll try and clarify any questions if I can.  Thank you very much for your support.


Tags: NI Software

Similar Questions

  • How to divide the screen into two parts in order to see the two different parts of the same file? [Suggestion] [Android]

    I am Brazilian and I use Adobe Acrobat Reader DC a lot. I would suggest an implementation of features present in the PC, I missed a lot of things on Android, which is 'New window' or something like that, like split the screen into two parts in order to see the two different parts of the same file.

    For smartphones, its use is restricted, but for tablets, it can be really useful, because it allows the display of two distinct points of the same file,

    I have reduced considerably the use of paper using this application, however, I need to navigate the file always pick up a few points seen earlier, which causes a lot of discomfort compared to printed documents.

    This is a suggestion, but I would like it to be considered.

    Thank you for your request. We have taken note of the same and must try to integrate it into one of our future releases.

    Thank you.

  • By specifying the screen coordinates in printf using LabView RT 2009

    According to the 2011 help in LabView documentation 'Printf (Manager of LabVIEW function)", the character of the conversion of 'q' is supposed to refer to a point. The actual help text is "q Point (passed by value) as %d, %d, representing the coordinates horizontal, vertical. It is a valid conversion for LabView RT 2009 character? If so, then someone has an example of using these characters to print at line 10, column 1 on the console? I tried a lot of combinations like: printf ("% dqTest Row", (10.1)), etc.

    LabVIEW Real-time has not intrinsically a "console" - it has an "output stream.  There is no API added to allow you to jump all over the console in native mode (don't cross the streams) - you can't even do it with the functions of Manager of LabVIEW (literally, it prints a point in this place of pixel, not text).

    Now, I tell you this, but if you happen to have a target with a video memory (like a PXI system, certainly NOT a cRIO or PCP) and you happen to know the address of where the video memory is on your 0x0B8000 system, you can directly write ascii characters on the screen specific areas - just as they did in the days of DOS.

    #include 
    #include 
    
    void VGAChar(unsigned int row, unsigned int col, char c, unsigned char attr) {
        static volatile char *video_mem = (char *)0x0B8000;
        unsigned int pos = ((row * 80) + col)*2;
    
        video_mem[pos] = c;
        video_mem[pos+1] = attr;
    }
    
    void VGAString( unsigned int row, unsigned int col, char * str, unsigned char attr) {
        int i = 0;
        while (str[i] != '\0')
        {
            VGAChar(row+(col+i)/80, (col+i)%80, str[i], attr);   /* print each character */
            i++;
        }
    }
    
    int main (void)
    {
        char buffer[ 100 ];
        sprintf( buffer, "Hello, my DOS world!" );
        VGAString( 10, 10, buffer, FOREGROUND_BLUE | FOREGROUND_RED );   // prints in PURPLE at ROW 10, COL 10.
    
        return 0;
    }
    

    Of course, I don't condone this and it is certainly NOT taken in charge (and only works on targets based on the PharLap with a video console), but there is a lot of fun.

    -Danny

  • Screen for A20m part numbers

    Hi all!  I think on the replacement of the screen in my Thinkpad A20m 2628-4TU, because it does not work very well.  I see that the part number for the screen is 47L 8450.  It's the only part number will work, or is there a list somewhere of the compatible screens for my type or will be a 14.1 inch screen released an A20m work?

    Thank you!

    The 14 "screen out XGA A20m, A21m and A22m will work without any problem.

  • I have a problem with the mouse cursor moving left to right and not conversely when switching between screens.

    Original title: change the direction of the mouse moves from the main screen to the external monitor

    My mouse movements from left to right when moving from one screen to the other, I want that he move right left how do that change

    Hi Jayson Bourne,

    Welcome to the Microsoft community. According to the description of problem cursor mouse moves from left to right and not vice versa when switching between screens. Provide the following information:

    ·         Did you do changes on the computer before the show?

    ·         You get the error message?

    ·         What is the brand and model of the mouse?

    I'll help you with this problem. I suggest you follow these methods.

    Method 1: Follow the steps in the article.

    Change the settings of the mouse

    Method 2: Update the latest drivers/software for the mouse.

    Updated a hardware driver that is not working properly

    I hope this helps. Let us know if you need help with Windows related issues. We will be happy to help you.

  • How to reduce a photo that I put on the desktop so that it does not cover the entire screen, just a part in the Middle

    1111

    Right click on the desktop | Properties | Office tab. On the right, click the arrow on the scope of the Position, and then select Center. Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • Conversion/appeal of an application created with CVI in Labview

    Hello

    I have a third-party application code created with labwindows CVI (attachment: scissor lift CVI code.rar) which is used for our control of movement of CT scans. I want to serve the Labview 8.6 my main software for data acquisition and software interface for my development. My idea is to create a dll from this CVI code and called the dll with Labview library import function is shared.

    My problem is that I am no expert in CVI programming if anyone can help me how to create a dll from this code? or any other suggestions to implement this conversion?

    Code CVI attached for reference.

    Thank you

    Lojius

    A starting point can be found here

  • Conversion to get examples of LV of the 2012 LabView and LabView 2009

    Hi all

    I need to convert (if possible) these examples of screws to use one ID camera with 12-bit resolution.

    Thanks in advance,

    Fabrizio Croccolo

    It is very easy to convert.

    File > save for the previous version...

    I've already converted them for you well.

  • Effectiveness of the Cartesian to spherical coordinate of the conversion

    I use a VI in the LV 2014 distribution called ".vi NI_AALPro.lvlib:3D Conversion of coordinates (scalar)". It uses DBL inputs and outputs and has several functions of table build in it as a library function call. I need to make a massive number of Cartesian to spherical conversions with SGL values, and so I would like to re - write this VI using LV primitives most efficiant manner.

    The calculation seems to be pretty simple, and I've attached a VI that does this. However, there is a problem with the calculation of the polar angle. From what I've read online, this is just arctan (y / x), but I get incorrect values when x is negative (but not when there is negative).

    From what I've read on the site of Wolfram, "the inverse tangent must be properly set to the right quadrant of (x / y) into account." I searched online for more details on the calculation, but I'm lost. Any trig works there who can help me?

    Definitions are extremely important in the definition of coordinate systems.  You include with your VI Cart_to_Sph documents of many errors and inconsistencies.

    This is a convention that I use and which seems to be acceptance quite wide (I'm not sure that's the convention of Wolfram, however).

    Let X, Y and Z is a right coordinate system.  That P is a point whose X, Y, Z coordinates we know.  Define a system of spherical polar coordinates (SSC) as follows:

    • Project of a line from the origin to P.
    • RADIUS (rho) - length of the line from the origin to P.
    • The line of the project on the X - Y plane.
    • Azimuth (theta) - measured Angle to the left of the x-axis for this proposed line.  By convention, theta varies less pi (radians), pi.
    • Polar angle (phi) - the angle between the axis Z (or 'pole') and the line from the origin to P.  By convention, including phi between 0 and pi.

    Under this system of coordinates, the following code (very similar to Altenbach, which uses a slightly different coordinate system) cards X, Y, Z in Rho, Theta, Phi:

    We will check certain quantities of 'known '.  Start with the x-axis of the unit, [1, 0, 0].  This clearly has length, Rho = 1.    The X axis lies in the XY, so the angle between the latter and the Z axis is 90 °, Phi should be pi/2.  Finally, the projection of the X axis in the XY plane is located along the X axis, so the angle between the two axes of X is 0, so Theta should be 0.  The first Re / Im polar will give 1, Theta Yes 0 = 0.  The second will give 1, pi/2, and Yes 1 = Rho and Phi = pi/2.

    How about unit Z, [0, 0, 1]?  Again, the length, Rho, is 1.  Technically, since the z plans on the origin, the Azimuthal angle cannot be properly defined (the X coordinates and are 0), so we'll do a loophole 'math' and just say that it is zero.  The polar angle is easy - the angle between the Z axis and the pole, the Z axis is 0, so Phi = 0.  Now "do the math".  Put [0, 0] in the first Re / Im polar gives [0, 0], so theta = 0.  The second d / Im to polar takes [1, 0] [1, 0], Rho Yes = 1 and Phi = 0.

    It is easy to show (in particular by the coding of this place and put in test of numbers) that negative quantities are working properly.  Rho is always non-negative, Phi is always in the range 0... PI and theta of pi-pi, with the sign depends on the sign of Y (as it should).

    Bob 'just do the math' Schor

    PS - If you think this is fun, just try 3D rotation matrices...

  • Y at - it an option for a screen shared 4 instead of 2?

    I found an add-on for a split screen, but it divides the screen into 2 parts, so I was wondering if there is an option or an another add-on which allows you to do a split screen into 4 pieces like this browser...

    http://www.bigbrowser.org/medias/screenshots/screenshot1.jpg

    Thank you for your time.

    Have you tried this: https://addons.mozilla.org/en-US/firefox/addon/tile-tabs/

  • How to turn off the screen saver in firefox

    I use an apple lap top firefox3.6.28 that I am trying to run video amazon. He tells me to disable my screensaver, impossible to find anywhere to turn it off.

    Hello guygeri, a screen saver is part of your operating system, so this can be done in firefox. Please see the documentation for mac os x on how to turn it off.

  • Satellite Pro M70 - stopped screen lights

    Hello

    My Toshiba Satellite PRO M70 screen lights.
    I don't know why, but sometimes when the screen is broken and I put it up it turns on, but after a few seconds it stops.

    It started a few days without something strange in my pc like hitting or something like that.
    I tried to connect an external display and it works weell.

    Anyone know why it cant pass or how fix it?

    Thank you

    Greetings

    Toni.

    Hello

    The Fn keys work?
    You can increase the display button narrowly by using the FN + F7 combination?

    Please also check the energy saving profile.
    Maybe the display brightness is set to a lower value in the power saver profile.

    But if you will not find anything unusual in the settings of the software, so I guess that the brightness display problem is related to the failure of inverter FL.
    The FL inverter controls the brightness of the screen, and this part needs to be replaced.

  • No streaming video/DVD on external screen or beamer

    SP2100 with XP SP1. Movies or DVD are normally played on the screen of the laptop. On an external screen or beamer or part 2 a double screen however, the part of the screen where the video should play remains black. Help, please

    Hello

    This is a technical limitation of the graphics card that you have on the computer. You can either watch the movie on the external display only or on the pc only, you only power play on both sorry :(

    Concerning

  • Satellite Pro L300 - nothing appears on the screen

    Hello

    Stupidly, I dropped the phone on the floor and now I can hear the phone turn on and the loading of windows, but I don't see anything on the screen. If I pull the laptop to me, applying light pressure, the backlight turns on, but there is still no display. If someone could help it would be much appreciated.

    Thank you

    Hello

    I'm sorry to hear that, JungleMan, but it can happen to anyone. ;)

    In any case, I think that it s something wrong with the display and FL inverter which controls the backlight. You can see an image on an external monitor?
    If yes that internal must replace and also the FL inverter I think because you apply slight pressure only backlight lights.

    You can order a new screen and other parts of an official Toshiba authorized service provider in your country.

  • Satellite L650: Is it possible to get the higher screen resolution?

    L650-1CH 15.6 ", 1366 x 768.
    ATI HD5650 1 GB

    Passionate about hardware, so please don't feel expected excessive things for me.

    Is it possible to get a screen resolution higher than stock, or better with the color / contrast?

    I was always annoyed how to wash the stock on my watched Toshiba screen. Recently the screen is cracked, so I figure now is the best time to look at the options.

    Google gave me very little information so far. I checked prices on replacement of the screen, with the part about being 60 and part + service with an average of 120, but that most likely leaves me with the same or lower screen quality.

    I hope to find something more suited to the movies / games and in 1600 x 900 if possible.

    Indications as to where I should start my search?

    Hello

    > Is it possible to get a screen resolution higher than stock, or better with the color / contrast?
    Yes, this should be possible since the graphics card should support a higher resolution.

    The laptop supports display TFT 15.6 "(HD).
    You certainly have the same screen size.

    Found some spare parts to the page + + pchub.com

Maybe you are looking for

  • looking for a best security app

    What is the most effective security software: MacBookPro2, 1 Intel Core 2 Duo 2.33 GHz 4 GB 667 MHz DDR2 SDRAM Snow Leopard OS X 10.6.8

  • HP Support Assistant v7.7.34.34 problem

    I've recently updated the HP Support Assistant software on my HP ENVY 700-230qe PC (Windows 8.1) of the 7.4.45.4 version to the new version of 7.7.34.34 (such as published on the site of downloads of software and driver for my machine). To enable the

  • Why Windows Calendar (Vista Op Sys) replicates my 99 times calendar?

    When I opened the app, I find 4 calendars, I created more than 99 copies of one of them. I need to manually remove 99 copies of every time I open the calendar. This happens intermittently, but at least 2 to 3 times a week

  • laptop does not connect to my wireless network it says "no internet access.

    I am not able to connect to the internet using my wireless network, I can connect to other networks, but it won't let me connect to mine it comes up with a message saying "no internet access. I called my broadband provider and they said that somethin

  • Dates or popup calendar selector

    NY know hw to get the dates or popup calendar selector in jde 4.2.1. .i think that it doesn't hv api datepicker...