Справочник Пользователя для National Instruments FP-3000

Скачать
Страница из 118
Chapter 3
Example Applications
3-10
©
 National Instruments Corporation
Bring the Block Online
1.
Go to the 
MODE_BLK
 parameter of the Resource block and set the 
TARGET
 to 
Auto
.
2.
Go to the 
MODE_BLK
 parameter of the block you created and set the 
TARGET
 to 
Auto
3.
Re-read the 
MODE_BLK
 parameter. The 
ACTUAL
 field should go to 
Auto
. If it does not, refer to Appendix C, 
, for 
more information. 
Once the block goes to 
Auto
, it is fully operational. You can look at the 
value of 
OUT
 and see the temperature reading from the thermocouple in 
degrees Celsius. The temperature reading is ready to be used for control.
If you are only interested in taking thermocouple readings and not 
interested in closed loop control, you are finished with this example.
Controlling a Heating Element
Instantiate an FP-AO-200 Block
Instantiate an I/O block for the FP-AO-200 channel to control the heating 
element. Since the heating element is connected to an FP-AO-200 module, 
you must create an FP-AO-200 block. To instantiate an I/O block, follow 
these steps:
1.
Right-click on FP-3000 in the configurator.
2.
Select Instantiate New Block. This causes a dialog box to appear that 
lists all of the blocks supported by the FP-3000 and allows them to be 
instantiated. 
3.
Select FP AO 200 Block from the list, then click on the OK button.
Assign a Tag to the New Block
By default, new blocks are created without a tag. To assign a tag, follow 
these steps: 
1.
Right-click on the new block, then select Set Tag
2.
Enter the tag you choose in the dialog box. The tag can be up to 
32 characters in length and should not contain the dot (“.”) character.
3.
Click on OK.