randomized LED lighting using DAQ Card in eprime

JP jeremiahperkins3 at gmail.com
Tue Jul 24 19:47:03 UTC 2012


Paul


I want to thank you for replying to the post! The information has helped me 
out a lot! thank you again!

On Thursday, June 28, 2012 6:32:26 AM UTC-4, Paul Groot wrote:
>
> jp,
>
> This would be easy if the device or driver supports memory mapped IO, just 
> like legacy parallel printer ports. Memory mapped IO can be programmed by 
> using the WritePort function or Onset/OffsetSignal* properties. The E-Basic 
> help documentation contains some printer-port based examples, which can be 
> used as a starting point if you know which address maps to the digital 
> output registers.
>
> However, many modern (USB) based devices use other mechanisms to 
> communicate with applications, so it depends on the available drivers which 
> options you have. Unfortunately memory mapped IO is often not supported 
> anymore. Most manufacturers provide visual basic or C-code examples that 
> can be used as as starting point. In most cases you will have to use 
> external function calls (typically DLL functions) using inline E-Basic 
> script. This is less trivial than the memory mapped IO method.
>
> best
> Paul
>
> 2012/6/26 JP <jeremiahperkins3 at gmail.com>
>
>> I am currently assisting in creating an experimental design for a 
>> professor. The task that i have right now is to wire two LEDs to a DAQ card 
>> and make them light up independently and randomly using Eprime inline code. 
>> We also need to make it so we can track the lighting so we know which light 
>> the participants may be responding to. I have found dozens 
>> of references regarding DAQ card coding but it all seems to be acquiring 
>> data through the card and not not using it to control a component. 
>>
>> I was wondering if anyone had an idea about what the coding might look 
>> like or how to accomplish this. 
>>
>>
>> Thank you in advance for the help!!
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "E-Prime" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/e-prime/-/Gp8hAVZSNCQJ.
>> 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.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/MZRYrPrEvI4J.
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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20120724/373f4c8d/attachment.htm>


More information about the Eprime mailing list