NI產品與技術 討論區

取消
顯示結果 
搜尋替代 
您的意思是: 

我在USRP接收了PCD/PICC之間通訊的訊號,並且想將他們同時寫成tdms檔案,以及在labview上用示波器同時印出波形。

我是利用queue的做法去把data在另一個迴圈取出,一開始嘗試程式都可以跑,但嘗試幾次後還是會跳出overflow的問題,而overflow這個問題我在之前實作的時候就已經有碰到,看了一些文章,所以才把迴圈分開寫,並且用queue的方式去做。請問有甚麼方式是可以讓我fetch data的那個while loop跑得比較快,而且還能同步處裡寫檔案以及顯示波型的架構嗎! 我這樣的作法可能哪部分出了問題!

labview新手,可能有些方式不太熟悉。

以下附上我的VI。

0 積分
1 條訊息(共 10 條)
217 檢視

Hi

You should move the code of around a TDMS to the bottom loop for better performance.

Thank you.

0 積分
2 條訊息(共 10 條)
167 檢視

你好!!

首先非常感謝你的回覆😊!

這個方法我也在之前嘗試時試過,但是我在fetch data那邊還是會跳overflow的問題

很奇怪的是,我在剛開啟電腦時run程式,他還可以正常運作幾次,但是一旦我結束程式幾次以後,他就會開始跳出overflow了,我已經盡量把fetch data那邊精簡化了,取data的方式也透過queue的方式改到另一個迴圈了,實在不知道為甚麼這個問題還是會發生!
這將會使我一直無法提高我的取樣率。😥

0 積分
3 條訊息(共 10 條)
150 檢視

Hi

What model number of USRP are you using?
How to connect PC and USRP?
Number of samples seems too large. For example, how about about 10K?
It is a idea to move the "data out" indicator in the upper loop to the lower loop.

Even if you remove the lower loop to simplify the problem and run it, does the overflow still occur?

0 積分
4 條訊息(共 10 條)
139 檢視

你好:

1.我使用的是USRP-2944。

2.目前是透過thunderbolt接在PC上。

3.樣本數的問題,因為我們要觀察的訊號在13.56MHZ,我們需要盡量提高sampling rate以避免aliasing的問題,

樣本數有甚麼比較好的調整方法嗎?因為我如果用太低的樣本數,他也會跳overflow!!

4.我已經將data out移除,目前測試起來有比之前更少出現overflow,似乎改善了一點。

5.沒錯,我之前試過100M的sampling rate ,但是在Number of sample那邊似乎取的不夠快,還是會有overflow的問題。

 

以下附上我最近使用的測試數據的設定值。

目前用起來還可以,有時候發生錯誤只要重開機或是多跑幾次就可以了,是有點奇怪,但還是可以用,只是不明白確切的問題!
發生的錯誤訊息:
niUSRP Configure Signal.vi<ERR>A runtime or configuration error occurred.
Code: 41
Details: EnvironmentError: IOError: Timed out getting recv buff for management transaction

下載全部
0 積分
5 條訊息(共 10 條)
113 檢視

Hi

 

Is the connection method as follows?
PC<->Thunderbolt<->Ethernet<->USRP2944

 

Send and receive buffer sizes should be maximized. This can be configured from the network interface property page.

 

If you are connecting USRP and PC via Ethernet, please refer to my page below.


https://mikioblog-dolphinsystem-jp.translate.goog/2016/07/usrp.html?_x_tr_sch=http&_x_tr_sl=ja&_x_tr...

0 積分
6 條訊息(共 10 條)
105 檢視

你好!首先感謝你的回覆:

我的連接方式是

PC<<Thunderbolt<<PICE X4<<USRP

0 積分
7 條訊息(共 10 條)
101 檢視

Hello.
The attaced VI file achives to fetch 200Msps without overflow on my PC and USRP.

Please tell me your results to use the VI.

 

PC : Core i9-10900K, PCIe x4
USRP : NI-USRP 2954R
LabVIEW 2022 32bit

0 積分
8 條訊息(共 10 條)
83 檢視

Hello,thanks for replying!

我套用了您的VI嘗試過了好多次,甚至試過不同的 number of samples 去測試都沒辦法。

分別由小至大嘗試過了(5.1M,6.12M,.......,102M)

跳出的錯誤訊息總是如下:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////

1.overflow problem:

niUSRP Fetch Rx Data (CDB Cluster).vi<ERR>Overflow: an internal receive buffer has filled before the data could be returned. Consider reducing the I/Q rate, increasing the Fetch rate, or increasing the number of samples per Fetch. The recommended number of samples per Fetch is a multiple of 1020.

2.management transaction problem:(sometimes happened)

niUSRP Configure Signal.vi<ERR>A runtime or configuration error occurred.
Code: 41
Details: EnvironmentError: IOError: Timed out getting recv buff for management transaction

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
我想應該與我的PC性能有關係?!

PC : Core i7-1255U, PCIe x4

Memory:40GB
USRP : NI-USRP 2944R
LabVIEW 2021 64bit

0 積分
9 條訊息(共 10 條)
58 檢視

Hi

Probably the Thunderbolt PCIe docks causes this problem.

You should install the PCIe interface card in PCI Express slot.

Thank you.

0 積分
10 條訊息(共 10 條)
51 檢視