This article applies to:
E-Prime 3.0
E-Prime 2.0
Detail
NOTE: This article contains information specific to step #1 of INFO: How do I send a marker to an external device? [42521].
Socket communication is facilitated by adding the Socket device in E-Prime. Adding the Socket device to the Experiment Object allows you to access and specify the port settings for the Socket device.
You can add the Socket device to your experiment via the Devices tab of the Experiment Object's property pages. The device appears in the "Add Devices" dialog:
The Edit dialog allows you to set properties on the Socket device:
The properties of the Socket Device must be configured correctly to ensure that signals are sent or received. To find this information, know where the Socket is connected, the connection type, and byte ordering. The values specified for these properties may depend on the Socket’s capabilities and/or the equipment that is receiving the signal. PST recommends consulting the user manual and/or the manufacturer for these devices. Below is a basic description of the properties that must be set.
- Name - The name of the Device added to the experiment.
- Server - The IP address or DNS name of the server attempting to be connected.
- Port - The port number on which the server is listening.
- Connection Type (For more detailed information on choosing which Connection Type to use, please refer to DEVICE: Socket Device supports TCP and UDP communication [16877].)
- TCP
- UDP
- Byte Ordering
- Native - Buffer in the current hardware's "native" ordering (that is, the order in which your machine's CPU writes words to memory).
- Network - The order in which the bytes of a multi-byte number are transmitted on a network - most significant byte first (as in "big-endian" storage). This may or may not match the order in which numbers are normally sorted in memory for a particular processor.
- LittleEndian - The low-order byte of the number is stored in memory at the lowest address, and the high-order byte at the highest address. (The little end comes first.)
- BigEndian - The high-order byte of the number is stored in memory at the lowest address, and the low-order byte at the highest address. (The big end comes first.)
NOTE: Ensure that a valid connection exists and that you can ping both directions of the socket in Command Prompt before testing in E-Prime (INFO: Locate Your IP Address and Ping Another Computer [31363]).
See Also:
DEVICE: How To Send Markers Through a Socket [25288]
DEVICE: Socket Device supports TCP and UDP communication [16877]
BUG FIX: UDP Sockets cannot receive data [25865]
Comments
0 comments
Please sign in to leave a comment.