Download pmacpanel user manual

Transcript
When defining a PMAC address to access the Address Spec String input to the
following VIs can be in either hexadecimal or decimal form. Both strings below
access the same address
Y:$C000
Y:49152
Reading Memory Data
There are two VIs to read and manipulate memory data in various forms.
Remember that PMAC’s integers are 24-bit words.
•
PmacMemoryRead - Read a 24-bit quantity from the memory location
specified by Address Spec String. For example, X:$002B. The result is
output as both an i32 and a Boolean array.
•
PmacMemoryGet - Output Value is the value of the bit field defined by
Start Bit and Number of Bits at the specified memory address. Output the
field as both Output Value and Output Boolean Array.
The data retrieved from PMAC can be manipulated using the following VIs.
•
PmacMemoryGetBit - Bit Value is the bit at Bit Number in Input Value..
•
PmacMemoryGetBits - Fetch the field defined by Start Bit and Number of
Bits from Input Value. Return the field as Output Value i32, Output
Boolean Array, and Bit Number (same as Output Value). Bit Boolean Array
can be used with sets of radio buttons. If Output Value = 3 then Bit
Boolean Array is 0, 0, 0, 1.
Writing Memory Data
There are two VIs to directly manipulate memory data in various forms. The
data is first read from PMAC, modified, then rewritten.
•
62
PmacMemoryWrite - Write a 24 bit quantity (Input Value) to the memory
location specified by Address Spec String. For example, X:$002B. Pass
Input Value to Output Value and Output Boolean Array.
Chapter 4 – Application Basics