资源预览内容
第1页 / 共16页
第2页 / 共16页
第3页 / 共16页
第4页 / 共16页
第5页 / 共16页
第6页 / 共16页
第7页 / 共16页
第8页 / 共16页
第9页 / 共16页
第10页 / 共16页
亲,该文档总共16页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
LabView Driver GuideLabViewLabView Driver GuideDriver GuideHow to use the Labview DriverHow to use the How to use the LabviewLabview DriverDriverThe procedure should be as following.The procedure should be as following.? ?Install Labview6/6i/7/7.1 ApplicationInstall Labview6/6i/7/7.1 Application? ?Install Advantech Install Advantech LabviewLabview Driver from CDDriver from CD? ?Install Advantech I/O Install Advantech I/O card(drivercard(driver/Hardware)/Hardware)? ?Check the Support list in the manual to know what Check the Support list in the manual to know what card and function/example can be supportedcard and function/example can be supported? ?Access the example in the path: Access the example in the path: C:C: Program FilesProgram Files National InstrumentsNational Instruments LabVIEWLabVIEW 7.17.1 examplesexamples AdvantechAdvantech? ?Refer to the example to write own programRefer to the example to write own programHow to use the Labview DriverHow to use the How to use the LabviewLabview DriverDriverThe support list for the cardLabViewLabView Program: Program: Get voltage input from PCLGet voltage input from PCL- -818L(1)818L(1)1. Click 1. Click “ “New VINew VI” ” button to create button to create a new LabVIEW a new LabVIEW program.program.2. Select Front Panel & enable Controls Palette to choose a “Waveform Chart” indicator in “Graph” group, add to front panel and name it “Voltage”. LabViewLabView Program: Program: Get voltage input from PCLGet voltage input from PCL- -818L(2)818L(2)3.3. Switch to Switch to Block Block DiagramDiagram to verify to verify that a new data that a new data terminal was terminal was created (named created (named “ “VoltageVoltage” ”). ).4. Add a “DeviceOpen” VI from the Advantech 32-bit LabVIEW driver by clicking on user defined VIs. The path to get “DeviceOpen” VI is “User Defined VIs” “Advantech” “Advance” “DeviceManager” “DeviceOpen”. LabViewLabView Program: Program: Get voltage input from PCLGet voltage input from PCL- -818L(3)818L(3)5.5. Move the mouse to the Move the mouse to the “ “Device Device OpenOpen” ” VI and click on the mouse VI and click on the mouse left button to invoke the left button to invoke the “ “Create Create ConstantConstant” ” function. After creating function. After creating a constant, a number will appear at a constant, a number will appear at the left of the left of “ “DeviceOpenDeviceOpen” ” VI block. VI block. 6. Execute the Advantech Device Manager utility (within Advantech DLL driver) from the Windows environment to check with the device number of Advantech DEMO I/O virtual demo board. For example, the device number of Advantech DEMO I/O in the screen shown below is 001. LabViewLabView Program: Program: Get voltage input from PCLGet voltage input from PCL- -818L(4)818L(4)7.7. Change the value of the constant next to the Change the value of the constant next to the “ “DeviceOpenDeviceOpen” ” VI to be 1. VI to be 1. 8.8. Add Add “ “AIConfigAIConfig” ” and and “ “AIVoltageInAIVoltageIn” ” VIs from the Advantech 32VIs from the Advantech 32- -bit bit LabVIEW driver by clicking on userLabVIEW driver by clicking on user- -defined VIs. The path to get defined VIs. The path to get “ “AIConfigAIConfig” ” and and “ “AIVoltageInAIVoltageIn” ” VI is VI is “ “User Defined VIsUser Defined VIs” ” “ “AdvantechAdvantech” ” “ “AdvanceAdvance” ” “ “adSlowAIadSlowAI” ” “ “AIConfigAIConfig” ” and and “ “AIVoltageInAIVoltageIn” ”. . 9. Add “DeviceClose” VI from the Advantech 32-bit LabVIEW driver by clicking on User Defined VIs. The path to get “DeviceClose” VI is “User Defined VIs” “Advantech” “Advance” “DeviceManager” “DeviceClose”. LabViewLabView Program: Program: Get voltage input from PCLGet voltage input from PCL- -818L(5)818L(5)10. Change the mouse cursor for use with the 10. Change the mouse cursor for use with the “ “WiringWiring” ” pattern (move the pattern (move the cursor into cursor into Tools PaletteTools Palette and select the Wiring icon). and select the Wiring icon). 11. Wire the 11. Wire the DeviceHandleDeviceHandle output of the DeviceOpen VI to the output of the DeviceOpen VI to the DeviceHandleDeviceHandle input of input of AIConfigAIConfig VI. To make wiring easier, you can invoke the Help window to VI. To make wiring easier, you can invoke the Help window to support it. The Help window shows input and output parameters ofsupport it. The Help window shows input and output parameters of each each selected VI. (The way to display the Help window is to click on selected VI. (The way to display the Help window is to click on the Help menu the Help menu selection and select the selection and select the “ “Show HelpShow Help” ” option)option)LabViewLabView Program: Program: Get voltage input from PCLGet voltage input from PCL- -818L(6)818L(6)12. Wire the 12. Wire the DeviceHandleDeviceHandle output of the output of the AIConfigA
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号