LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Message 1 of 7
(6,228 Views)

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
Message 2 of 7
(6,211 Views)
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.
Message 3 of 7
(6,205 Views)

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 Kudos
Message 4 of 7
(6,195 Views)

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 Kudos
Message 5 of 7
(6,171 Views)
yes ,,, thats exactly what i want to do 
0 Kudos
Message 6 of 7
(6,158 Views)

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
Message 7 of 7
(6,144 Views)