Jump to content

Tim_S

Members
  • Posts

    873
  • Joined

  • Last visited

  • Days Won

    17

Posts posted by Tim_S

  1. Hopefully someone has a solution to this in their back pocket. I'm working on a user interface where the operator will be editing an array of numbers. The behavior I am trying to create is, when the user adds a number to the array, the keyfocus goes to the element in the array. I've been trying to do this with an array of numbers without any success. I would rather avoid using a text-entry control (e.g., table), but that may be the option I have.

     

    Any thoughts?

  2. The problem is that the frontpanel of my application is hidden and when I dobble click the Icon in the tray, the Password VI popup but it is not the active window!

    You will need to make some calls to reorder the windows. User32.dll has "SetFocus", "ShowWindowAsync" and "SetWindowPos" functions in it. I've not found a foolproof way to get a window on top and with focus, but those are what I'm using.

  3. You don't really need to have an add_file program. When you double-click on the file you can pass the file path directly to the viewer as a command-line argument which can be read by LabViEW.

    That would work with the first instance of data_viewer.exe, but not if it was already open (since there is a single instance requirement). The data_viewer.exe could allow multiple instances, pass off the command line through another method to an existing instance, then self-terminate. This could be low-overhead if it was done similar to a splash screen.

  4. I've implemented a similar structure with a waveform viewing application. There were multiple user-selectable user interfaces that all used a single action loop to do the work. I passed a DVR to the UI on initialization containing the data and then sent an event back to the UI that the data had been updated inside the DVR. I did a test where 10,000 waveforms of 4096 points were loaded and displayed, and did not see a performance issue (the graph does slow down at that point).

  5. ... that make our clients happy.

    Happy clients? I have some unobtainium for sale...

    Well. I deal with automation machines and if it doesn't work there are penalty clauses. The clients are only interested in what day it will go into production and plan infrastructure, production schedules and throughput based on them being 100% operational on day 1. Deficient software is something desktop users have gotten used to and have been trained to expect. Software is the only discipline where it is expected to be crap when new. Imagine if an architect said "here's your new skyscraper, There's bound to be structural defects, but live in it for a year with a hard-hat and we'll fix anything you find".

    My clients would like 100% operational on day 1, but 50 custom assembly, gauging and test stations with PC and PLC software all trying to dance together with operator interaction just doesn't give you that option (especially with decreasing time to market). The operator will do something that causes the programmer to stare, blink and go, "why would you ever do that?" All of the stations do go through debug and testing on our floor and the customer's floor, so we shake out most of the bugs, but it's impossible to get them all.

  6. The program will have the same privileges as the operator unless you have the program run under a different login. That would be a reasonable way to go about it.

    Another way would be to provide a viewing window/application that only allows viewing then not tell the operator where the file is located.

×
×
  • Create New...

Important Information

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