10-12-2012 02:26 AM
Hello All,
I need urgent help , I am using USRP as a receiver to collect data and store it as .tdms file, but after some seconds an error pop-up witha a message i.e.
Error -1074118647 occurred at niUSRP Fetch Rx Data(CDB WDT).vi
Possible reasons:
Overflow: an internal receive buffer has filled before the data could be returned.
I attached the error file snapshot. This error only appears when I start measurements with my Laptop, with home PC theer is no such error.
Kindly help me in this regard...
10-12-2012 02:27 AM
Kindly find the attachment...
10-12-2012 03:29 AM
Am not sure about how USRP works but from the error you provided it clearly shows that you have to clear the buffer at periodic interval. Check where you can configure the buffer size and how to manage the buffer.
10-12-2012 04:45 AM
Thanks for responce but will you please tell me how to allocate size to buffer and clear & manage the buffer. I am a bit new in this field. Any type of help will be greatly appreciated...
Regards
10-12-2012 05:21 AM
You mentioned that the program works on your home PC and not on the laptop, what is the RAM size of your home PC and your latop ?
10-12-2012 06:26 AM
Dear javed,
Both has the RAM of 4 GB but still on Laptop it give me an error after a few seconds of measurements.
Regards
10-12-2012 07:35 AM
This sounds like a simple case of you are not reading the data from the buffer quick enough. Care to share some code? Maybe we can find ways to speed it up some.
10-12-2012 08:21 AM
Hello,
Kindly find the attachement for my vi which is creating problem while running.
The configurations that I provided to USRP2 in order to run are as;
IP address: 192.168.10.2
IQ rate: 558.659 k
Frequency: 1700 M
Gain: 0~30
Active Antenna: RF2
Number of Samples: 1000
I would like to say thanks to all of you for your kind efforts to help me.
10-12-2012 08:35 AM
Yep, I saw exactly what I expected to see.
Look into using a Producer/Consumer framework. The idea here is to separate the acquisition from the writing to disk. You do this by using two loops: one for getting the data (producer), second one for writing to disk (consumer). The producer loop send the data to the consumer loop using a queue.
10-12-2012 11:58 AM
Respected Crossrulz,
As per your instructions and suggestion I read the document and some other literature and modified my .vi file and attached it for your reference. The one thing that bothers me is the "element data type" terminal in "obtain queue" block. Did I connect it correctly according to my receiving compley waveform. Kindly correct me if there is any error in my modified vi. In last, many thanks for your precious time and kind suggestions.
Best Regards