Jump to content
Sign in to follow this  
jackscl

Front Panel Active

Recommended Posts

Hi Everyone,

This days, I meet a strange thing: The exe created by LabVIEW might be no-acitve status anytime when my customer use it to get current data from 6485 and product SN from a Bar code scanning gun then recording data by NPIO .Unfortunately I have a long time business travel.

My customer ask me to solve it -- he does not like  using mouse to click the exe to active it. 

Hence I want to use winapi detect my UI's status and make it activity.But it does not work well .... 

Thanks.

Add:

image.png.51a4c4d457615e247a3796c587c7771f.png

When I click the desktop , the front panel will be as this status.The problem is that I still can't input keyboard.

Another: I find that the focuse threat should be the UI THREAT ,But I can't get this vi's threat by GetCurrentThreat().

 

 

WindowSet.vi Test.vi

Edited by jackscl

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By Atul Ghumade
      I'm trying to make a VI where Front Panel Controls and Indicators should be visible but background must be transparent. 
      I tried attached VI, Its working when I m selecting Windows Behavior as "Floating" but When I tried Windows behavior as "Modal", its showing a white border. I want to eliminate border when "Modal" is selected. Is there any solution? 
       
       





      TestVI Folder.zip
    • By Rob Calhoun
      Hi LAVA-ers,
      I'm finally implementing a long-delayed transition from our homebrew LabView build system to Jenkins.
      The best build-step option (for Jenkins under Windows) seems to be "Execute Windows batch command". My batch command looks like this:
      pushd "directory-containing-lvproj" echo "Running LabVIEW build process..." start "bogustitle" /wait "C:\Program Files\National Instruments\LabVIEW 2017\LabVIEW.exe" "Build.lvproj" "BuildJenkinsProject.vi" echo "complete, errorlevel %ERRORLEVEL%" popd where BuildJenkinsProject.vi is set to run when opened. BuildJenkinsProject.vi reads some environment variables set by Jenkins, sets up the builds (multiple EXEs and installers defined in a different lvproj) builds away.
      But my builds take a while, and I'd like to see the output from my logging system inside Jenkins while the build is in progress. Some Googling turned up these posts re: sending output to stdout from LabVIEW:
      https://lavag.org/topic/13486-printing-to-the-standard-output/
      https://lavag.org/topic/11719-running-a-labview-exe-from-the-console/
      I'm running LV 2017 64-bit, and none of the existing examples were handling 64-bit HANDLEs correctly, so I wrote a new version. This version uses only WinAPI calls (vs WinAPI + .NET), fixes some bugs, and it stateless, so you can call it anywhere in your code. Even when flushing the buffer after every write (which some on the Internet claim is necessary to get real-time log output; I am skeptical) it is plenty fast, around 10,000 lines per second. Since jdunham had previous written a fancy object-oriented logging system, I subclassed our logging system to write to stdout as well as the regular log. When I build from cmd.exe using the above batch file, it all works as intended.
      My problem: when Jenkins runs my batch file, I get something rather less exciting: nothing!
      E:\Jenkins\workspace>labview\Build\BuildJenkinsProject.bat E:\Jenkins\workspace>pushd "labview\Source\Build\" E:\Jenkins\workspace\labview\Source\Build>echo "Running LabVIEW build process..." "Running LabVIEW build process..." E:\Jenkins\workspace\labview\Source\Build>start "bogustitle" /wait "C:\Program Files\National Instruments\LabVIEW 2017\LabVIEW.exe" "Build.lvproj" "BuildJenkinsProject.vi" E:\Jenkins\workspace\labview\Source\Build>echo "complete, errorlevel 0" "complete, errorlevel 0" Not a big deal since I have my regular log files, but having gotten this far it would be nice for Jenkins to show work-in-progress. Any ideas? In the meantime, here is a stdout writer. (Released under MIT License, copy away.)
      -Rob Calhoun

      Attached: stdout writer function for LabVIEW 2017, and save-as-previous to LabVIEW 2012.
      WinAPI Write to StdOut Folder.zip
       
    • By Grey
      Hi,
      I developed my application and given to the production. It is running successfully.
      I want to give my email address at front panel and if the user clicks the email it should open the outlook email. same way i want to give the website link too. it should open the site when the user clicks on it.
      Any idea how to do this!
      thanks.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.