Control position vs mouse position
I want to create a tooltiptext for example. I have the mouse postion, the buttonposition and the window-position. So if I'm moving the mouse-cursor over the button, a light needs to go on. To find the position of the button in function of the X-axis is no problem, but from the top I can't find. My conclusion --> The "top button position" is not right.
Attachments:
delme.vi 34 KB
You didn't include handy\mouse.vi, so we can't see how you're reading the mouse position. Functions that read the mouse position often report it relative to the current window. You then need to add the window position to it.
FYI: Tooltips are included in LabView 6.x. Instead of just being able to set the description of a control, on the same screen you can set the tooltip text. Just one minor reason of many reasons to upgrade.
Similar Messages
-
JSlider or similar for controlling position in sound files help please.
You know how winamp, wm player , etc, and JMStudio all have a "slider" bar to control position, along with a "numeric readout" of the current position.
Fairly new to Java, but know this isn't a difficult thing to do, just haven't found out how to do it.
Do not care if it is with JavaSound API or JMF, either is fine, just learning.
Have read up on Sliders at:
http://java.sun.com/docs/books/tutorial/uiswing/components/slider.html#labels
But do not understand how to implement it with Audio file usage.
My goal as a new programmer is to create a simple audio playing Applet:
For a GREAT idea on what it will basically do check out:
JMStudio:
http://java.sun.com/products/java-media/jmf/2.1.1/jmstudio/jmstudio.html
My goals are to have:
Applet
GUI with: Pause/Play button and a SLIDER to control position, just like described.
Have it load and play an audio file when a link is clicked on using the PARAM tag from html
I know about the open source/commercial products,,,, but I'm trying to learn, and those are too in depth to try and learn from right now, trying to take baby steps, and having difficulty finding anything beyond play()
loop() and stop()
searched google, groups, yahoo with various phrases.
Thank you!You have to use a JSlider and combine its events with the setMediaTime method of the player.
-
Somehow a third party tried to remotely take control of my mouse!
I have an iMac (10.6.8). Today someone tried to take control of my mouse to open Finder, a youtube downloader program, etc. I caught this happening both times and fought for control of the mouse until I ultimately had to put the iMac to sleep to prevent them from getting into anything personal, etc.
Following the first round, I changed my password to my imac and macbook, made sure the firewall was set up, disabled making either discoverable via bluetooth, and somehow it happened AGAIN. For a final test, to see if this happens a third time, I disabled the remote control infrared receiver.
Can someone tell me what the BLEEP is going on (outside of the fact that someone has managed to gain remotely access to my computer) and what I can do to stop it. I am in teh process of compressing my files and moving them off the imac and doing a full system reinstall to set it back to factory settings when i first got it and see if that does the trick. I am very careful about what I download so I dont think it was anything like that (mainly because I use my iphone for email)
Ideas? Thoughts? Suggestions?Is Screen Sharing enabled in System Preferences > Sharing?
-
Controlling position of thumbnails using variables
Hi the code is attached for reference.
This action script controls a photo gallery
I need to modify the dimensions of the movie clip. I was able
to change the position of where the main image clips and also where
the thumbnails appear at the starting point, however when the
scroll pane starts to move to left and right I cannot control it's
position any longer. I need to show the thumbnails about 500 from
the left of the flash and make sure it will stay this way. Right
now, when I mouse over the scroll pane the thumbnails start moving
to the left all the way to about 4 pixels from the left of the
movie.
Can someone help. I am providing links for the difference
between movie clips. Any help is super appreciated.
Before
changing movie dimensions
After
changing movie dimensionscool thank u so much! I've tried to change the X and Y on the
code that is attached to the frame, but its still loading in in the
same place. Take it its here that you set the positions? whats the
100 value that is attached to the button? -
Controling Position and Velocity of trolley
Hey,
I am working on an application for a engineering design project that requires me to control the position and velocity of a trolley on a linear track.
I have done some work in LabWindows before controlling the speed and position of a linear movement but am having some troubles shifting my knowledge from a small application to what I am working on now. This is what my plan is; I currently have a motor (DC 24V 88A), String potentiometer to determine linear distance travelled (there was risk of slip and need of high precission), sufficiently sized power supply and BNC-2110 DAQ.
My plan (which I am looking for some feedback on ... no pun intended) is to use LabView to create a PWM (which has already been done) to control the speed of the motor via the counter turning on and off a power mosfet completing the Motor's circuit. By varying the time on and off I hope to control the speed.
After this has been completed I hope to hook up my string potentiometer to the Trolley and see how it's position changes over time (i.e. determine the speed at which the trolley is moving at for a variety of different % time on and off). This will act as an open loop test, which I was hoping to then figure out a practical transfer function for the motion of the trolley and then somehow use the String Pot as a feedback sensor to complete the loop and create a PI controller. I am having a hard time wrapping my mind around how I am suppose to put the later bit into practice. It all sounds fine on paper but actually approaching an implementation of this idea is boggling my mind.
Any input or pointers would be greatly appreciated. Am I on the right track or am I looking at something completly wrong... being a student I guess I don't know exactly how things are done in practice in industry, just what is written in books so any help would greatly appreciated.
Thanks!
MacMac,
starting with an open loop system, determining the transfer function and designing the control algorithm is a reasonable approach albeit a little bit academic.
A more empiric approach is tuning the closed loop motion control system by means of test functions like white noise or a setpoint step. Here you can find some information about tuning a motion control system by analyzing the step response of the closed loop system (Please note, that this document refers to NI motion control boards, but the general approach of the tuning process is universal).
This brings me to something very essential. Stable control systems require a deterministic real-time environment. You haven't provided explicit information about the environment that you are intending to use, but it sounds like you are planning to use a Windows based system with LabVIEW. This is not recommended, as such a system can't guarantee stable control loop timing, which is at least as important as the right set of PID parameters.
So my recommendation here is to use either a motion control board which runs the control algorithm onboard or to run the application with the DAQ board under LabVIEW RealTime (could run on a PXI-system or on desktop PCs that meet certain requirements). If you are going for the second approach, you may also consider using the NI SoftMotion Development Module.
If there is any kind of campus license of NI-Software available at your university, all the required software components should be already available for you.
Last but not least here are some considerations about the power circuitry. You have suggested to use a PWM signal that controls a single mosfet. This approach is not feasible in most applications, as it doesn't allow you to control the position and the speed of the motor accurately. To do this, you need to be able to drive the motor in both directions. You could do this by using an H-bridge circuitry, but this requires some more considerations when designing the control algorithm. In fact in most cases you would work with two cascaded control loops. The inner control loop is the current control loop, that generates the signals for the H-bridge, while the outer control loop is the position/velocity control loop.
Depending on the focus of your project, you may also consider using a commercial motion drive that provides the power circuitry and the current control loop. Those devices typically provide a +/- 10 V input for an external control signal that is provided by the outer control loop.
I hope this information provides some ideas to getting started.
Kind regards,
Jochen Klier
National Instruments -
Hello
When reading from file I use an InputStreamReader wrapped in a BufferedReader. The BufferedReader provides me with the 'mark(int)' method and 'reset()' method for controlling the position. It appears slightly cumbersome. Im used with 'rewind()' to place pointer at start, and backspace() for previouse line, but maybe the mark(int) method is the only way to control this in Java?
Also, what integer do you use as parameter for mark(). I did not quite understand the API for this.
Regards
JTAs I allways try to post some sample:
You should have a file named Some.txt on your root(/) directory or in your c:\ with three lines of text.
package example;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
* @author leonardo 09/11/2004
* @version 1.0
public class FileIO {
private RandomAccessFile raf;
public static void main(String[] args) {
File file = new File( "/c:/Some.txt" );
try {
FileIO fileIO = new FileIO( file);
System.out.println(fileIO.readLine());
System.out.println(fileIO.readLine());
fileIO.reset();
System.out.println(fileIO.readLine());
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
* Create a file IO class.
* @throws FileNotFoundException
* when the file does not exists.
public FileIO(File file ) throws FileNotFoundException {
this.raf = new RandomAccessFile(file, "rw" );
* Reads one line of the file.
* @return The line readden.
* @throws IOException When there is an IO error.
public String readLine() throws IOException {
return raf.readLine();
* Set the file pointers to the start of the file.
* @throws IOException
public void reset() throws IOException {
raf.getChannel().position(0);
} -
Define Control Position and Size Numerically (in a new Properties page)
It would be quite helpful to have a Property page for Front Panel Controls and Indicators where you can define the size (height, width) and position (top, left, related to its container, which can be a panel, a sub-panel, a Tab control, a cluster,...).
Duplicate: Add Position to the Properties Dialog
-
Porting Mac os VI to windows changes controls position
I have an application that I want to use on both Mac and PC. I noticed an annoying bug(?) that when I move the VI from Mac to PC and back some of the front panel controls stay in their place, but some change their relative position. If I align some controls on one OS, they would be misaligned on the other.
How do I fix them in place, and what could be causing it in the 1st place? There're no overlapping labels or text on either OS version.No, we are not using system controls. The app originated on the MAC.
Here're two screen shots of the same view, 1st the controls were aligned on PC (fig1), then vi was saved and then opened on the MAC (fig2).
One of the array controls jumped up.
Attachments:
PC.png 68 KB
MAC.png 125 KB -
How to control position of subtitles...?
I have a bit of video that has a subtitle stream (i.e. the kind you can turn on / off, not the kind 'burnt in' to the video image). The video is wide-screen movie aspect ratio, and I can see the subtitles fine on my iPad both when viewing in letterbox format - where the subtitles appear below the video image (in the black 'letterbox area) and in fullscreen mode (i.e. using all iPad screen, but missing detail to left and right - subtitles appear in a translucent grey overlay at bottom of image).
When I try to watch the same footage on my TV (16:9 ratio screen) via Apple TV 2, the bottom part of the subtitle text is not visible on-screen - I only see half the subtitle text.
The Apple TV 2 is trying to position the subtitles in same place iPad does in letterbox format - i.e. 'below' the video image. Trouble is, the TV is widescreen model, and so the 'letterbox' margin above and below the video image is much less than when on the iPad, but the ATV doesn't seem to realise and draws the subtitles 'below' the bottom of the TV screen.
This happens both when trying to watch the clip via ATV directly, and sending it from the iPad via AirPlay.
On video clips with subtitles that have an aspect ratio that matches the TV aspect ratio, the subtitles appear on-screen via similar translucent overlays. But I cannot find a mechanism to 'force' the ATV2 to use this method to display the subtitles so I can see them...
Does anyone know if there is a a way to force ATV to display the video in this way?Hi Tst, thank you for your reply. I could not create a property node for the subVI. How to get app control palette form block diagram? I have attached a sample vi which is similar to my application. Could you modify the code so that the pop-up window's position can be controllable? Thanks again.
Attachments:
Window.zip 13 KB -
Controlling position of loaded movie within a level
Hi guys
I am trying to control the position of an external swf file,
which has been loaded in using onload, but want to know is it
possible to control the X and Y position of the loaded swf -
possibly without having to use a container empty movie clip to load
into.
Many thanks!cool thank u so much! I've tried to change the X and Y on the
code that is attached to the frame, but its still loading in in the
same place. Take it its here that you set the positions? whats the
100 value that is attached to the button? -
Control position of Acrobat Toolbars?
I'm sorry if I'm posting in the wrong discussion but I cannot find a general discussion for Acrobat - all are very specific.
I'm using Acrobat XI Professional. I create PDFs from FrameMaker. The interface in Acrobat has changed with regard to the position of toolbars and buttons and I find it less intuitive and want to know if there is a way to change that interace. I used to be able to control some tool positions - can't figure out how to do that now.
1. I don't want the Create button in the toolbar at all, or at least not positioned as the first button on the left. I NEVER use that function in Acrobat. I am accustomed to the Open button being the first tool and keep clicking the wrong one.
2. I really dislike the up/down page navigation buttons being at the top of the screen. I am accustomed to them being at the bottom of the window, below my open document and that makes much more sense than having to "reach" to the upper left of center now and take my eyes off the document text to scroll up and down through pages.
3. Ditto for the zoom in/zoom out buttons - prefer them at the bottom of the window.
Is there some way to customize the toolbars/buttons that I am missing?
Thanks for any help.If your VI has multiple panes (or just to be prepared), you can find, here a VI that returns the pane of a control.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
Control position of popup dialog box
Hi,
Is there a better method of positioning a popup dialog below a string control? - see attached (run parent.vi)
Can I obtain a Pane ref and a VI ref given a string control reference? so that I only need to pass the string ref
thanks
Al
Solved!
Go to Solution.
Attachments:
parent.vi 9 KB
child.vi 16 KBIf your VI has multiple panes (or just to be prepared), you can find, here a VI that returns the pane of a control.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
Controlling position of + and – when adding text size controls
Dear gurus,
I am trying to sort my text size controls (+ and –) and
have managed to get them to resize but I can't get them to sit
together. At the moment, visually it says
Resize text then there is a big gap and there's the minus
(–) then the plus (+) is pushed over onto the next line. I've
tried my best but I simply don't have the knowledge to fix the
problem.
I have attached the code, see below (it may be full of
mistakes so, don't laugh).
Can you help and have I given you enough info?
Thanks,
Mark@dkg62 – to make clear what's going on, select the text frame and show us another screenshot.
There are at least four cases where you can get a text like that. All cases imply, that the font you'd like to use is missing. I simulated this by formatting text with a font weight that is not available by a character style.
1. The most likely case: There is baseline shift applied; here in my case 9pt.
All other cases are academical, because the pink highlighting is aligned with the text:
2. Text frame options, baseline set to a fixed value (zero in this case)
3. Text on path and the text frame options (baseline) is just the standard default. You can see a second #-end of story sign inside the text frame.
4. Text on path and the text frame options (baseline) is set to fixed (zero in this case). The second #-sign inside the text frame is shifted above because of the fixed value of the baseline option of the text frame options. And obscured by the pink highlighting.
Uwe -
Process Control Position in North Texas
We are looking for a hands-on process control person with experience programming in LabView and with NI compact Fieldpoint and CompactRio instrumentation. Job duties will include designing and building control and data acquisition systems for production equipment as a well as one-off pressure and and hydraulic actuated test equipment. Must be able to troubleshoot, maintain, and upgrade existing NI control systems with minimal oversight. Will also be responsible for collecting and maintaining test and process data. Mechanical design and AutoCAD experience a plus.
Dear hiring manager,
My name is Patrick Hart I have seven years experience developing in LabVIEW and have a lot of experience with both compact Fieldpoint and CompactRio. I also have a Mechanical Engineering degree so I have experience in mechanical design as well. Below is my resume.
Thank you for your consideration
Patrick Hart
[email protected]
801-928-3073
Patrick Hart
13073 SE Capistrano Ct Milwaukie Or 97222
Phone: (801) 928-3073
Email: [email protected]
[email protected]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Summary
Experienced LabVIEW developer with expertise in configuring, building, and deploying test, measurement and automation systems.
Professional Summary
Measurements Engineer
Blount International, Inc. (August2011- Present)
Architect and write automated LabVIEW tests to control dynamometers for DC motor testing.
Develop automated LabVIEW tests to run overnight to test durability of electric tools.
Create lab tests to simulate the environment of battery powered tools.
Characterize DC motors to help make important product design decisions.
Design signal conditioning to interface with multifunction daq boards.
Develop LabVIEW Real Time and LabVIEW FPGA Embedded Loggers.
Design test fixtures to test mechanical and electrical products.
System Test Engineer
EFV - Expeditionary Fighting Vehicle - Hill AFB (November 2009 – August 2011)
Developed software using LabVIEW to simulate vehicle signals and functionality for a real-time hardware in the loop PXI test system.
Developed software solutions interfacing with data acquisition (A/Ds and D/As), FPGA, CAN, and Serial Hardware (RS 232 and RS 485).
Wrote code that is compiled down to an FPGA using LabVIEW FPGA.
Develop and debug signal conditioning circuits.
Developed test procedures to validate software requirements.
Was part of a CMMI level five organization.
Possess an active secret security clearance.
Test Engineer / Field Applications Engineer
National Instruments (August 2005 - November 2009)
Configured PXI ATE systems for Test and Measurement applications
Integrated multi software platforms including LabVIEW, TestStand, LabVIEW Real Time, LabVIEW FPGA, C, MatLab, and VHDL.
Integrated multi-measurement hardware platforms including equipment from National Instruments, Agilent, Tektronix and LeCroy.
Interfaced hardware through software via multiple buses including: Serial, PXI, PCI, Can, GPIB, USB, Ethernet, and LXI.
Created and presented training and seminars on such topics as: LabVIEW, Data Acquisition, Industrial Automation and Rapid Prototyping.
Acted as primary liaison between R&D and customized client needs.
Increased efficiencies by incorporating LabVIEW into R&D, validation and production environments
Coordinated with R&D and marketing groups for new product suggestions and hardware redesigns.
Worked closely with client-engineers to develop test methods, custom software solutions and integration strategies.
Supported existing systems and upgrades.
Managed major account relations.
Supported and diagnosed problems with existing ATE systems and made recommendations for upgrades.
Engineering Intern
Smith Lift (Smith International) (May 2004 - September 2004)
Designed and built prototypes for components of down hole pumps.
Designed and built test fixtures using 3D modeling tool Pro Engineer.
Designed and implemented tests and artificial environments to observe the behavior of the product in different environmental conditions.
Staged comprehensive failure analysis on field tested equipment.
Computer Technician / Technical Support Representative
Sento Corporation (October 2000 - April 2003)
Provided tech support services to integrate software and hardware.
Diagnosed problems with proprietary software.
Educational Experience
BS – Mechanical Engineering – Brigham Young University 2005
Learned Java, C, MatLab, Unigraphics (UG), and Maple
Took graduate courses on Advanced Materials and Composites
Additional Skills
Advanced LabVIEW programmer
CLAD Certified
Experience with TestStand
Experience with C, and Java
Fluent in Portuguese (written and spoken) -
Can u control position of the title tag?
Is there a way of controlling 'where' the title tag appears
when u roll over a link? On FF it appears nicely to the bottom
right, but IE (on v5.2 anyway) appears below centre, so on my list
of links vertically, the tag/label covers the link below!No. Not as long as you are using the title *attribute* for
this
information. When I need to control something like that, I
have used
http://overbox.swazz.net
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Deansplit" <[email protected]> wrote in
message
news:ft0bl8$bmi$[email protected]..
> Is there a way of controlling 'where' the title tag
appears when u roll
> over a
> link? On FF it appears nicely to the bottom right, but
IE (on v5.2 anyway)
> appears below centre, so on my list of links vertically,
the tag/label
> covers
> the link below!
>
Maybe you are looking for
-
Error with Links if using x3 primary keys
Hi Folks: Here is the error code I'm receiving: ORA-01422: exact fetch returns more than requested number of rows Unable to fetch row. Background: I am using Application Express 3.2 All of the pages I have created that rely on x2 primary keys (first_
-
How to automate digital signing PDF Files in batch
I am trying to find a way to automate as much as possible the placing of a digital signature on a set of PDF documents. We have Adobe Acrobat Pro 8.1 and the machine has MS Office 2003 with Vista Business. Here's a scenario: A set of documents exi
-
SInce the 8.02 update my Bluetooth no longer works in my van. It connects and disconnects intermittently. As a handicap person I find it not only frustrating but dangerous. My call will not always connect and hangs up in mid conversation. That is whe
-
I have a department table with following values dept exclude xxx y yyy y zzz n I need to exclude the dept with the string xxx% and yyy% from college table(i.e) first i have to look for records with the values exclude=y (for ex) xxx and yy
-
Applet digital certificate is diplaying before applet loads
Hi All, I have a drop-down in a jsp page. I want to display a signed applet when I select a particular option from that drop-down list. In http mode the digital certificate is displaying only when I select that particular option from dropdown list. (