# Accessing variables in C-Script for Rapid Prototyping Application

**URL:** https://forum.plexim.com/t/accessing-variables-in-c-script-for-rapid-prototyping-application/359
**Category:** PLECS
**Tags:** c-script
**Created:** [April 23, 2018, 6:11am UTC](https://forum.plexim.com/t/accessing-variables-in-c-script-for-rapid-prototyping-application/359 "2018-04-23T06:11:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Anantaram](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Anantaram](https://forum.plexim.com/u/Anantaram)
#### Post date: [April 23, 2018, 6:11am UTC](https://forum.plexim.com/t/accessing-variables-in-c-script-for-rapid-prototyping-application/359/1 "2018-04-23T06:11:03Z")

</div>

We intend to use the RT box as a controller to drive a real machine. I would like to know if it is possible to have access to the variables defined in the C-Script without explicitly sending the signals out through the output port? (analogous to the trace file for Matlab S-Fcn in dSpace). The objective is to observe and tune multiple signals in real time.

Any help is appreciated!

---

<div class="post-metadata">

### Author: ![Oliver\_Schwartz](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/oliver_schwartz/32/6_2.png) [@Oliver\_Schwartz](https://forum.plexim.com/u/Oliver_Schwartz)
#### Post date: [April 23, 2018, 6:59am UTC](https://forum.plexim.com/t/accessing-variables-in-c-script-for-rapid-prototyping-application/359/2 "2018-04-23T06:59:20Z")

</div>

No, this is not possible. Variables within a C-Script are only visible within the C code.
