StimDisplay object
 
PST User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



StimDisplay object Expand / Collapse
Author
Message
Posted 3/4/2009 3:28:50 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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.
Post #2818
Posted 3/4/2009 8:10:54 PM
Forum MVP

Forum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVP

Group: Forum Members
Last Login: 2 days ago @ 5:27:05 PM
Posts: 707, Visits: 2,733
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
Post #2821
Posted 3/5/2009 2:20:39 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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.
Post #2825
Posted 3/5/2009 4:10:52 PM
Forum MVP

Forum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVP

Group: Forum Members
Last Login: 2 days ago @ 5:27:05 PM
Posts: 707, Visits: 2,733
Hmm, did you try out that example code in a blank program first, or put it into a program already under development? In general I would only try PST examples in a blank program to keep things simple. Also, some PST examples are just plain wrong, as I recently documented in an erratum at http://support.pstnet.com/forum/Topic2755-12-1.aspx (which in turn stemmed from an exchange on the E-Prime Google Group, http://groups.google.com/group/e-prime/browse_thread/thread/f98b74ac94bcfd33).

-- David McFarlane, Professional Faultfinder
Post #2826
Posted 3/5/2009 4:15:56 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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.
Post #2827
Posted 3/5/2009 5:14:14 PM
Forum MVP

Forum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVP

Group: Forum Members
Last Login: 2 days ago @ 5:27:05 PM
Posts: 707, Visits: 2,733
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
Post #2828
Posted 3/6/2009 12:50:57 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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?
Post #2829
Posted 3/6/2009 1:00:27 PM
Forum MVP

Forum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVP

Group: Forum Members
Last Login: 2 days ago @ 5:27:05 PM
Posts: 707, Visits: 2,733
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
Post #2830
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -5:00, Time now is 1:52pm

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0.094. 8 queries. Compression Disabled.
 
Privacy | Terms of Use | Terms and Conditions | Legal Trademarks | Authorized Use | Quality Policy
Copyright 2012 Psychology Software Tools, Inc. All Rights Reserved
Email: Info@pstnet.com | Telephone: 412.449.0078 | Fax: 412.449.0079