LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i need help with the analog to digital VI

Solved!
Go to solution

 

 

hi there

 

i'm trying to create some sort of 13 bit virtual adc  

 

what i want to do is to use a simulated signal ( e.g. sine, squared, etc.)  sample it at a frecuency rate of 8 khz and send each digital sample by de serial port. 

 

the thing is that i don't really know how to use the analog to digital VI, I know it converts an analog signal into a digital waveform or table but i want to be able to use that digital data and not just watch it on a table

 

sorry for my bad english  and thanks in advance

0 Kudos
Message 1 of 8
(3,920 Views)

Do you have code and data for what you are currently doing? It would be easier to help if we can see what you are trying to do and your end objective.

Tim
GHSP
0 Kudos
Message 2 of 8
(3,910 Views)
Solution
Accepted by topic author msicsick

This code shows basic conversion of a sine wave to digital data with 8 bit resolution, then convert the digital data to a byte array.  Send one byte at a time over the serial port.

 

20655i9B9E9776F8D4A79B

- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 8
(3,902 Views)

 

 

well i disigned  a digital telphone switch (PABX)  on a fpga and y want to test it with labviews signals so i dont have to buy expencive ICs (adcs and stuff)

 

my idea is to use labview to simulate analog signals and sample them to send that digital information to my PABX and once its been switched  send it back to lab view and display the switched information on a waveformchart or something.

 

 

hope you get my idea i just dont know how to xplain

 

there's the VI i made to try to understand how the analog to digital VI works   

 

thanks for your help

Download All
0 Kudos
Message 4 of 8
(3,901 Views)

You must not have seen my reply when you posted.  You have half of it right.  Now just add the last function to convert the digital data to a binary array, then send one byte at a time to your PBX.

 

You have your resolution set to 13 bits.  Is this what you want?  Why not 16 bits?  You still have to send one byte (8 bits) at a time.  SO choose a resolution of either 8 or 16 or even 32.  Also, you may need to set the amplitude input for the analog to digital vi.  The default is 2.  The amplitude should be set to whatever your max analog amplitude is for a true digital representation.

 

- tbob

Inventor of the WORM Global
Message 5 of 8
(3,894 Views)

 

 


you're right i didn't see your reply, well im usin a the 8.6 version of labview and i cant find that digital waveform to binary vi but i used some difrent vis and i think it worked .  yeah i need 13 bits for my PABX but i think im gonna use 8 to make it easier

 

thank you so much for your help im gona keep trying to finish this work 

 

 

check my vi

0 Kudos
Message 6 of 8
(3,881 Views)

You should mark TBOB's answer as the solution and give him a kudo

Tim
GHSP
0 Kudos
Message 7 of 8
(3,874 Views)

Here is the 8.6 version of my vi.  Digital to Binary is located in the palette Waveform - Digital Waveform - Conversion.  I'm using 2009.  It might not be the same location in 8.6, but you could click the Search button on the funtions palette and type in Digital to Binary.vi

- tbob

Inventor of the WORM Global
0 Kudos
Message 8 of 8
(3,860 Views)