Vector Source_Sink and Flow Control

I need to ask two questions…

  1. What is the purpose of vector sink and/or vector source in GRC. If i
    convert a stream from USRP2 into a vector and connect the result to a
    vector sink, what information i can have and how do i acess that vector
    (ploting or writing to a file etc)…

  2. I need to invoke/run certain type of file from GRC (like .cpp). If i
    have a working flow graph, is it posible to add certain functin/button
    to open or execute certain command (may be thru terminal)? I also ned to
    know about controlling the flow graph through buttons etc (like when i
    press certain button then it shouls show FFT graph etc)…

Regards,
Umair N.
MSc Communication Engineering
Chalmers University ot Technology, Sweden.

It looks like what you want to do is outside of the scope of GRC. You
will need to create custom blocks to provide that functionality, or make
hand-written python code with wxpython.

-Josh

On 04/28/2010 05:44 AM, Umair N. wrote:

I need to ask two questions…

  1. What is the purpose of vector sink and/or vector source in GRC. If i convert a stream from USRP2 into a vector and connect the result to a vector sink, what information i can have and how do i acess that vector (ploting or writing to a file etc)…

The vector sink actually has no purpose in grc. The idea of the vector
sink was to have an easy way to get a small vector of data out of a
block and into python to make QA code. It doesnt make every much sense
to have in a block diagram; its just there for completeness.

  1. I need to invoke/run certain type of file from GRC (like .cpp). If i have a working flow graph, is it posible to add certain functin/button to open or execute certain command (may be thru terminal)? I also ned to know about controlling the flow graph through buttons etc (like when i press certain button then it shouls show FFT graph etc)…

Not sure what what invoke a .cpp file means.