Write a Labview program to control both speed and direction of stepper motors

Hello,
I am currently undertaking a project in University. As part of it I have to run two stepper motors at varying speeds, and one of them in forward/reverse. The motor I have for the project is a RS 191-8334 (V9728) and the controller is a RS 240-7920 (v10900). I have no experience of using Labview, and the version I have on my laptop is Labview 10. Any help would be greatly appreciated.
Ideally I would want a program to do both full/half steps, forward/reverse, have speed control and be able to control the number of steps.

Hi Wef,
I would need to know more information about the devices in order to assist you.
What inputs does the stepper motor controller require and what hardware are you using to supply the required signals to the motor.
Best regards,
Stephen C
Applications Engineer

Similar Messages

  • When I used download sets of photos, movies etc, (before I installed Lion) I used always get a "Download" gizmo which showed me the download happening with both speed and time left.  Now with Lion, nothing shows on my screen.  Can I fix this?

    When I used download sets of photos, movies etc, (before I installed Lion) I used always get a "Download" gizmo which showed me the download happening with both speed and time left.  Now with Lion, nothing shows on my screen.  Can I fix this?

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Labview Program will hang between 33% and 50% of the time.

    I have a problem with a Labview program I made. I have two programs that do the same thing. One is in flat sequence form and the other is in state machine form.
    As explained in the link below, I would like to make use of a microcontroller to make wiring connections for automating a measurement process. A separate current source and volt meter will be used.
    https://forums.ni.com/t5/LabVIEW/Sequence-a-good-idea/td-p/2601333
    I have since made some simple test programs which I have attached. The problem is when executing, the labview program will hang, but not every time the program is execute.
    For example: Hall 1.2.vi will work properly twice with the third time it is executed it will hang. If you abort and try again, it will again run twice with no problems with the third hanging. This one is in flat sequence format (was in a flat sequence, but merged the windows because I thought that was the cause). From what I can tell, the program will hang when calling Keithley 6517 Single Read.vi. Both connected Keithley devices are connected to the computer via GPIB at 16 and 27. The way I verified if it was this vi causing it or contributing to it was that I removed it and the program never hung. I find it very strange that it will hang exactly on the third attempt every time.
    Hall 1.3 simple.vi will work the first time and hang the second time. So it works 50% of the time. This one is in State Machine format. This one will hang at the case titled "Measure 1" which contains the Keithley 6517 Single Read.vi.
    I've used the highlight execution button and watched the program run. Oddly, it doesn't hang when using this button. So I tried adding delays/wait in different places to no avail.
    What could be causing this? As a side note, I say the program hangs for two reason. The main one is the program doesn't finish running so the run arrow is still black. The second thing is that if you notice at the end of the labview program, I have a block there that turns the current source off which doesn't happen when it hangs. I have to manually turn it off and then hit the abort program button to stop labview.
    Solved!
    Go to Solution.
    Attachments:
    Hall 1.2.vi ‏42 KB
    Hall 1.3 simple.vi ‏81 KB

    altenbach wrote:
    SaintsFan wrote:
    Also, I've tried placing wait/delays at various places with no improvement of the problem. My next thought is to just remove all the vi calls and have everything in one program.
    How did you place the waits?
    Why would placing everything in one program fix the problem. That makes no sense! What is your reasoning?
    In the case of hall1.3, I placed a wait in the Measurement cases and CS On cases and there was no affect. In the hall 1.2 when the blocks were broken up similar to the state machine cases where each sequence window was identical to the cases, I placed a wait or delay in each window with no effect on the hanging.
    My reasoning for placing everything in one program is the same as my reasoning for figuring delays would help, since the time of execution would be altered. If the execution time is faster and if the timing is the problem then I figured that the problem would happen more frequently or even every time.
    Somehow I get the feeling this is not the case. The reason being the interval in which it succeeds or hangs is constant. I believe somewhere, a value is getting set. The 6517 Read vi runs fine if I run this vi by itself no matter how many or how fast I run it. Also, the same goes for both 1.2 and 1.3 if I remove the 6517 read vi they run fine no matter how fast or how many times I run them. 
    Somehow after the current source is set to operate and triggers labview will hang on a set interval when calling 6517 read vi.
    Separately they work, together there is a problem. I tried placing a delay between these two by connecting the error out of the trigger vi to the error in of the delay block and the error out of the delay block to the error in terminal of the 6517 config block. I've also tried delays between other blocks connected the same way. From what I understand, a called vi can't execute until all inputs are present. Is this the correct way to wire the delays?

  • Control of DMX J SA 17 stepper motor in Labview

    Hi,
    I'm trying to build a simple program to control an Arcus Technology DMX J SA 17 stepper motor via USB. I'm basing my program on the example which Arcus provide on their website, and which I attach in an llb (the program is demo.vi, the rest are sub vi's). 
    The motor also comes with a piece of standalone software for controlling it, and this program works fine - which implies that there is no problem with the hardware or connection. 
    The problem I'm having is that when running the demo, having input some arbitrary positions for the motor to turn to, it returns error 8004:
    "LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488:  Command requires GPIB Controller to be Controller-In-Charge."
    The error is confusing because the control mechanism does not use GPIB hardware or commands, also the VI was made by Arcus and I would have expected them to handle the formatting of the data inputs correctly.
    Any help would be much appreciated
    Dan
    Attachments:
    PerformaxLV_v102.llb ‏500 KB

    Hi Jack,
    Thanks very much for your help. I've managed to complete the VI now, working as was intended. The principle problem came from trying to use demo.vi as a standalone - it turns out all the vi's in the .lib are sub-vi's apart from utility.vi. This was of course, not at all clear - and I've emailed Arcus recommending that they includ some descriptive documentation with the .lib download. 
    What was happening was that demo.vi was trying to send commands without having first established a communication channel, which is done by two other sub-vi's in sequence (device selector and open device). Also, once communication is established, the motor needs to be sent the command string 'EO=1' to be enabled.
    I attach the final vi I made 'motor control' and the sub vi library, incase anyone working with the same hardware finds them usefull.
    Thanks again,
    Dan
    Attachments:
    Motor control.vi ‏92 KB
    PerformaxLV_v102.llb ‏449 KB

  • How can i buil labview program to get the area and curvatures at top with video analyis?

    labview program building...
    Solved!
    Go to Solution.

    Please stick to your original thread:  http://forums.ni.com/t5/LabVIEW/how-can-i-get-the-area-of-a-ball-with-video-analyis/td-p/1630034
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Impact of write-back on large data cubes(Both ASO and BSO)

    Hi All,
    We are in the phase of designing the Essbase Cubes(both ASO and BSO).
    Has anyone encountered issues performing a write-back on large Essbase data Cubes?
    With Regards,
    Madhan

    Hi,
    Do you mean data load from a flat file or sql or simply lock and send? An estimate size of your record set would also help.
    I get 30 million records into an ASO cube in about 5 minutes from SQL using load rules. This is in 11.1.2.1.
    Thanks,
    Nathan

  • What NI Stepper Drive is compatible with both NEMA 11 and NEMA 42 stepper motors?

    I have a NI PXI-7350(Motion Controller), a NI UMI7774 (Universal Interface), and a NI P70530(Stepper Drive) and I tried linking up a new NEMA 11 stepper motor linear actuator from Hayden Kirk and kept getting a constant red blinking light on the driver. I then connected my new NEMA 23 stepper motor linear actuator from Hayden Kirk and the driver had the go ahead green light and it worked fine. I consulted the manuals and saw that the driver was only compatible for NEMA 17-34 Steppers. I tried the third party setting as well for the NEMA 11 to no avail. Does anyone know of a NI Stepper Drive that is compatible with my UMI and Motion Controller and also is compatible with a NEMA 11 and NEMA 42 (another motor I need controlled) stepper motors?????
    Solved!
    Go to Solution.

    Thank you for the quick response
    So I have connected as the Third Party Motor option with the P70530 Stepper Driver. I have read the manual and selected the appropriate DIP switches for the third party motor setting. As instructed I downloaded the P7000 Tools 2.11 to set up the motor with the driver. When I open it and try to search for the driver nothing is located. I have appropriately changed the COM settings in the device manager to the appropriate values and also I am seeing the steady green light on the driver. I am at another stand still. What else can I do to get the driver recognized so I can set up these motors?
    Thank you for your time,
    Tom

  • Labview program to control keithley 2400 to output current using GPIB cable

    as topic suggests,i would like to have a VI program to let the 2400 sourcemeter output current using labview.sorry,but i'm still new to this stuff and i direly need it by today... so please help me out... thanks a LOT!also can u brief on the connection?
    Message Edited by SG_SP_OLED on 05-15-2006 12:16 PM

    Below is a link that describes what an instrument driver is.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/119B3B705B84B041862567D90074F425?opendocument&node=D...
    The instrument driver found from the Instrument Driver Network for this instrument is not maintained by National Instruments. It can be downloaded from the Keithley website. If you search the Keithley site for software drivers, they do have a LabVIEW driver that should contain an example of programming with their VIs. Otherwise, you can search for examples on the Keithley site, and they do have example programs (however, it may or may not be the functionality you are looking for).
    Regards,
    Missy S.
    Calibration Engineer
    National Instruments

  • Using one program Application on both Lion and Snow Leopard

    I have to constantly reboot/restart between Lion on my New Thunderbolt Mini and Snow Leopard off and External Drive. What is the recommendation for using programs (which are built to run on both) such as iwork pages. Should I use one program off the Main Lion Internal HD? or as I have now - Maintian two programs, one on each hard drive. I can see Lion is having difficulty as it can see the other program and sometimes it launches the version on the SL drive. When in Snow Leopard the OS cannot search and therefore not register items not included in the Main Boot Drive.
    I am a single user, so I'd like consistency in maintaining templates (and now version!?!) when I want to draft a letter and can't waste time to reboot. All my documents on both OS's are directed to a 3rd Drive to effectively keep my sanity. I was syning the preferences previously for mail and passwords,etc but recently the functions of Lion have expanded so much beyond SL  as that I had to swtich off this sync to avoid conflicts.
    Should I keep using two programs or when available use a single version. Noting this wont be on the boot drive of one of them. If I go to one. Can I keep the other on its boot drive in case of transporting it to another machine. Is there a way to park it so it's not referenced to use when I launch by opening a file? I though about zipping it? What happens when a version update might excel beyond SL? The current programs known already have 2 versions residing on each boot drive. If I go to 1 and a software update comes along, that would be a problem.
    Any and all experinces and suggestions are appreciated.

    I have to constantly reboot/restart between Lion on my New Thunderbolt Mini and Snow Leopard off and External Drive.
    Why? There is no good way to do what you're doing.

  • HT3775 how can i write visual basic programs on my mac? and what IDE do i use? My mac runs on OS X mavericks.

    please help

    Install MS Windows as a Virtual Machine guest operating system on your Mac.  You will want a minimum of 8GB memory. Popular VM are VirtualBox, Parallels, and VMware. Once this is done, you can download the Microsoft Visual Studio 2013 development environment into WIndows 7 in the VM, and use it there.

  • Horrible internet speed and direct tv not working properly

    I am having a horrible experience with verizon.  
    I have had issues setting up appointment times, technicians showing up at wrong times, technicians showing up but not letting us know problems were "fixed", long phone calls with no result and now there is no other way to contact verizon other than calling again which i refuse to do.
    we had switched to verizon through a direct tv bundle but our connection appears to be too slow for the tv to work properly. verizon apparently 'fixed' the problem but when i told them it was still too slow according to direct tv, they agreed that the internet needs an upgrade.  so why was i given this particular bundle to begin with?  shouldn't verizon know what speed works with direct tv?  and why do i now have to pay more for an upgrade when i was quoted a price for my bundle (which is why we switched).  is this just another way to make us switch over??  and then trick us into paying more money?  
    I fully believe i should not be charged for something i was not told about to begin with.
    so now i sit and wait for my faster speed internet.  no technician needs to come out to my house this time supposedly however it will not be ready for another 5 days.  when i asked the woman on the phone why i had to wait 5 days if no technician was coming she had no answer. 
    i will wait and see how it goes, but i am extremely frustrated with every aspect of verizon and am unfortunately fully regretting making the switch.

    Hi misskwispie,
    Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you. Please go to your profile page for the forum and look at the top of the middle column where you will find an area titled "My Support Cases". You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under "My Support Cases" you will find a link to the private board where you and the agent may exchange information. The title of your post is the link. This should be checked on a frequent basis, as the agent may be waiting for information from you before they can proceed with any actions. To ensure you know when they have responded to you, at the top of your support case there is a drop down menu for support case options. Open that and choose "subscribe". Please keep all correspondence regarding your issue in the private support portal.

  • How to control the speed of nested movie with mouse

    I have a movie nested inside another movie with pictures that
    scroll horizontally across the screen. I would like the user to be
    able to control the speed and direction of the pictures by moving
    their mouse. Can anyone give me some insight on where to look to
    find out how to do this?
    If this can't be done then perhaps add controls on the screen
    to stop / play / speed up / slow down the horizontal scrolling
    pictures

    it can be done. search for a scrolling movieclip tutorial
    using google or at flashkit.com

  • LabVIEW program crashes after running for few hours

    Hello,
    I am doing some experiments at the moment which are supposed to last for 18 hours.
    Basically, I use a LabVIEW program to control a power supply through a LabJack U6 DAQ. I am currently using LabVIEW 8.5 on Windows 7.
    In order to do that, I use a laptop where everything has been disabled such as power management settings, network access is off, windows updates are also off...
    As far as I know, the computer can't turn into sleep mode or just shut down (I'm a 100% sure of that actually).
    But last night, I started an 18 hours experiment at 5 pm, and when I came in this morning, the program shutted down by itself. Fortunately, the power supply is still providing the voltage I want, but I can't figure out why the program crashes.
    When I start the experiment, it also automatically starting saving data in a spreadsheet file (I guess the size of the file should be 36 MB), so it might be a problem of memory access or something.
    I really don't know what could have cause this crash, does someone have an idea?
    I saw some other threads similar to my problem but I am not running an executable, I am running the front panel directly from the editing mode.

    Hi,
    thank all of you for your quick answers!
    @Josborne : I do not have an error handling in my program. Actually you can look at my program in the attachment file. This is my first LabVIEW program so I've never dealt with error in and error out function... Moreover, what is a log file exactly?
    @Johnsold : Yes, I am building an array continously growing over time. Actually, my program stops saving data when you hit the "STOP" button, it doesn't write into a spreadsheet file through a period of time, that is something I eventually need to correct.
    @LabJackSupport : I can try to reduce my time step, so far it's 100 ms. I have a problem with disconnecting the USB cable from the computer though : for no reason, if I just unplug the connection between the LabJack U6 and the computer, my power supply will just go providing 157 Volts! And for my experiment, this is something we don't want to have so we just leave it as it is now. Disabling some part of the program is a good idea, I can try it
    Thank you for your answers
    Attachments:
    Control Software.vi ‏511 KB

  • Desperate user need help. My GPIB instrument get stuck with my labview program frequently

    Hello to all labview users,
    i am a beginner in using labview. I am currently writting a labview program to automatically control a digital control rotator HD201e and a network analyzer 8720a to work with the anechoic chamber. The program receives an initial position, amount of increment and # of steps. My program will then ask the controller to rotate to the initial position and at the meantime, the program will monitor the position of the rotator to ensure the requested position is reached. After that, at the position, the program will ask the NA to perform a reading of the measurement. Once the reading is done, the program will ask the controller to rotate to the next position and does a reading of the measurement and so on.
    My program seems to be able to perform the tasks; however, the dig.controller part seems to get stuck around 50% of the time when running the program. Sometimes, even the controller receives the requested position (can be seen from the lcd screen of the controller), the rotator just simply would not rotate; also, sometimes, the controller just simply does not respond when sending the command of moving a position, as in the debug mode (the one with a lightbulb), i see that i got "ok" on all the blocks in the writing portion ofthe program, but the controller just doesnt seem to receive the position (as seen no new position received from the lcd screen) and the cursor on the lcd screen blinks weirdly, due to that problem, my program will then get stuck in an infinite loop.....
    Usually, that problem occurs after few positions have been reached.....
    so, when that happens, i have to stop my program and re-run it. that means the program will have to re-do the measurement that were read previously....
    sometimes i have to stop and re-run my program several times to get all the measurement of all the positions done.....so...that bug renders that program to be an unefficient program.
    I have been trying to resolve that bug for weeks...but no success....i have tried to put some wait time between each block....result is not much different...
    I have also tried putting "clear" block before and after the "write" block.....same problem.....
    I have heard that the serial GPIB "flush" block may help...but i tried..but it seems the controller doesnt recognize/accept flush....
    i have also tried using the "Visa open" and "Visa close" block to see if ithat reduces the stucking thing....but seems that the controller can still get stuck....
    i have also even tried using "lock asyn" and "unlock asyn" block...but didnt seem to work....
    Has anyone experienced such problem.? Is it a known problem with some gpib instrument?
    Is there any discrepancy or bugs in my program that i am unaware of that causes this problem?
    Any advice and or opinion would be greatly appreciated....
    PS: i attached the controller part of my program and the overall program
    desperate happyguy......
    Happy guy
    ~ currently final year undergraduate in Electrical Engr. Graduating soon! Yes!
    ~ currently looking for jobs : any position related to engineering, labview, programming, tech support would be great.
    ~ humber learner of LabVIEW lvl: beginner-intermediate
    Attachments:
    HD201_Controld.jpg ‏231 KB
    AChamber_Measurements_v1d.jpg ‏857 KB
    AChamber_Measurements_v1d3.jpg ‏463 KB

    hi xseadog
    i got what you meant about the gpib reference
    actually, that final frame works because the gpib reference is already done inside that subvi.
    but my problem doesnt arise from that. most of the time ive seen, it arises between the writing frame and the while loop frame. as i mentionned, sometimes. the controller just simply doesnt rotate even i can see the requested position display on the controller lcd screen; also sometimes, just the controller is stuck without acknowledging the write position command. but in labview...while in debug mode. it is shown ok on the block.
    Happy guy
    ~ currently final year undergraduate in Electrical Engr. Graduating soon! Yes!
    ~ currently looking for jobs : any position related to engineering, labview, programming, tech support would be great.
    ~ humber learner of LabVIEW lvl: beginner-intermediate
    Attachments:
    HD-201 RPosd.jpg ‏39 KB

  • Using APT ActiveX methods to create a labview program for BPC 203 3 channel Benchtop Piezo controller

    Hi Everyone,
                      I am really very new to Labview and i am in great need for some help.I am assigned a task where i am supposed to create a labview program to control or moniter a BPC203 3 channel benchtop  Piezo controller. I created a program with the help of the instructions provided in the APT-Labview guide provided by Thorlabs.But th program doesnt run . Whenever i try to run it i get the same error which says that "Control HW Communications disabled".I have attached a snapshot of the error message.So i tried to create a small program in labview which would read the volage output.Even there i got the same error message.I suppose there is some mistake on my part which i am not able to correct due to the lack of proper knowledge.Could anyone please help me to solve this problem.A slight elaboration would be highly appreciated.Also i think the error lies in the use of invoke node with the get Voltage output method. I am not sure whether the parameters i have provided to the invoke node are correct.Any help of any sort would be highly appreciated.
    Attachments:
    Front Panel with error message.PNG ‏202 KB
    Block diagram.PNG ‏101 KB

    Hi
    I had the same problem today. However, I noticed that the piezo controller has 3 channels with separate slots and they are packaged in the same box. Therefore the whole box has a serial number, probably something like 71822280, and this is written with large letter. Now, in order to communicate with any of the channels, this does not help, but one needs to communicate directly with the interested channel and they have thier OWN SERIAL NUMBERS.
    For example channel 1 (my X direction in the nanoMax stage) has serial 91822281, Y has 91822282 and Z has 91822283. So try looking if you have the right serial number Hopefully you found out this yourself but this might help others, I took me3 hours to get this thing working when I started to plug-in the cables and everything.
    Lasse

Maybe you are looking for

  • It just doesn't add up... Please help the beginner

    Hi all of you who are experts in Appleworks. I am a graphic artist and Mac user since '89. I do a lot with iMovie and iPhoto and Indesign but you think I can figure out the simplest thing in Appleworks!? I've read over the AppleHelp and try what it s

  • Exhange Rate not working in sales order

    Dear all, I am facing a problem with exchange rate, I have maintain exchange rate procedure in customer master with exchange rate INR 70 = 1 EUR, Now I am creating Sales order where as i m changing Exchange rate INR 65 = 1 EUR, in sales document head

  • Data recovery from backup

    Hello. Could you please let me know the recovery steps of the data volume? I tested the following steps on my HANA (Rev.18), but I could not recover my data due to the error. 1. Start HANA studio, right-click on the host name in the 'Navigator' pane,

  • Hard Disk Self Test Failed

    Dear Sir, I have an Hp Pavilion DV6-2113AX notebook, and since yesterday i am not able to access my Hard Drive. Since i am working as an assistant manager, its really important for me to back up all the data. It is very crucial for me to atleast back

  • How do I get Bridge CS6 to recognize collections created in Bridge CS4?

    I just downloaded Photoshop CS6 beta. When I opened Bridge CS6, my collections (created in Bridge CS4) were not visible. Is there a way to import the collections into CS6?