PCI-7344 motion controller encoder reset problem

I'm using a PCI-7344 motion controller for my application. I'm currently working on simple display of position and velocity using an encoder. I am able to read the encoder pulser, but I am unable to reset it. I want the encoder pulses to be display continously till I press a reset button on the screen. After pressing the reset button on the front panel, the encoder count should become zero and start counting again till I press stop button. Kindly give me a simple example of encoder reset using push button. Thanks.
Regards,
Giridhar Rajan
Cruiser Controls
Mumbai, India

This should do what you are looking for.  I am not at the computer that has a motion controller card in it, so I have not tested it. 
It resets the encoders for Axis 1 and Axis 2.  Unless you have a different configuration for encoders and axes, it should work.
Hope that this helps,
Bob
Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
DISTek Integration, Inc. - NI Alliance Member
mailto:[email protected]
Attachments:
Reset encoders.vi ‏66 KB

Similar Messages

  • Problems with a PCI-7344 motion controller

    Hi all,
    I've run into a weird problem with a NI PCI-7344 motion controller, where I
    have a program that provides the motion control for my program that works
    reasonably well, but when I make minor changes gets motion errors. The changes
    are not specifically to the motion parts, just changing a couple of globals
    that provide communication with another part of the program (and another piece
    of hardware). The errors I get indicate that I am trying to enable limits
    switches at the wrong time in my program. I will add that I do not get any
    errors when I go through the program in debug mode
    Tnx,
    P.W.Monroe

    The portion of my program that gets the errors uses the "Flexmotion" Find Home
    and Find Index routines, which are built into the 7344 controller. In the
    exampes for using these VIs, they are followed by a loop that has a VI that
    monitors the status of these VIs for completion, both move complete and Home or
    Index Found. The globals that I mentioned are being used to terminate the loops
    if an error condition occurs elsewhere, and do not cause the program to do
    anything other than terminate looking at the status and then go into a wait
    loop. It crashes when it goes into the loop when I substitute a different
    global, which is baffling to me, as they aren't triggering something that would
    result in a race condition.

  • Connecting Hall Effect Sensor as an encoder(fe​edback) for PCI 7356 Motion Controller

    Hi,
    We have Labview 2010 and the following hardwares for testing a specific motor (a brushless DC motor):
    NI PCI 7356 Motion Controller
    NI UMI 7774
    AKD Servo Drive P00606
    However, I met some difficulty when wiring the motor to the motor drive(and controller). In the manual, it says PCI 7356 needs encoder signals as the feedback. But our motor doesn't have a built-in encoder. It has three Hall Effect Sensors, which we plan to use as an encoder. If we feed the hall sensor signals as the encoder phase signals (Phase A, B) to the drive/controller, I wonder if Labview or PCI 7356 (after an appropriate configuration) can adjuct the phase (from 120 degree to 90). Does it work even without the adjustment?
    If the above doesn't work, can I feed only one Hall Effect sensor signal as Encoder Phase A and don't feed anything to Phase B (since I only need control the motor speed in one direction)? Will PCI 7356 or Labview recognize the signal and function accordingly?
    If it doesn't work as well, could I use motor's Back EMF as a feedback (this motor produces a decent sinusoidal back EMF)? If I can, how should I configure the hardware and wire the motor to controller accordingly? 
    If all three above don't work, could you suggest a way to solve this problem?
    Thanks so much for your help.
    Best,
    Chen

    Hey Chen,
    I have comfirmed that the PCI card will not be able to do feedback with the hall effect sensors. However, you could do that with our NI 951x modules if you run it in FPGA mode. You would need an extra IO module to set up the hall effect sensors with, but you could effectively customize your control and your feedback on the FPGA board immediately. 
    For your other post, I am not sure you can create a time constraint on the move, I believe that when you define a motion, you would need to define the number of steps or the position and not the time. If you are running the motor at a specific velocity for an amount of time, you would need to set that as the number of revolutions and not time.
    I hope this helps.
    Regards,
    A. Zaatari
    National Instruments
    Applications Engineer

  • PWM PID loop on 7344 motion controller

    I need to control motion by PWM, with the help of 7344 motion controller.Please verify if it possible or not, and how can I do it.Please provide me(if it possible)any example of solution of this problem.

    Hello,
    The onboard PID circuitry can only be utilized with servos and closed loop steppers. You can write your own PID loop in software using the PWM functions and the Read Encoder Position.flx. This should work pretty well for low loop rates (since it's implemented in sw). I don't think there are any examples of it available but it should be pretty straight forward.
    Regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • PXI 7344 motion controller as a DAQ device for ELVIS

    Hi,
    Is there a way to reconfigure a PXI-7344 motion controller with its two 68-pin connectors so as to use it as a DAQ device that would receive the signals from a NI ELVIS workstation. The 7344 has a "motion I/O connector" and a "digital I/O connector". Analog outputs are even possible if I remember well, as well as digital.
    Thanks

    Hello,
    The card does has some analog input and outputs. I would check the manual here: http://www.ni.com/pdf/manuals/370838b.pdf. The DAQmx API with a DAQ card is going to be much better than interfacing with a motion card, but you should be able to read off it at the least.
    Rahul B.
    Applications Engineer
    National Instruments

  • Id like to be able to initialize my 7344 Motion Controller card from within Labview and not through motion and automation explorer

    Every time I boot my PC , I have to reinitialize my 7344 through Motion and Automation Explorer  in order for it to work. Does anyone have any suggestions as to how to initialize it from within labview itself?
    thanks

    Hi,
    I am sending you a Vi for initializing the controller.The only thing you have to do is that you need to use sequence structure. In the first sequence you need to use the VI which is attached i.e 0 (default). Then the next sequence will be the program itself.
    So that as soon as you run your vi the first thing done will be initialising controller using LabVIEW. Then your program will run.
    Here the led in the front panel will glow green only the first time you are initializing.The next time it will be dim but no doubt your initializing will be taking place.Hope this vi solves your problem.
    Thxs
    Manish Karnik
    Application Engineer
    Cruiser Controls
    Mumbai, India. 
    Attachments:
    Initializing controller.vi ‏42 KB

  • I want to use the Function Generator VI to send command signals through the NI 7344 motion controller. This will be a closed loop servo valve system. I want to be able to change from say a square wave to a sine wave on the fly. Idea's?

    I am going to run tests that require an actuator to move using various types of arbitrary waveforms such as sine or square. The NI 7344 is hooked to the UMI that is going through a driver for a servo valve. The loop is analog and it is closed. I have played with some of the examples but can't get it to work. I have used the function generator VI to generate a signal but I think I am using the wrong input VI to the motion control board. When I use what I have it moves the servo and then stops. It doesn't continually generate the signal.
    I would love to use the controls on the function generator vi to control frequency and amplitude ect. Any help or pointer would be helpful. Thank you in advance.

    Hello,
    I'm not clear on exactly how you want to use the generated data but I'm assuming they will be used as your target points.
    There's a built-in example for motion called 'One-Axis Contour Move.vi'. This example demonstrates how to provide your target points as 1-D array. All you need to do is to replace the input array with the output of the function generator. In order to have it run continuously, use a while loop. You can further program your application so that it'll change the waveform on the fly by monitoring the user interface but this might be little little tricky as you will need to reset the move and load the new generated points while keeping track of your current position.
    I hope this helps. Let me know if you have further questions regarding this
    application.
    Best regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • Can i connect pci-7344 to my third party motor and drive without umi-7764 ?

    Our Lab have NI pci-7344 motion controller and third party motor and drive made by other company.
    We want to connect pci-7344 and third party motor & drive without umi-7764.
    Just use cable.
    Can we succeed to connect them ?

    In general it is possible to connect the PCI-7344 to a motor drive without using a UMI-7764 but you will loose some safety features and the level of noise immunity for encoder signals will be decreased.
    Please have a look at this link for more information.
    Best regards,
    Jochen Klier
    National Instruments Germany
    Message Edited by Jochen on 01-05-2007 10:19 AM

  • Onboard Variables in PCI 7344

    Hi,
    I am trying to use the 120 onboard storage locations provided PCI 7344 motion controller. Firstly, i'm not able to store floating point values in it. If I try to store 25.234, it takes in only takes 25. I have somehow overcome the problem by multiplying my number by 1000 while storing and dividing by 1000 after retreiving it, so that the decimal value vanishes while storage. I would like to know if there is any other way. Secondly, the card is able to remember the values only till my PC in ON. The data is lost once the PC is restarted. Please suggest a solution for this.
    Regards,
    Giridhar Rajan
    Automation Engineer, Design
    Cruiser Controls
    Mumbai, India

    Giridhar,
    all the calculations on the 7344 are done in fixed point integer
    arethmetic (DSPs and FPGAs typically don't support floating point
    numbers). That's why onboard variables can only store integer values.
    Onboard variables reside in the board's RAM so the values get lost when
    the PC is turned off. If you need these values even after a restart of
    your PC you will have to store the values to non-volatile memory before
    turning off the PC and load them again to the onboard variables after a
    restart. You could either store the values on your computer's harddrive
    or in the ROM of your 7344 by using the Object Memory Managment
    function. For the latter option you will have to write the onboard
    variables to a buffer first and then store the buffer to the ROM.
    I hope this helps,
    Jochen Klier
    National Instruments Germany

  • Pci 7344 to compact field point

    Is it a good idea to switch from using PCI 7344 motion controller card to compact PAC so that I can implement fuzzy motion algorithm to control three axis ac servo motors.
    TQ.

    If you need higher level control than PID for your motion application NI SoftMotion is highly recommandable. This software module will give you a trajectory generator, a spline engine and a complete motion API and it is independent from the hardware you use.
    As a hardware option I would either recommend a cRIO-System with an embedded controller or a cRIO R Series Expansion system with a PXI-7811R in a PXI chassis with an embedded controller running LabVIEW RT. It's mandatory to run the supervisory application on a RealTime target like the PXI or cRIO embedded controllers as it needs to run in synch with the control application on the FPGA.
    FieldPoint or Compact FieldPoint is only an option if your control algorithms are allowed to run extremely slow (more than 10 ms control loop rate). Typical motion applications require control loop rates of 1 kHz and above. The cRIO and PXI/RIO solutions support control loop rates up to 100 kHz and should be a much better choice.
    The solutions that I have proposed are of course much more complex than using a PCI-7344 motion controller as all the software layers that are present in the firmware of the PCI-7344 need to be implemented in software. Additionally it incorporates LabVIEW RT and LabVIEW FPGA programming. SoftMotion is a great alleviation as you can concentrate on the control algorithm and the rest is done for you. Especially the shipping examples help a lot to get started.
    In my opinion SoftMotion in combination with LV RT, LV FPGA and a corresponding target hardware is one of the best and simplest solutions in the market to create your own motion controller with your own control algorithm.
    After the release of SoftMotion it took me only one working day to learn the API, setup the hardware and modify an existing example. After that I had a running motion control application.
    Everything is done in LabVIEW, even the real-time and the FPGA programming but it's not a good idea to start such kind of a project as a LabVIEW novice.
    Best regards,
    Jochen Klier
    National Instruments Germany

  • Connect two 7344 motion controllers in one PC

    Can I use two NI - PCI 7344 motion controllers in one PC. My application requires 6 axis and hence I want to use two PCI 7344 motion controllers. I am already using one. Can I configure another one in the same PC to add more axes to my current system. If yes, then how to configure the other one, so that it acts as the 5th and 6th axes in my system. I'm using LabVIEW 7.1 in my application.
    Regards,
    Giridhar Rajan
    Automation Engineer
    Cruiser Controls
    Mumbai, India

    You can add as many PCI-7344 boards to your PC as you want. The only
    limitation is the number of PCI-slots available. In your software you
    need to control the axes from the second PCI-7344 seperately from the
    axes of the first one. That means that there are no built in methods to
    start the axes on two or more boards synchronously. If this is not a
    feature that you need then everything is quite straight forward. If you
    need tight synchronization you might write an onboard program that's
    running on the second board and that waits e. g. for a breakpoint
    signal to be generated by the first board immediately after the axes
    are started.
    Assumed that you need tight motion synchronization with the additional
    axes a better choice would be to use one PCI-7356 (6 axes) or a
    PCI-7358 (8 axes) instead of two PCI-7344. The 735x boards are pin- and
    software-compatible to the 734x boards. You could return your 7344 to
    NI and buy a 735x board with a fair discount ("hardware upgrade"). If
    this is an option for you please contact your local NI branch.
    Best regards,
    Jochen Klier
    National Instruments Germany

  • Tension control in labview using PCI 7354 Motion Control Board

    I want to make a program for web tension control of roll to roll system in labview using PCI 7354 Motion Control Board. Is there any interface program that can convert my controller output in a format to be directly used as the input of PCI 7354 (Motion Controller Board) for tension control?
    Thank you!

    thanks for your reply, i have already make the code of a straight line move and the motor moves successfully, but know i want to put the H-bridge to be able to make a reverse direction for the motor, for your information i only use a PCI-7340 controller and a UMI-7774, where the controller connected to the UMI-7774, the UMI connected to a PWM circuit and the PWM connected to the DC-motor, so what do you think i can do?

  • PCI 7340 , PCI 7344 Confusion

    Hi all,
    I have recently purchased a PCI-7344 motion control card from NI. But it says PCI-7340 in MAX. What can be the reason. Have I received the wrong card by mistake?
    Regards,
    Giridhar Rajan
    Automation Engineer, Design
    Cruiser Controls
    Mumbai, India

    Giridhar,
    everything is ok with your 7344. We have just recently switched to a new hardware revision and now all boards don't show up with their specific names but with the name of the board family:
    Board Family    Specific Boards
    NI 7330             NI 7332, NI 7334
    NI 7340             NI 7342, NI 7344
    NI 7350             NI 7352, NI 7354, NI 7356, NI 7358
    MAX still knows the specific board configurations so you don't have to worry.
    Best regards,
    Jochen Klier
    National Instruments Germany

  • Calling dll of Leetro MPC08 PCI motion controller card problems.

    Hi,
    I have been trying to develop an application using Labview 8.5.  I need to control a motorized linear stage which uses the Leetro MPC08 PCI motion controller card.  The manufacturer gave me example VIs which I configure to call "c:\windows\system32\MPC08.dll".  About four months ago, I remembered that i tested them and they seemed to work somehow (but I did not finish the full test since i was busy doing other things).  Nevertheless, when I got back to continue my development a few days ago, i just could not get the same old VIs to work.  I could only get one library function of the card to work which is the "auto_set" which returns "4" which is the number of axes that the card can control.  The next function I need to call is "init_board" but this one keeps returning "-3".  The manual indicates that any negative number returned means there has been something wrong.  I would guess it is "PCI initialization fails" but honestly do not know for sure.  Can anyone help?  My computer is a PC running windows XP. 
    Thanks in advance for any kind help offered.

    Hi,
    Wrapped VISA call means that the SubVI contains a set of VISA calls.
    If you are calling the VI's individually it is possible that the VI's need to pass a reference to each other, so they might not work if run individually.  Hard to know without the DLL docs, so to speak.  It could be possible that there is no need to pass references between subVI's.
    Direct VISA calls are probably not necessary if the device runs with the vendors software.  The main goal was to verify functionality with either VISA or vendor app.
    Ok I was looking at the Leetro web site, you can forget the VISA stuff as it is a PCI card, duh... you said that at the begining. :-)
    The manual says Win2000 or XP.  is this being run on two different systems?
    Mark
    Mark Ramsdale

  • PCI-7344 not found in MAX 3.1.1 after installing NI-Motion 7.0

    Hi,
    I updated my PCI-7344 + LabView 7.0 system with the newest NI-Motion 7.0. After the update the card was not anymore detected in MAX. There was a "broken" device PCI-7344 under NI Motion Devices, which status said something like "This device has been removed or could not be detected" and the Reset command said something like "Could not communicate with the device. Power cycle the computer..". I removed the device from the "Devices and interfaces" list and since that, MAX hasn't had a clue about the card. I've tried the "Create new.." function, but it doesn't show any NI Motion Devices or PCI-7344 anywhere else. I've also tried the Tools/Install legacy driver support, but MAX only notifies that the updates are OK. I've also tried removing the physical device, starting the computer and MAX, reinstalling the device and restarting MAX, but nothing changes. The device is recognised by BIOS as "Unknown device"; in Windows 2000 Pro, the device is well recognised as National Instruments PCI-7344.
    One thing that could cause the problem is that I also have LabView 6i installed on the system, although I'm not currently using it for any purpose. Anyway, this seems to prevent the MAX from detecting the correct updates needed when using the "National Instruments Product Updates.." from Tools menu. Perhaps I need some driver software to correct this problem?
    I also tried to uninstall the NI-Motion 7.0 and to install the NI-Motion 6.1.5, but after this, the MAX did not work correctly. For example, none of the branches in the configuration tree would expand and the MAX locked up when trying to use the Create New.. / NI Motion Device. Is there a way to uninstall the NI-Motion 7.0 and to replace it with NI-Motion 6.1.5 without removing all NI software from the system?
    Before the update, with NI-Motion 6.1.5, the PCI-7344 card was correctly found in MAX and well usable in LabView 7.0.

    Jouni,
    A valid serial number is any number > 0. If you have multiple boards in you system, they must each have a unique serial number. This would be the case for any board coming out of manufacturing. The board Jochen had probably came from R&D and was a prototype board.
    Your problem with downgrading from NI-Motion 7.0 to NI-Motion 6.1.5 was most likely due to the data stored in the MAX database. When you uninstall NI-Motion, the data in the MAX database remains. The NI-Motion 6.1.5 driver would not have been able to read the data correctly. The easiest way to "clear" this database is to delete the c:\Program Files\National Instruments\MAX\data folder. The only other way is to uninstall MAX, which requires that you uninstall everything. WARNING, Deleting the MAX data folder will delete all MAX settings and set them back to defaults for all NI hardware (uninstalling everything has this same affect, by the way). Downgrading is never as clean as upgrading.
    The firmware on a Motion board can always be downgraded by forcing the download of firmware files. To do this, select the board in MAX under Devices and Interfaces. Click on the Firmware tab at the bottom on the window. Highlight "PCI-73XX Firmware" by clicking on it once. Right click on one of the items in the "Firmware name" column to the right. Select "Download All Files".
    I do not have a good explaination for why NI-Motion 7.0 did not recognize your board. Do you have a second board you can try in the system? If not, could you ask your local sales representative if they have one you borrow for a quick test? Since the board is recognized by Windows 2000 Device Manager, I don't think there is an issue with the board, but it doesn't hurt verify this.
    My best guess is that there was a confict during the installation process and your system did not get all of the required files. Though we do significant installer testing, there are rare occasions when a system is in such a state that the installation process does not function as expected. It is my experience that these rare instances do not occur on clean machines, but on machines that have had multiple products installed and uninstalled. If you do get a chance to try NI-Motion 7.0 again you may want to use these parameters to get the installer to create a log of the installation: "c:\setup.exe l*v c:\log.txt". This assumes that the setup.exe is in the c:\ directory. Go to start>>run and type this in without the quotes. The log file will be named log.txt in the c:\ directory.
    Finally, you can technically use NI-Motion 7.0 in LabVIEW 6. You just need to copy the C:\Program Files\National Instruments\LabVIEW 7.0\vi.lib\Motion folder to the vi.lib folder of LabVIEW 6. Though this is not officially supported, there is no reason it shouldn't work.
    Regards,

Maybe you are looking for

  • Switcher found "You are not connected to the Internet" message confusing

    While demonstrating to my brother - a long-time Windows user - that an iMac solved all the problems with Windows XP that he is constantly complaining about to me, he saw Safari's "You are not connected to the Internet" message when the web server for

  • ESA in MySAP ERP

    Can anyone tell me where I can find the Enterprise Services provided in Mysap ERP 2004 and 2005. We are considering an upgrade and the provision of Enterprise service would help the buiness case. TIA

  • Dateguard Protection Mode and log transfer doubt

    Friends, DB: 11gR2 (11.2.0.3) 64 bit OS: OEL 5.5 64 bit iam new to dataguard.. i just finished the setup of primary db and physical standby in my notebook. the protection mode is the default one...that is...maximum performance. (primary) in the maxim

  • I Need Help in SDK Development

    hi all,, I'm .Net Developer but i'm new in SDK, i have many issues in add-ons development because i can't find good references,any one can help me please ??

  • Quality issue MTS files in Premiere Pro

    When I import and work with .mts video files moving objects look very jagged. When I view them in lets say Windows Media player they look fine The screen shot on the left is from the Program monitor of Premiere the right side is from Windows media. I