Write channel data and parameter in dbStore.
code = dbsWrite( dbs_des, channel_number, param_struct, data_array, ...)
Opened dbStore's descriptor id
Channel number
Struct array of channel's parameter
the sruct fields are Pname(char),Pvalue(char),Ptype(numeric). Describe it with 'struct([])' when there are not parameter to register. This uses the data name which you applied for to LABCOM.
Data array of channel
Describe it with 'int16([])' when there are not data to register.
The data type of channel data.
'image_type' has the next kind.
Number of the frames, If you want to use frame constitution.
Verbose operation.
Result code, 0 is success, other is error.
Write channel data and parameter in dbStore.
des = dbsOpen('xxx@nifs.ac.jp', 'DATA_X', 213, 1, 'RAW'); if des > 0 then pl = initParamList(); pl = setParam(pl, 'offset', 10.0); pl = setParam(pl, 'gain', int32(2)); data = zeros(1000,1); code = dbsWrite( des, 1, pl, data,'verbose'); if code == 0 then code = dbsClose(des); if code == 0 then mprintf('Success.\n'); end else dbsAbort(des); end end | ![]() | ![]() |
バージョン | 記述 |
20.0.0 | Initial release. |