NI-Tutorial-51918-en

合集下载

18_LabView

18_LabView

Tutorial 18Export SimulationX Models to NI LabVIEWObjectiveLabVIEW from National Instruments is a graphical programming environment forthe development of sophisticated measurement, test, and control systems. It offers integration with thousands of hardware devices and provides hundreds of built-in libraries for advanced analysis and data visualization – all for creating virtual instrumentation. The LabVIEW Control Design and Simulation Module can be used to build up and simulate dynamic models of controllers and plants.This tutorial demonstrates how SimulationX models can be exported to LabVIEW. We show step by step the creation of the SimulationX model, the export using the SimulationX Code Export Wizard, and explain how to use sucha model within the LabVIEW Control Design and Simulation Module.It is assumed that the reader is familiar with the basic functionality both, of SimulationX and LabVIEW. For an introduction to SimulationX, please refer to "Tutorial 1: Getting Started" and "Tutorial 2: Hydraulic Cylinder Drive".The following software modules are needed to solve the exercise in this tutorial: •SimulationX incl. a valid license for the Code Export Target "LabVIEW Control Design and Simulation"•NI LabVIEW incl. a valid license for the Control Design and Simulation Module•Microsoft Compiler (e.g. the free Microsoft Developer Studio Express Edition)Model Export to NI LabVIEW - What Can It Be Used For?The NI LabVIEW Interface of SimulationX can be used to implement complex dynamic simulation models, created in SimulationX, into the LabVIEW environment for further system analysis and control design.SimulationX provides a huge number of predefined elements in different physical domains to create detailed physical based simulation models. Using such models inside LabVIEW allows:•Test of LabVIEW controllers using SimulationX plant models(Software-in-the-Loop - SiL)•Deployment on real time controllers using LabVIEW Real Time for Hardware-in-the-Loop (HiL) testing•Creation of graphical user interfaces around SimulationX models•Integration of SimulationX models into end user applications:o Simulation applications for non-specialistso Measurement and analyses applicationso Model predictive control•Analyses of SimulationX models using NI LabVIEW analysis functions Detailed physical models for LabVIEWLabVIEW Control Design and Simulation Module is requiredTest of LabVIEW controllers in closed loop with detailed physical SimulationX modelsReal Time deployment for HiL applicationsEnd user applications using SimulationX models without programmingExampleOn the basis of the SimulationX sample model CylinderDrive.ism the export process will be demonstrated. A physical based model of a hydraulic cylinder drive will be exported to LabVIEW. The controller and the stimulation of the cylinder drive will be modelled in LabVIEW. The model can be found in SimulationX via menu "Help – Sample Browser …". Use the Sample Browser to select Hydraulics and open the CylinderDrive.ism sample. After opening the model in SimulationX the Sample Browser can be closed.Figure 1: SimulationX sample model CylinderDrive.ismAt first save the model into your working directory using a different name e.g.C:\Users\...\Documents\SimulationX 3.3\Models\CylinderDrive_to_LabVIEW.ism via the menu "File – Save as …".The following steps have to be done to bring the model in a state which is more related to the behavior of a real cylinder drive.•Delete elements setCurve, sum and PIDController.•The displacement sensor has to be replaced by a sensor element from Mechanics.Linear Mechanics.Sensor.Figure 2: Replaced sensor at the piston rod of the cylinder drive•The model at this stage does not include the pipe or hose line connection between control valve and cylinder. To consider at least the enclosed fluid volume and the wall elasticity ofthe pipes, add two volume elements (Library: Hydraulics.Basic Elements.Volume) betweencylinder ports and valve ports. The volume can be calculated within the parameter V of thevolume Element. A pipe length of 0.5 m, an inner pipe diameter of 12 mm, and anestimated wall capacity of 50 mm³/bar are assumed. The parameter dialog of the volume vA is shown in Figure 3.Figure 3:Property Dialog volume vA• Reset the initial position x0 of mass1 to the default value 0.•Add a function block (Library: Signal Blocks.Function) and name it ValveInput . Thisfunction block will be used to test the model inside SimulationX and later serves as input for the controller signal in LabVIEW.Figure 4 shows the model structure after the previous modifications.vBtankvA propDirValve43Figure 4: Hydraulic Cylinder Drive testDepending on the further application task in LabVIEW the model can be simulated with different solvers. If the model should be computed with a LabVIEW fixed step solver it should be tested in SimulationX with a fixed step solver too. A critical point in that sense is the case where the piston goes into the cylinder end stops. This is due to the fact that the model becomes stiff in that point of operation. The following steps are to be done to carry out this test:• At first select the fixed step solver using the menu "Simulation - Transient Settings…" tab"Solver."Figure 5: Simulation Control - Solver•Change the step size settings according to the following figure.Figure 6: Simulation Control - General•To run the piston into both end stops, firstly charge the left port of the cylinder with pressure, followed by other port later. Therefore, the proportional valve has to be driven first with a negative input signal and later with a positive one. Enter the statement "if time>0.5 then 1 else -1" for the parameter F of the function block ValveInput.•Run the simulation.•The simulation results for the piston stroke and the cylinder chamber pressures are shown in Figure 7 and Figure 8.xPiston - diffCylinder1-20020406080100120140160180200220mm0.10.20.30.40.50.60.70.80.91sFigure 7: Simulation Results Piston StrokepA - diffCylinder1pB - diffCylinder1barsFigure 8: Simulation results pressures chamber A and chamber BIn order to check the results for correctness the model should be simulated using smaller step sizes or one of the SimulationX variable step size solvers.For using the input pin x of ValveInput in LabVIEW as model input, the statement "if time>0.5 then 1 else -1" has to be replaced by the term "self.x" which assigns the output y to the input x .• C-Code ExportTo export the model, open the Code Export Wizard via the menu "Export – C-Code". On the first page, select LabVIEW Control Design & Simulation as project type, enter a project name and select a target directory:On the following page, select the inputs which will be available in LabVIEW:On the next page, select the outputs:To access model parameters after the export, select propDirValve43.f0, propDirValve43.D and pressure.pSrc as parameters on the next page of the wizard:By stepping to the next wizard page, the SimulationX Modelica compiler simplifies the model and generates the C-code in the target directory.On the Post-Processing page the DLL which we will import to LabVIEW is to be compiled by pressing the "Build" button.If the compiler list box is empty on your computer, please install one of the following Microsoft compilers:•Microsoft Visual C/C++ 6•Microsoft Visual C/C++ 2003, 2005, 2008, or 2010•Microsoft Visual C/C++ Toolkit 7.0 (free)•Microsoft Visual C/C++ 2008 Express Edition (free)Alternatively, open the generated project file CylinderDrive_LabVIEW.dsw in the target directory and compile the DLL directly in your Microsoft Developer Studio.Now we are ready to embed the exported model into a LabVIEW VI.Embedding the exported model within LabVIEW1. Open LabVIEW2. Create a new VI (menu>>File>>New VI)Figure 9: LabVIEW Getting Started Dialog3. Save as CylinderDrive_Simulation.vi4. Open Menu>>View >>Functions palette5. Go to Control Design and Simulation>> Simulation6. Select the Control & Simulation Loop and transfer it to the Block DiagramFigure 10: Implemented Control&Simulation Loop7. Solver settings like the used solver method, step sizes and the final simulation time canbe changed within the parameter dialog of the simulation control loop (double click on the upper left box). In our example the solver method is changed to the fixed step solvermethod Runge-Kutta 4. The step size is reduced to 5e-4 sec and the parameter FinalTime is set to 1 sec. Close the Simulation Parameter Dialog with OK.Figure 11: Simulation Parameters Dialog8. Increase the block size, because some blocks have to be placed inside theControl&Simulation loop.9. Insert an External Model from Control Design & Simulation>>Simulation>>Utilities10. Select the exported DLL from SimulationX11. Change Icon Style to Express to show the input and output names of the external model12. Creating the controllerTo control the cylinder drive, a PIDT1-Controller needs to be implemented. The controller will be created using basic elements provided by LabVIEW.Input 2 Summation fromControl Design &Simulation>>Simulation>>Signal ArithmeticConnect the outputsensor1.x of the externalmodel with negative signinput of the SummationelementCreate a Control for theset value at the positiveinput signal pin of theSummation element,rename to SetValueInsert a Transfer FunctionBlock for ControllerDynamics: PT1 TransferFunction with 5ms timeconstant (a1=0,005) andb0=-1 from Control Design&Simulation>>Simulation>>Continuous LinearSystemsInsert 3 Mulitiplicationelements from “ControlDesign &Simulation>>Simulation>>Signal Arithmetic”Insert 1 Derivative and 1Integrator Element fromControl Design &Simulation>>Simulation>>Continuous LinearSystemsInsert 3 Control elementsfor Controller parametersGain, Derivative Time andIntegrating TimeInsert aSimTimeWaveform chartfor displaying theSimulation results ofsensor1.x, Rename toDisplacement13. Setting of default values to the controls•Right mouse click to SetValue in Front Panel•Select Data Operations>>Make Current Value Default14. Configuration of the display format of the Displacement plot•Right mouse click to the Displacement chart, Properties15. Run the VI (Menu>>Operate>>Run)Figure 13: Front Panel CylinderDrive_LabVIEW.viVariants Studies in LabVIEWNow LabVIEW can be used to analyze the model with different parameter settings. To do this we run the model with different Gain parameters, e.g. 10, 100 and 200.Figure 14: Response of the cylinder drive piston stroke to step of 0,1m (Gain = 10)Figure 15: Response of the cylinder drive piston stroke to step of 0,1m (Gain = 100)Figure 16: Response of the cylinder drive piston stroke to step of 0,1m (Gain = 200)SummaryFinally, let us resume a few points concerning the benefits of this tutorial•You have learnt how to export a SimulationX model using the Code Export Wizard. Inputs, outputs, and parameters which should be available in LabVIEW can be selected in the Code Export Wizard.•It was highlighted that a model which will be exported should be tested for correct results inside SimulationX prior to starting the Code Export.•We have demonstrated how to import and use such a model inside LabVIEW using the Control Design and Simulation Module.•You know how to add controls and indicators in LabVIEW to do an interactive variantsimulation.。

NI推出 升级版本LabVIEW7.1 进一步扩展在自动化和实时系统中的应用

NI推出 升级版本LabVIEW7.1 进一步扩展在自动化和实时系统中的应用

NI推出升级版本LabVIEW7.1 进一步扩展在自动化和实时
系统中的应用
佚名
【期刊名称】《电子产品世界》
【年(卷),期】2004(000)07B
【摘要】美国国家仪器有限公司(National Instruments,NI)宣布推出NI图形化开发环境的最新升级版本——LabvIEW 7.1。

LabvIEW 7.1版包括用于NI模
块化仪器和NI-DAQmx的全新Express VI(快速VI)、Lab VIEW 7.1Real-
Time(实时)模块的高级调试和底层的执行定时功能,有了这些全新的Express VI
和新增的功能,LabVIEW将Express技术扩展到自动化测量技术和real-time(实时)应用系统中。

【总页数】1页(P102)
【正文语种】中文
【中图分类】TP311.56
【相关文献】
1.NI推出升级版本LabVIEW 7.1进一步扩展在自动化和实时系统中的应用 [J],
2.NI推出图形化开发环境的最新升级版LabVIEW7.1 [J], 无
3.美国NI正式宣布推出NI图形化开发环境的最新升级版本 [J], 无
4.NI LabView7.1进一步扩展了Express技术在自动化测量和Real-Time(实时)系统的应用 [J],
5.NI LabVIEW7.1进一步扩展了Express技术在自动化测量和Real-Time(实时)系统的应用 [J],
因版权原因,仅展示原文概要,查看原文内容请购买。

NI-488.2

NI-488.2
Additiona you already have installed NI-488.2 for macOS, you can access the online NI-488.2 help by launching GPIB Explorer and clicking Help»NI-488.2 on the menu bar. Visit /macdrivers to find the latest macOS drivers for your NI products.
© 2002–2019 National Instruments. All rights reserved.
371333F-01
May19
4 | | NI-488.2™ for macOS Getting Started Guide
NI corporate headquarters is located at 11500 North Mopac Expressway, Austin, Texas, 78759-3504. NI also has offices located around the world. For telephone support in the United States, create your service request at /support or dial 1 866 ASK MYNI (275 6964). For telephone support outside the United States, visit the Worldwide Offices section of / niglobal to access the branch office websites, which provide up-to-date contact information, support phone numbers, email addresses, and current events.

NI Academic Installation Guide

NI Academic Installation Guide

NI ACADEMIC INSTALL GUIDEAcademic Installation GuideThis guide is designed to make getting up and running with your NI software quick and easy.ContentsAcademic Installation Guide 0Choosing Which Installer to Use (1)Running the Installer (2)Choosing Which Software to Download and Install (5)Which Software Should I Select to Install? (6)Starting the Download (8)Adding More Software at a Later Date (12)Multiple Versions of LabVIEW on the Same Computer (13)Where to Go Next (13)Learn How to Use NI Software (13)Get Support (13)Server-Based Licensing for IT Admins (13)Choosing Which Installer to UseThe website at /academic/download hosts several different installers for NI software, from which you can select based on your requirements. You can choose between three installer options:•The NI Software Platform Bundle contains most of the NI Software Portfolio and allows you to select the exact software items you wish to download and install. This is the installer we recommend using if you have purchased the LabVIEW Academic Site License. This document contains guidance on which software items you should choose for common scenarios. To use this installer, follow the steps beginning on page 2.•The Circuit Design Suite Education Edition installer includes Multisim TM and Ultiboard TM software, which are both included in the Multisim TM Academic Site License.•The Specific NI Software Installers contain only the subset of NI software needed to support a particular focus area (i.e. using a specific hardware product or specific OS), thus simplifying the options presented to users.Each installer has a choice of different versions by year or by release, so you can use the exact same software on your own computer that you run in your lab class, research lab, or department library. Running the same version of software helps prevent incompatibilities between code transferred among different computers.Running the InstallerOnce you have downloaded one of the installers, navigate to the file in Windows Explorer, right-click, and select “Run as Administrator.” You then see this window:Press “Start.”You may receive a Windows security warning after pressing “Start” that asks if you would like this application to make changes to your computer. Ensure that the warning detects “Verified publisher: National Instruments Corporation.” Say “Yes” or “Allow.”Save and close any open files, exit other applications, and select “Next.”Selecting “I want to i nstall software now” download s and installs the software you choose in later steps. Selecting “I want to d ownload software only” download s only the installation files so that you can install later. Choose which one is best for you and select “Next.”IT Admins: The “I want to download software only” option is useful if you want to create your own installation media. Active subscriptions to any Teaching Academic Site License receive a physical shipment of installation media once per year immediately after the NIWeek conference. If you want to order extra installation media, contact NI at/contact-us.The “I have s erial numbers…” option shows only the software products you can activate using those serial numbers (also known as activation keys). The “I want to e valuate…” option shows the full list of NI software, but be awarethat you may download software you cannot later activate with your license. For a list of the software activated by NI academic site licenses, view this white paper.Choose the best option for you and select “Next.”If you chose to active by serial number in the previous step, enter the serial number(s) and select “Add Serial Number” and then “Next.”IT Admins: The University chose between two options to activate software when they purchased an Academic Site License: a serial number or a license file. If you have the serial number, you can enter it here. If you are using a license file on a license server, then press “Back” and choose “Evaluate Products Only” from the previous page of the installer.Students: If you purchased your own copy of LabVIEW, enter the serial number here. The serial number may be printed on the packaging of the LabVIEW CD/DVD or sent in an email by the company that sold you LabVIEW. If you are using the Student Install (part of a university’s Academic Site License) to get free access, you need to retrieve the Student Install serial number from your IT administrator. This is different from the main campus serial number. Each year, you will need to get the new Student Install serial number from your IT admin.Choosing Which Software to Download and InstallIn this step, choose the software you want to download and install. You should see a software list like the one below with a few default options already selected.The installer uses a tree hierarchy to organize different software items into folders. You can use the + and – symbols to expand sections of the tree.To select a software item for download and installation, click the icon to the left of the software item’s name. You can then choose to “Install” or “Do not i nstall” from the drop-down menu that appears. You can perform the same operation on an entire folder of software items by clicking on the folder icon.Which Software Should I Select?Choosing the right software to install can be confusing if you are not sure what you need. You can download and install everything, but that may lead to a very large download. This section of the guide recommends the minimum software items you should install for certain scenarios and explains how to find these items in the different folders on the tree.Installing more software items means your LabVIEW software contains more features, tools, APIs, code blocks, examples, and help documentation to use in your projects.Choosing Software Based on Your Hardware*NI-ELVISmx is for the myDAQ and NI ELVIS II/II+ only. For use with the NI ELVIS III, install the NI ELVIS III Software Bundle under Specific NI Software Installers.Choosing Software Based on Your Engineering Topic*NI-ELVISmx is for the myDAQ and NI ELVIS II/II+ only. For use with the NI ELVIS III, install the NI ELVIS III Software Bundle under Specific NI Software Installers.Starting the DownloadCheck for any important messages or updates to the software you have chosen before installing. This step requires an active Internet connection. Select “Next.”If the software you chose has no notifications, select “Next.” If warnings appear, follow the on-screen advice.Choose the destination folder for your software. If you are unfamiliar with this step, use the default directories that appear automatically. Select “Next.”Agree to the licenses for the software you have chosen. Review the agreements, select “I accept,” and click “Next.”You can choose to disable Windows Fast Startup, which can cause hardware connection issues on tablet and laptop computers. Select “Next.”If you are installing for the first time, select “Create a new Account.” This requires an Internet connection. Use your university/school email address to create an account on . Afterward, or if you already have an account, enter your login credentials here.IT Admins: If you are installing on behalf of a staff member, select “I am not the end user.” When end user s start the software for the first time, they are prompted to create their own accounts. Creating accounts, especially when using university email addresses, significantly streamlines the process of getting technical support for your NI software and licenses.Review the download size for the software you have chosen. You can pause the download at any time if you need to continue it later.If you selected to install software you will automatically progresses to the software installation. Do not let your computer sleep, hibernate, shut down, or interfere with the installation stage.A new window opens during the installation stage. Do not close any of the download or installation windows. They close automatically when finished.You may see this type of window once for each software item you chose. After all the software items have finished installing the installer generates an installation report which you can review before selecting “Next or “Finish.”Adding More Software LaterYou can add more NI software to a computer later. Simply relaunch the installer file and select new software items to download and install. Visit /academic/download to download the most recent version of the installer.Multiple Versions of LabVIEW on the Same ComputerNI introduces new versions of LabVIEW in major and minor releases. Major release examples are LabVIEW 2016 and LabVIEW 2017. A minor release example is a service pack denoted as LabVIEW 2017 SP1.Major releases work side by side on the same computer, so you can have LabVIEW 2016 and LabVIEW 2017 installed and working at the same time if you need. However, you should always use the same version of LabVIEW across all your work (homework, laboratory class, research lab computer, colleagues’ computers) to avoid incompatibilities when transferring code from one computer to the next. If you do receive code that does not open in your version of LabVIEW because the code has been made on a newer version, you need to ask the author to use the “Save for Previous Version” feature and send you the new files.Installing a minor release (SP1 or patch) upgrades any existing software on the PC. Incompatibilities with code do not normally occur between an SP1 version of software and a non-SP1 version.Where to Go NextLearn How to Use NI SoftwareNeed to quickly get familiar with the fundamentals of LabVIEW? LabVIEW 101 is a collection of short videos that guide a student through an introduction to LabVIEW.Want a more formal training structure? Take the official NI education courses online. All users of an active Academic Site License have access to self-paced online training courses. Talk to your IT admins to see if they have set up email-domain level access for your institution.Instructor-led courses are available for in-person and online learning. Academic customers can take these multiday courses at a huge discount. Contact NI to learn the closest course location.Get SupportStaff members at academic institutions are encouraged to contact NI by phone and email to get answers to their NI software and hardware questions. Begin a service request online using your serial number.For students, the NI community provides a great place to exchange ideas and collaborate on challenges.Server-Based Licensing for IT AdminsYou may now be ready to start setting up your license server, or you may need to connect that server to the computers on which you have installed NI software. NI Volume License Manager (VLM) is powerful server-based licensing software that is included with an Academic Site License.To learn how VLM software can help you, check out “Getting Started with NI VLM” under Academic Site License Administrator Resources.。

NI cDAQ

NI cDAQ

SPECIFICA TIONSNI cDAQ™-91844-Slot, Ethernet CompactDAQ ChassisDefinitionsWarranted specifications describe the performance of a model under stated operating conditions and are covered by the model warranty.Characteristics describe values that are relevant to the use of the model under stated operating conditions but are not covered by the model warranty.•Typical specifications describe the expected performance met by a majority of the models.•Nominal specifications describe parameters and attributes that may be useful in operation. Specifications are Typical unless otherwise noted.ConditionsSpecifications are valid at 25 °C unless otherwise noted.Analog InputInput FIFO size127 samples per slotMaximum sample rate1Determined by the C Series module or modules Timing accuracy250 ppm of sample rateTiming resolution212.5 nsNumber of channels supported Determined by the C Series module or modules 1Performance dependent on type of installed C Series module and number of channels in the task.2Does not include group delay. For more information, refer to the documentation for each C Series module.Analog OutputNumber of channels supportedHardware-timed taskOnboard regeneration16Non-regeneration Determined by the C Series module or modules Non-hardware-timed task Determined by the C Series module or modules Maximum update rateOnboard regeneration 1.6 MS/s (multi-channel, aggregate)Non-regeneration Determined by the C Series module or modules Timing accuracy50 ppm of sample rateTiming resolution12.5 nsOutput FIFO sizeOnboard regeneration8,191 samples shared among channels used Non-regeneration127 samples per slotAO waveform modes Non-periodic waveform,periodic waveform regeneration mode fromonboard memory,periodic waveform regeneration from hostbuffer including dynamic updateDigital Waveform CharacteristicsWaveform acquisition (DI) FIFOParallel modules511 samples per slotSerial modules63 samples per slotWaveform generation (DO) FIFOParallel modules2,047 samples per slotSerial modules63 samples per slotDigital input sample clock frequencyStreaming to application memory System-dependentFinite0 MHz to 10 MHz2| | NI cDAQ-9184 SpecificationsDigital output sample clock frequencyStreaming from application memory System-dependentRegeneration from FIFO0 MHz to 10 MHzFinite0 MHz to 10 MHzTiming accuracy50 ppmGeneral-Purpose Counters/TimersNumber of counters/timers4Resolution32 bitsCounter measurements Edge counting, pulse, semi-period, period,two-edge separation, pulse widthPosition measurements X1, X2, X4 quadrature encoding withChannel Z reloading; two-pulse encoding Output applications Pulse, pulse train with dynamic updates,frequency division, equivalent time sampling Internal base clocks80 MHz, 20 MHz, 100 kHzExternal base clock frequency0 MHz to 20 MHzBase clock accuracy50 ppmOutput frequency0 MHz to 20 MHzInputs Gate, Source, HW_Arm, Aux, A, B, Z,Up_DownRouting options for inputs Any module PFI, analog trigger, many internalsignalsFIFO Dedicated 127-sample FIFOFrequency GeneratorNumber of channels1Base clocks20 MHz, 10 MHz, 100 kHzDivisors 1 to 16 (integers)Base clock accuracy50 ppmOutput Any module PFI terminalNI cDAQ-9184 Specifications| © National Instruments| 3Module PFI CharacteristicsFunctionality Static digital input, static digital output, timinginput, and timing outputTiming output sources3Many analog input, analog output, counter,digital input, and digital output timing signals Timing input frequency0 MHz to 20 MHzTiming output frequency0 MHz to 20 MHzDigital TriggersSource Any module PFI terminalPolarity Software-selectable for most signalsAnalog input function Start Trigger, Reference Trigger,Pause Trigger, Sample Clock,Sample Clock TimebaseAnalog output function Start Trigger, Pause Trigger, Sample Clock,Sample Clock TimebaseCounter/timer function Gate, Source, HW_Arm, Aux, A, B, Z,Up_DownModule I/O StatesAt power-on Module-dependent. Refer to the documentationfor each C Series module.Network InterfaceNetwork protocols TCP/IP, UDPNetwork ports used HTTP:80 (configuration only), TCP:3580;UDP:5353 (configuration only), TCP:5353(configuration only); TCP:31415; UDP:7865(configuration only), UDP:8473 (configurationonly)Network IP configuration DHCP + Link-Local, DHCP, Static,Link-Local3Actual available signals are dependent on type of installed C Series module.4| | NI cDAQ-9184 SpecificationsHigh-performance data streams7Data stream types available Analog input, analog output, digital input,digital output, counter/timer input,counter/timer output, NI-XNET4Default MTU size1500 bytesJumbo frame support Up to 9000 bytesEthernetNetwork interface1000 Base-TX, full-duplex; 1000 Base-TX,half-duplex; 100 Base-TX, full-duplex;100 Base-TX, half-duplex; 10 Base-T,full-duplex; 10 Base-T, half-duplex Communication rates10/100/1000 Mbps, auto-negotiated Maximum cabling distance100 m/segmentPower RequirementsCaution The protection provided by the NI cDAQ-9184 chassis can be impaired ifit is used in a manner not described in the NI cDAQ-9181/9184/9188/9191 UserManual.Note Some C Series modules have additional power requirements. For moreinformation about C Series module power requirements, refer to the documentationfor each C Series module.Note Sleep mode for C Series modules is not supported in the NI cDAQ-9184.V oltage input range9 V to 30 VMaximum power consumption515 W4When a session is active, CAN or LIN (NI-XNET) C Series modules use a total of two data streams regardless of the number of NI-XNET modules in the chassis.5Includes maximum 1 W module load per slot across rated temperature and product variations.NI cDAQ-9184 Specifications| © National Instruments| 5Note The maximum power consumption specification is based on a fully populatedsystem running a high-stress application at elevated ambient temperature and withall C Series modules consuming the maximum allowed power.Power input connector 2 positions 3.5 mm pitch mini-combicon screwterminal with screw flanges, SauroCTMH020F8-0N001Power input mating connector Sauro CTF020V8, Phoenix Contact 1714977,or equivalentPhysical CharacteristicsWeight (unloaded)Approximately 643 g (22.7 oz)Dimensions (unloaded)178.1 mm × 88.1 mm × 64.3 mm(7.01 in. × 3.47 in. × 2.53 in.) Refer to thefollowing figure.Screw-terminal wiringGauge0.5 mm 2 to 2.1 mm2 (20 AWG to 14 AWG)copper conductor wireWire strip length 6 mm (0.24 in.) of insulation stripped from theendTemperature rating85 °CTorque for screw terminals0.20 N · m to 0.25 N · m (1.8 lb · in. to2.2 lb · in.)Wires per screw terminal One wire per screw terminalConnector securementSecurement type Screw flanges providedTorque for screw flanges0.20 N · m to 0.25 N · m (1.8 lb · in. to2.2 lb · in.)If you need to clean the chassis, wipe it with a dry towel.6| | NI cDAQ-9184 SpecificationsFigure 1. NI cDAQ-9184 Dimensions30.6 mm 47.2 mm Safety VoltagesConnect only voltages that are within these limits.V terminal to C terminal30 V maximum, Measurement Category IMeasurement Category I is for measurements performed on circuits not directly connected to the electrical distribution system referred to as MAINS voltage. MAINS is a hazardous liveNI cDAQ-9184 Specifications | © National Instruments | 7electrical supply system that powers equipment. This category is for measurements of voltages from specially protected secondary circuits. Such voltage measurements include signal levels, special equipment, limited-energy parts of equipment, circuits powered by regulatedlow-voltage sources, and electronics.Caution Do not connect the system to signals or use for measurements withinMeasurement Categories II, III, or IV.Note Measurement Categories CAT I and CAT O (Other) are equivalent. These testand measurement circuits are not intended for direct connection to the MAINsbuilding installations of Measurement Categories CAT II, CAT III, or CAT IV.Environmental-20 °C to 55 °C6Operating temperature (IEC 60068-2-1and IEC 60068-2-2)Caution To maintain product performance and accuracy specifications when theambient temperature is between 45 and 55 °C, you must mount the chassishorizontally to a metal panel or surface using the screw holes or the panel mount kit.Measure the ambient temperature at each side of the CompactDAQ system 63.5 mm(2.5 in.) from the side and 25.4 mm (1.0 in.) from the rear cover of the system. Forfurther information about mounting configurations, go to /info and enterthe Info Code cdaqmounting.-40 °C to 85 °CStorage temperature (IEC 60068-2-1 andIEC 60068-2-2)Ingress protection IP 30Operating humidity (IEC 60068-2-56)10% to 90% RH, noncondensingStorage humidity (IEC 60068-2-56)5% to 95% RH, noncondensingPollution Degree (IEC 60664)2Maximum altitude5,000 mIndoor use only.6When operating the NI cDAQ-9184 in temperatures below 0 °C, you must use the PS-15 powersupply or another power supply rated for below 0 °C.8| | NI cDAQ-9184 SpecificationsHazardous LocationsU.S. (UL)Class I, Division 2, Groups A, B, C, D, T4;Class I, Zone 2, AEx nA IIC T4Canada (C-UL)Class I, Division 2, Groups A, B, C, D, T4;Class I, Zone 2, Ex nA IIC T4Europe (ATEX) and International (IECEx)Ex nA IIC T4 GcShock and VibrationTo meet these specifications, you must direct mount the NI cDAQ-9184 system and affix ferrules to the ends of the terminal lines.Operational shock30 g peak, half-sine, 11 ms pulse (Tested inaccordance with IEC 60068-2-27. Test profiledeveloped in accordance withMIL-PRF-28800F.)Random vibrationOperating 5 Hz to 500 Hz, 0.3 g rmsNon-operating 5 Hz to 500 Hz, 2.4 g rms (Tested in accordancewith IEC 60068-2-64. Non-operating testprofile exceeds the requirements ofMIL PRF-28800F, Class 3.)Safety and Hazardous Locations StandardsThis product is designed to meet the requirements of the following electrical equipment safety standards for measurement, control, and laboratory use:•IEC 61010-1, EN 61010-1•UL 61010-1, CSA C22.2 No. 61010-1•EN 60079-0:2012, EN 60079-15:2010•IEC 60079-0: Ed 6, IEC 60079-15; Ed 4•UL 60079-0; Ed 6, UL 60079-15; Ed 4•CSA 60079-0:2011, CSA 60079-15:2012Note For UL and other safety certifications, refer to the product label or the OnlineProduct Certification section.NI cDAQ-9184 Specifications| © National Instruments| 9Electromagnetic CompatibilityThis product meets the requirements of the following EMC standards for electrical equipment for measurement, control, and laboratory use:•EN 61326-1 (IEC 61326-1): Class A emissions; Basic immunity•EN 55011 (CISPR 11): Group 1, Class A emissions•EN 55022 (CISPR 22): Class A emissions•EN 55024 (CISPR 24): Immunity•AS/NZS CISPR 11: Group 1, Class A emissions•AS/NZS CISPR 22: Class A emissions•FCC 47 CFR Part 15B: Class A emissions•ICES-001: Class A emissionsNote In the United States (per FCC 47 CFR), Class A equipment is intended foruse in commercial, light-industrial, and heavy-industrial locations. In Europe,Canada, Australia and New Zealand (per CISPR 11) Class A equipment is intendedfor use only in heavy-industrial locations.Note Group 1 equipment (per CISPR 11) is any industrial, scientific, or medicalequipment that does not intentionally generate radio frequency energy for thetreatment of material or inspection/analysis purposes.Note For EMC declarations and certifications, and additional information, refer tothe Online Product Certification section.CE ComplianceThis product meets the essential requirements of applicable European Directives, as follows:•2014/35/EU; Low-V oltage Directive (safety)•2014/30/EU; Electromagnetic Compatibility Directive (EMC)•2014/34/EU; Potentially Explosive Atmospheres (ATEX)Online Product CertificationRefer to the product Declaration of Conformity (DoC) for additional regulatory compliance information. To obtain product certifications and the DoC for this product, visit / certification, search by model number or product line, and click the appropriate link in the Certification column.10| | NI cDAQ-9184 SpecificationsEnvironmental ManagementNI is committed to designing and manufacturing products in an environmentally responsible manner. NI recognizes that eliminating certain hazardous substances from our products is beneficial to the environment and to NI customers.For additional environmental information, refer to the Minimize Our Environmental Impact web page at /environment. This page contains the environmental regulations and directives with which NI complies, as well as other environmental information not included in this document.Waste Electrical and Electronic Equipment (WEEE) EU Customers At the end of the product life cycle, all NI products must bedisposed of according to local laws and regulations. For more information abouthow to recycle NI products in your region, visit /environment/weee.电子信息产品污染控制管理办法(中国RoHS)中国客户National Instruments符合中国电子信息产品中限制使用某些有害物质指令(RoHS)。

NI LabVIEW 1 安装指南说明书

NI LabVIEW 1 安装指南说明书

Linux LabVIEW ™ Installation Guide NI LabVIEW 1Install LabVIEW Development SystemBefore You Begin Application Builder 2Install LabVIEW Modules and Toolkits• NI-VISA—Available through the LabVIEW INSTALL script • NI-DAQmx Base—/info a daqbase • Other newly purchased NI devices—Installation media packaged with the device • Other NI devices that you already own—/driversNI Device Drivers 3Install NI Device Drivers4Refer to your device documentation, such as printed manuals or PDFs, for information about installing your NI hardware.Install Hardware• Insert and mount the LabVIEW installation media.• As the root user in the mounted directory, enter sh ./INSTALL to install LabVIEW in the /usr/local directory.Note: To manually install LabVIEW without using the INSTALL script, refer to the README file in /mnt/cdrom .To use hardware with a new version of LabVIEW, you must install a new version of the driver for the device. Install new drivers from the following locations:Problems Installing LabVIEW?For answers to common questions about installing LabVIEW and NI device drivers, refer to the LabVIEW Installation Troubleshooting Guide (troubleshooting_guide.html ) on the LabVIEW installation media.• Verify that the add-on is compatible with this version of LabVIEW at /info a compat .• Insert and mount the installation media for the add-on.• As the root user in the mounted directory, enter sh ./INSTALL .Are you upgrading from a previous version of LabVIEW? Refer to the LabVIEW Upgrade Notes for information about protecting existing VIs and projects before installing a new version of LabVIEW.LabVIEW modules and toolkits may have additional system requirements. To verify that your system meets the minimum requirements for the specific LabVIEW module or toolkit you want to install, refer to the readme file on the installation media for the module or toolkit.Additional System Requirements for LabVIEW Modules and ToolkitsThe following system requirements apply to the LabVIEW Full and Professional Development Systems.LinuxLabVIEW System Requirements©2012–2013 National InstrumentsAll rights reserved. Refer to the NI T rademarks and Logo Guidelines at /trademarks for more information on National Instruments trademarks. Other product and company names mentioned herein are trademarks or trade names of their respective companies. For patents covering National Instruments products/technology, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your media, or the National Instruments Patent Notice at /patents . You can find information about end-user license agreements (EULAs) and third-party legal notices in the readme file for your NI product. Refer to the Export Compliance Information at /legal/export-compliance for the National Instruments global trade compliance policy and how to obtain relevant HTS codes, ECCNs, and other import/export data.Linux Run-Time Engine Development Environment ProcessorPentium III/Celeron 866 MHz or equivalent Pentium 4M or equivalent RAM256 MB 1 GB Screen Resolution 1024 x 768 Pixels1024 x 768 Pixels Operating System Linux kernel 2.2x, 2.4x, 2.6x, or 3x, and GNU C Library (glibc) Version 2.4.4 or later for the Intel x86 architectureRed Hat Enterprise Linux Desktop + Workstation 5 or later, open SUSE 12.1 or later, or Scientific Linux 6 or later Disk Space 115 MB 1.1 GB for the complete installation (excluding drivers)Color Palette N/A LabVIEW and the LabVIEW Help contain 16-bit color graphics. LabVIEW requires a minimum color palette setting of 16-bit color.Temporary Files Directory N/A LabVIEW uses a directory for storing temporary files. National Instruments recommends that you have several megabytes of disk space available for this temporary directory.Adobe Reader N/AY ou must have Adobe Reader installed to search PDF versions of all LabVIEW manuals.Note: National Instruments recommends that you use Firefox 3.6.26 or later to view the LabVIEW Help .375845B-01 Jun13。

NI Academic Site License用户手册说明书

NI Academic Site License用户手册说明书

RELEASE NOTES AND INSTALLATION INSTRUCTIONS NI Academic Site LicenseNI Academic Site License provides educators, researchers, and students with a selection of National Instruments graphical system design software. Academic Site License is available as two different options:•Academic Site License: LabVIEW Option—Contains LabVIEW Professional Development System and a large set of LabVIEW modules and toolkits, alongwith other select NI software packages for extended development.•Academic Site License: Multisim Option—Contains Circuit Design Suite, featuring Multisim, Ultiboard, and Multisim Live Premium ().For a list of the software versions included in this release, refer to /info and enter the Info Code ASLsoftware.Included in your Academic Site License purchase is one year of the Standard Subscription Program (SSP) for Academic Software. This provides benefits such as the following:•Access to the latest software upgrades (/academic/download)•Ability for undergraduate students to install and activate software (/info, enter Info Code AcademicSIO)•Access to NI Online Training for students and educators at /self-paced-training•Access to technical support via email and phone from National Instruments Application Engineers (/support)For more information on SSP for Academic Software, including a complete list of benefits and list of pricing options, visit /info and enter the Info Code AcademicSSP. LabVIEW and Multisim for StudentsAn active SSP contract allows students included within the negotiated parameters of Small/ Medium/Large Academic Site License contracts to install and activate the included software on their personal computers for educational purposes. NI will deliver a new serial number each year of an active contract to distribute to students for this purpose. For more information, go to /info and enter the Info Code AcademicSIO.Software Administrator ResourcesFor information on installation, and license management resources for software distribution on your campus, refer to the Academic Site License Administrator Resources at /asl-resources.Installation and Activation InstructionsSoftware InstallationGo to /info and enter ASLsoftware to see what specific software is included in your ASL option.NI Academic Site License: LabVIEW OptionNI Academic Site License: LabVIEW Option has been grouped into a software installer suite—referred to as the NI Software Platform Bundle—which contains the majority of theNI software portfolio for building many applications in multiple environments.The NI Software Platform bundle also ships with LabVIEW NXG. Use LabVIEW NXG to quickly acquire, analyze, and present data from data acquisition devices. To determine if LabVIEW NXG meets your application needs, follow the instructions to fill out the survey that appears during the installation process.NI Software Platform Bundle InstallationThe Software Platform Bundle organization ensures that you only need to insert the media or download the installer, choose the software products you want to install, and all software will be installed in the proper order. The installer also ensures that any necessary selected driver software installs after the application software.To download the web-based Software Platform Bundle installer, go to /academic/ download and select your installer option from the LabVIEW Academic Site License Installer section. After the file downloads, double-click the file from the download location and follow the on-screen instructions.NI Academic Site License: Multisim OptionNI Academic Site License: Multisim Option has been grouped into a software installer suite—referred to as the NI Circuit Design Suite—which includes Multisim and Ultiboard software for a complete circuit design, simulation, validation, and layout platform.NI Circuit Design Suite InstallationTo install NI Circuit Design Suite, insert the media or download the installer, choose the software products you want to install, and follow any instructions on your screen.To download the web-based NI Circuit Design Suite installer, go to /academic/ download and select your installer option from the Multisim Academic Site License Installer section. After the file downloads, double-click the file from the download location and follow the on-screen instructions.2||NI Academic Site License Release Notes and Installation InstructionsSerial Numbers (Activation)Depending on which Academic Site License contract you purchased, you will receive one or more serial numbers, which are used to license and activate your National Instruments software. For assistance activating NI software, visit /activate.Software Deployment Options1.Single computer—You can install and activate software individually on a computer, butyou will need to activate the software on each computer.This is suitable for professors, researchers, and students that need to install and activate software on their laptops or lab computers.2.Multiple computers—When deploying National Instruments software to a large group ofcomputers(15or more) such as a computer lab, NI recommends using an imaging tool to automate the software installation.Before creating the image, decide if you plan to direct the image to a centralized licensing server by way of NI V olume License Manager (NI VLM) or FLEX, or if you plan to push out a computer image with an already activated license file.For more information about deploying NI software to multiple machines, visit /asl and select Software Administrator Resources.Information is subject to change without notice. Refer to the NI Trademarks and Logo Guidelines at /trademarks for more information on NI trademarks. Other product and company names mentioned herein are trademarks or trade names of their respective companies. For patents covering NI products/technology, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your media, or the National Instruments Patents Notice at /patents. You can find information about end-user license agreements (EULAs) and third-party legal notices in the readme file for your NI product. Refer to the Export Compliance Information at /legal/export-compliance for the NI global trade compliance policy and how to obtain relevant HTS codes, ECCNs, and other import/export data. NI MAKES NO EXPRESS OR IMPLIED WARRANTIES AS TO THE ACCURACY OF THE INFORMATION CONTAINED HEREIN AND SHALL NOT BE LIABLE FOR ANY ERRORS. U.S. Government Customers: The data contained in this manual was developed at private expense and is subject to the applicable limited rights and restricted data rights as set forth in FAR 52.227-14, DFAR 252.227-7014, and DFAR 252.227-7015.© 2008-2019 National Instruments. All rights reserved.371738AG-01Jan19。

NI-Tutorial-数据采集(DAQ)基础知识

NI-Tutorial-数据采集(DAQ)基础知识

PC传感器信号调理数据采集硬件软件图1 典型的基于 PC的DAQ系统: 文件类型技术指南图2 用于插入式数 据采集设备的 SCXI信号调理的 前端系统放大功能——放大是最为普遍 的信号调理功能。

例 如,需要对热电偶的 信号进行放大以提高 分辨率和降低噪声。

为了得到最高的分辨 率,要对信号放大以 使调理后信号的最大 电压范围和ADC的最大输入范围相等。

又例如,SCXI有 多种信号调理模块可 以放大输入信号。

在 临近传感器的 SCXI机箱内对低 电压信号进行放大, 然后把放大后的高电 压信号传送到PC, 从而最大限度地降低噪声对读数的影响。

隔离功能——另一种常见的信 号调理应用是为了安 全目的把传感器的信 号和计算机相隔离。

被监测的系统可能产 生瞬态的高压,如果 不使用信号调理, 这种高压会对计算机 造成损害。

使用隔离的另一原因是为了 确保插入式数据采集 设备的读数不会受到 接地电势差或共模电 压的影响。

当数据采 集设备输入和所采集 的信号使用不同的参 考“地线”,而一旦 这两个参考地线有电势差,就会带来麻 烦。

这种电势差会产 生所谓的接地回路, 这样就将使所采集信 号的读数不准确;或 者如果电势差太大, 它也会对测量系统造 成损害。

使用隔离式 信号调理能消除接地回路并确保信号可以 被准确地采集。

例 如,SCXI- 1120和 SCXI-1121 模块能提供高达 250 Vrms的 共模电压隔离, SCXI-1122 能提供高达450 Vrms电压隔离。

多路复用功能——多路复用是使用 单个测量设备来测量 多个信号的常用技 术。

模拟信号的信号 调理硬件常对如温度 这样缓慢变化的信号 使用多路复用方式。

ADC采集一个通道后,转换到另一个通 道并进行采集,然后 再转换到下一个通 道,如此往复。

由于 同一个ADC可以采 集多个通道而不是一 个通道,每个通道的 有效采样速率和所采 样的通道数呈反比。

NI Released License Agreement - Simplified Chinese

NI Released License Agreement - Simplified Chinese

National Instruments软件许可协议安装须知:本协议具合同效力。

在你方下载软件和/或完成软件安装过程之前,请仔细阅读本协议。

一旦你方下载和/或点击相应的按钮,从而完成软件安装过程,即表示你方同意本协议条款并愿意受本协议的约束。

若你方不愿意成为本协议的当事方,并不接受本协议所有条款和条件的约束,请点击相应的按钮取消安装过程,即不要安装或使用软件,并在收到软件之日起三十(30)日内将软件(包括所有随附书面材料及其包装)退还至获取该软件的地点,所有退还事宜都应遵守退还发生时适用的NI退还政策。

1. 定义在本协议中,下列术语的含义如下:A. “你方”指使用软件的个人;若你方在工作范围内使用软件,则也包括你方的雇主。

B. “NI”指(1)若软件在美国生产,则“NI”指National Instruments Corporation,一家根据美国特拉华州法律成立的公司;(2)若软件在爱尔兰共和国生产或软件为DIAdem、DIAdem Clip、DIAdem Insight或DASYLab软件,则“NI”指National Instruments Ireland Resources Ltd.,一家根据爱尔兰共和国法律成立的公司;(3)若软件在匈牙利生产,则“NI”指National InstrumentsEurope Kft,一家根据匈牙利法律成立的有限责任公司。

若无法确定软件在何地生产,请联系National Instruments Corporation,地址:美国德克萨斯州奥斯汀市北莫培克高速路11500号(11500 N. Mopac Expressway,Austin, Texas, U.S.A.)电话:78759-3504(法务部收)。

C. “软件”指根据本协议提供的计算机软件程序,与所有的随附文件、应用程序以及驱动界面一同安装。

若软件是NI套件产品的一部分,则“软件”指所有你方获得套件产品包含的NI的适用软件程序(包括所有随附文件、应用程序以及驱动界面软件)。

NI VeriStand Model Framework 用户指南说明书

NI VeriStand Model Framework 用户指南说明书

INTRODUCTIONNI VeriStand Model Framework™NI VeriStand and the NI LabVIEW Model Interface Toolkit allow you to run copies of simulation models written in C and C++. The NI VeriStand Model Framework is a group of files that provide entry points to models. To enable models to interact with NI VeriStand and the NI LabVIEW Model Interface Toolkit, you must design them to work with the NI VeriStand Model Framework.This guide describes the components of the NI VeriStand Model Framework, the process for creating model code that is compatible with the framework, and requirements for compiling your model with the framework.ContentsInstalling the Model Framework (1)Components of the Model Framework (2)Interaction of Framework Code and Your Model Code (3)Overview: Model Creation and Compilation Process (4)Creating a model.h Header File (4)Adapting template.c to Serve as Your Model Code (5)Compiling Your Model with the NI VeriStand Model Framework (5)Where to Go Next (6)Installing the Model FrameworkIn the NI VeriStand installer, the NI VeriStand Model Framework feature installs the Model Framework files on the host computer. If you cannot locate the files described in the Components of the Model Framework section of this document, run the NI VeriStand installer again and select the NI VeriStand Model Framework item from the list of features to install. You do not need to reinstall other NI software to install the Model Framework.Components of the Model FrameworkThe following table describes the files in the Model Framework. These files show how you must implement your model code.File Description Installed Locationni_modelframework.h A header file that includes thefollowing components:•Type definitions that yourmodel code can use to defineproperties of outward-facingcomponents of your model,such as inports, outports,parameters, and signals.•Functions that the NI VeriStandModel Framework exports toyour compiled model.RootDrive:\ VeriStand\ version\ ModelInterfacewhere RootDrive is the drive where NI software installs and version is the version number of NI VeriStand.ni_modelframework.c A file that implements thecommon interface betweenyour test application and yourmodel code.RootDrive:\ VeriStand\ version\ ModelInterface\ custom\srctemplate.c A template for your model code.Use this file to create code thatmaintains interdependentstructures between your modeland ni_modelframework.c.RootDrive:\ VeriStand\ version\ ModelInterface\ custom\examples2||NI VeriStand Model Framework IntroductionInteraction of Framework Code and Y our Model CodeWhen you run your test application designed using NI VeriStand or the LabVIEW Model Interface Toolkit, the application executes functions defined in NI VeriStand Model Framework files. These functions then call functions in your model code, which convert user-defined data types, initialize your model, and take a time step.The following illustration shows how NI software, Model Framework code, and code in your model interact. In this illustration, your test application calls a function that the Model Framework exports. That function, in turn, calls a function in your model code.Figure 1. Interaction of NI Software, Framework Code, and Model Code ArrayAs the model executes, the test application can interact with the model in the following ways:•Write data to model inports•Read data from model outports•Allow you to adjust model parameter values•Allow you to probe model signalsNI VeriStand Model Framework Introduction|© National Instruments|34| |NI VeriStand Model Framework IntroductionOverview: Model Creation and Compilation ProcessTo create a model written in C/C++ that NI software can load and execute via the Model Framework, you typically perform the following tasks:1.Create a model.h header file.2.Adapt template.c to serve as your model code.3.Create a makefile to compile your model code.The following sections contain high-level guidelines about the files you need to create and customize to prepare a model for use with NI software. For details about this process, refer to code comments inside the Model Framework files.Creating a model.h Header FileCreate a header file named model.h that contains the type definitions for model parameters and all the user-visible parameters in your model.Your header file should look similar to the following code copied from the model.h file in the engine model example at <RootDrive>:\VeriStand\version \ModelInterface\custom\examples\engine .Figure 2. Example model.h fileThe previous example contains definitions for both scalar and vector double parameters. For information about defining parameters whose data type is something other than double, refer to comments in the template.cfile installed by the Model Framework.NI VeriStand Model Framework Introduction |© National Instruments |5Adapting template.c to Serve as Y our Model CodeMake a copy of the template.c file installed by the Model Framework to serve as a starting point for your model code. This allows you to maintain interdependent structures between your model code and ni_modelframework.c. These structures might include headers, imported and exported symbols, and functions that NI software recognizes. You can save your .c model file with any filename.Use the following guidelines to modify template.c to serve as your own model code:1.Refer to the contents of template.c for all the code you must customize, which is marked with comments. This file also contains information about how to instantiate and access parameters.2.Refer to the contents of ni_modelframework.h for the type definitions you can use to define properties of outward-facing components of your model, such as inports, outports, parameters, and signals.Compiling Y our Model with the NI VeriStand Model FrameworkFor the NI VeriStand Model Framework to be able to provide entry points to your model to be used with NI VeriStand and the NI LabVIEW Model Interface Toolkit, you must compile the model. To compile your model, create a makefile that is appropriate for the compiler you plan to use and the operating system on which the model will run. The following list describes the type of makefile to use and the corresponding output to generate:•Windows/NI ETS targets—Create a .mak makefile that generates a DLL. Refer to the National Instruments website at /info and enter the Info Code exjr6s for information about compiling a DLL for ETS targets.•VxWorks targets—Create a .mk makefile that generates a .out file. Refer to the National Instruments website at /info and enter the Info Code ex2xp2 for information about compiling a .out file for VxWorks targets.•NI Linux Real-Time targets—Create a .mk makefile that generates an .so file. Refer to the National Instruments website at /info and enter the Info Code ex6eq7 for information about compiling an .so file for NI Linux Real-Time targets or exfyk9 for an example of how to use NI Linux Real-Time C/C++ tools to compile VeriStand models.NoteTo determine which real-time operating system your RT target runs, refer tothe National Instruments website at /info and enter the Info Code exxjax .For examples of makefiles designed to compile models that work with the Model Framework, refer to the example .mak and .mk files installed in the RootDrive :\VeriStand\version \ModelInterface\custom\examples directory, where RootDrive is the drive where NI software installs and versionis the version number of NI VeriStand.© 2009–2017 National Instruments. All rights reserved. 372952D-01May17Refer to the NI Trademarks and Logo Guidelines at /trademarks for more information on NI trademarks. Other product and company names mentioned herein are trademarks or trade names of their respective companies. For patents covering NI products/technology, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your media, or the National Instruments Patents Notice at/patents . You can find information about end-user license agreements (EULAs) and third-party legal notices in the readme file for your NI product. Refer to the Export Compliance Information at /legal/export-compliance for the NI global trade compliance policy and how to obtain relevant HTS codes, ECCNs, and other import/export data. NI MAKES NO EXPRESS OR IMPLIED WARRANTIES AS TO THE ACCURACY OF THE INFORMATION CONTAINED HEREIN AND SHALL NOT BE LIABLE FOR ANY ERRORS. U.S. Government Customers: The data contained in this manual was developed at private expense and is subject to the applicable limited rights and restricted data rights as set forth in FAR 52.227-14, DFAR 252.227-7014, and DFAR 252.227-7015.The following files must be present when you run a makefile to compile your model code:•ni_modelframework.h •ni_modelframework.c •model.h •model.cWhere to Go NextThe Model Framework installs several example models, including their .c and model.h files and makefiles. For examples of model code you can explore, refer to the RootDrive :\VeriStand\version \ModelInterface\custom\examples directory, where RootDrive is the drive where NI software installs and version is the version number of NI VeriStand.For information about using your model in NI software, refer to the appropriate help system:•NI VeriStand Help —Available in NI VeriStand by selecting Help»Search the NI VeriStand Help . Browse to the Integrating and Executing Models section on the Contents tab for more information about simulating models in NI VeriStand.•Model Interface Toolkit Help —Available in LabVIEW by selecting Help»LabVIEW Help. Browse to the Toolkits»Model Interface Toolkit section on the Contents tab for more information about simulating models in LabVIEW with the Model Interface Toolkit.。

NI-Tutorial-操作者框架-zhs

NI-Tutorial-操作者框架-zhs

例如,下面截图显示 的项目库包含一个操 作者Alpha(上面的截图显示了与 该操作者相关的下列 文件:操作者的核心VI是。

该方法重写其祖先 的“操作者核心”方 法,定义了 Alpha操作者特 有的连续行为。

操作者核心项目_名称其中指用户给项目的命 名。

该图表明应用程序操 作者同时启动 Alpha和 Beta操作者。

因 此,应用程序操作者 被称为注 任务树层次结构 与LabVIEW类 继承层次结构有所不 同。

虽然Alpha 和Beta从应用程 序启动,但 Alpha和 Beta类并不从消息队列1. 2.3. 消息通过队列发送。

为了限制任务树,每 个操作者最初仅可访 问下列两个消息队 列:操作者用来将消息发 送至调用方的队列操作者用来将消息发 送至自身的队列访问一个队列与队列 本身有所不同。

为避 免其他操作者释放其 消息队列,操作者并 不共享自身的队列。

相反,操作者框架引 入了的概念。

待入队列是 一个引用,可使操作待入队列者发送消息至队列, 但不执行其他任何操 作。

例如,假设操作者X 已经在运行。

启动 时,X获得一个用来 发送消息至自身的队 列。

在X看来,该队 列是。

如X启动Y,则发 生下列动作:至当前类队列X是Y的调用方,因 此X允许Y访问X的 至当前类队列。

在Y 看来,该队列是队列。

队列相同,但 有两个不同的观察角 度。

至调用方Y获得一个发送消息 至自身的队列。

在Y 看来,该队列是队列。

至当前类Y允许X访问步骤2 中获得的队列。

现在Y可以访问两个 队列:至调用方队列-步骤1中X允许Y 访问的队列。

注意该 队列和X用来与自身 通信的队列相同。

至当前类队列-步骤3中Y为自身 获得的队列。

下图显示了这两个操 作者互相进行通信的 方式:现在X能够将消息发 送至自身(1)和 Y (2)。

Y能够 将消息发送至X (3)和自身 (4)。

尽管有四个 消息可进入的方向, 但只包含了两个队 列。

此外,两个操作 者都无法释放对方的 队列。

NI-XNET硬件和软件安装指南说明书

NI-XNET硬件和软件安装指南说明书

INSTALLATION GUIDENI-XNET Hardware and™SoftwareThis installation guide contains instructions to help you install your National Instruments hardware and software. Complete documentation is in theNI-XNET Hardware and Software Manual on your NI-XNET installation media. Refer to the NI-XNET_Hardware_and_Software_Manual.pdf file on the installation media or select National Instruments»NI-XNET»NI-XNET Hardware and Software Manual from the Windows Start menu or NI Launcher. The NI-XNET software on this installation media supports Microsoft Windows operating systems.This installation guide covers National Instruments 851x hardware products for CAN, LIN, and FlexRay on the PCI and PXI buses, as well as NI 986x C Series hardware products. It is written for users already familiar with Windows.Install the NI-XNET SoftwareBefore installing the NI-XNET software, users must first log on as a user with Administrator privileges. The NI-XNET setup program must have Administrator privileges because the program modifies the configuration registry of your system. Complete the following steps to install the NI-XNET software.1.Insert the NI-XNET installation media into your computer. The installerlaunches if your CD/DVD-ROM drive plays data disks automatically.If the installer does not launch automatically, navigate to the installation media using Windows Explorer and launch the autorun file from your NI-XNET installation media.2.The Installation Wizard guides you through the necessary steps to install theNI-XNET software. You can go back and change values where appropriate by clicking Back. You can exit the setup where appropriate by clicking Cancel.3.Power down your computer when the setup is complete.4.Proceed to the Install the Hardware section.in the NI-XNET Hardware and Software Manual for more informationabout installing the NI-XNET software on your RT system and verifyingthe installation.NI XNET Hardware and Software Installation © National Instruments 3NI XNET Hardware and Software Installation Guide Install the HardwareThis section describes how to install your hardware on the PCI and PXI buses, as well as how to install XNET C Series modules.Install Your PCI HardwareCaution Before you remove the card from the package, touch theantistatic plastic package to a metal part of your system chassis todischarge electrostatic energy, which can damage components on your CAN, LIN, or FlexRay card.1.Make sure that your computer is powered off and unplugged.2.Remove the top cover (or other access panels) to give yourself access to thecomputer expansion slots.Figure 1. Installing a PCI Device3.Find an unused PCI slot in your computer.4.Remove the corresponding slot cover on the back panel of the computer.5.Insert the CAN, LIN, or FlexRay card into the slot with the bus connector(s)sticking out of the opening on the back panel. It might be a tight fit, but do not force the interface into place.6.Screw the mounting bracket of the CAN, LIN, or FlexRay card to the backpanel rail of the computer.7.You can use a RTSI cable to connect your CAN, LIN, or FlexRay card RTSIinterface to other National Instruments RTSI-equipped hardware. Refer to the Synchronization section of NI-XNET Hardware Overview in the NI-XNET Hardware and Software Manual for more information about the RTSIinterface on your CAN, LIN, or FlexRay card.8.Replace the top cover (or the access panel to the expansion slot).9.Proceed to the Verify Your Installation section.NI XNET Hardware and Software Installation © National Instruments 5NI XNET Hardware and Software Installation Guide Install Your PXI HardwareCaution Before you remove the card from the package, touch theantistatic plastic package to a metal part of your system chassis todischarge electrostatic energy, which can damage components on your CAN, LIN, or FlexRay card.Figure 2. Installing a PXI Device in the Chassis1.Make sure that your PXI or CompactPCI chassis is powered off, and unplugthe computer.2.Choose an unused PXI or CompactPCI peripheral slot.NI XNET Hardware and Software Installation Guide 3.Remove the filler panel for the peripheral slot you have chosen.4.Touch a metal part on your chassis to discharge any static electricity that mightbe on your clothes or body.5.Insert the PXI card into the selected slot. Use the injector/ejector handle tofully inject the card into place.6.Screw the front panel of the PXI card to the front panel-mounting rail of thePXI or CompactPCI chassis.7.Proceed to the Verify Your Installation section.Install Your C Series HardwareCautionBefore you remove the module from the package, touch theantistatic plastic package to a metal part of your system chassis todischarge electrostatic energy, which can damage components on your module.Complete the following steps to install a C Series I/O module:1.When using your C Series hardware with a CompactDAQ chassis, refer to theNI cDAQ ™-91xx User Guide and Specifications for detailed installation instructions.2.When using your C Series hardware with a CompactRIO chassis, refer to theInstalling CompactRIO I/O Modules in the Chassis section of theCompactRIO Reconfigurable Embedded System Installation Instructions document for detailed installation instructions.3.Connect the power source to the NI 986x C Series module. The NI 986xmodule requires an external power supply that meets the specifications listed in the respective operating instructions document.4.Proceed to the Verify Your Installationsection.Verify Your Installation1.Power on your computer and start Windows.A New Hardware Found dialog box may appear. If a dialog box appears anddoes not go away on its own, choose the default option, Install the Software Automatically (Recommended), and let the operating system install the driver files.unch Measurement & Automation Explorer (MAX) and refresh (press<F5>or choose View»Refresh from the menu). Y our CAN, LIN, and FlexRayhardware should be listed now under Devices and Interfaces. To test alldetected CAN, LIN, and FlexRay hardware, right-click each NI-XNET device and select Self Test. If you are using an NI 986x C Series module withCompactRIO, refer to the Getting Started with CompactRIO section in the NI-XNET Hardware and Software Manual.3.Proceed to the Connect the Cables section.TroubleshootingIf you have problems installing your software, go to /xnet. For hardware troubleshooting, go to /support and enter your device name, or go to /kb.If you think you have damaged your device and need to return your National Instruments hardware for repair or device calibration, go to /info and enter the Info Code rdsenn to learn how to begin the Return Merchandise Authorization (RMA) process.© National Instruments7NI XNET Hardware and Software Installation GuideConnect the CablesAfter you have installed the hardware, connect your cables to the hardware. Refer to the Cabling Requirements section for your CAN, LIN, or FlexRay hardware in NI-XNET Hardware Overview in the NI-XNET Hardware and Software Manual for information about the cabling requirements of the CAN, LIN, and FlexRay hardware.Uninstalling the NI-XNET SoftwareComplete the following steps to uninstall the NI-XNET software.1.Navigate to the location where the Windows operating system allows you touninstall software.2.Find and select National Instruments Software. Click the Change orUninstall/Change button.3.Select NI-XNET in the list of products and click Remove.The uninstall program removes all folders, utilities, device drivers, DLLs, and registry entries associated with the NI-XNET software. The uninstall program removes only items that the installation program installed.If you have added anything to a directory created by the installation program, the uninstall program cannot delete that directory because it is not empty after the uninstallation. Remove any remaining components manually.After the uninstall program completes, restart your computer.NI XNET Hardware and Software Installation Further DocumentationComplete documentation is in the NI-XNET Hardware and Software Manual in the Documentation folder on your NI-XNET installation media. The manual includes a Troubleshooting and Common Questions section with more detailed information about installation and configuration of your NI-XNET software and hardware. Refer to the NI-XNET_Hardware_and_Software_Manual.pdf file on the installation media or select National Instruments»NI-XNET»NI-XNET Hardware and Software Manual from the Windows Start menu or theNI Launcher.© National Instruments9NI XNET Hardware and Software Installation GuideLabVIEW, National Instruments, NI, , the National Instruments corporate logo, and the Eagle logo are trademarks of National Instruments Corporation. Refer to the Trademark Information at /trademarks for other National Instruments trademarks. Other product and company names mentioned herein are trademarks or trade names of their respective companies. For patents covering National Instruments products/technology, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your media, or the National Instruments Patent Notice at /patents. You can find information about end-user license agreements (EULAs) andthird-party legal notices in the NI-XNET Readme. Refer to the Export Compliance Information at /legal/export-compliance for the National Instruments global trade compliance policy and how to obtain relevant HTS codes, ECCNs, and other import/export data.© 2009–2013 National Instruments. All rights reserved.372843E-01Feb13。

National Instruments NI-Motion驱动软件和NIMotion助手getti

National Instruments NI-Motion驱动软件和NIMotion助手getti

© 2003 National Instruments Corp. All rights reserved.CVI™, LabVIEW™, National Instruments™, NI™, ™, NI-Motion™, NI Motion Assistant™, and RTSI™ aretrademarks of National Instruments Corporation. Product and company names mentioned herein are trademarks or trade names of their respective companies. For patents covering National Instruments products, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your CD, or /patents .April 2003323329A-01Getting Started with NI Motion ControlThis document provides general guidelines for installing and getting started with the NI-Motion driver software and your National Instruments motion controller. This guide also contains step-by-step instructions forconfiguring your motion control system. Consult your computer user manual or technical reference manual for specific instructions and warnings.Refer to the Documentation section at the end of this guide for a list of the hardware and software documents included with your motion controller and the NI-Motion software.Measurement & Automation Explorer (MAX)Measurement & Automation Explorer (MAX), the National Instruments configuration utility, installs when you install the NI-Motion software. You can use MAX to configure your motion controller and other National Instruments hardware devices and to update your National Instruments software.To run MAX, double-click the MAX icon on your desktop, or navigate to Start»Programs»National Instruments»Measurement & Automation .Figure 1 shows an illustration of the MAX configuration window.Getting Started with NI Motion Control Figure 1. MAX Configuration WindowInstallationThe following items are necessary for getting started with your motion controller:❑NI-Motion software❑One of the following software packages and documentation:–LabVIEW–LabWindows ™/CVI ™–NI Motion Assistant –Microsoft Visual C++–Microsoft Visual Basic© National Instruments Corporation 3Getting Started with NI Motion Control❑An NI motion controller❑ A computer with an available PXI or PCI slot or IEEE 1394NI-Motion Software InstallationInstall the NI-Motion software before installing a motion controller for the first time. If you are upgrading from a previous version of the NI-Motion software, it is not necessary to remove your controller before installing the upgrade. The upgrade does not affect your existing Windows configuration.Complete the following steps to install your NI-Motion software.1.Insert the NI-Motion CD into your CD-ROM drive to display the NI-Motion installation screen.2.Click Install NI-Motion .3.Follow the installer prompts through the rest of the installation.4.Refer to the NI-Motion ReadMe.htm file after the installation is complete for last-minute information not contained in this document or the NI-Motion online help.Your NI-Motion software is installed. You can install the includedNI Motion Assistant demo after your NI-Motion installation is complete.Motion Controller InstallationThe following section explains how to install your PCI, PXI, and FW controllers.NoteWhen adding or removing a controller from a Windows 2000/NT/XP system, you must be logged on with administrator-level access. After you have restarted your system, you may need to refresh MAX to view your new controller.PCI Controllers1.Power off and unplug your computer.CautionTo protect yourself and the computer from electrical hazards, the computershould remain unplugged until the installation is complete.2.Remove the cover to expose access to the PCI expansion slots.3.Choose an unused 5V PCI slot, and remove the correspondingexpansion slot cover on the back panel of the computer.Getting Started with NI Motion Control 4.Touch a metal part on your computer case to discharge any static electricity that might be on your clothes or body before handling your controller. Static electricity can damage your controller.5.Gently rock the controller into the slot. The connection may be tight, but do not force the controller into place.6.If required, screw the mounting bracket of the controller to the back panel rail of the computer.7.Replace the cover.8.Plug in and power on your computer.Your PCI controller is installed.PXI Controllers1.Power off and unplug your chassis.CautionTo protect yourself and the computer from electrical hazards, the computershould remain unplugged until the installation is complete.2.Choose an unused +3.3 V or +5V peripheral slot and remove the filler panel.3.Touch a metal part on your chassis to discharge any static electricity that might be on your clothes or body. Static electricity can damage your controller.4.Insert your PXI controller into the chosen slot. Use the injector/ejector handle to fully inject the device into place.5.Screw the front panel of the PXI controller to the front panel mounting rails of the chassis.6.Visually verify the installation.7.Plug in and power on the chassis.Your PXI controller is installed.IEEE 1394NoteIf you are not using the BP-1 battery pack, follow the instructions in this section. If you are using the BP-1 battery pack, follow the installation instructions in your BP-1 Battery Pack Installation Guide and then begin with step 2.1.Connect the power cord to the wall outlet and the IEEE 1394 controller.2.Connect the IEEE 1394 cable from the computer or any otherIEEE 1394 device tothe port on your FW controller. Your computer© National Instruments Corporation 5Getting Started with NI Motion Controlshould immediately detect the controller. The COM LED on the front panel blinks when the computer recognizes the controller.3.Verify that the power LED is on.Your FW controller is installed.Use the Power LED and the Communication LED (described below) to determine the state of the device.•Power LED –Power LED off —The controller is receiving no power. Either the power cord is unplugged or the power source is broken.–Power LED dim —The controller is receiving power but is not connected to an active IEEE 1394 port.–Power LED on —The controller is receiving power and is connected to an active IEEE 1394 port.•Communication LED—The COM LED blinks when the controller sends or receives any commands or data. This LED should blink once when you first plug in your controller. This light remains on or blinks continuously when large amounts of data are transferring.Firmware UpdatesFirmware is software that is loaded onto your NI motion controller.Firmware allows you to update your motion controller with new features and updates. The latest firmware is automatically installed onto your computer when you install the latest version of NI-Motion but must then be downloaded to your NI motion plete the following steps to update your firmware.1.Click the MAX icon on your desktop or select Start»Programs»National Instruments»Measurement &Automation to open MAX.2.Expand Devices and Interfaces in the configuration tree. An exclamation point on the motion controller icon indicates that the motion controller firmware is outdated and must be updated.3.Click once on the NI motion controller you wish to update.4.Click the Firmware tab at the bottom of the window. An exclamation point appears on each firmware sector requiring an update.5.Right-click the folder icon at the top of the firmware tree and select Update All Firmware Sectors , as shown in Figure2.Getting Started with NI Motion Control Figure 2. Updating Your FirmwareYour firmware is now updated.TipTo find NI-Motion updates, visit /motion and select Drivers & Downloads . For support questions, visit /support/motion .LabVIEW RT SetupUsing NI motion control with LabVIEW RT is designed to be almost identical to using NI motion control normally through a PCI motion controller in the host machine. The only difference is that you must map your remote PXI system to your local machine before you configure and initialize your motion system. Then, you can program your motion control application normally and retarget your application to the remote system. Refer to MAX for more information about mapping your remote system to your local machine.LabVIEW RT BenefitsBenefits of using LabVIEW RT with a remote system for NI motion control include the following:•Greater determinism than a Windows platform •Higher axis counts •Automatic RTSI support•Easier to program than onboard programming •More robust than a Windows PC-based motion system© National Instruments Corporation 7Getting Started with NI Motion ControlConfiguring Steppers and ServosThis section explains how to configure and test your motion control system. Before configuring your motor, install your motion hardware, including motion controller, motors, amplifiers, encoders, UMI (if necessary), limits, and home switches. Refer to the appropriate hardware documentation for installation instructions. For more information on configuring and tuning your motion control system, visit /support/motion .Note You must have a complete hardware setup to configure and test your servo system.NoteNI recommends having the NI motion controller axis inhibit outputs connected to the drive. Inhibit outputs are typically used to disable the servo or stepper drive for power savings, safety, or specific application reasons. For more information about inhibit outputs, refer to the NI-Motion User Manual .To configure a stepper motor or test your system without a motor, refer to the following information in the left column. For servo motors, refer to the information in the right column.Depending on the servo system, tuning may be required before making a move. For more information about tuning a servo system, refer to the NI-Motion User Manual.Getting Started with NI Motion © National Instruments Corporation9Getting Started with NI Motion Control3.Set the values for Encoder counts perrevolution and Stepper steps perrevolutions in MAX. Refer to your motoror encoder documentation for the correctvalues.4.Click Apply on the toolbar.5.Click Initialize on the MAX toolbar toinitialize your motion controller.Step 7Perform a closed-loop stepper test.1.Click 1-D Interactive in the configurationtree.2.Click Apply at the bottom of the window.3.Click Kill on the toolbar.4.Rotate your motor by hand. The Positionfield under Current Trajectory Datashould change as you turn your motor. You have successfully configured and tested your motion controller and encoders.You have successfully configured and tested your motion controller.Getting Started with NI Motion DocumentationThis section summarizes each piece of documentation included with yourNI motion controller and the NI-Motion software. Use this information todetermine which piece of documentation will be useful for your task.•Motion controller hardware user manual—The hardware usermanual describes the electrical and mechanical aspects of your motioncontroller and contains information about its installation andoperation.•NI-Motion User Manual—The software user manual is task-basedand takes you through each phase of designing and executing a motionapplication. This document contains information about selecting amotor, how to design a basic move, how to design a multi-axis move,incorporating vision and DAQ into motion applications, and how towork with common motion concepts, such as BODE analysis,contouring, and breakpoints.•NI-Motion ReadMe—This document contains any changes made tothe software, the usual “What’s New” information, as well as systemrequirements and any known issues.•NI-Motion C Reference Help—This help file for C and Visual Basicenvironment applications includes dedicated function reference files,and provide details about each function, including description,parameters, illustrations (diagram or code), and error codes.•NI-Motion VI Help—This help file for LabVIEW applicationsincludes dedicated VI reference files, and provide details about eachVI, including description, control and input terminals, usage,illustrations (diagram or code), and error codes.•MAX for Motion Online Help—This help file provides informationabout using MAX to configure your motion controller.© National Instruments Corporation11Getting Started with NI Motion Control。

NI-Tutorial-数据采集(DAQ)基础知识

NI-Tutorial-数据采集(DAQ)基础知识

PC传感器信号调理数据采集硬件软件图1 典型的基于 PC的DAQ系统: 文件类型技术指南图2 用于插入式数 据采集设备的 SCXI信号调理的 前端系统放大功能——放大是最为普遍 的信号调理功能。

例 如,需要对热电偶的 信号进行放大以提高 分辨率和降低噪声。

为了得到最高的分辨 率,要对信号放大以 使调理后信号的最大 电压范围和ADC的最大输入范围相等。

又例如,SCXI有 多种信号调理模块可 以放大输入信号。

在 临近传感器的 SCXI机箱内对低 电压信号进行放大, 然后把放大后的高电 压信号传送到PC, 从而最大限度地降低噪声对读数的影响。

隔离功能——另一种常见的信 号调理应用是为了安 全目的把传感器的信 号和计算机相隔离。

被监测的系统可能产 生瞬态的高压,如果 不使用信号调理, 这种高压会对计算机 造成损害。

使用隔离的另一原因是为了 确保插入式数据采集 设备的读数不会受到 接地电势差或共模电 压的影响。

当数据采 集设备输入和所采集 的信号使用不同的参 考“地线”,而一旦 这两个参考地线有电势差,就会带来麻 烦。

这种电势差会产 生所谓的接地回路, 这样就将使所采集信 号的读数不准确;或 者如果电势差太大, 它也会对测量系统造 成损害。

使用隔离式 信号调理能消除接地回路并确保信号可以 被准确地采集。

例 如,SCXI- 1120和 SCXI-1121 模块能提供高达 250 Vrms的 共模电压隔离, SCXI-1122 能提供高达450 Vrms电压隔离。

多路复用功能——多路复用是使用 单个测量设备来测量 多个信号的常用技 术。

模拟信号的信号 调理硬件常对如温度 这样缓慢变化的信号 使用多路复用方式。

ADC采集一个通道后,转换到另一个通 道并进行采集,然后 再转换到下一个通 道,如此往复。

由于 同一个ADC可以采 集多个通道而不是一 个通道,每个通道的 有效采样速率和所采 样的通道数呈反比。

NI 9202 Getting Started Guide

NI 9202 Getting Started Guide

GETTING STARTED GUIDENI 920216 AI, ±10 V, 24 bit, 10 kS/s/ch SimultaneousThis document explains how to connect to the NI 9202. In this document, the NI 9202 with spring terminal and the NI 9202 with DSUB are referred to inclusively as the NI 9202.Note Before you begin, complete the software andhardware installation procedures in your chassisdocumentation.Note The guidelines in this document are specific tothe NI 9202. The other components in the system mightnot meet the same safety ratings. Refer to thedocumentation for each component in the system todetermine the safety and EMC ratings for the entiresystem.Safety GuidelinesOperate the NI 9202 only as described in this document.Caution This icon denotes a caution, which advisesyou to consult documentation where this symbol ismarked.2| | NI 9202 Getting Started GuideCaution Do not operate the NI 9202 in a manner notspecified in this document. Product misuse can result ina hazard. You can compromise the safety protectionbuilt into the product if the product is damaged in anyway. If the product is damaged, return it to NI forrepair.Hazardous Voltage This icon denotes a warningadvising you to take precautions to avoid electricalshock with the NI 9202 with spring terminal. Safety VoltagesConnect only voltages that are within the following limits:Maximum voltage1Channel-to-COM±30 V DC maximum, up to 6channels at a time1The maximum voltage that can be applied or output between AI and COM without creating a safety hazard.NI 9202 Getting Started Guide| © National Instruments| 3NI 9202 with Spring Terminal Isolation Voltages Channel-to-channel NoneChannel-to-earth groundContinuous250 V RMS, MeasurementCategory IIWithstandup to 5,000 m3,000 V RMS, verified by a 5 sdielectric withstand test Measurement Category II is for measurements performed on circuits directly connected to the electrical distribution system. This category refers to local-level electrical distribution, such as that provided by a standard wall outlet, for example, 115 V for U.S. or 230 V for Europe.Caution Do not connect the NI 9202 with springterminal to signals or use for measurements withinMeasurement Categories III or IV.4| | NI 9202 Getting Started GuideNI 9202 with DSUB Isolation VoltagesChannel-to-channel NoneChannel-to-earth groundContinuous60 V DC, MeasurementCategory IWithstandup to 2,000 m1,000 V RMS, verified by a 5 sdielectric withstand testup to 5,000 m500 V RMSMeasurement Category I is for measurements performed on circuits not directly connected to the electrical distribution system referred to as MAINS voltage. MAINS is a hazardous live electrical supply system that powers equipment. This category is for measurements of voltages from specially protected secondary circuits. Such voltage measurements include signal levels, special equipment, limited-energy parts of equipment, circuits powered by regulated low-voltage sources, and electronics.NI 9202 Getting Started Guide| © National Instruments| 5Caution Do not connect the NI 9202 with DSUB tosignals or use for measurements within MeasurementCategories II, III, or IV.Note Measurement Categories CAT I and CAT O areequivalent. These test and measurement circuits are forother circuits not intended for direct connection to theMAINS building installations of MeasurementCategories CAT II, CAT III, or CAT IV.Safety Guidelines for Hazardous VoltagesYou can connect hazardous voltages only to the NI 9202 with spring terminal. Do not connect hazardous voltages to theNI 9202 with DSUB.If hazardous voltages are connected to the device, take the following precautions. A hazardous voltage is a voltage greater than 42.4 V pk voltage or 60 V DC to earth ground.Caution Ensure that hazardous voltage wiring isperformed only by qualified personnel adhering to localelectrical standards.Caution Do not mix hazardous voltage circuits andhuman-accessible circuits on the same module.6| | NI 9202 Getting Started GuideCaution Ensure that devices and circuits connected tothe module are properly insulated from human contact.Note When module terminals are hazardous voltageLIVE (>42.4 V pk/60 V DC), you must ensure thatdevices and circuits connected to the module areproperly insulated from human contact. You must usethe NI 9940 connector backshell kit with the NI 9202with spring terminal to ensure that the terminals are notaccessible.Safety Guidelines for Hazardous LocationsThe NI 9202 is suitable for use in Class I, Division 2, Groups A, B, C, D, T4 hazardous locations; Class I, Zone 2, AEx nA IIC T4 Gc and Ex nA IIC T4 Gc hazardous locations; and nonhazardous locations only. Follow these guidelines if you are installing the NI 9202 in a potentially explosive environment. Not following these guidelines may result in serious injury or death.Caution Do not disconnect I/O-side wires orconnectors unless power has been switched off or thearea is known to be nonhazardous.NI 9202 Getting Started Guide| © National Instruments| 7Caution Do not remove modules unless power hasbeen switched off or the area is known to benonhazardous.Caution Substitution of components may impairsuitability for Class I, Division 2, or Zone 2.Caution The system must be installed in an enclosurecertified for the intended hazardous (classified)location, having a tool secured cover/door, where aminimum protection of at least IP54 is provided.Electromagnetic Compatibility Guidelines This product was tested and complies with the regulatory requirements and limits for electromagnetic compatibility (EMC) stated in the product specifications. These requirements and limits provide reasonable protection against harmful interference when the product is operated in the intended operational electromagnetic environment.This product is intended for use in industrial locations. However, harmful interference may occur in some installations, when the product is connected to a peripheral device or test object, or if the 8| | NI 9202 Getting Started Guideproduct is used in residential or commercial areas. To minimize interference with radio and television reception and prevent unacceptable performance degradation, install and use this product in strict accordance with the instructions in the product documentation.Furthermore, any changes or modifications to the product not expressly approved by National Instruments could void your authority to operate it under your local regulatory rules.Caution To ensure the specified EMC performance ofthe NI 9202 with DSUB, the length of all I/O cablesmust be no longer than 30 m (100 ft).Caution To ensure the specified EMC performance,operate the NI 9202 with DSUB only with shieldedcables and accessories. Do not use unshielded cables oraccessories unless they are installed in a shieldedenclosure with properly designed and shielded input/output ports and connected to the product using ashielded cable. If unshielded cables or accessories arenot properly installed and shielded, the EMCspecifications for the product are no longer guaranteed.NI 9202 Getting Started Guide| © National Instruments| 9Special Conditions for Marine ApplicationsSome products are Lloyd’s Register (LR) Type Approved for marine (shipboard) applications. To verify Lloyd’s Register certification for a product, visit /certification and search for the LR certificate, or look for the Lloyd’s Register mark on the product.Caution In order to meet the EMC requirements formarine applications, install the product in a shieldedenclosure with shielded and/or filtered power andinput/output ports. In addition, take precautions whendesigning, selecting, and installing measurement probesand cables to ensure that the desired EMC performanceis attained.10| | NI 9202 Getting Started GuideEnvironmentalRefer to the manual for the chassis you are using for more information about meeting these specifications. Operating temperature(IEC 60068-2-1, IEC 60068-2-2)-40 °C to 70 °CStorage temperature(IEC 60068-2-1, IEC 60068-2-2)-40 °C to 85 °C Ingress protection IP40Operating humidity (IEC 60068-2-78)10% RH to 90% RH, noncondensingStorage humidity (IEC 60068-2-78)5% RH to 95% RH, noncondensingPollution Degree2Maximum altitude5,000 mIndoor use only.NI 9202 Getting Started Guide| © National Instruments| 11NI 9202 Pinout12| | NI 9202 Getting Started GuideGrounded Differential ConnectionsNI 9202 Getting Started Guide| © National Instruments| 13Floating Differential ConnectionsConnect the negative lead to COM through a 1 MΩ resistor to keep the signal source within the common-mode voltage range. The NI 9202 does not read data accurately if the signal source is outside of the common-mode voltage range.14| | NI 9202 Getting Started GuideSingle-Ended ConnectionsConnect the ground signal to COM to keep the signal source within the common-mode voltage range.NI 9202 Getting Started Guide| © National Instruments| 15Differential Connections with Common Mode VoltageNI 9202 Connection Guidelines•Make sure that devices you connect to the NI 9202 are compatible with the module specifications.•You must use 2-wire ferrules to create a secure connection when connecting more than one wire to a single terminal on the NI 9202 with spring terminal.16| | NI 9202 Getting Started Guide•For the NI 9202 with spring terminal, push the wire into the terminal when using a solid wire or a stranded wire with aferrule.•For the NI 9202 with spring terminal, open the terminal by pressing the push button when using stranded wire without a ferrule.High-Vibration Application ConnectionsIf your application is subject to high vibration, NI recommends that you use the NI 9940 backshell kit to protect connections to the NI 9202 with spring terminal.Overvoltage ProtectionThe NI 9202 provides overvoltage protection for each channel.Note Refer to the device datasheet on /manualsfor more information about overvoltage protection.NI 9202 Getting Started Guide| © National Instruments| 17Where to Go NextLocated at /manuals18 | | NI 9202 Getting Started GuideWorldwide Support and ServicesThe NI website is your complete resource for technical support. At /support, you have access to everything from troubleshooting and application development self-help resources to email and phone assistance from NI Application Engineers. Visit /services for NI Factory Installation Services, repairs, extended warranty, and other services.Visit /register to register your NI product. Product registration facilitates technical support and ensures that you receive important information updates from NI.A Declaration of Conformity (DoC) is our claim of compliance with the Council of the European Communities using the manufacturer’s declaration of conformity. This system affords the user protection for electromagnetic compatibility (EMC) and product safety. You can obtain the DoC for your product by visiting /certification. If your product supports calibration, you can obtain the calibration certificate for your product at /calibration.NI 9202 Getting Started Guide| © National Instruments| 19NI corporate headquarters is located at11500 North Mopac Expressway, Austin, Texas, 78759-3504. NI also has offices located around the world. For telephone support in the United States, create your service request at /support or dial 1 866 ASK MYNI (275 6964). For telephone support outside the United States, visit the Worldwide Offices section of /niglobal to access the branch office websites, which provide up-to-date contact information, support phone numbers, email addresses, and current events.Information is subject to change without notice. Refer to the NI Trademarks and Logo Guidelinesat /trademarks for information on NI trademarks. Other product and company names mentioned herein are trademarks or trade names of their respective companies. For patents covering NI products/technology, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your media, or the National Instruments Patent Notice at / patents. Y ou can find information about end-user license agreements (EULAs) and third-party legal notices in the readme file for your NI product. Refer to the Export Compliance Information at/legal/export-compliance for the NI global trade compliance policy and how to obtain relevant HTS codes, ECCNs, and other import/export data. NI MAKES NO EXPRESS OR IMPLIED WARRANTIES AS TO THE ACCURACY OF THE INFORMATION CONTAINED HEREIN AND SHALL NOT BE LIABLE FOR ANY ERRORS. U.S. Government Customers: The data contained in this manual was developed at private expense and is subject to the applicable limited rights and restricted data rights as set forth in FAR 52.227-14, DFAR 252.227-7014, and DFAR 252.227-7015.© 2017 National Instruments. All rights reserved.378030B-01August 10, 2017。

NI cDAQ-9185 9189 扩展温度、以太网编程设备快速入门指南说明书

NI cDAQ-9185 9189 扩展温度、以太网编程设备快速入门指南说明书

주의警告 安装设备之前,请阅读所有产品文档,确保符合安全、NI-DAQmx DVD DocumentationPowerConnector Power Supply ScrewdrivercDAQ-9185 or cDAQ-9189Contents I Contenu I Inhalt内容 I 내용 I 内容Start Here I Commencez ici I Hier beginnen開始 I 시작 I 入门First, install application development software (if applicable). Then install NI-DAQmx driver software.Commencez par installer le logiciel de développement d’applications (le cas échéant). Ensuite, installez le driver NI-DAQmx.Installieren Sie zuerst die Entwicklungsumgebung (sofern zutreffend) und anschließend den NI-DAQmx-Treiber.アプリケーション開発ソフトウェアをインストールします(必要な場合)。

続いて、NI-DAQmx ドライバソフトウェアをインストールします。

우선 어플리케이션 개발 소프트웨어를 설치합니다 (적용 가능한 경우). 그 다음 NI-DAQmx드라이버 소프트웨어를 설치합니다.先安装应用程序开发软件(如有需要), 然后安装NI-DAQmx驱动软件。

NI-DAQmx NI LabVIEWConnect the cDAQ chassis to earth ground. Then install C Series modules. Refer to the module getting started guide for signal connections.Connectez le châssis cDAQ à la terre. Ensuite, installez les modules de la Série C. Veuillez consulter les guides d’installation des modules pour les connexions du signal.Erden Sie das cDAQ-Chassis. Installieren Sie danach die C-Serien-Module. Wie die einzelnen Anschlüsse zu verbinden sind, ist in der Erste-Schritte-Anleitung zum Modul beschrieben.cDAQシャーシをアースに接続します。

National Instruments(NI)电路设计套餐版本10.0 Release Notes

National Instruments(NI)电路设计套餐版本10.0 Release Notes

RELEASE NOTESNI Circuit Design SuiteVersion 10.0These release notes contain system requirements for NI Circuit Design Suite 10.0,as well as information about product tiers, new features, documentation resources,and other changes since Multicap 9.0, Multisim 9.0, and Ultiboard 9.0.NI Circuit Design Suite includes the following familiar Electronics Workbenchsoftware products: NI Multisim, NI Ultiboard, and the NI Multisim MCU Module(formerly MultiMCU).ContentsInstalling NI Circuit Design Suite 10.0 (2)Minimum System Requirements (2)Installation Instructions (2)Product Activation (3)What’s New in NI Circuit Design Suite 10.0 (3)Mouse-Click Support for Interactive Components (3)Convergence Assistant (4)Increased Quality and Breadth of the Component Database (4)New Components from Leading Manufacturers (4)Generic Power Simulation Parts (4)Bipolar Sources (4)Graphical LCD (5)Single Symbol Representations of Standard Logic Components (5)Enhancements to Passive Components (5)Extended SPICE Modeling Capabilities (5)Parameterized SPICE models (5)Improved Support of Behavioral Sources (5)Support for BSIM 4 Parameters (6)Enhanced Data Visualization (6)Advanced Functionality of Static Probes (6)Add Traces to Grapher after Running Analyses (6)Display Initial Conditions on the Schematic (6)Current Probe Instrument (6)Enhanced Analysis Capabilities (6)Extended Language Support and File Management in the MCU Module (7)Improvements to Speed and Quality of NI Ultiboard (7)Advanced Options for Exported Data Interpolation (7)Miscellaneous Features (8)Unicode Characters (8)NI Installation and License Management (8)Product Tier Details (8)Documentation (14)Installing NI Circuit Design Suite 10.0This section describes the system requirements and installation procedures forNI Circuit Design Suite.Minimum System RequirementsTo run NI Circuit Design Suite 10.0, National Instruments recommends that yoursystem meet the following requirements:•Windows 2000 Service Pack 3 or later, or Windows XP•Pentium 4 class microprocessor or equivalent (Pentium III class minimum)•512 MB of memory (256 MB minimum)• 1.5 GB of free hard disk space (1 GB minimum)•Open GL® capable 3D graphics card recommended (SVGA resolution videoadapter with 800×600 video resolution minimum, 1024×768 or higherpreferred)•To develop custom LabVIEW based instruments for use in Multisim,LabVIEW 8.0.x or higher is requiredInstallation InstructionsThe NI Circuit Design Suite 10.0 installer installs all products in the suite:Multisim, Ultiboard, and the Multisim MCU Module.National Instruments recommends that you close all open applications before youinstall NI Circuit Design Suite.Unless you specify another location during installation, the NI Circuit DesignSuite installation program copies files to <Program Files>\NationalNI Circuit Design Suite Release Instruments\Circuit Design Suite10.0 after you complete thefollowing steps:1.Insert the NI Circuit Design Suite CD into the CD-ROM drive. If the CDstartup screen is not visible, select Run from the Windows Start menu and runsetup.exe from your CD.2.Follow the instructions in the dialog boxes.Product ActivationWhen you run a product in the NI Circuit Design Suite for the first time, it willprompt you to activate a license for that product.Note: To run the Multisim MCU Module, place a component from the MCUModule group on a Multisim circuit or open a Multisim file that contains acomponent from the MCU Module group.If you do not activate a valid license, the product will run in Evaluation Mode andcontinue to prompt you to activate a license on each subsequent run. EvaluationMode is valid for 30 days following the first run of the product.For information about how to activate your software product, please refer to theActivation Instructions for National Instruments Products Note to Users includedwith your NI Circuit Design Suite 10.0 package.What’s New in NI Circuit Design Suite 10.0This document describes the following new features ofNI Circuit Design Suite 10.0:•Mouse-Click Support for Interactive Parts•Convergence Assistant•Increased Quality and Breadth of the Component Database•Extended SPICE Modeling Capabilities•Enhanced Data Visualization•Extended Analysis Capabilities•Extended Programming and File Management in the MCU Module•Improvements to Speed and Quality of NI Ultiboard•Advanced Options for Exported Data Interpolation•Miscellaneous FeaturesMouse-Click Support for Interactive ComponentsNI Multisim 10.0 lets you use your mouse to control interactive componentsduring simulation. You can click on switches to toggle them, push keypad buttonswith the mouse, and adjust the value of the variable components, such asNational Instruments Corporation3NI Circuit Design Suite Release Notespotentiometers, with a slider bar. You may also continue to use keyboard controlsfor these devices.Convergence AssistantThe Convergence Assistant adjusts simulation settings when a "Time Step TooSmall" error occurs during interactive simulation. The assistant adjusts theminimum number of parameters required in order to allow convergence of thesimulation. The assistant adjusts the following parameters:1.Initial Condition2.TMAX3.RELTOL4.RSHUNT5.ITL16.Integration method7.GMINIncreased Quality and Breadth of the Component DatabaseNI Multisim 10.0 has a number of new additions and improvements to thecomponent database. These include: around 1,000 new components from leadingmanufacturers, generic power simulation parts, new bipolar sources, a GraphicalLCD, single symbol representations of standard logic components, andimprovements to passive components.New Components from Leading ManufacturersNI Multisim 10.0 has approximately 1,000 new components with models fromAnalog Devices, Texas Instruments, and Linear Technologies. These additionsinclude symbols, models, and IPC-standard landpatterns. Components includeoperational-amplifier, comparator, and voltage reference models.Generic Power Simulation PartsNI Multisim 10.0 includes models for all power simulation parts found in the"Switch-Mode Power Supply SPICE Cookbook" by Christophe Basso. Thesecomponents include Buck, Boost, Buck-Boost, and PWM controllers. Theirmodels include voltage and current mode controlled devices, and models foraverage and detailed transient operation.Bipolar SourcesNew bipolar pulse sources include both current and voltage sources.NI Circuit Design Suite Release Graphical LCDA Graphical LCD is available for users who purchase the MCU Module inconjunction with NI Multisim. The command system for the Graphical LCDfollows the Toshiba T6963C. The graphical LCD is a two-color device with 256 x256 pixel display resolution. This device supports three modes of operation:text-only, graphics-only, and mixed text and graphics.Single Symbol Representations of Standard LogicComponentsIn addition to the multi-section component representation of standard logiccomponents such as logic gates and flip-flops, the component database nowincludes single symbol representations of common components. Thesesingle-symbol representations show the power and ground pins of these devices.Enhancements to Passive ComponentsYou can now change the value of any resistor, capacitor, or inductor placed on theschematic without replacing it. You can also assign a landpattern to any passivecomponent. You can assign information about the type of component, for instancemetal-oxide, and this information propagates to the Bill of Materials. Thetolerance of the components is automatically available for Monte-Carlo and WorstCase analyses, and you can edit the tolerances in the spreadsheet.An advanced non-linear inductor model lets you define the inductor characteristicsbased on datasheet values.Extended SPICE Modeling CapabilitiesNI Multisim 10.0 introduces enhancements to its SPICE modeling capabilities,including parameters in SPICE subcircuit models, improved support of behavioralsources, and support for BSIM 4 parameters.Parameterized SPICE modelsYou may now define parameters in the .subcircuit line of SPICE macro-models inNI Multisim. The definition of parameters is as follows..subckt<subckt_name><node_list>PARAMS:param_name=value,...You may then use the parameter name in place of a value in the macro-model. Thevalue of the parameter is editable in the component dialog on the schematic.Improved Support of Behavioral SourcesBehavioral sources now support nested instances of IF statements.National Instruments Corporation5NI Circuit Design Suite Release NotesSupport for BSIM 4 ParametersNI Multisim 10.0 supports the standard BSIM 4 parameters for MOSFET models.BSIM 4 supports up to 400 parameters. More information about BSIM 4 isavailable at /~bsim3/bsim4.html.Enhanced Data VisualizationNI Multisim 10.0 includes a number of improvements to the way you configureand view results. These include: advanced functionality of the static probes, theability to add traces to the Grapher after running a simulation, the ability to displaythe initial conditions of components on the schematic, a current probe instrument,and improvements to the memory and register displays of MCUs.Advanced Functionality of Static ProbesPlaced (static) probes now include a reference designator, which allows you toselect another probe as a reference net. In previous versions of NI Multisim, allprobes referenced ground. You can also use probe reference designators to selectwhich traces to view in analyses.Add Traces to Grapher after Running AnalysesYou can add traces to the Grapher view after running an analysis, and select whattype of data you want NI Multisim to store.Display Initial Conditions on the SchematicYou can choose to display the initial conditions of capacitors and inductors on theschematic.Current Probe InstrumentThe current probe instrument is a virtual representation of a real current probe thatconnects to an oscilloscope. You connect one end of the probe to a net on theschematic and the other to the input to an oscilloscope. You can set the ratio ofamps to volts displayed on the instrument. Note that the units remain in volts onthe oscilloscope.Enhanced Analysis CapabilitiesNI Multisim 10.0 now allows you to evaluate more expressions before and afterrunning analyses. The definitions of the expressions are:1.avg(X) — Running average of the vector X2.avg(X, d) — Running average of the vector X over dNI Circuit Design Suite Release 3.envmax(X, n) — Upper envelope of the vector X where n is the number ofpoints on either side of a peak that must be less than the value for a peak to beidentified4.envmin(X, n) — Lower envelope of the vector X where n is the number ofpoints on either side of a peak that must be less than the value for a peak to beidentified5.grpdelay(X) — Group delay of X with results in seconds6.rms(X) — Running RMS average of vector X7.integral(X) — Running integral of vector X8.sgn(X) — The sign or signum of a real number. It is -1 for a negative number,0 for the number zero, and 1 for a positive number.Extended Language Support and File Management in the MCU ModuleThe MCU Module, formerly MultiMCU, supports C-code in addition to Assemblylanguage. It has a code manager that lets you use multiple files to define theoperation of the microcontrollers in the design. You can have header files and uselibraries. You can also load in externally assembled binary files and view them indisassembled format.Improvements to Speed and Quality of NI UltiboardNI Ultiboard 10.0 contains enhancements to the quality of the product that includeimprovements to the speed of trace-placment and the ability to select whether ornot to plate through-holes. Exported Gerber files do not contain mosaics in thepolygons. Quality improvements in the landpatterns include: pin mappings fromsymbols to IC pin-outs and landpattern shapes and sizes in the database. All newlandpatterns follow IPC standards.Advanced Options for Exported Data InterpolationWhen exporting simulation data from NI Multisim to other NI data formats suchas LVM or TDM files, you can choose the interpolation technique that best suitsthe signal. You can also control the interpolation method used when sendingsimulation data to NI LabVIEW based instruments running inside of NI Multisim.The interpolation methods include:•Coerce•Linear Interpolation•Spline InterpolationNational Instruments Corporation7NI Circuit Design Suite Release NotesMiscellaneous FeaturesSome of the other features added to the new suite include Unicode charactersupport and NI installation and license management.Unicode CharactersAll products in NI Circuit Design Suite 10.0 support Unicode characters. Thisfeature allows you to use Cyrillic and Asian fonts inside the products.NI Installation and License ManagementAll products in NI Circuit Design Suite adhere to the standard method used toinstall and activate National Instruments software. You can activate the softwareautomatically via the internet, or manually via a web browser, phone call, oremail.Product Tier DetailsThe following lists the schematic capture functionality available in MultisimStudent and Education editions:Functionality Student EducationCustomizable GUI X XScreen-capture utility X XComments on schematic X XCircuit annotations X XModeless part placement and wiring X XFast retrieval parts bins X XAuto and manual wiring X XVirtual wiring by node name X XRubber banding on part move X XFast auto-connect passives X XSubcircuits X X3-dimensional breadboarding X XVirtual NI ELVIS X XEmbedded questions - view and respond X XNI Circuit Design Suite Release Functionality Student EducationForward/Back annotation with Ultiboard X XCross-probing with Ultiboard X XBus-vector connect XSpreadsheet view XDesign constraints for layout XAdvanced search XZoom to selected part XCorporate database XUser defined fields XXSave components to database fromworkspaceMultiple circuits open XEmbedded questions - create and edit XElectrical rules check XGraphically mark no-connect pins XHierarchical designs XMultisheet designs XProject manager XReports - including bill of materials XPin and gate swap XExport to Mentor PADS layout XDevice library Partial CompleteMaximum components in design50UnlimitedNational Instruments Corporation9NI Circuit Design Suite Release NotesThe following lists the simulation functionality available in Multisim Student andEducation editions:Functionality Student EducationInteractive simulation X XFully mixed-mode A/D simulation X XStandard SPICE 3X5/XSPICE X XEnhanced model support X XPSPICE model simulation* X XSpeed/Accuracy tradeoffs X XSimulation advisor X XConvergence assistant X XVirtual, interactive, animated parts X XMouse click support for interactive parts X XRated components X XInsert faults into components X XMeasurement Probes X XComponent Wizard X XNI measurement data file sources X XNI measurement data file export X XX XNI LabVIEW VIs as instruments andsourcesMicrophone & speaker X XCircuit restrictions X XGrapher & Postprocessor X XRF design kit X XCircuit wizards XC-Code modeling XDescription box synced with simulation XLadder diagrams/components XModel makers XNI Circuit Design Suite Release Load and save simulation profiles XVirtual Instruments 2222Analyses1018Co-simulation of MCUs Add On Add On* Does not support all PSpice syntaxThe following lists the layout functionality available in Ultiboard Student andEducation editions:Functionality Student EducationPush and Shove trace placement X XReal-time & from copper ratsnest X XReal-time polygon update with voiding X XForward/Backward annotation X XCross-probing with Multisim X XReal-time DRC X X64 layers and 1 nanometer resolution X XComprehensive Footprint Wizard X XEnhanced 3D visualization with print X XUser annotations X XFull screen mode XGerber, DXF, IPC-D-356A, SVG output XDimensions on PCB and Landpatterns XDimensions in Database Manager XNet bridges X3D visualization inside circuit board XTurn off ratsnest for selected nets XGridless follow-me placement XLoad and save technology files XPolar Grids XNational Instruments Corporation11NI Circuit Design Suite Release NotesCustomizable layer viewing XSplit power-planes XKeep-in/Keep-out areas XPlace components in array XUnplace all components XRuler bar alignments and measurements XAuto-alignment XSave PCB Design as a component XPermanent grouping XPin & gate swapping XMultiple clearances XJump to Error XEquispace trace support XDifferential Impedance Calculator XTransmission Line Calculator XMicrovias XTest point insertion XAutomatic tear-dropping XPin necked trace support XAutomatic jumper insertion XCopy Route & Replica Place functions XIn-place footprint editor XMechanical CAD XExport 3D info in 3D IGES, DXF formats XCopper amount report XTest point report XCustomization of report generation XMultiple open documents XNI Circuit Design Suite Release National Instruments Corporation 13NI Circuit Design Suite Release NotesThe following lists the autorouting functionality available in Ultiboard Student and Education editions:Number of pins supported 3501,000Spreadsheet viewLimitedCompleteFunctionalityStudentEducationFully customizable cost factors X X Progressive Routing X X Interactive autorouting X X Constraint driven routingX X Manual pre-placement: components, vias, tracesX X Auto Block Capacitor recognition X X SMD mirroring X X Trace rubberbandingX X Follows keep-in/keep-out criteria X X Pin number limit3501,000Maximum number of layers24DocumentationNI Circuit Design Suite 10.0 includes a complete documentation set featuringprinted and electronic resources for your reference.The following printed and electronic resource is available:•Getting Started with NI Circuit Design Suite GuideThe following electronic resources are available in PDF files:•Multisim User Guide•Multisim Component Reference Guide•Multisim for Educators Guide•Multisim MCU Module User Guide•Ultiboard User GuideTo access the User Guides, select Start > All Programs > National Instruments >Circuit Design Suite 10.0 > Documentation and then select the file of interest.The following online help files are available from the installed software Helpmenu and from the Start Menu:•Multisim Education Edition Help File•Ultiboard Help FileTo access the Help Files, select Start > All Programs > National Instruments >Circuit Design Suite 10.0 > Documentation and then select the file of interest.The following online help files are available from the installed software Helpmenu:•Component Reference Education Edition Help File•Multisim Symbol Editor Help File•Multisim Title Block Editor Help FileNI Circuit Design Suite Release National Instruments, NI, , and LabVIEW are trademarks of National Instruments Corporation.Refer to the Terms of Use section on /legal for more information about National Instrumentstrademarks. Ultiboard is a registered trademark and Multisim and Electronics Workbench aretrademarks of Electronics Workbench. Other product and company names mentioned herein aretrademarks or trade names of their respective companies.374480A-01 Jan07© 2007 National Instruments Corp. All rights reserved.。

NI--用C语言给NI公司数据采集卡编程序进行电压数据采集

NI--用C语言给NI公司数据采集卡编程序进行电压数据采集

NI--⽤C语⾔给NI公司数据采集卡编程序进⾏电压数据采集NI公司有很多款性能⽐较好的数据采集卡,我实验室有数据采集卡6353和USB-6210,都是USB连接电脑,只是供电⽅式不同,通道数⽬不同,我都编过⼀些程序,程序编写是⼀样的,都是调⽤NI公司提供的DAQmx⾥⾯的函数,让数据采集卡按照我们的要求⼯作,这⾥我只介绍USB-6210吧。

刚开始学数据采集卡时,关于数据采集卡的C语⾔程序时不好找,⼤多数是通过NI公司的labview控制的,⽤C语⾔控制的⽐较少,所以在这⾥讲解⼀下,希望能对⼤家有⽤。

好,现在正式开始,最近⼏天在实验室采集压⼒传感器的数据,⽤的是NI公司的数据采集卡,压⼒传感器输出的是电压信号,经过数据采集卡的模数转换和采集以后传到电脑上,编程环境:VS2010和VS2015都可以。

⾸先,买数据采集卡的时候会带有⼀个光盘,这个光盘⾥⾯有很多产品信息和⼀些配套软件,⾸先安装NI-DAQmx驱动程序,具体的安装⽅法光盘⾥⾯的有个⽂档有专门讲解,挺简单的,就不介绍了,下⾯主要介绍⼀下如何编程控制数据采集卡。

先介绍C语⾔版的吧,安装完DAQmx驱动程序以后我们可以找到官⽅给的C语⾔例程:开始->所有程序->National Instruments->NI DAQmx->NI DAQmx范例/NI DAQmx ⽂档,范例可以找到例程,⽂档⾥⾯包含⼀些NI DAQmx的⽂档链接,⽂档⾥⾯对于编程最有⽤的是NI-DAQmx C Reference Help ,它提供了编程需要的API。

这个⽹上也可以搜到。

⾸先新建⼀个项⽬,项⽬建成以后开始编程,第⼀步:将NIDAQmx.h头⽂件和官⽅提供的库⽂件NIDAQmx.lib复制粘贴到所建项⽬下⾯第⼆步:在项⽬⾥⾯加⼊NIDAQmx.h头⽂件和NIDAQmx.lib第三步:在.cpp⽂件中将NIDAQmx.h头⽂件和NIDAQmx.lib加⼊,代码如下:#include "NIDAQmx.h"#pragma comment(lib,"NIDAQmx.lib")第四步:调⽤API中的函数编程序实现⾃⼰想实现的数据采集⽅式,数据采集⽅式有很多种,我常⽤的是每次采集有限个数据和连续不断的采集两种采集⽅式,这⾥介绍前⼀种数据采集⽅式,后⼀种采集⽅式的实现我会另外写⼀篇博客。

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Creating an Elegant LabVIEW User Interface: Alpha MasksPublish Date: Jan 19, 20141. Why an Alpha Mask?A successful GUI is intuitive and user friendly, which makes the user more efficient when interacting with the system. Today people interact with GUIs on phones, cars, laptops, and the web and these interfaces have set the standard for what people expect in a GUI. You can use this familiarity with existing GUI concepts to increase the efficiency with which your users interact with your software.A technique that is commonly used in web design is to gray out a webpage when a dialog box pops up. This semitransparent gray layer is called an alpha mask. Using an alpha mask to gray out the webpage brings the user’s focus and attention to the pop-up dialog and typically prevents the user from interacting with UI elements on the webpage while the dialog is up. After the user has finished interacting with the pop-up dialog, the alpha mask disappears and the user can once again interact with the UI elements on the webpage.This article explores how to use the Gnu Image Manipulation Program (), which is a free third-party application used to create an alpha mask that can be imported into NI systemGIMP LabVIEWdesign software. I chose GIMP for this tutorial because it is free and because I am accustomed to using it; however, you can duplicate these ideas in the image manipulation editor of your choosing.2. Creating an Alpha MaskAn alpha mask, for our purposes, is a semitransparent image that we assign to a custom control and use to gray out our interface while displaying a pop-up dialog. We can create the alpha mask using GIMP, and then import it into LabVIEW.Start by opening GIMP. On start-up, GIMP has three windows: the image editing window, the Layers window, and the Toolbox window.Figure 1. GIMP WindowsWithin the image editing window (far left window in Figure 1) go to File>>New, which opens the Create a New Image dialog (Figure 2).Figure 2. Create a New Image DialogOpen the Advanced Options in the Create a New Image dialog and set the “Fill with” field to “Transparency,” as seen in Figure 3, and then click the OK button.Figure 3. Create a New Image Dialog With Advanced OptionsYour image editing window now holds an image with a single transparent layer and should look like the window in Figure 4. You should also now see that you have a layer named “Background” in your Layers window.Figure 4. Image Editing Window With Transparent ImageFigure 5. Layers WindowNow use the Bucket Fill Tool found in the Toolbox window to paint your transparent layer any color you choose. For this exercise, I will paint it gray. Start by selecting the Bucket Fill Tool from the Toolbox window.Figure 6. Select Bucket Fill ToolNext change the foreground color by selecting the foreground color box from the Toolbox window.Figure 7. Select Foreground ColorClicking on the foreground color box brings up the Change Foreground Color dialog. This is where you can select the color you would like to use. I have selected a color with RGB values of R: 66, G: 66, and B: 66. After you have selected your color, click the OK button.Figure 8. Change Foreground Color DialogYou can now use the Bucket Fill Tool to paint your transparent layer in your image editing window. Your transparent layer should now be a solid color as in Figure 9.Figure 9. Painted LayerNow that you have painted your layer your desired color, you can make it semitransparent using the Opacity field on the Layers window as seen in Figure 10. I am going to set my opacity to 50 percent.Figure 10. Setting OpacityNow that you have created your semitransparent image, you need to save it using an image format that is capable of retaining the transparency of the image. You can save your image as a .PNG file, as the PNG format supports an embedded alpha channel. Do this by selecting File>>Export from the image editing window. This brings up the Export Image dialog.Figure 11. Export Image DialogBe sure that the PNG format is selected under the Select File Type drop-down menu. And then click the Export button.The Export Image as PNG dialog pops up. The default options are fine so click Export to continue.Figure 12. Export Image as PNG DialogNow that you have created a semitransparent image and exported it as a PNG file, you can bring it into LabVIEW and use it. You could simply drag the PNG image onto your front panel and use it as a decoration as seen in Figure 13 below, but this wouldn’t give you programmatic control over it.Figure 13. Transparent Image as DecorationInstead, you can create a custom control using the semitransparent PNG that you can then control programmatically using the VI Server. To do this, place a Classic Flat Square button from the Classic Boolean Palette on your front panel. The flat square Boolean from the Classic palette has fewer parts that need to be modified than Booleans from the Modern or Silver palettes.Figure 14. Classic Flat Square BooleanRight-click on the Classic Flat Square Boolean on the front panel and select Advanced>>Customize to open the Control Editor window.Figure 15. Right-Click MenuThe Control Editor window looks like a VI Front Panel, but it is only used for customizing a single control or indicator.Figure 16. Control Editor WindowThere is a Mode Indicator button on the Control Editor window toolbar that shows whether you are in edit or customize mode. Clicking this button toggles between the two modes.There is a Mode Indicator button on the Control Editor window toolbar that shows whether you are in edit or customize mode. Clicking this button toggles between the two modes.Figure 17. Control Editor Window in Edit ModeFigure 18. Control Editor Window in Customize ModeToggle the Mode Indicator button to change to Customize Mode as in Figure 18. While in Customize Mode, you can right-click the Flat Square Boolean and go to Picture Item, which displays the picture item associated with each of the four states of the Boolean control (Off, On, Off to On, On to Off). You need to replace each of these four picture items with your semitransparent PNG.Figure 19. Picture ItemTo replace each picture item with your semitransparent PNG, select the picture item, right-click the Boolean control, and then select Import Image from File…, navigating to the semitransparent PNG that you exported from GIMP.Figure 20. Replacing Picture ItemsBe sure to replace all four picture items with the semitransparent PNG.Figure 21. All Picture Items ReplacedAfter you have replaced all Picture Items, switch back to Edit Mode and save the custom control to disk.You now have an alpha mask custom control that you can act on programmatically. Here is example code for graying out an interface during a pop-up dialog.Figure 22. Sample CodeBelow is what the GUI looks like when code similar to this is called.Figure 23. Front Panel With Alpha Mask InvisibleFigure 24. Front Panel With Alpha Mask VisibleNotice how focus is brought to the pop-up dialog, and how the Save button is no longer accessible to the user because it is underneath the Alpha Mask Boolean.I recommend creating a few alpha mask custom controls of varying colors and saving them as part of your reuse library so that you don’t need to go through the process of creating one every time you need it. Adding them to a reuse library also allows them to be shared among a team of developers.-Jon McBee. McBee is a Senior Project Engineer at , an NI Platinum .Bloomy Controls Alliance PartnerUI Interest Group NI CommunityVisit the on the for more UI how-tos and best practices.。

相关文档
最新文档