NI製品ディスカッション

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

特定の電圧値を取り出す

FGで100Hzに設定しcDAQに取り込み、電圧をLabviewを使いエクセルに1周期分を入れるようにしてあります。1周期20個のデータに角度を自分で入力しました。ここで質問なのですが、0度、90度、180度、270度の電圧を表示させるためにはどのようにすればいいのか教えて頂けませんでしょうか?4つの角度の電圧を出せるようにしたいです。

 

言葉足らずで分かりにくい部分があるとは思うので質問して頂ければ幸いです。

0 件の賞賛
メッセージ1/14
2,389件の閲覧回数

写真は貼り忘れたのでこちらに貼ります。無題.png99999999999999999999.png

0 件の賞賛
メッセージ2/14
2,380件の閲覧回数

日本語が下手ですけれど、やってみたい。後で、英語で書きますから、翻訳できます。

毎周期に18度incrementがあれば、0、90、180、270度は5個の1回あります。

Example_VI.png

 

毎周期に18度incrementがありません、Threshold 1D Array とInterpolate 1D Array を作れます。

 

If the points are always at 18 degree increments, then you can take just every 5th element. The VI Snippet shows an example of this.

If the points might be irregular (20 points per cycle, but not necessarily every 18 degrees) then you can use Threshold 1D Array and Interpolate 1D Array to search for the points you need as below:

Example_VI.png

 


GCentral
0 件の賞賛
メッセージ3/14
2,373件の閲覧回数

FGで100Hzに設定し2つの出力をcDAQに取り込み、電圧をLabviewを使いエクセルに1周期分入れるようにしてあります。1周期20個のデータに角度を自分で入力しました。ここで質問なのですが、270度だけの電圧を表示させるためにはどのようにすればいいのか教えて頂けませんでしょうか?99999999999999999999.png無題.png

言葉足らずで分かりにくい部分があるとは思うので質問して頂ければ幸いです。

0 件の賞賛
メッセージ4/14
2,287件の閲覧回数

回答ありがとうございます。いくつか名前の分からないブロックがあるので教えて頂けませんでしょうか?

0 件の賞賛
メッセージ5/14
2,265件の閲覧回数

Random Number (0-1)

Build Array

Index Array

Bundle

Quotient and Remainder

 

そのサイトは日本語で読めるかもしれません。

他のブロックがわからない、も一度聞いてください。


GCentral
0 件の賞賛
メッセージ6/14
2,258件の閲覧回数

ありがとうございます。

 

何度もすみません。他の90度とかいらないので、270度だけをだすことは可能ですか?

0 件の賞賛
メッセージ7/14
2,214件の閲覧回数

もちろん大丈夫です。

270度だけ探していれば、下の例文を見てください。

上では、90度を切召しましたが、同じイディアができます。

Example_VI.png

も一度下手な日本語がすみませんでした。

 

If you are only searching for the values at 270 degrees, you can use the same idea as suggested above. Here, I have changed from 90 to 270 for the "Search Angle", and use a For Loop to get each value at the "Search Angle" position.

Again I have used Threshold 1D Array and Interpolate 1D Array to find the values.

 

I added an extra section to allow the use of this VI with the same data repeatedly, so you can visualize the changes with "Search Angle" and "y" Controls.

 

The VI is attached (2019 version), or the Snippet (PNG) can be downloaded and dragged into a block diagram from the Windows Explorer.


GCentral
メッセージ8/14
2,200件の閲覧回数

データの添付ありがとうございます。しかし、バージョンが新しくて見れませんでした。

私は、Labview16.0を使っています。

0 件の賞賛
メッセージ9/14
2,188件の閲覧回数

LabVIEW 2016 version 🙂


GCentral
0 件の賞賛
メッセージ10/14
2,177件の閲覧回数