08-04-2010 11:45 AM
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
Solved! Go to Solution.
08-04-2010 12:15 PM
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.
08-04-2010 01:04 PM
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.
08-04-2010 01:05 PM
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
08-04-2010 01:17 PM
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.
08-04-2010 01:31 PM
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
08-04-2010 01:41 PM
You should mark TBOB's answer as the solution and give him a kudo
08-04-2010 02:33 PM
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