Newer
Older
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
this->pCardHandle,
SPC_CLOCKMODE,
int32(cm)
);
this->checkError();
}
int32 AWG::getClockMode() {
if (!this->isOpen()) { return -1; }
int32 cm;
spcm_dwGetParam_i32(
this->pCardHandle,
SPC_CLOCKMODE,
&cm
);
this->checkError();
return cm;
}
void AWG::setRefClkFreq(int64 frequency) {
/**
* if using EXTREFCLK mode, set the external clock frequency.
*
* @param frequency Hz
*/
if (!this->isOpen()) { return; }
spcm_dwSetParam_i64(
this->pCardHandle,
SPC_REFERENCECLOCK,
frequency
);
this->checkError();
}
void AWG::setClockOut(bool enable) {
/**
* enable/disable clock output.
*
* @param enable true/false
*/
if (!this->isOpen()) { return; }
spcm_dwSetParam_i32(
this->pCardHandle,
SPC_CLOCKOUT,
enable
);
this->checkError();
}
int64 AWG::getClockOutFreq() {
/**
* Read out frequency of internally synthesized clock.
*
* @return frequency (Hz)
*/
if (!this->isOpen()) { return -1; }
int64 freq;
spcm_dwGetParam_i64(
this->pCardHandle,
SPC_CLOCKOUTFREQUENCY,
&freq
);
this->checkError();
return freq;
}