All pastes #61196 Raw Edit

Anonymous

public text v1 · immutable
#61196 ·published 2006-06-02 21:30 UTC
rendered paste body
void dataOut_RX_Control_i::setup_usrp(){

    _RX_Control->set_number_of_channels(1);
    _RX_Control->set_frequency(0, 1430000);
    _RX_Control->set_decimation_rate(0, 256);
    _RX_Control->set_data_packet_size(0, 16384);

    float gmin, gmax, gstep;
    gmax=20;
    //outPort0_port->get_gain_range(0, gmin, gmax, gstep);
    _RX_Control->set_gain(0, gmax);
    
    CF::Properties rx_config;
    rx_config.length(1);
    rx_config[0].value <<= (CORBA::ULong) 1;

   _RX_Control->set_values(rx_config);
   _RX_Control->start(0);
   std::cout << "Made it to the end of the setup_usrp" << endl;
}