You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »

Description

Use this API to obtain the value of the elements controlled by the Dafne Control System. Possible arguments are:

  • all: get all elements value;
  • comma_separated_element_list: all requested elements value;

In case of positive execution, this is the format of the response object:

  • cacheHit: <bool>
  • elementList: <list of dict>
    • name: <str>
    • value: <LabVIEW Flatten to String in ascii format>

(info) Calling this API without the all parameter will always return a cacheHit value of false, because the API will not fetch the cache for devil names but will directly access memcached to fetch data.

Example Query (ALL ELEMENTS)

GET Query URI
http://danteweb.lnf.infn.it:8000/element/getValue/all


API Response
{
	"cacheHit": true,
	"elementList": [{
		"name": "RFSA1001",
		"value": "524653413130303100000000000000be0000000000000010000000000000000001000100000000094265616d506873203f8c60c3a9d2cd293f8c60c3a9d2cd2950686173655750203ffd5cc5a4dcd6f83ffd5cc5a4dcd6f84147435750202020bfb1812ef9bceb79bfb1812ef9bceb7952464672772020203fe052187d935c293f8b7a1bfa35fbe552464c6576656c20403a17edc11852263f8c9d5f1f53a60952465276727320203f9ad2a75aba8c453f985861ece8ddd15068734664626b203fa475975588cf253fa475975588cf25546e725750202020bf7b86b85570636bbf7b86b85570636b5a4d644664626b203ffe9484eb47689e3ffe9484eb47689e0000000a4162735068735220400e666666666666400e6666666666665068734664626b524000000000000000400000000000000052464c657652656640540000000000003ff72f2f9873ffac4147434761696e203ff00000000000003ff00000000000005068734c70476e20400c000000000000400c000000000000506873576e647750bfe0af4f0d844d01bfe0af4f0d844d01506873576e64774dc00e4d6a161e4f76c00e4d6a161e4f7652464c765265664140166666666666664016666666666666546e7250687353683ff599999999999a3ff599999999999a5a4d644664626b50000000000000000000000000000000000000000e546e7255704c537701546e7244774c537701504c43416c6c617200467374496e746c6b014572496e4f6e4f66005a4d644664626b4f00546e724477202020005265736574504c4300494d50435720202000546e725570202020004147434f6e4f6666005068734664626b4f01546e724d6e4174200052464f6e4f6666200040f8b7c000000000"
	}, {
		"name": "RFSEL001",
		"value": "524653454c30303100000000000000be0000000000000a380000000000000000010001000000000d4265616d50687320bf59a25d5a8c1c45bf59a25d5a8c1c45506861736557502040072c1775a9ac7a40072c1775a9ac7a4147435750202020bfea00f0a1e30077bfea00f0a1e300775246467277202020bfbf6bafc2bc51133f6aa7938030dd0f52464c6576656c204038a7c8218c7e743f537c3eb7d343d55246527672732020bfc3140a901af2e93f79d13baa8f26af5068734664626b203f66895565ef4a1a3f66895565ef4a1a546e7257502020203f84d207ad2a1ffa3f84d207ad2a1ffa5a4d644664626b2040039eb60d4ad23440039eb60d4ad234536c69646546626b4020b095de13f7264020b095de13f72650684572724b6c79bf899f4bc8056bd0bf899f4bc8056bd057704b6c7946626b401f4ba7bebdacf2401f4ba7bebdacf24b6c797374726f6e3fbd7c4f391e468b3fbd7c4f391e468b000000134162735068735220406d7666666666664014b3d1580ee0c25068734664626b52401d000000000000401d00000000000052464c657652656640604000000000004002f3a9a2fc18eb4147434761696e20400400000000000040040000000000005068734c70476e2040100000000000004010000000000000506873576e647750400ea858793dd97f400ea858793dd97f506873576e64774d3febae147ae147ae3febae147ae147ae52464c76526566413ff999999999999a3ff999999999999a546e7250687353684054000000000000400ce3b6df3e43e15a4d644664626b50401047ae147ae148401047ae147ae148416d706c697475643fe66666666666663fe6666666666666706861736546626b401199999999999a401199999999999a536c6f706546626b400199999999999a400199999999999a5a65726f46626b204020b851eb851eb84020b851eb851eb84d616e50684b6c79401733333333333340173333333333334c6f7754684b6c79400e666666666666400e66666666666648696754684b6c79401f333333333333401f333333333333526646626b4f6e20000000000000000000000000000000004b6c7946626b4f6e000000000000000000000000000000000000000e546e7255704c537701546e7244774c537701504c43416c6c617200467374496e746c6b005a4d644664626b4f01546e724477202020005265736574504c4300494d50435720202000546e725570202020004147434f6e4f6666005068734664626b4f01546e724d6e4174200052464f6e4f666620004572496e4f6e4f660040f825e000000000"
	}, {
		...
	}, {
		"name": "DCTPS002",
		"value": "4443545053303032000000000000000000000000000000003f9807701c432b3a00000000000000003fb807701c432b3a3f9a3b88040b2b5fbf522289886e9d900000000000000000bf8691de36522900000000050000000000000000000000000000000000000000000000000000000000000000000000000000000044564d34323030320000000100000be63f9ba3c5c26c76a8bfd138a7e73a365dbf50624dd2f1a9fc01"
	}]
}


Example Query (ELEMENT LIST)

GET Query URI
http://danteweb.lnf.infn.it:8000/element/getValue/CDHPL201,QUAPL102


API Response
{
	"cacheHit": false,
	"elementList": [{
		"name": "CDHPL201",
		"value": "434448504c32303100000003000000000000000300000000000000000000000001000100000000000000000000000000000100000000000000000000000040418000000000000000000000000000bf60624dd2f1a9fc3ff00000000000003fb645a1cac08313000000040000020000000080c000002230000000"
	}, {
		"name": "QUAPL102",
		"value": "515541504c313032000000030000000000210004000000000000000000000000010001000000000000000000000000000001000000000000000000000000402200000000000000000000ffffffff3f9999999999999a3ff00000000000004018000000000000000000040000021000000000c0af00a200000000"
	}]
}
  • No labels