Ni softmotion for solidworks activation




















By default, when adding a motor to a SolidWorks assembly, it will be a Constant Speed motor. Decrease the maximum integration step size by right-clicking the SolidWorks Assembly project item and selecting Properties. It is possible that you have run out of RAM to run the simulation. See the linked website for more details about the minimum and recommended system requirements for SolidWorks.

Check to ensure that your motors are set up with the proper conversion rates. Because of the intensity of the calculations required to perform a SolidWorks simulation, the speed of the models movements may appear to be slower than real life. These movements are correct with respect to simulation time.

Setting a slower scan period will speed up the simulation speed. This content is not available in your preferred language. Environment shows products that are verified to work for the solution described in this article.

This solution might also apply to other similar products or applications. Why isn't my simulation running in SolidWorks? Drive is not enabled.

SolidWorks Assembly uses unsupported motors. The maximum integrator step size is greater than the scan engine scan period. There is a fault on the axis. Check the interactive view to see what fault has occurred. Why is my simulation running so slowly, or why does my simulation stop after long periods of time? Computer does not meet requirements. Why am I seeing unusual readouts in my SolidWorks simulation? Motor conversion rates incorrect. Scan periods set too fast. Click OK to close the Axis Configuration dialog box.

With these function blocks, you can perform straight-line moves, arc moves, contoured moves, gearing and camming operations, and read status and data information. A Timed Loop synchronized to the NI Scan Engine allows your time-sensitive motion applications to execute at the scan rate. Any code placed inside a Timed Loop is guaranteed to execute once per scan period or at an interval you specify.

You should minimize memory allocations in Timed Loops to avoid introducing jitter into the system. NI SoftMotion function blocks are typically used on hardware running a real-time OS to create deterministic motion control applications using the function block programming paradigm.

If your code does not need to run at the scan rate, you can use a while loop with a Wait Until Next ms Multiple function to control the loop rate. Complete the following steps to configure the Timed Loop:. Place a Timed Loop on the block diagram of the VI. The Timed Loop is located on the Timed Structures palette. The Configure Timed Loop dialog box should look similar to Figure 8. Right-click the execute input and select Create»Control from the shortcut menu to add a control to the front panel for this input.

Repeat this step for the radius, start angle, travel angle, velocity , and acceleration inputs and select Create»Control from the shortcut menu to add controls to the front panel for each of these inputs. If desired, additional parameters such as deceleration and jerk can be added by double-clicking the Arc Move function block.

Click OK to finish the configuration. Right-click the done output and select Create»Indicator from the shortcut menu to add an indicator to the front panel. Right-click the error out output and select Create»Indicator from the shortcut menu to add an indicator to the front panel. Right-click the loop tunnel created for the error out output and select Replace with Shift Register from the shortcut menu. This transfers the error information to the next loop iteration. Wire the error in input of the Arc Move function block to the shift register created on the left side of the Timed Loop.

Right-click the shift register and select Create»Constant from the shortcut menu to initialize the error cluster outside the Timed Loop.

Because the final hardware uses the LabVIEW Real-Time Module, all function block arrays and clusters are initialized outside the timed loop to prevent jitter in the system.

Right-click the Timed Loop conditional terminal and select Create»Control from the shortcut menu to add a Stop button to the front panel. This allows you to stop execution of the VI at any time.

Your block diagram should look similar to Figure 9 when you have completed these steps. Navigate to the front panel and change the arc move parameters from the default values to the following:. Keep the values for velocity and acceleration at the defaults for now.

You can change these values and run the simulation again to see how changes to the move constraints impact the system. Deploying the project and running the VI starts the SolidWorks simulation using the move profile you created. Complete the following steps to deploy and run the VI and start the SolidWorks simulation:. Select the My Computer, SolidWorks assembly, axes, and coordinate items in the Project Explorer window, right-click and select Deploy from the shortcut menu.

If presented with any conflict resolutions, select Apply. To ensure that your simulation deploys properly always deploy the NI SoftMotion axes and not only the My Computer item. Run the VI.

For subsequent simulations, you may need to manually switch to Active mode by selecting Utilities»Scan Engine Mode»Switch to Active , as the Scan Engine must be in active mode to interface with SolidWorks. To stop you simulation, first stop the VI. Complete the following steps to run your simulation code developed in the previous steps on an actual hardware target:. You can also drag the axes created in the "Adding Axes to the Project" section of this document under the real-time target and remap them to the NI modules using the Axis Manager dialog box.

All configuration options you selected previously are maintained. Axes configured in open-loop mode produce step output but do not require feedback from the motor to verify position. If the modules do not have physical limit and home input connections, you must disable these input signals for proper system operation.

Make sure that the units and scaling configured for Steps Per Unit if applicable and Counts Per Unit match your motion system requirements. Under Loop Timing Attributes , set the Period to 5 scans. In most cases it is not necessary for the function blocks to run as fast as the scan rate. Make sure all hardware connections are made and power is turned on before deploying the project. Deployment switches the NI Scan Engine to Active mode and enables your axes and drive, if connected, so that you can start a move immediately.

Right-click the controller item in the Project Explorer window and select Deploy All from the shortcut menu to deploy the axes, coordinate, and axis settings to the real-time target. This content is not available in your preferred language. Environment shows products that are verified to work for the solution described in this article. This solution might also apply to other similar products or applications. Other SolidWorks. This document covers how to use NI SoftMotion function blocks with your existing SolidWorks assemblies to create and evaluate motion profiles for your system.

For information about using SolidWorks, refer to the SolidWorks documentation. Required Software and Hardware The following software is required for this tutorial. You can download a free 7-day trial of the required NI software from ni.

Overview of NI SoftMotion for SolidWorks By using NI SoftMotion with SolidWorks to simulate your system with actual motion profiles, you can simulate mechanical dynamics, including mass and friction effects, cycle times, and individual component performance, before specifying a single physical part and connecting it to an actual control algorithm.

Figure 1. SolidWorks Motion Study Setup This model simulates an assembly that takes test tubes from one location and moves them to another and the tutorial focuses on using an arc move to move the test tubes to a rotary table.

Complete the following steps to add NI SoftMotion axes to the project: 1. Figure 3. Axis Manager Dialog Box 3. Complete the following steps to add a coordinate space to the project: 1. Figure 5. Configure Coordinate Space Dialog Box 3. LabVIEW Project with NI SoftMotion Axes and Coordinates When using coordinate resources, target position and other information are contained in a 1D array with axis information provided in the order that axes are added using this dialog box. Complete the following steps for the X Axis and Y Axis to configure the axes for use in your simulation: 1.

Complete the following steps to configure the Timed Loop: 1. Figure 8. Configuring the Timed Loop 5. Complete the following steps to set up the arc move: 1.



0コメント

  • 1000 / 1000