This property reports how much free memory remains available on the computer.
<computer>
computer.name.availableMemory
Read Only
integer
This is useful for determining whether a given computer has enough memory to run a script. When available memory drops to zero, Windows will resort to "page swapping" (caching memory on the hard drive), which can impose significant delays in the execution of a script. A script might record this information to the data file in order to discard data from participants using old computers.
The following displays the available memory in a text element:
<text myText>
/ items= ("correct = <% computer.availableMemory %>")
</text>
The following displays the available memory in an instruction page:
<page myPage>
correct = <% computer.availableMemory %>
</page>
The following code shows how to store 'computer.availableMemory' in the raw datafile. Each data storing trial will thus show how much memory was available at the end of the trial.
<data>
/ columns = (computer.availableMemory)
</data>