LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i read a 8 channel 12 bit adc?

Hello to all,

I don’t know how to get the data from a 8 channel 12bit ad card into the pc by serial port.

I want to open the serial port and to read the data out. The data consists of eight hex codes, one for every channel. The hex code must be transformed into a voltage. The 8 voltages must be stored in a file.

Maybe someone can help me or has a vi for me.

 

thanks for your help
0 Kudos
Message 1 of 9
(4,499 Views)

Hi labviewviewer,

can you show your hex codes? Which range do you measure? You need to know how many of voltage is one step.

 

Mike

Message Edited by MikeS81 on 02-05-2009 11:28 AM
Message 2 of 9
(4,497 Views)

Hello mike, thanks for your interesse.

 

 

The hexcode range is from 0000 to 0FFF ( 0 to 4095) and voltage from 0 to 2,5 volts.

 

Maybe this could help you. 

 

0 Kudos
Message 3 of 9
(4,467 Views)

If this is a product the vendor or manufactur should provide you with the transmision protocol. Use this to make an instrument driver. You may also try Google. If it is a common product, a driver will be available for downloading. If this is a custom device, some sort of a protocol also has to be specified.

Good luck



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 9
(4,461 Views)

Hi labviewviewer,

you also need to know how how you receive the data. Is your data compresed or do you get 2 Byte for one value. If you know this, then you can read your bit values and multiply it with 2.5/4095.

 

Mike

0 Kudos
Message 5 of 9
(4,459 Views)

Hello,

the adc is from phytec AduC812

 

http://www.phytec.com/products/sbc/8051/phyCORE-ADuC8xx.html

 

 

0 Kudos
Message 6 of 9
(4,447 Views)
I took a quick look at your board. It look like you need to make a program and download it to your board. The board is like a PC with a new unformated harddisk. It is not good for anything before you put some program into it


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 7 of 9
(4,431 Views)

hello t06afre,

i think you are right. i've heared that you need a dll and a header file to make your own vi.

 

I got ADuC812.h but no dll.

 

What can i do otherwise to get the data out of the board?

 

0 Kudos
Message 8 of 9
(4,427 Views)
I do not think you can program your phytec with labview. You need some development tools. I guess phytec may help you with some advice. Send phytec a mail, or call them. But after you have programmed your phytec device, Labview will be able receive data from your unit using a serial data link.


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 9 of 9
(4,421 Views)