Calling User Functions from BT-Basic
If you prefer to control remote instruments from the BT-Basic testplan, see Example 7. Although this method produces the same results as Example 6, the frequent interaction between BT-Basic and ATL make this a more complex way to do the test.
Example 7 has an analog test that uses a high-frequency coaxial port ("FREQ_CNTR_HIGH" and "FREQ_CNTR_LOW") on the module to connect a frequency counter, FREQ_CNTR, to two nodes ("Node1" and "Node2") on the DUT and then make a measurement. The example works as follows:
Example 7 Controlling instruments from BT-Basic using rcall
! IN THE BT-Basic TESTPLAN:
! >>> Near the beginning of the testplan <<<
. . .
if nrun = 1 then
. . .
call Initialize_IServer ! Start instrument server once
. . . ! when the testplan is run.
end if
. . .
! >>> In the main body of the testplan <<<
. . .
rcall FREQ_CNTR_SETUP ! Initialize the counter.
test "measure1"; F ! Begin analog functional test.
rcall FREQ_CNTR_SETUP_READ(F) ! Make measurement, put result in "F".
test cont ! Go to analog functional test.
. . .
! >>> With subroutines near the end of the testplan <<<
. . .
sub Initialize_IServer
rinit "C_Server";program btgetenv$("AgilentICT_ROOT")&"/boards/my_board/workfile.uci", servicetype "UCI"
! Starts instrument server.
subend
. . .
! IN AN ANALOG FUNCTIONAL TEST CALLED "measure1":
!
test powered analog; F
connect "FREQ_CNTR_HIGH" high to "Node1" ! Make connections between
! frequency counter and DUT.
pause ! Return to BT-Basic.
report analog 10, 5, F ! Evaluate the results.
end tests
In more complex tests the interaction between BT-Basic and ATL, via pause
and test cont
statements, becomes even more frequent. This additional complexity is why we recommend that you call the user functions from ATL, as described earlier.
How to get testhead status? Like build .exe that returns module temperature. How to build this dynamic query?
ReplyDeleteAJO_QQ poker
ReplyDeletekami dari agen poker terpercaya dan terbaik di tahun ini
Deposit dan Withdraw hanya 15.000 anda sudah dapat bermain
di sini kami menyediakan 9 permainan dalam 1 aplikasi
- play aduQ
- bandar poker
- play bandarQ
- capsa sunsun
- play domino
- play poker
- sakong
-bandar 66
-perang baccarat (new game )
Dapatkan Berbagai Bonus Menarik..!!
PROMO MENARIK
di sini tempat nya Player Vs Player ( 100% No Robot) Anda Menang berapapun Kami
Bayar tanpa Maksimal Withdraw dan Tidak ada batas maksimal
withdraw dalam 1 hari.Bisa bermain di Android dan IOS,Sistem pembagian Kartu
menggunakan teknologi yang mutakhir dengan sistem Random
Permanent (acak) |
Whatshapp : +855969190856