How to generate real time scope ?

If you have a simple question and just want an answer.
prerna
New User
Posts: 3
Joined: Mon Jun 02, 2014 4:04 pm

How to generate real time scope ?

Post by prerna »

I want to know generate real time scope for spinning ball example. When i am using wave generation then i got all LED's PORTS values zero.


User avatar
infiniteimprobability
XCore Legend
Posts: 1126
Joined: Thu May 27, 2010 10:08 am

Post by infiniteimprobability »

How about the follwing:

Add a file called xscope.config in your project with the following entires (To enable xscope and setup probes):

<?xml version="1.0" encoding="UTF-8"?>
<xSCOPEconfig enabled="true" ioMode="basic">
  <Probe name="LED_COUNTER_PROBE" type="CONTINUOUS" datatype="INT" units="n" enabled="true"/>
  <Probe name="LEDS_PROBE" type="CONTINUOUS" datatype="INT" units="n" enabled="true"/>
</xSCOPEconfig>
 
Next add:
#include <xscope.h>

and this before the loop:

printstrln("welcome to the spinning bar demo!"); //Test realtime xscope printing


and this in the loop:

        xscope_int(LED_COUNTER_PROBE, led_counter);

        xscope_int(LEDS_PROBE, leds[led_counter]);

Enable xscope real time in the run configurations and it should all work!

See attached
You do not have the required permissions to view the files attached to this post.