Using a Slider to jog a linear ball screw in opposite directions

Hello,
I have a linear ball screw run by a motor/controller setup. I would like to use a Slider to essentially "jog" the platform mounted on the screw forwards or backwards a certain distance. However, the controller has its own language to control the movement of the motor. For example, /1P10000R would move the motor addressed as "1" 10000 steps in the positive direction and /1D10000R would move the motor 10000 steps in the negative direction. My question is this: If I set the slider to range from -100 to 100 mm, how can I get the output to have a "P" in front for numbers ranging from 0 to 100 and a "D" in frontfor numbers ranging from -100 to 0? I guess, fundamentally, how does the slider handle negatives? I have a vi to convert the numbers from mm to steps.
Thanks. 
Message Edited by manchmal2 on 05-14-2009 03:55 PM
Message Edited by manchmal2 on 05-14-2009 03:55 PM
Solved!
Go to Solution.

Hi manchmal2,
using string formatting functions?
Message Edited by GerdW on 05-14-2009 11:03 PM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Attachments:
formatting.vi ‏16 KB

Similar Messages

  • Track ball scrolls in opposite direction after installing Lion

    After upgrading to Lion OS, my track ball on my mouse moves the screen in the opposite direction.  What up?

    In System Preferences - Mouse
    DESELECT - Scroll direction natural!!!

  • HT1338 All of a sudden my apple mouse will not scroll down, it will scroll back up the screen but I have to use the slide bar to move the screen down. Can someone offer a solution?

    All of a sudden my apple mouse will not scroll down the screen, it will scroll back up but I have to use the slide bar to move down the screen. Has anyone had this problem and how to fix it?

    http://computer-hardware.wonderhowto.com/how-to/clean-apple-mighty-mouse-scroll- ball-217746/
    http://www.apartmenttherapy.com/how-to-clean-apples-mighty-mou-108357
     Cheers, Tom

  • How to use the slider to avoid keyframes movements?

    Hi there,
    first of all, I have to tell, I am not a English speaker, so please excuse me in advance. Anyway, I want to solve this particular issue: I have created an After effects project, where you can add into the composition your own text, logo or whatever... what the after effects project does is, that it turns your text, or logo into the 3D metal result. There is also camera cretaed, which moves from one position, to another. Take a look:
    The inputed text is "add content" (I have 4 cameras alltogether, but I am showing an example just on the first one, so you will not see the whole text. The rest of the cameras are also in other compositions)
    Here you can see the exact movement of the camera. However, if somebody inserts a logo or a text, which has for example 7 letters (in the next picture it is just "content") it will look like this:
    here you can see how big space we have. Also it is not appropriate to change the original size of the text in the composition to achieve the smallest gap, as we can see here. The height will be huge then...
    If I would edit it by myself, I would do this:
    -I would clicked on the button "2 views" and choose view from the "front"
    -Then I would select all the keyframes and after that i would go into the left window "front" and  using the mouse I would draged whole the camera to the position I want:
    The great thing about this is, that as I selected all the keyframes and then set the red line on one of them, the camrea will work even for the beginning! So this is how it will look after the fix.
    What the problem is, that after the small edit I want to send this project to few of my friends. Then they can easily put their text, or logo in. The text will have different height, width...it will be shorter or longer. I was just wondering, if you could help with some expressions, linkings and so on, so in the final result, of one my friends could move with the  whole camera (not just with one keyframe) using the SLIDER CONTROL. At least for the x and y axis, if z axis is also possible, it would be brilliant. It also doesn't matter how many sliders there will be .
    So basically with using the sliders, they should achieve this:
    So i need some helpful steps. Please help me. This is very important for me. I will be so much thankful!! Really! (Thanks for the potential help )

    You are way over thinking your problem and potentially headed down a path that will cause more problems that it will solve.
    If you have a camera path that is already animated and you want to change the position of the camera path as a whole the easiest way to do that would be to create a null and then parent the camera to the null. Move the null and all of the camera movements you have set up will follow. No expressions are needed. This is the easiest way to change every aspect of a motion path, rotate the entire path, scale the path, or move the path on any axis.
    If you really want to use 3 position sliders to move existing keyframes to a new value adding value + expressions values will allow you to do this. Just add an three expression control sliders to the camera layer (or any layer like the null you are using as a parent) select the name of the slider in the ECW and press enter and rename it. Something like this will be the result.
    Notice that I also have rotation and scale controls in this setup. Now that you have 3 sliders you can separate the position property of the null into individual values enable expressions in each property and type in value +, then use the pickwhip to drag from the X value to your slider named xPosition (in my example) and repeat for each operation. The value + will add the value of the slider to the current value of the position keyframes. The expression will look like this for X:
    value + effect("x position")("Slider")
    If you want to use sliders I would use a null, add expression controls to the null for position, scale, and rotation, keep the camera position property unified and then use your expression control sliders on the null to modify your existing path. I would not suggest doing this directly on camera position with separated X, Y and Z values because this will change the shape of your camera path and would be more difficult to control. You'll probably also want to create a camera POInull and use this preset to tie the camera's point of interest to the null.
    Here's an animation preset you can apply to a null that will give complete control to the motion path of any animated layer you make the child of this null. Search Animation Preset in the After Effects Search Help field if you do not know how to use them, create them, and save them.
    As a final gimme, here's a CS6 project using this animation preset to control a null's position that used to change an animated camera path.

  • How to use a slider to turn on and off lights

    Hi guys. i am fairly familiar with Labview now but cant seen to get my head around this problem. i have a slider which is numbered from 1 to 10. below the slider i inserted 10 LED lights. my aim sis to use the slider to turn on and off the lights. for an exmaple, when i set the slider to one, the light on the far left should go on. when i set the slider to 2, the first light should go on and the second light next to it should go on, and the pattern continues. i thought of using the number to array boolean but it didnt seem to do the trick. could you please help me out. i have attached the basic layout of how i wanted the objects to be arranged
    kind regards
    joe
    Solved!
    Go to Solution.
    Attachments:
    led control.vi ‏7 KB

    wow! simplicity at its best! thats really straight forward to understand. i think you are right about making complicated circuits. the reason why i had asked to know how to do this was because i wanted to learn how to control motor directions using a slider. so after i thought i had got the easiest way of giving out 2 different outputs using a slider, i replaced the lights with switches that changed the direction of the motor. i successfully did this for the first motor and it rotated fairly well, but wanted to control 4 in total. so i simply copied and pasted the code and re-asigned the switches to different motors. when i did this, the results did work BUT the motors went very very slow. the movement was not steady and kept skipping. i think this its due to the coding being overly complicated thefore causing a serious lag. if you could please have a look
    kind regards
    joe
    Attachments:
    controling test.vi ‏29 KB

  • Selecting Top N records in a table using a slider or drop down list

    Hi Experts,
    I have a query that  displays 1000 records ( say) in VC iview.
    Can i have a drop down list in the variable form to control the number of records displayed in the output table by the user .
    or can i have a horizaontal slider ( Min value is 2 -max 1000)  to display the number of records in the output table  selected by the horizaontal slider.
    basically iam having a requirement to give the user the capability to select the Top N records of the output table...where the user enters the N value in Drop downlist of variable form or user slides the N value using Horizontal slider
    Thnaks
    P.Navakanth

    Hi
    Yes it is possible. First you need to create 'Condition' in BEx query where you have to create 'TOP N' & 'N' should be a variable input. Then you will get this in 'Variable Screen' of a query. In VC for this same variable you can use slider. Use 'Select' function in the 'Action' of the slider & pass it to require table/graph.
    Try this, this will give you the required result.
    Regards
    Sandeep

  • HT1430 How can you reboot your Touch if the screen is frozen and will not allow you to use the "slide to power off"

    How can I reboot my Touch when the screen is frozen and I cannot use the "slide to power off" feature?

    Next try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • Using export slide show from iphoto, I am trying to create a DVD of photos and vid clips in large format. The vid clips do not work using burn software. Any idea?

    Using export slide show from iphoto, I am trying to create a DVD of photos and vid clips in large format. The vid clips do not work using burn software. Any idea?

    Have used large format, but using the 'burn' software, I am not getting seamless video quality on DVD even though I am burning at 2* speed. Any ideas? Do I need better software? Or is there a problem with the SuperDrive?

  • My screen opened, and with every click the page (letters/images) got bigger. I can not get it to return to normal image size. I have to use the slide bar to read across the page. What do i do to correct it back to normal size???

    Question
    My screen opened, and with every click the page (letters/images) got bigger. I can not get it to return to normal image size. I have to use the slide bar to read across the page. What do i do to correct it back to normal size???

    Hi jholzworth,
    It sounds like you might have accidentally hit the zoom button. Try hitting ''CTRL + 0'' to return it to normal size. Just so you are aware, ''CTRL'' and ''+'' will zoom in and ''CTRL'' and ''-'' will zoom out.
    Hopefully this helps!

  • Would like some assistance with removing chromatic aberration from images . In using the slider tool only some of aberration is removed tried brushing in but not successful. After magnifying image 1005 i can still see some slight purple fringing .

    Can anyone assist me in using chromatic aberration tools in removing purple fringing completely from images?  I have had limited success in using the slider , but in zooming in at 100% I can still see slight purple fringing in image . i tried brushing in but that did not seem to remove purple fringing completely.

    Can anyone assist me in using chromatic aberration tools in removing purple fringing completely from images?  I have had limited success in using the slider , but in zooming in at 100% I can still see slight purple fringing in image . i tried brushing in but that did not seem to remove purple fringing completely.

  • Mobile navigation using blank slide is not on top - Help

    I made several mobile websites which works fine.
    I use blank slide and vertical menu for Menu. When I place image I have to use Arrange - Send to Back to get navi to open over the image which is correct.
    However, today I placed slide with images and navi goes under that slidephoto. I tried Send to Back and Navi -> Send to Fron,t but it does not work.
    See attached screenshot.
    Is it because slide mix with slide? I don`t want to start over again to make menu with accordion.
    Is there solution?

    Hi ada_mju,
    You can always use layers option to get the desired output.
    Create a new layer, move it to top and place the menu in that layer.
    Please refer to the following help page for working with layers :
    http://helpx.adobe.com/muse/using/layers.html
    Regards,
    Akshay 

  • Using a Slider to adjust time ?

    Is there a way to use a Slider for a timefield ? Entering a lot of times is a pain....

    Hi manchmal2,
    using string formatting functions?
    Message Edited by GerdW on 05-14-2009 11:03 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    formatting.vi ‏16 KB

  • Using A Slider Component As A Button

    Hi
    I've got what to small problems when using my slider component.
    I'm building a small quiz and I am using the slider component to let the user rate their opinion. It'd be great if I could make the slider play the movieclip (to the next quiz questio) when the user has cast their opinion -  on mouse up. Is this possible.
    Also I'm using a 'score' uint variable to collect the polling results but I need this variable to reside on the root of my flash file so that I can add to it from various diffrent movieclips. How can I target the variable from a movieclip.
    Heres my code:
    import fl.events.SliderEvent;
    voteSlider.value = 5;
    voteSlider.addEventListener(SliderEvent.CHANGE, voteCast);
    function voteCast (event:SliderEvent):void {
              score += event.target.value;
              trace(score);
    This is what i would like to target in the root
    var score:uint = 0;
    Thanks

    your voteCast() function executes after a mouseup.  add your code there:
    import fl.events.SliderEvent;
    voteSlider.value = 5;
    voteSlider.addEventListener(SliderEvent.CHANGE, voteCast);
    function voteCast (event:SliderEvent):void {
              score += event.target.value;
              trace(score);
    gotoAndStop("label");  // assuming the current timeline is the one you want to direct.

  • Using NIKON Slide/film scanner

    I have found no suitable place to find answers to my questions about using a NIKON FIlm scanner to obtain digital photos.. Perhaps someone might make a useful suggestion??
    I have had a NIKON SF-210 slide/film scanner now for a couple or three years. However, I only started using it heavily last Fall (2008) to scan my large archive of old family slides. Unfortunately, as time has passed, the software has become more and more unstable causing me to have to restart the whole process after scanning only a small number of slides. Sometimes, it will not scan even one slide before crashing. I read somewhere that this behavior may be due to the upgrades in Mac software. I've done, repeatedly, all of the usual things that I can think of like reloading the software, etc.
    I can't get a response concerning this problem from anyone at NIKON and they don't have any Mac version upgrades to the scanner software on their web sites, and haven't for some time, perhaps a couple or three years. Does NIKON still support Mac products??
    Can anyone tell me how to solve or to find the solution to this problem?
    Thanks, Gramp

    I am using the Nikon Coolscan V (LS-50ED) USB connection with:
    intel MBP 15" (2.8Ghz)
    OSX 10.6.2. (Snow Leopard)
    I am just using the standard (on disc) Nikon Software upgraded to version 4.0.2 via internet. The app says it is a *Application (PowerPC)* under the info section, so I assume that it is running on Rosetta. (the Genious did my upgrade to 10.6 so I don't know if he installed Rosetta or not, but I assume so.)
    Everything seems to be working fine (as this is my first experience with scanning slides and color correction). Was a synch to set up. I am not the Ace though. I have only been using the slide scanner and not the film scanner yet (though I am soon to try).
    FYI there is a flickr group of nikon scanner users. I found some of them helpful too.
    http://www.flickr.com/groups/74221125@N00
    In particular I found this thread useful:
    http://www.flickr.com/groups/74221125@N00/discuss/72157613737155159

  • Selecting for use with slide tool

    Got FCE on Friday and decided to work through the manual (in the apparent absence of any video tutorials), got to the section about using the slide tool and am starting to scratch my head.
    Can use the slide tool to grab and slide clips but am now trying to do so using numerical edits. The manual (page 486) says:
    +If you need to slide a clip just two or three frames, using the mouse may be difficult. For precision edits, it is much less cumbersome to slide a clip numerically.To slide a clip in the Timeline using timecode:+
    +1Select the Slide tool in the Tool palette (or press the S key twice).+
    +2Select a clip in the Timeline, or hold down the Shift key to select multiple clips. You can also select noncontiguous clips using the Command key.+
    I'm actually struggling to select a clip, if I click on a clip with the slide tool it's momentarily highlighted with a coloured outline but when I let go it doesn't stay selected, I can shift click on the clip and it will get selected but the timecode doesn't appear at the top of the time line window.
    I feel a bit daft asking this, but after 20 minutes trying all sorts of things I'd rather look daft than waste anymore time. Anyone know what I'm doing wrong.

    OK forget it, got it, sorry about that.

Maybe you are looking for

  • Oracle forms 6.0 Image storing and retrieval

    Hello to all, Iam new to oracle forms, Iam using oracle forms 6.0, i was trying to insert the image into database using blob datatype.. i was continuously getting lot of error... Can any one give a sample application for inserting and retrieving the

  • Items in library linked together somehow, but want to delete one

    I'm practice with Flash, and trying out different things, but somehow, I managed to create a movie symbol from a graphic symbol, and now whenever I try deleting one of the symbols, it effects the other symbol as well. I only want one of these symbols

  • Instruction on how to enter unlock code for AT&T 6...

    Hello everyone, I got a little issue, hopefully someone in here can help me out.  Thanks in advance! I have a Nokia 6650 locked to at&t network but I requested the code from them and they provided the code and the instructions on how to unlock it.  I

  • Slow printing from windows 2008 R2 with Cisco 6509

    Dear All, I am having a wiered issue in my network. We have a windows 2008 R2 print server. Normal documents print's fine. If you print a image or pdf file, it takes a long time to print. For example a 2 MB PDF image with two page took me 10 minutes

  • Mail.app crashes after Tiger upgrade

    Hey! I have had trouble with mail.app crashing after I upgraded to Tiger v 10.4.6 I have tried reinstalling Tiger since and have all the updates to 10.4.9 The mail.app still crashes even after repairing disk permissions and disk... Please, if anyone