up Inquisit Language Reference

availableMemory property

This property reports how much free memory remains available on the computer.

Member of

<computer>

Syntax

computer.name.availableMemory

Read Only

Type

integer

Remarks

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.

Examples

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>

Copyright Millisecond Software, LLC. All rights reserved.