Forum: GNU Radio How to specify (const char *) type in xml

A82aa1d4b86ddc98aac2e6203440468d?d=identicon&s=25 Manu T S (Guest)
on 2013-09-21 20:22
(Received via mailing list)
Hello Everyone.

I have made an OOT module gr-ldpc. The ldpc encoder loads the parity
check
matrix data from a file. The constructor of this class takes as input
the
file name as parameter of type " const char * ".

I used following in param sector in the xml file.
-----------------------------------------------------
  <param>
    <name>File</name>
    <key>alist_file</key>
    <type>const char *</type>
  </param>
--------------------------------------------------------

I also tried using the following

--------------------------------------------------------
  <param>
    <name>File</name>
    <key>alist_file</key>
    <type>str</type>
  </param>
----------------------------------------------------------

To specify the file in the encoder block (in grc) I made a variable
block
and specified the file name within double quotes "file_name", and used
the
variable_id in place of the corresponding parameter in the encoder
block.
In both the cases the block is colored red and I can't run the
flow-graph.

What could I use to specify the file name?
A82aa1d4b86ddc98aac2e6203440468d?d=identicon&s=25 Manu T S (Guest)
on 2013-09-21 20:39
(Received via mailing list)
Got fixed when I used file_open type.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.