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

convert signal to binary string

Hi all : I get waveform signal (square signal) from scope .. and  I want to convert this signal  to binary string …  

Can I do that in labview 8.5

 

thanks

メッセージ1/7
6,356件の閲覧回数

hello elyan,

 

tell a little bit more , but its probably possible with treatments...

 

best regards

 

Tinnitus

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
メッセージ2/7
6,339件の閲覧回数
You can do lots of things in LabVIEW. First, you need to specify what you mean by a "binary string". That's not a pre-defined term, and it's a vague one at best.
メッセージ3/7
6,333件の閲覧回数

I'm not entirely clear on what you are asking but you could try this:

Create an array of x and y values from the signal, with however many points you want.

Then convert the values to binary.

Is that what you want to do? If so, I can show you a quick example 

Cory K
0 件の賞賛
メッセージ4/7
6,323件の閲覧回数

elyan a écrit:
Hi all : I get waveform signal (square signal) from scope .. and  I want to convert this signal  to binary string …  

Hello,

 

Is that what you want to do ?

sage Edité par tinnitus le 12-31-2008 05:35 AM
Message Edité par tinnitus le 12-31-2008 05:36 AM
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 件の賞賛
メッセージ5/7
6,299件の閲覧回数
yes ,,, thats exactly what i want to do 
0 件の賞賛
メッセージ6/7
6,286件の閲覧回数

Well, to do so you need to first convert the analog signal to binary code. Do you have the square signal from the scope in the first place? If so, you have the array of voltage values that you downloaded from the scope. Then, convert that to zeros and ones by simply putting the array into a comparison function that sees if the value is greater than some voltage, to indicate a 1. This gives you an array of Booleans. At that point it is trivial to convert it to a string. For example, here is one simple way to do it:

 

 

 

@tinnitus: Please attach images inside the post instead of hosting them on an outside site like ImageShack.

Message Edited by smercurio_fc on 12-31-2008 09:02 AM
メッセージ7/7
6,272件の閲覧回数