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

boolean pulse duration

I messed up and posted this in the DAQ forum and couldn't see a way to move it to the Labview forum.

How would you measure the duration of the zeroes and ones in a boolean array of data?? I want to know the length of the on/off values in each segment.
0 件の賞賛
メッセージ1/7
3,763件の閲覧回数
Hi Unncle,

I owe so here is a quick hack to get you started.

I search for alternating T/F's noting the index of each.

The difference in the index values times your sample period should give you an answer.

Ben

PS Its a quickie so test thoroughly.

Message Edited by Ben on 05-20-2005 01:40 PM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 件の賞賛
メッセージ2/7
3,753件の閲覧回数
Thanks Ben,

I'll take a look at it after I get done covering the maintenance people at shift startup. It looks like we need some new analysis vi's for the digital waveform and digital data types. The pulse measurements only work on analog data.
0 件の賞賛
メッセージ3/7
3,722件の閲覧回数
Hi Ben,

Could you save that file as a 7.0 format?? Thanks..
0 件の賞賛
メッセージ4/7
3,718件の閲覧回数
Same comments as before.

It just gets you started.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
メッセージ5/7
3,688件の閲覧回数
I modified some of the standard digital table vi's. It outputs a cluster with the signal level, duration of the pulse, and column for bit change. Right now the transitions are based on any of the 8 bits changing state. I'll have to modify the compression vi to search for bit changes in each of the eight data columns.
メッセージ6/7
3,661件の閲覧回数

Hi Ben

 

this is an old post, but your example helped me a lot, thanks.

 

The extension of your example in analyze saved data rev4.llb ‏263 KB however does not produce correct results for me, but I couldn't see why so far.

 

Cheers

0 件の賞賛
メッセージ7/7
3,136件の閲覧回数