As someone using the tensile stress rig on SXD I want to be able to control it remotely for ease of use in experiments
Acceptance Criteria
[ ] There is an IOC with IOC tests that can interact with the ISIS LabVIEW Remote Systems
[x] There are template and substitution files that will allow interaction with the controls and indicators on the VI created in #8263
Extra Information
There will be a LabVIEW VI created in #8263 which can be used to "device" test this IOC
The interactions for numbers is different to that for strings, which is why the VI has so many options for testing with
To read a value the following command needs to be sent: LVGET {The full path of the VI},{Control/Indicator Name},{Value}
To write a value the following command needs to be sent: LVPUT {The full path of the VI},{Control/Indicator Name},{Value}
For a string value simply append a \r\n to the command sent
Stop reading a string on receipt of a \r\n
For a numeric value prepend the length of the command to it before sending
For stopping reading a numeric the VI reads the first 4 bytes to dictate how much more to read, then unflattens the data - this may not be needed, but will be best ascertained by "device" testing
The command is sent via TCP to a computer using it's name, and the remote port 64008 for a string and 64009 for a numeric
This is likely best done with template and substitution files, as that will allow flexibility for other similar systems should they be needed
As well as treating a numeric array as an array, it should also be looked at as a cluster and the values split into different PVs
How to Test
_verbose instructions for reviewer to test changes
requires the labview test vi's
Pull ioc and stream device repos, and make both.
Start the Test VI and then start the IOC, set the IPADDR macro to the ip of the machine running the VI, set the DEVCMD1 macro is set to lvremotetest , check that all the VI's controls can be written to from the IOC and that all indicators are being read correctly (Except for the array, which is not currently needed).
As someone using the tensile stress rig on SXD I want to be able to control it remotely for ease of use in experiments
Acceptance Criteria
Extra Information
LVGET {The full path of the VI},{Control/Indicator Name},{Value}
LVPUT {The full path of the VI},{Control/Indicator Name},{Value}
\r\n
to the command sent\r\n
How to Test
_verbose instructions for reviewer to test changes requires the labview test vi's Pull ioc and stream device repos, and make both. Start the Test VI and then start the IOC, set the
IPADDR
macro to the ip of the machine running the VI, set theDEVCMD1
macro is set tolvremotetest
, check that all the VI's controls can be written to from the IOC and that all indicators are being read correctly (Except for the array, which is not currently needed).Time in planning
59:25 4/4/24