Ksp reference Manual



Download 0,99 Mb.
Pdf ko'rish
bet7/187
Sana10.02.2022
Hajmi0,99 Mb.
#441108
1   2   3   4   5   6   7   8   9   10   ...   187
Bog'liq
KONTAKT 610 KSP Reference Manual

2.7. on persistence_changed
on persistence_changed
Executed after the init callback or whenever a snapshot has been loaded
Remarks
The on 
persistence_changed
callback is called whenever the persistent variables change in
an instrument, i.e. it is always executed after the init callback has been called and/or upon loading
a snapshot.
Examples
on init
set_snapshot_type(1) {init callback not executed upon snapshot loading}
reset_ksp_timer
declare $init_flag {1 if init callback has been executed, 0 otherwise}
$init_flag := 1
Callbacks
7
KSP Reference Manual


declare ui_label $label (2,2)
set_text($label,"init callback " & $KSP_TIMER)
end on
function add_text
add_text_line($label,"persistence_changed callback " & $KSP_TIMER)
end function
on persistence_changed
if ($init_flag = 1) {instrument has been loaded}
call add_text
else {snapshot has been loaded}
set_text($label,"Snapshot loaded")
end if
$init_flag := 0
end on
Query if a snapshot or if an instrument has been loaded. This also demonstrates the ability to call
functions upon initialization, i.e. the persistence callback acts as an extension to the init callback.
See Also
on init
read_persistent_var()
set_snapshot_type()

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10   ...   187




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish