Professional Documents
Culture Documents
Host Interface VI
Used to control and communicate with the FPGA VI from RT or Windows
Open VI Reference
Read/Write Control
Invoke Method
Close VI Reference
Open VI Reference
Edit Time
Selected Target VI (FPGA VI) used to determine available controls Selected VI becomes a hidden subVI of the Open VI Reference Uses RIO board 0 by default
Run Time
Downloads the selected VI (bit file) to FPGA unless already downloaded Returns a reference
Close VI Reference
Exercise 3.1
To create a Host Interface VI (to run on the RT PXI Controller) for the VI created in Exercise 2.1 (Digital I/O VI).
Invoke Method
Run Download (Force Download reinitializes) Wait on IRQ Acknowledge IRQ Abort
Wait on IRQ
Only one should be called at a time IRQ Number(s) Will accept an array of IRQ numbers Timeout milliseconds, -1 to never timeout Timed Out returns true for Timeout, false for interrupt IRQ(s) Asserted returns array of all IRQs asserted
0 31 . . . . . . IRQ Line MASK
Written by this VI
Acknowledge IRQ
Clears logical interrupts specified by IRQ Number(s)
RIO/Host Synchronization
Host FPGA
Polling
Depending on the application, polling may be a better solution than using interrupts.
Exercise 3.2
To create a Host VI for the FPGA VI created in Exercise 2.2 (Timed AI/AO with Interrupts).
Lesson 3 Summary
FPGA Interface is what controls and communicates with the FPGA VI Use Interrupts for synchronizing FPGA VI and Host VI