Assigning Hex number

Paul Groot pfc.groot at gmail.com
Sun Feb 12 00:44:31 UTC 2012


Hi S,

If the address is static throughout the experiment, you could simply
declare a constant in the global user section:

Const MYPORT% = &H4000

You can then use MYPORT anywhere in your inline scripts.


xyz.OnsetSignalEnabled= True
xyz.OnsetSignalPort= MYPORT
xyz.OnsetSignalData= 25

The conversion to CInt is never required since the hex-value is
already interpreted as integer value.

cheers
Paul

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.



More information about the Eprime mailing list