
發布
注冊
/
登錄device的案例
analysis of flexible devices with TEA Pipe Beam – Input data
Chaptor2 analysis of flexible devices withTEA Pipe Beam – Input data
主要介紹了TEA Pipe的數據定義,詳細主要內容如下:
1.Simple computation purpose
2.Different steps in using TEA Pipe
3.General data page
4.Pipe definition
4.1. Pipe definition page
4.2. Pipe length
4.3. Pipe physical properties
4.4. Internal fluidproperties
4.5. Connectors
4.6. Remarks
4.7. Auxiliary data
4.8. Temperature management
5.Intermediate supports
6.Preformed Pipe definition
6.1. Preformed Pipedefinition page
6.2. Classical case
7.History definition
7.1. History definition page
7.2. Pre-mountingconfiguration
7.3. Initial configuration
7.4. Final configuration
7.5. History definition
7.6. History definition -Actions
7.7. History definition –Predefined strategies
7.8.
展開 教你用10行Python 代碼實現自動化群控
實戰
自動化群控以閑魚 App 的一次關鍵字搜索為例,步驟包含:打開應用、點擊到搜索界面、輸入內容、點擊搜索按鈕
下面通過 7 步來完成這一操作
1、獲 取目標應用的包名及初始化 Activity
獲取方式有很多種,主流方式包含:adb 命令、解析 APK、第三方 APK、 無障礙服務
這里推薦使用 adb 命令這種方式
# 獲取當前運行應用的包名及初始Activityadb shell dumpsys activity | grep -i run
打開閑魚 App,在命令終端輸入上面的命令,終端會將包名及 Activity 名稱顯示出來
2、獲取 所有在線的設備
通過 adb devices 命令,通過輸出內容,進行一次過濾,得到所有連接到 PC 端的設備
# 所有設備IDdevices = []def get_online_devices(self):
"""
獲取所有在線的設備
:return:
"""
global devices try: for device_serias_name in exec_cmd("adb devices"): # 過濾掉第一條數據及不在線的設備
if "device" in device_serias_name:
devices.append(device_serias_name.split("\t")[0])
devices = devices[1:] except Exception as e:
print(e) # 連上的所有設備及數量
return devices
3、群控打 開目標應用
展開 #InTouch#如何實現InTouch和S7 PLC的通信
9.右鍵點擊“Device Group”對話框中的空白地方,添加新的Device Group(類似主題名)到Device Group對話框中。如下圖4所示:
圖4. Device Group 對話框
10.選擇并用右鍵點擊默認名Topic_0, 把它重新命名成一個有意義的名字,如S7PLC, 如圖5所示:
11.在左面的樹形結構圖中,右鍵點擊ArchestrA.DASSIDirect.1并從子菜單中選擇“Activate Server”來啟動此DA Server,ArchestrA.DASSIDirect.1旁邊的圖標將由紅變成綠,如下圖6所示:
圖6. SIDirect DA Server已激活
測試此 DASSIDirect Server
DASSIDirect Server已經準備就緒,下面做一個快速的通信測試來驗證和我們可以和PLC的連接。
1.點擊“開始/運行”并鍵入WWClient啟動Wonderware WWClient程序。
2.從主菜單上選擇“Connection/Create”,將出現“Create Connection”對話框。
3.輸入正確的信息,如圖7所示:
◆ Node: 此處為空白,因為DASSIDirect Server和WWClient在同一臺計算機中。否則,輸入運行DAServer的機器的名字。
◆ Application: DASSIDirect, SIDirect DAServer的應用程序名。
◆ Topic: S7PLC,我們剛才在DASSIDirect的Device Group對話框中新建的Device Group。
◆ Connection Type: IOT,在這里,我們使用SuiteLink協議。
圖7.
展開 PN通訊網絡子站怎么更換?操作很簡單!
在PN網絡中,各個子站都有唯一的設備名稱-Device name。PLC主站就是根據“Device name”來識別各個子站,完成數據通訊。因此在I/O模塊更換操作時,在保證模塊訂貨號一致的情況下,還要輸入新模塊的MAC地址,設置IP地址,之后還要給新模塊分配一個設備名稱“Device name”。只有IP地址和“Device name”與更換前的模塊一致后,新模塊才能正常使用。
操作步驟:
1.記錄舊模塊的IP地址、設備名稱(Device name);
2.更換新模塊,注意記錄模塊的MAC地址,上電;
3.打開STEP7的硬件管理器,點擊online,此時新模塊會顯示故障狀態;
4.點擊新模塊,選擇菜單PLC->Ethernet->Edit Ethernet Node;
5.在彈出對話框中,核對MAC地址,并分配IP地址和“Device name”。
6.編譯下載
PN網絡I/O模塊更換操作時,必須要給新模塊分配“Device name”。只有IP地址和“Device name”與更換前的模塊一致后,新模塊才能正常使用。
展開 
PN通訊網絡子站怎么更換?操作很簡單!
在PN網絡中,各個子站都有唯一的設備名稱-Device name。PLC主站就是根據“Device name”來識別各個子站,完成數據通訊。因此在I/O模塊更換操作時,在保證模塊訂貨號一致的情況下,還要輸入新模塊的MAC地址,設置IP地址,之后還要給新模塊分配一個設備名稱“Device name”。只有IP地址和“Device name”與更換前的模塊一致后,新模塊才能正常使用。
操作步驟:
1.記錄舊模塊的IP地址、設備名稱(Device name);
2.更換新模塊,注意記錄模塊的MAC地址,上電;
3.打開STEP7的硬件管理器,點擊online,此時新模塊會顯示故障狀態;
4.點擊新模塊,選擇菜單PLC->Ethernet->Edit Ethernet Node;
5.在彈出對話框中,核對MAC地址,并分配IP地址和“Device name”。
6.編譯下載
PN網絡I/O模塊更換操作時,必須要給新模塊分配“Device name”。只有IP地址和“Device name”與更換前的模塊一致后,新模塊才能正常使用。
展開 #InTouch實例#InTouch訪問名中的DASSIDirect
9.右鍵點擊“Device
Group”對話框中的空白地方,添加新的Device Group(類似主題名)到Device Group對話框中。如下圖4所示:
圖4. Device Group 對話框
10.選擇并用右鍵點擊默認名Topic_0, 把它重新命名成一個有意義的名字,如S7PLC, 如圖5所示:
圖5. S7PLC Device Group
11.在左面的樹形結構圖中,右鍵點擊ArchestrA.DASSIDirect.1并從子菜單中選擇“Activate Server”來啟動此DA
Server,ArchestrA.DASSIDirect.1旁邊的圖標將由紅變成綠,如下圖6所示:
圖6. SIDirect DA Server已激活
測試此 DASSIDirect Server DASSIDirect
Server已經準備就緒,下面做一個快速的通信測試來驗證和我們可以和PLC的連接。 1.點擊“開始/運行”并鍵入WWClient啟動Wonderware
WWClient程序。 2.從主菜單上選擇“Connection/Create”,將出現“Create Connection”對話框。
3.輸入正確的信息,如圖7所示:
! Node: 此處為空白,因為DASSIDirect
Server和WWClient在同一臺計算機中。否則,輸入運行DAServer的機器的名字。
! Application: DASSIDirect,
SIDirect DAServer的應用程序名。
! Topic: S7PLC,我們剛才在DASSIDirect的Device
Group對話框中新建的Device Group。
!
展開 干貨 | 超實用!嵌入式系統詞匯表
device driver(設備驅動程序) A software module that hides the details of a particular peripheral and provides a high-level programming interface to it. 一個軟件模塊,它隱藏特定外設的細節并提供高級的外設編程接口。
device programmer(設備編程器) A tool for programming non-volatile memories and other electrically-programmable devices. Typically, the programmable device is inserted into a socket on the device programmer and the contents of a memory buffer are then transferred into it. 一種用來對不揮發內存和其他電可編程設備進行編程的工具。典型地,可編程設備被插到設備編程器的接口上,接著內存緩存器中的內容被傳送到它里面。
digital signal processor(數字信號處理器) A device that is similar to a microprocessor, except that the internal CPU has been optimized for use in applications involving discrete-time signal processing.
展開 利用Lumerical 有效實現太陽能電池光電特性仿真
本案以Lumerical 軟件為例,介紹利用FDTD與DEVICE模塊實現可見光波段典型硅光太陽能電池的光電特性仿真。
1、 構建光學吸收模型
建立合適的邊界條件和光源設置,搭建典型的硅平板太陽能電池結構在正向太陽光的照射下光吸收模型。
二、計算載流子產生率G
FDTD模塊可以利用上述物理學公式,腳本編程計算出電池內部空間分布的載流子產生率。
載流子產生率在平板電池中表現為上層值較大,底部值較小,說明入射光大部分被電池上層吸收,能夠穿透電池到達電池底部被半導體耦合吸收的入射光是極少數。
三、搭建電學仿真模型
DEVICE模塊為后續電學仿真提供了高效快捷的電學特性計算途徑。在電學仿真模塊中需要考慮電池窗口層材料,金屬電極材料,歐姆接觸,摻雜與復合等因素。
通過優化電池電學參數可以有效提高電池的光電轉換效率。但是考慮到電池實際處于的物理環境,電學仿真比純光學仿真計算結果更加接近實際的電池工作效率。
4、 導入載流子產生率至電學模塊
載流子產生率是連接電池光學模塊和電學模塊的橋梁。將波長積分計算得到的載流子產生率導入DEVICE模塊可以繼續仿真計算電池電學特性。
DEVICE模塊為用戶提供了友好方便的載流子產生率導入界面,用戶可以使用FDTD模塊計算得出的G數據集載入控件窗口,并可以針對偏振光或非偏振光設置修正系數。
5、 掃描負載電壓計算電流響應
對于太陽能電池,短路電流和開路電壓是衡量其光電轉換效率的直接指標。除此之外,可以通過進一步計算得出電池的功率-電壓曲線,得出電池的最大功率工作點,這對電池的使用場景極為重要。
用戶在估測電池的開路電壓范圍的基礎上確定需要計算的負載電壓范圍,實現電流-電壓一一對應的曲線結果計算。
展開 熱界面材料(TIM)近期熱文速覽
The proposed strategy opens up a novel and high-throughput preparation strategy for the high-performance TIM for modern electronic devices.
03
Liu Yang, Jiachen Guo, Ling Zhang, et al. Superior thermally conductive, mechanically strong and eletrically insulating nacre-mimetic chitosan/boron nitride nanosheet composite via evaporation-induced self-assembly method[J]. Polymer.
鏈接:doi.org/10.1016/j.cej.2023.143874
總結:該文通過綠色、簡單的蒸發誘導組裝技術,可以大規模制備具有優異導熱系數、高絕緣性和堅固力學性能的納米級CS/BNNS薄膜。實驗結果表明,CS/BNNS薄膜在70 wt%時的拉伸強度高達104.5 MPa, 導熱系數為26.3 W/(m·K)。
Abstract: The development of electronic devices and the strict application environment put forward more requirements on the heat dissipation materials.
展開 AUTOSAR 架構下看門狗的理解
WdgMMode :
1)WdgMAliveSupervision :激活監控模式
2 ) WdgMDeadlineSupervision :截止監控模式
3)WdgMLocalStatusParams :邏輯監控模式
4)WdgMSupervisedEntity :監控實體
WdgMWatchdog :
:
管理的Wdg Device,需要關聯WdgIf 的Device,通過配置的WdgM_ConfigSet關聯不同的Device,可以實現不同的Wdg Device關聯不同的Core。
1.、關聯WdgIf Device
2、關聯Trigger 的Device
3、關聯Core
3
源碼分析
WdgIf 有兩個對外接口:
Std_ReturnType WdgIf_SetMode(uint8 DeviceIndex, WdgIf_ModeType WdgMode )
void WdgIf_SetTriggerCondition( uint8 DeviceIndex, uint16 Timeout )
都是通過DeviceIndex 來確定所屬的驅動列表,WdgM模塊會通過所管理的Device數量來輪詢調用接口
截取一段WdgM_Init的代碼說明:
1、內部狗與外部狗的區別
WdgM對外部狗與內部狗的管理方式相同,都是通過SetTriggerCondition的方式設置,在通過關聯的Gpt模塊的Ckb函數來實現喂狗。
展開 Direct3D (DirectX 9.0) Code Samples 
Download (Last Updated: 02/11/05)
Resizing DirectX 9.0 Window
This sample demonstrates how to respond to the app's window getting resized by resizing the front and back buffers of the Direct3D device to match it. If you don't do this, Direct3D will be forced to perform a stretch blit when the window is enlarged and everything rendered will appear course and blocky. For example, if the initial window size and Direct3D device are set to 640x480 and you enlarge the window to be 1024x768, the Direct3D device will continue to render at 640x480 unless its front back buffers are resized accordingly.
Relevant Keywords: WM_SIZE, Reset, BackBufferWidth, BackBufferHeight, and Release.
展開 
在RP Fiber Power 中建模多級放大器
解決方案很簡單:為了告訴RP Fiber Power 軟件接下來會發生什么,您可以使用一個函數調用像set_device(2)——例如,光纖的定義相應的光學通道,或計算數據的檢索,是指第二個設備,這可能是第二次放大級。
下面,我們向你您展示一些計算雙級光纖放大器穩態的示例代碼,其中信號從第一級到第二級,而一些從第二級的剩余泵浦光進入第一級(ASE被忽略)。
常見FCC認證測試標準 產品FCC認證常見標準
A device that intentionally generates radio frequency energy for use within the device, or that sends radio frequency signals by conduction to associated equipment via connecting wiring, but which is not intended to emit RF energy by radiation or induction.有意產生射頻能量供給裝置內部使用或通過連線將射頻信號傳送給有關設備使用,但不是有意輻射或感應的方式來發射射頻能量的任一裝置。
關于出口FCC認證 檢測更多詳情可以咨詢我們!
展開 全過程記錄---檢查PyTorch是否在使用GPU
__version__)
(2) 檢查是否可使用CUDA
torch.cuda.is_available()
(3) 檢查CUDA版本
torch.version.cuda
(4) 檢查有幾個GPU
torch.cuda.device_count()
(5) 檢查目前的GPU
torch.cuda.current_device()
(6) 檢查目前GPU的設備名稱
torch.cuda.get_device_name(torch.cuda.current_device())
(7) 檢查內存
torch.cuda.memory_allocated(0)/1024**3torch.cuda.memory_reserved(0)/1024**3
5 結束語
目前的配置如下: PyTorch 版本1.9.0+cu102,只有1個GPU, 設備名稱GeForce GTX 1660 SUPER, 顯存6G。查了一下,發現這是2019年10月推出的產品,目前的市場價格大約在1600元。接下來我們的訓練模型將在GPU上運行,但不知速度能提高多少。
展開 Direct3D (DirectX 9.0) Code Samples 
Download (Last Updated: 06/02/05
- C++
)
Download (Last Updated: 06/15/05 - C#)
Multiple Devices
This sample demonstrates how to render to multiple windows using multiple devices under DirectX 9.0. You should note that this is not considered the most optimal way to manage two windows from one application. The preferred method is to create one Direct3D device and use CreateAdditionalSwapChain() to create additional front and back buffer pairs for rendering in multiple windows. This allows two windows to share resources like meshes and textures and keeps the driver from performing a costly context switch between multiple devices. The usage of CreateAdditionalSwapChain() is covered in the sample below.
展開