From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

サンプルコードとドキュメント

Stimulus Profileからの信号をトリガに、Waveformタスクで集録を行う

コードとドキュメント

添付

概要

VeriStandプロジェクトをデプロイしておき、有限集録のWaveform taskを再トリガ有効にした状態で、

Stimulus Profileからのトリガを受け取ってデータ集録を行います。

詳細

VeriStandプロジェクトのWaveform Tasksを使用することで、タスクによるデータ集録を行うことができます。

Waveform Task Channels

Features for Logging Waveform Data to Disk

◎ VeriStand側の設定

Task_E.png

設定をFiniteかつRetriggerableの設定をTrueにしておくことで、外部トリガに対して再トリガを有効にした、

データ集録を行うことが可能です。今回のアプリケーションではトリガにソフトウェアトリガを使用しますので、

Triggersの設定で "Trigger Type" を "Software" にしておいてください。

ret.JPG

◎ Stimulus Profile側の設定

まずトリガ信号用のリアルタイムシーケンスを作成します。

real_seq.JPG

上記では、Bool_Dataのパラメータ状態を、False >> True >> Falseの順で変更することで、

トリガ信号を作成しています。

これをStimulus Profileから呼び出します。

Stimulus Profileでは、同時にAbsolute Time (Targets/Controller/System Channels/Absolute Time)

のログを行っています。

Stimulsu Profileを実行することにより、Waveform Taskによるデータ集録を連続して行うことができます。

result.png

必要なもの

ソフトウェア

・VeriStand 2014

ハードウェア

・DAQデバイス

・今回のテストには、PXI Real Timeを使用していますが、必須ではありません。

NIコミュニティのサンプルコード交換のサンプルコードは、MIT Licenseによりライセンス供与されています。

コメント
dennis.chen
Member
Member

看不懂。语言不通

Yusuke.T
NI Employee (retired)

Thank you for your comment.

I created this example for japanese VeriStand user.

I don't have a plan to translate this document to Chinese language.

But as you know, NI VeriStand uses English.

You can see what's happening in this project by installing my example code.

Best Regards, Yusuke

dennis.chen
Member
Member

Thanks

I will use English to communicate with Labview Lover from all the world

Best regards!

Dennis Chen

Yusuke.T
NI Employee (retired)

Hi Dennis, I'm very glad that you gave me a comment.

Please feel free to post any comment when you have any opinion!

Yusuke

寄稿者