In order to resolve some vtk commits, you&#39;ll probably have to cd to ParaView and enter these commands:<br><br>cd VTK<br>git remote add github git://<a href="http://github.com/patmarion/VTK.git">github.com/patmarion/VTK.git</a><br>
git fetch github<br>cd ..<br>git submodule update<br><br><br>Honestly, you might want to investigate a simpler solution than the coprocessor.  You could write a paraview plugin with a custom qt panel and put a routine that reads from shared memory into the qt panel.  When paraview is run in builtin mode (not client-server), the qt panel can directly access vtk filters.  So the panel could use a QTimer to update the vtk filter.  The coprocessor is powerful but is oriented toward parallel simulations, it might be more than you need.  To learn more about the coprocessor you should read:<br>
<br>  <a href="http://www.vtk.org/Wiki/CoProcessing">http://www.vtk.org/Wiki/CoProcessing</a><br><br>And for a c++ example, including the CMake code you&#39;ll need to interface your project with the coprocessor, see:<br>
<br>  <a href="http://www.vtk.org/Wiki/Coprocessing_example">http://www.vtk.org/Wiki/Coprocessing_example</a><br><br><br>Pat<br><br><br><div class="gmail_quote">On Wed, May 11, 2011 at 4:16 PM, Bastien Purnelle <span dir="ltr">&lt;<a href="mailto:bastien911@gmail.com">bastien911@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div>Hi Pat,</div><div><br></div><div><font face="Arial">Thank you. In order to answer to your question, my project use CMake.</font></div>
<div><font face="Arial">For now, I have installed git and download paraview sources. I have changed to branch live-data, and I am doing a </font><span style="white-space:pre-wrap"><font face="Arial">git submodule update (I am seeing it is downloading vtk sources)</font></span></div>
<div><span style="white-space:pre-wrap"><font face="Arial">Next I have to configure cmake, which option must be activated for my case ? After, I will do a make in order to compile paraview...</font></span></div><div><span style="white-space:pre-wrap"><font face="Arial">And after ? How can I test paraview with live data ?</font></span></div>
<div><span style="white-space:pre-wrap"><font face="Arial">What have I to do with </font></span>libvtkCoProcessor.so library ? My project use system of shared memories. Is it possible to create a function into the coprocessor library so that the function read a shared memory and update paraview view ?</div>
<div>Have you an example, because the work I have to do isn&#39;t very clear !</div><div>Thank you !</div><div><br></div><div>Bastien</div><br><div><div>Le 9 mai 2011 à 14:42, pat marion a écrit :</div><div><div></div><div class="h5">
<br><blockquote type="cite">Hi Bastien,<br><br>The live-data code is currently hosted on github.  The repository url is git://<a href="http://github.com/patmarion/ParaView.git" target="_blank">github.com/patmarion/ParaView.git</a> and the branch name is live-data.  I think the live-data branch might be more than you need.  It is designed to run in a client-server configuration with a parallel server (though the parallel part is not required.)  When the live-data branch is eventually merged with paraview master, I hope to update it so that does not require client-server, but that work has not been done yet.  If you&#39;re willing to run in client-server mode then the live-data branch will work for you.  The first step it to try linking your project with the coprocessor library (libvtkCoProcessor.so) and then try writing an adapter that converts your data into a vtk data object.  Does your project use CMake?  If not, you will have to write link and include lines yourself for your Makefile.<br>

<br>Pat<br><br><div class="gmail_quote">On Mon, May 2, 2011 at 1:20 PM, Bastien Purnelle <span dir="ltr">&lt;<a href="mailto:bastien911@gmail.com" target="_blank">bastien911@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

<div><div></div><div>Thanks Pat,<br>
<br>
I have searched for information about the live-data feature, but I<br>
found only two interesting links :<br>
<a href="http://www.vtk.org/Wiki/ParaView:Live_Data_Introduction" target="_blank">http://www.vtk.org/Wiki/ParaView:Live_Data_Introduction</a> and<br>
<a href="http://www.vtk.org/Wiki/Animating_Live_Data" target="_blank">http://www.vtk.org/Wiki/Animating_Live_Data</a><br>
In my case, the generating data program is a car embedded platform<br>
programming with C++/Qt. It contains a main program that manage many<br>
processes. Each process can be launched to do a particular feature and<br>
can communicate together with shared memories. For example, there is a<br>
process that reads vehicle speed from car network (CAN bus) and saves<br>
data into a shared memory. Another process uses this data to do some<br>
treatments with other data. The car is equipped with others sensors as<br>
radar, or lidar, or camera... and an process save data into the shared<br>
memory.<br>
The goal of my project is to create a process that read some data in<br>
many defines shared memories and to send this data to Paraview so that<br>
it displays for example a graph of speed changes and a representation<br>
of the car environment thanks to the radar and other data that we can<br>
choose before launching the process.<br>
So the process must be available to launch Paraview, open a predefined<br>
configuration and send in real time all data read into shared<br>
memories.<br>
For now, I have only played with Paraview thanks to some tutorials,<br>
but each time, data comes from a fixed file.<br>
First I would like develop a simple process that send the vehicle<br>
speed (a float number) and displays the value in a graph view into<br>
Paraview.<br>
Where can I found Paraview sources that use live-data ? Is there an<br>
example of program that interface with paraview library and send<br>
live-data ?<br>
Thank you in advance for your help.<br>
<br>
Bastien<br>
<br>
2011/4/27 pat marion &lt;<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;:<br>
</div></div><div><div></div><div>&gt; Hi Bastien,<br>
&gt;<br>
&gt; There is a feature called live-data that is able to display time variant<br>
&gt; data as it is produced by a simulation code.  The feature is currently<br>
&gt; available in a branch of paraview, not the main release.  To use this<br>
&gt; feature, the simulation code, or whatever external program is generating<br>
&gt; data, must interface with a paraview library through fortran, c, c++ or<br>
&gt; python.  The interface process is meant to be easy for a programming who is<br>
&gt; familiar with VTK, but will require some effort if you are new to VTK and<br>
&gt; cmake.  If you tell me a little more about your program that is collecting<br>
&gt; sensor data (don&#39;t be afraid to go into detail...), maybe I can come up with<br>
&gt; some ideas for how you could interface it with paraview.<br>
&gt;<br>
&gt; Pat<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Apr 27, 2011 at 5:31 PM, Bastien Purnelle &lt;<a href="mailto:bastien911@gmail.com" target="_blank">bastien911@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m developing an interface for displaying data from car embedded<br>
&gt;&gt; sensors (lidar, odometers,  ...) in real time. However, Paraview work<br>
&gt;&gt; with finite data files and I&#39;am searching a mean to use Paraview with<br>
&gt;&gt; time changing data. Is it a solution with Paraview (create a plugin, a<br>
&gt;&gt; python script) ?<br>
&gt;&gt; Thank you in advance...<br>
&gt;&gt;<br>
&gt;&gt; Best regards.<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Bastien<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br>
</blockquote></div></div></div><br></div></blockquote></div><br>