03-01-2007 06:00 AM
or do I have to take care of these locks myself?
03-01-2007 10:12 AM
TestStand locks access to individual data items. So if you write :
StationGlobals.CurrentChannelName = "Chassis3:Channel4"
there is no chance of another thread reading an invalid intermediate state of the string value if it tries to read StationGlobals.CurrentChannelName during the write.
However if you write:
StationGlobals.CurrentChannelName = "Chassis3:Channel4"
StationGlobals.CurrentVoltage = 50
and another thread reads both values, then the other thread might read both values while the first thread is in between setting the first and second value. So if you have groups of values that must change "atomically", you need to lock access to them. You can use any locks you want, including the ones TestStand provides, just as long as you use them consistently.
03-02-2007 01:27 AM