| RTI SimCreator & SimObserver Support Home |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| dkidd3 |
Posted: Mar 11 2010, 08:22 AM
|
|
Member ![]() ![]() Group: Members Posts: 21 Member No.: 29 Joined: 15-March 07 |
I am interested in having participants enter information using a keyboard during a driving simulation. Is there a keyboard component or a peripheral device component that would allow me to integrate the keyboard into the simCreator model in addition to the steering wheel? If so, which component would need to be added to the model and does it output the key presses or keyboard input?
|
| hstoner |
Posted: Mar 11 2010, 08:43 AM
|
|
SimVista Forum Moderator ![]() ![]() ![]() Group: Members Posts: 65 Member No.: 16 Joined: 5-September 06 |
On each Visual Component there is a key connector. It will allow keyboard entries during the simulation. Hook your keyboard up to any of the visual channels and you can record what you need. I would suggest using the CenterChannel keyboard so all your scenario data is in one place.
|
| dkidd3 |
Posted: Apr 20 2010, 06:14 AM
|
|
Member ![]() ![]() Group: Members Posts: 21 Member No.: 29 Joined: 15-March 07 |
I found the key output from the Visuals channel, but am wondering how the data is logged. I tuned on the plotflag for this output, however, the variable is not showing in the Plotter. Is it because it is outputing character data? Is there a way to log character data just like numerical data (e.g., speed, brake and accel inputs)?
Essentially what I would like to do is have people interact with a keyboard or entry device and display the results on the screen. However, I would like full control so that I can customize the output based on certain keypresses. |
| hstoner |
Posted: Apr 20 2010, 01:30 PM
|
||
|
SimVista Forum Moderator ![]() ![]() ![]() Group: Members Posts: 65 Member No.: 16 Joined: 5-September 06 |
If you want to record the key presses to a data file you need to use to ToFileChar or ToFileCharMult component. This will write character data. The plt file generated from the checked boxes only writes numeric data. To display different values based on the keyboard input you can use JavaScript. You could use some code like the following:
|
||
| dkidd3 |
Posted: Apr 21 2010, 10:49 AM
|
|
Member ![]() ![]() Group: Members Posts: 21 Member No.: 29 Joined: 15-March 07 |
Thanks for the response. I only have one additional question. We are currently running simCreator 2.8 and I am having trouble finding a ToFileChar and ToFileCharMulti components. I see a ToFile component, but not the character versions. Are the two character components included in version 2.8?
|
| hstoner |
Posted: Apr 26 2010, 05:23 AM
|
|
SimVista Forum Moderator ![]() ![]() ![]() Group: Members Posts: 65 Member No.: 16 Joined: 5-September 06 |
No, those components are not included in 2.8. I will send you an email of the components you can try, but no guarantee they will work in the older version.
|
| dkidd3 |
Posted: May 24 2010, 08:26 AM
|
|
Member ![]() ![]() Group: Members Posts: 21 Member No.: 29 Joined: 15-March 07 |
There are several keys that are reserved for commands during runtime. For example, "F" will display the frame rate and "Q" will display the console. What other keyboard keys have special functions during runtime and is there a way to remap these keys?
|
| hstoner |
Posted: May 24 2010, 10:23 AM
|
|
SimVista Forum Moderator ![]() ![]() ![]() Group: Members Posts: 65 Member No.: 16 Joined: 5-September 06 |
At this time there is no way to remap the reserved keys.
The keys in use are f = frame rate c = chase camera q = on-screen console 0, 1, 2, 3, 4, 5, 6, ` = gears v = turn on and off the force vectors on the tiles (only seen using chase camera) |
![]() |
![]() ![]() ![]() |