Method of storing data
Start PV-WAVE/IDL |
|
Start PV-WAVE or IDL. |
↓ |
|
Start the shot data registration (dbsOpen) |
|
Start the shot data registration.
dbsOpen, MailAddress, DiagName, ShotNumber, SubShotNumber, DataType, code
Mailaddress: |
Mail address of user
* Please specify the correct mail address because this address is
necessary for deleting data. |
DiagName: |
Name of data (Name of diagnostics) ('Bolometer',
'Magnetics', 'Halpha', ...)
* Please specify the name of data (name of diagnostics) registered
when registering data. |
ShotNumber: |
Shot number |
SubshotNumber: |
Sub shot number |
DataType: |
Type of data('RAW','ANA'...) |
code: |
Answer of function |
When 0: |
Normal completion |
When other than 0: |
Abnormal completion
Please select from the start menu → program → LABCOM
Retrieve+dbStore, then, refer to the "dbstoreDLL error code table" |
e.g.) dbsOpen, '',
'LABCOM', 60000, 1, 'RAW', code
|
↓ |
|
Storing parameter (SetParam) |
|
Store optional parameter.
When not using parameter,
this process is not necessary. So please go to
storing channel data.
-
Before summoning SetParam function, prepare character array (3*number
of parameters stored) for storing parameters.
e.g.) pParamArr = STRARR(2*3)
-
Store parameters.
SetParam, pStrArr, KeyName, Value, ValType, code
pStrArr: |
Character array of stored parameter |
KeyName: |
Name of parameter |
Value: |
Value of parameter |
ValType: |
Specify type of parameter in character
('STRING','BYTE','SHORT','INTEGER','FLOAT','DOUBLE')
* Small letter and abbreviated form are not available.
e.g.) integer←×、INT←×、INTEGER←○ |
code: |
Answer of function |
When 0: |
Normal completion |
When other than 0: |
Abnormal completion
Please select from the start menu → program → LABCOM
Retrieve+dbStore, then, refer to the "dbstoreDLL error code
table". |
e.g.)
SetParam, pParamArr, 'Range', 5.0, 'FLOAT', code
SetParam, pParamArr, 'ClockSpeed', 100000, 'INTEGER', code
|
↓ |
|
Storing channel data (dbsWrite) |
|
Store optional channel data.
Any type data (integer type, floating point type, etc) is able to be
stored.
dbsWrite, pParamList, pDataArray, code
pParamList: |
Parameter data |
pDataArray: |
Channel data |
code: |
Answer of function |
When 0: |
Normal completion |
When other than 0: |
Abnormal completion
Please select from the start menu → program → LABCOM
Retrieve+dbStore, then, refer to the "dbstoreDLL error code
table". |
* Number of channel is assigned sequentially from 1 every summoning
of dbsWrite function.
* When registering channel data and data which has not parameter,
please use variable name “null”. Because of this, do not use “null”
as variable of storage data and storage parameter.
e.g.)
-
When using parameter data and channel data,
pDataArr = INDGEN (1024*31)
dbsWrite, pParamArr, pDataArr, code
-
When using parameter data and not using channel data,
dbsWrite, pParamArr, null, code
-
When not using parameter data and using channel data,
pDataArr =INDGEN(1024*31)
dbsWrite, null, pDataArr, code
|
↓ |
|
Repeat as times as the number of registered channel |
|
Repeat storing parameter and
storing channel data as times as the
number of registered channel.
|
↓ |
|
Completing transmission and registration of data (dbsClose) |
|
Complete transmission and registration of data.
dbsClose, code
code: |
Answer of function |
When 0: |
Normal completion |
When other than 0: |
Abnormal completion
Please select from the start menu → program → LABCOM
Retrieve+dbStore, then, refer to the "dbstoreDLL error code table". |
|
|
Method of data confirmation
Confirm data registered by Retrieve. Refer to
this for the method of using Retrieve.
e.g.) When using parameter data and channel data
params=1
retrieve,'LABCOM',60000,1,1,data,param=params
printParam,params
|