| 1 | 1/1 | 返回列表 |
| 查看: 798 | 回復: 0 | ||
[求助]
使用session-based interface CounterOutputChannel控制電機移動
|
|
以前用老版本的interface編程思路是: 對電機發(fā)脈沖,通過設定步數來使讓電機走幾步。 但現在使用session-based interface后里面的屬性都變了。 s = daq.createSession('ni'); ch = s.addCounterOutputChannel(DevicesID, 'ctr0', 'PulseGeneration'); 這是我的建立通道代碼 我看了下s的屬性 s.NumberOfScans, s.DurationInSeconds, s.Rate, s.IsContinuous, s.NotifyWhenDataAvailableExceeds, s.IsNotifyWhenDataAvailableExceedsAuto, s.NotifyWhenScansQueuedBelow, s.IsNotifyWhenScansQueuedBelowAuto, s.Vendor, s.Channels, s.IsRunning, s.IsLogging, s.IsDone, s.RateLimit, s.ScansQueued, s.ScansOutputByHardware, s.ScansAcquired 這些屬性中我所使用的一個是s.NumberOfScans, s.DurationInSeconds, s.Rate三個。 我的問題是:之前我使用 s.DurationInSeconds, s.Rate來控制電機的移動,但是總是存在誤差,后來改用s.NumberOfScans雖然設定了數量,但是誤差依然存在。 matlab幫助文檔里面對NumberOfScans的描述是這樣的: When working with the session-based interface, use the DurationInSeconds property to change the duration of an acquisition. When the session contains output channels, DurationInSeconds becomes a read only property and its value is determined by s.scanQueued/s.Rate. 這又是什么意思。 我在想是不是不管我設置什么,matlab都會自動折算成時間。 |
| 1 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 265求調劑 +8 | 小木蟲085600 2026-03-27 | 8/400 |
|
|---|---|---|---|---|
|
[考研] 315分求調劑 +6 | 26考研上岸版26 2026-03-26 | 6/300 |
|
|
[考研] 277跪求調劑 +5 | 1915668 2026-03-27 | 8/400 |
|
|
[考研] 085600材料與化工調劑 +10 | A-哆啦Z夢 2026-03-23 | 16/800 |
|
|
[考研] 復試調劑,一志愿南農083200食品科學與工程 +5 | XQTJZ 2026-03-26 | 5/250 |
|
|
[考研] 考研化學308分求調劑 +10 | 你好明天你好 2026-03-23 | 12/600 |
|
|
[考研] 317求調劑 +5 | 十閑wx 2026-03-24 | 5/250 |
|
|
[考研] 315調劑 +4 | 0860求調劑 2026-03-26 | 5/250 |
|
|
[考研] 調劑推薦 +5 | 清酒714 2026-03-26 | 6/300 |
|
|
[論文投稿] Journal of Mechanical Science and Technology +3 | Russ_ss 2026-03-25 | 5/250 |
|
|
[考研] 276求調劑。有半年電池和半年高分子實習經歷 +10 | 材料學257求調劑 2026-03-23 | 11/550 |
|
|
[考研] 機械學碩310分,數一英一,一志愿211本科雙非找調劑信息 +3 | @357 2026-03-25 | 3/150 |
|
|
[考研] 一志愿上海交大生物與醫(yī)藥專碩324分,求調劑 +6 | jiajunX 2026-03-22 | 6/300 |
|
|
[考研] 0854人工智能方向招收調劑 +4 | 章小魚567 2026-03-24 | 4/200 |
|
|
[考研] 285求調劑 +3 | AZMK 2026-03-24 | 3/150 |
|
|
[考研] 材料調劑 +3 | iwinso 2026-03-23 | 3/150 |
|
|
[考研] 一志愿南航材料專317分求調劑 +5 | 炸呀炸呀炸薯條 2026-03-23 | 5/250 |
|
|
[考博] 26申博自薦 +3 | whh869393 2026-03-24 | 3/150 |
|
|
[考研] 070300,一志愿北航320求調劑 +3 | Jerry0216 2026-03-22 | 5/250 |
|
|
[考研] 求調劑一志愿海大,0703化學學碩304分,有大創(chuàng)項目,四級已過 +6 | 幸運哩哩 2026-03-22 | 10/500 |
|