From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital output using C language

問題

1.NIから提供されているC言語プログラム(WriteDigPort.c)等を参考にデジタルシグナル出力を試みているがうまくいかない。

2.出力ポートとしてDev1/port1とかDev1/PFI3とかが見受けられるが、ターミナルのどこと対応するのかがわからない。

 

できれば、参考資料や参考プログラムなどの詳しい解説もしくは情報が欲しい。

よろしくお願いいたします。

 

環境

PCIe-6361

Terminal: BNC-2110

 

Problem

1. I tried to output a digital signal based on the sample program (e.g. writeDigport.c) provided by NI.  I could not output the signal.

2. In the sample program, I found that output ports were like "Dev1/port1", "Dev1/PFI3".  However I could not understand that the port names are corresponding which port on the terminal.

 

If it is possible, I would like to have the information that describe more detail about sample program or comments and so on.

 

envirnment

PCIe-6361

Terminal: BNC-2110

0 Kudos
Message 1 of 2
(2,692 Views)

tomy22 様

 

弊社ディスカッションフォーラムをご利用頂きまして誠にありがとうございます。
日本ナショナルインスツルメンツ技術部の衞藤と申します。

 

ご投稿いただきましたデジタル出力についてご連絡いたします。

 

まず、すでにご存知かもしれませんが、出力ポートの対応表は下記のリンクのPCIe6361の仕様書の13ページから配線を確認することができます。

 

NI 6361/6363 仕様

http://www.ni.com/pdf/manuals/370083b_0112.pdf

 

この中にあるP0.0というものがポートになります。

例えば、P0.0でしたらポート0のライン0という意味になります。

 

そして、BNC-2110ではAIなどはBNC端子として、デジタルやカウンタはバネ端子台にありますので、下記のリンクの9ページよりどちらがどのターミナルか確認できるかと思われます。

 

取り付けガイド BNC-2110
http://www.ni.com/pdf/manuals/372121f_0112.pdf

 

また、プログラム自体の詳しい解説としては、プログラムの上部に書かれている英文の説明や、PCのスタートからすべてのプログラム>>National Instruments>>NI-DAQ>>テキストベースコードサポートより関数の説明等も見ることができます。

 

特定の関数の解説が必要でしたら、こちらのフォーラムにどちらの関数の解説が必要か返信して頂ければと思います。

 

上記内容に関しましてご不明な点等ございましたら、お手数ですが再度ご連絡願います。

宜しくお願いします。

 

日本ナショナルインスツルメンツ株式会社
衞藤 圭 (Kei Eto)

0 Kudos
Message 2 of 2
(2,678 Views)