|
Re: Utilizing Both RoboRIO Cores
I believe the tool is there, but it is hard to tell for certain since I have lots of other stuff installed on my computer.
The Tool itself is located under Tools>>Real-Time Module>>Trace Viewer. That will lead you to documentation for how to generate a trace.
When I wrote the other post, I was combining some features from the desktop and the RT version of this tool.
Anyway, to use it with LV, it requires you to add two VIs. They are located in the Real-Time>>RT Execution Trace Tool palette. A palette search of TraceTool may be the easiest way to get there.
Wherever you want to start the trace, place the TraceTool Start Trace.vi. I dropped it to the left of Begin VI and wired the error out of from Start into Begin. Next, decide where to stop the trace. I clicked through the Mode Case to the Finish frame and added the TraceTool Stop Trace and Send.vi. I knew my host IP address, so wired that up as 172.22.11.1 since I was using the USB cable. I don't know if it is necessary, but made sure this finished before the Finish VI was called by using a sequence structure.
I then opened the Trace Tool, ran the robot code using the run button, let it run a bit and clicked finish. The attached image shows the table with thread activity above and VI activity below. The tools in the upper right let you zoom in and out.
The VI section shows control packet arrivals every 20ms, with little slivers of VI activity that result, then a nap until the next one arrives. If you zoom and scroll, you can find the periodic task loops going off on their period.
You can further instrument code using the other VI in the palette to log a user event. As you can see, there is a LOT of data generated. You may want to do acquire of these in advance and then open them with the students. This is a very advanced tool, a microscope for finding needles in haystacks. It will not trace VIs that have already started execution when Start is called. It can sometimes cause as many questions as it answers.
Have fun with it.
Greg McKaskle
|