版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Lesson 2LabVIEW FPGA BasicsEvaluating System Requirements FPGA System ArchitecturesRIO PlatformsSoftware InstallationWindows Hardware ConfigurationReal-Time Hardware ConfigurationCreating a LabVIEW FPGA ProjectFPGA Development FlowSimulate on PC to testCompile toFPGACreateFPGA VICreateFPGA Host VI(s
2、)CreateReal-Time Host VI(s)Configure HardwareSelect ArchitectureEvaluate SystemRequirementsLesson 2Lesson 3Lesson 8Create a LabVIEW ProjectLessons 4-7, 9-10 build on the development flowA. Evaluating System RequirementsFPGA?FPGA for WindowsPCIPXIFPGA for Real-TimeCompactRIOPXIPCINeed FPGA?Select RIO
3、 ArchitectureSelect a PlatformOther Considerations FPGA “Size”I/OConnectorsSystems demonstrated in Course exercisesB. FPGA System ArchitecturesLabVIEW FPGA Architecture on WindowsLabVIEW FPGA Architecture with LabVIEW Real-TimeFPGA WindowsReconfigurable FPGALabVIEW FPGA VIWindows SystemEnterpriseLab
4、VIEW For Windows VILabVIEWfor WindowsLabVIEW FPGAFPGA InterfaceFPGA Real-TimeReconfigurableFPGALabVIEW FPGA VIData StorageLabVIEW Real-Time SystemWindows SystemUserInterfaceTime-CriticalInterface VINormal PriorityVIWindowsHost VINetworkCommunicationInter-ThreadCommunicationFPGAInterfaceLabVIEWfor Wi
5、ndowsLabVIEW FPGALabVIEW Real-TimeLabVIEW Programming & CompactRIOUser InterfaceLabVIEW Real-Time ProcessorLabVIEW Real-TimeReconfigurable FPGALabVIEW FPGAC. Common Reconfigurable I/O (RIO) PlatformsPXI ExpressPXIPCI ExpressPCICompactRIOR Series Multifunction RIOPXI, PXI Express, or PCI form factorD
6、efine custom data acquisitionIntegrate FPGA with Analog and Digital I/OHigh channel countBuilding a CompactRIO SystemSelect the Reconfigurable ChassisNumber of slotsFPGA sizeIntegrated or notSelect the I/O and ConnectivityAnalog Input/Output, Digital Input/Output, (Low / high speed, simultaneous / m
7、ultiplexed)Standard connector depends on the moduleOptions: Strain Relief Connector Block, Custom Cable, etc.Select the Real-Time ControllerProcessor speedFlash memory sizeOther CompactRIO Form FactorsNI CompactRIOIntegrated ControllerNI Single-Board RIOFPGA “Size”Historically, FPGA size was measure
8、d by “gate count”The “larger” FPGA had more resources than a “smaller” FPGANow, FPGA logic blocks and resources differ so logic capacity and performance comparisons are trickyFPGAs include a variety of resources and logic blocksRAM, Multipliers, Flip-Flops, Look-up-Tables (LUTs)Logic blocks differ i
9、n capabilities4-input LUT vs. 6-input LUTDifficult to map LabVIEW VIs into FPGA resourcesXilinx compiler optimizes code based on FPGA architectureVerify that code fits by compiling for offline hardware targetsResource estimation takes significantly less time than compilationFPGA Resource TableVirtex
10、 II 1000Spartan 3 1000Virtex 5 LX30Virtex II 3000Virtex 5 LX50Spartan 3 2000Virtex 5 LX85Virtex 5 LX110Equivalent Logic Cells11,52017,28030,72032,25646,08046,08082,944110,592LUTs/FFs10,24015,36019,20028,67228,80040,96051,84069,120Multipliers4024329648404864Block RAM (Kb)7204321,1521,7281,7287203,456
11、4,608Sample NI ProductscRIO-9101cRIO-9072cRIO-9111PXI-7851RcRIO-9104PXI-7833RcRIO-9113PXI-7852RcRIO-9074cRIO-9116PXI-7853RPXI-7854RRefer to for more information.Exercise 2-1: Set up a CompactRIO SystemConnect and power up a CompactRIO system.Exercise 2-1: Set up a CompactRIO SystemIf you need to swa
12、p modules, do you first need to power off the CompactRIO system? Both the FPGA and USER1 LEDs are user-configurable. What do you think are their differences?D. Software InstallationBefore installing any device:Install LabVIEWIf using a Real-Time controller, install LabVIEW Real-TimeInstall LabVIEW F
13、PGAInstall NI-RIO or other target-specific softwareE. Windows ConfigurationF. Real-Time ConfigurationSelect Host-Target Network SetupDetect the Remote TargetConfigure Target Network SettingsView Devices and InterfacesAdd/Remove Software Real-Time ConfigurationSelect Host-Target Network SetupDetect t
14、he Remote TargetConfigure Target Network SettingsView Devices and InterfacesAdd/Remove Software Host-Target Network Setup Options:Host and Target connected to Local Area NetworkTypically uses DHCPHost and Target connected directly using a crossover cableHost and Target need an IP AddressTo configure
15、 remote systemHost and Target need to be on the same subnetMight need to temporarily disable your FirewallConfigure Network SettingsIP Address the unique address of a device a set of four one- to three-digit numbers in the range 0255 dotted decimal notation. example IP address: 224.102.13.24Subnet M
16、ask a code that helps the network device determine whether another device is on the same network. 255.255.255.0 is the most common subnet mask Gateway (Optional) address of a gateway server (a connection between two networks)DNS Address (Optional) address of a device that stores DNS host names and t
17、ranslates them into IP addressesIP Addressing OptionsOptionDescriptionDHCP assignedIP address automatically assigned by DHCP server. DHCP is a common network protocol for administering IP addresses.Link-localIP address allocated using automatic private IP addressing when DHCP server not available.Au
18、toIP attempts to assign an address using DHCP first then link local if DHCP fails.Address range: 169.254.x.xStatic IPManually assigned IP addressIP Addressing OptionsOptionWindows HostReal-Time ControllerDHCPDefaultDefaultLink-localDefault if fail to connect to DHCPAssigned automatically using AutoI
19、P* or configurable in MAX. Static IPConfigurable in WindowsConfigurable in MAX* AutoIP available with some controllers and/or versions of Real-Time.Ethernet Cabling OptionsOptionUse whenStandardHost and target are connected with hub, router, or network switchCrossoverDirectly connecting host and tar
20、getFPGA for Real-Time ConfigurationSelect Host-Target Network SetupDetect the Remote TargetConfigure Target Network SettingsView Devices and InterfacesAdd/Remove Software Detect Remote Target - CompactRIOConnect CompactRIO to PC through a networkPower up CompactRIONot configured CompactRIO Status li
21、ght blinks slowlyOpen MAX (StartProgramsNational Instruments)Remote Systems in MAX Devices connected over the EthernetDetect the Remote TargetFPGA for Real-Time ConfigurationSelect Host-Target Network SetupDetect the Remote TargetConfigure Target Network SettingsView Devices and InterfacesAdd/Remove
22、 Software Configure Network Settings IP Address mended approach:Attempt to obtain IP address automaticallyWill work if connected to DHCP or controller supports AutoIPIf fail, then specify IP address using suggested value Configure Network Settings DHCP & AutoIPAutomatic IP Address from DHCP Server o
23、r APIPASelect Obtain an IP address automaticallyClick ApplyNotes:Address allocated on each reboot. Not guaranteed to be the same address.Might need to enable IP Reset switchConfigure Network Settings DHCP & AutoIP1234Configure Network Settings Link Local or Static IPManually assign a static IPSelect
24、 Use the following IP addressClick on Suggest Values to view suggested valueClick OKClick ApplyNotes:Address must be on same subnet as Windows hostMight need to enable IP Reset switch or set in Safe ModeConfigure Network Settings Link Local or Static IP123FPGA for Real-Time ConfigurationSelect Host-
25、Target Network SetupDetect the Remote TargetConfigure Target Network SettingsView Devices and InterfacesAdd/Remove Software View Devices and InterfacesExpand Devices and Interfaces to view the chassisFPGA for Real-Time ConfigurationSelect Host-Target Network SetupDetect the Remote TargetConfigure Ta
26、rget Network SettingsView Devices and InterfacesAdd/Remove Software Add/Remove SoftwareAdd/Remove SoftwareExercise 2-2: Configure a CompactRIO SystemUse MAX to configure the CompactRIO.Exercise 2-2: Configure a CompactRIO SystemWhy is it important to keep software synchronized between host PC and Co
27、mpactRIO controller? How would configuration change if you used DHCP?G. Creating a LabVIEW FPGA ProjectSteps to create a LabVIEW FPGA Project:Create a new projectAdd a targetAdd under “My Computer” if device is a localAdd under “Project” if device is a networkedDiscover existing device or create a n
28、ew deviceFor online devices, LabVIEW can also discover module and I/O nodesFor offline devices, add modules and I/O nodesIf device is a networked device, connect to the targetNew FPGA Target WindowsFor local targets: Right-click My Computer and select NewTarget and DevicesAdd Targets and Devices Win
29、dows Existing target or deviceUse when your device can be accessed from your development computerNew target or deviceUse when you are not connected with a physical target or device is not present.Windows Project FPGA Target is under My ComputerNew Target Real-Time TargetFor remote targets: Right-cli
30、ck on Project and select NewTarget and DevicesAdd Targets and Devices Real-Time Target Existing target or deviceUse when your device can be accessed from your development computerNew target or deviceUse when you are not connected with a physical target or device is not present.Select Programming Mod
31、e - CompactRIOProject with CompactRIO ControllerMy Computer and cRIO target are siblingsBright green dot target connectedDark green dot target not connectedChassis is under cRIO targetFPGA target is under the ChassisExercise 2-3 & 2-4: Create Two LabVIEW FPGA ProjectsCreate LabVIEW FPGA Projects for
32、 the following two devices:An offline PCI-7831R An online CompactRIO 9074Exercise 2-3 & 2-4: Create Two LabVIEW FPGA Projects Is it possible to create a simulated project for CompactRIO?Manually add controller, chassis, and FPGA target When would you not want LabVIEW to auto-discover your C Series m
33、odules?SummaryQuiz1. Which of the following operations are performed in MAX? Install software on an R Series boardInstall software on a CompactRIO targetVerify connection between host and a real-time targetAssign the IP address of your host computer SummaryQuiz Answer1. Which of the following operations are performed in MAX? Install software on an R
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 人血采集和保存行业经营分析报告
- 手链产业链招商引资的调研报告
- 种子清洗设备细分市场深度研究报告
- 粉饼盒用粉饼化妆品细分市场深度研究报告
- 修指甲服务行业相关项目经营管理报告
- 螺线管阀电磁开关细分市场深度研究报告
- 化妆服务行业营销策略方案
- 移动侦测器细分市场深度研究报告
- 扬声器纸产品供应链分析
- 冰箱自动化霜器产业链招商引资的调研报告
- 升压站通信系统设备安装施工方案
- 李子奈-计量经济学分章习题及答案
- 新高考英语读后续写——人物描写高级表达素材
- PE II 10 kW中频电源
- 阻化剂安全性和环保性评价报告
- 语文七年级(上)读读写写
- 客户服务与沟通技巧培训课件(共92页).ppt
- 传染病综合防控讲义课件
- 循环水系统加药系统方案设计
- 圆锥齿轮参数设计
- 各年级危机感激发精华版
评论
0/150
提交评论