|
|
|
Junior Member
      
Group: Forum Members
Last Login: 3/2/2010 3:19:02 PM
Posts: 12,
Visits: 25
|
|
I'm trying to record the count of keyboard response. There is a loop later on that checks for when the actual count gets incremented. I later will need to change things to SRBox, but I'm recording keyboard response count just for the purpose of testing. Actually I'll also have to differentiate between buttons, but one step at a time.
I've been reading the E-Basic help, and I came up with the code below:
''''''''keyboard response count, but later replace with SRBox
Dim kbResps As Integer
Dim keyboardResponse As KeyboardResponseData
kbResps = StimDisplay.InputMasks.Item(1).Responses.Count
But whenever I try to compile, I get the following error:
Compiling script with E-Run (please wait)...
The following error was found while attempting to compile the E-Basic script:
Unknown function "StimDisplay"
Line: 185
Column:23
I really don't see any errors in the code (unless I am just glossing over it). Is there any setting that I am forgetting that I need to set for using the StimDisplay object?
Thanks in advance.
|
|
|
|
|
Forum MVP
      
Group: Forum Members
Last Login: Yesterday @ 4:31:15 PM
Posts: 641,
Visits: 2,014
|
|
Hmm, offhand I don't know if you can literally use "StimDisplay" as a an object name, that might be reserved. I would try using the name of my actual display object, e.g., "StimText" or "TextDisplay1". But that's only a guess, I have not yet explored this area of E-Prime.
Also, could you please find line 185 of your E-Prime script and paste that in here, that might give us a clue.
-- David McFarlane, Professional Faultfinder
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 3/2/2010 3:19:02 PM
Posts: 12,
Visits: 25
|
|
The specific line in question is this one:
kbResps = StimDisplay.InputMasks.Item(1).Responses.Count
What confuses me is that I lift this bit of code directly from the E-Basic help. I would have thought it would at least be recognized. Actually there is are a good number of pages on the StimDisplay object.
|
|
|
|
|
Forum MVP
      
Group: Forum Members
Last Login: Yesterday @ 4:31:15 PM
Posts: 641,
Visits: 2,014
|
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 3/2/2010 3:19:02 PM
Posts: 12,
Visits: 25
|
|
| Yes, I did try it in a completely blank program. Now that you mention that a lot of the examples aren't right at all, well...it doesn't inspire much confidence. How the heck am I going to figure this out haha.
|
|
|
|
|
Forum MVP
      
Group: Forum Members
Last Login: Yesterday @ 4:31:15 PM
Posts: 641,
Visits: 2,014
|
|
Come to think of it, PST does provide a MultipleResponseCollection example in their download area, I wonder if that would help? Sorry I did not think of that sooner.
-- David McFarlane, Professional Faultfinder
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 3/2/2010 3:19:02 PM
Posts: 12,
Visits: 25
|
|
Yup I saw that, but that doesn't actually help. I need to collect info while running a loop at the same time, or basically do two things simultaneously.
I can post my entire code if that helps?
|
|
|
|
|
Forum MVP
      
Group: Forum Members
Last Login: Yesterday @ 4:31:15 PM
Posts: 641,
Visits: 2,014
|
|
Um, only if someone else agrees to look at it, I am afraid that I do not have the wherewithal to download and look at other people's programs, sorry. Perhaps at this point you could submit a request to PST Web Support at http://support.pstnet.com/e-prime/support/login.asp, they seem to offer help for these things from time to time.
-- David McFarlane, Professional Faultfinder
|
|
|
|