ADC read with labview

All about Sub-20 Multi Interface USB Adapter USB to I2C, SPI, GPIO, RS232, RS485, Ir, LCD

Moderator: serg

Post Reply
Hansanaut
Posts: 2
Joined: Tue Nov 23, 2010 2:14 pm

ADC read with labview

Post by Hansanaut »

Hi folks,

can anybody help me with this?
How do I read out the adc values of the sub 20 via labview?
Is there an example?

Thanks for the help!

Greetz Hansanaut

serg
Posts: 143
Joined: Mon Aug 31, 2009 9:17 pm

Re: ADC read with labview

Post by serg »

Hi,

The labview sample vi's available under C:\Program Files\SUB-20\sample\.NET\labview folder. To read the ADC samples you should call the ADC_SetConfig and ADC_Single/ADC_Read methods.

Regards

Hansanaut
Posts: 2
Joined: Tue Nov 23, 2010 2:14 pm

Re: ADC read with labview

Post by Hansanaut »

Hi,

thanks for the fast reply.
I've already found the examples.
But I still don't know how to configure the input ports of the methods.

What is the input of the adc_read method? How do I configure 'data' and 'mux'?

I attached a screenshot and the VI - maybe you can help me to solve this.

Sorry about the noob questions :-) - I'm not realy used to work with labview that much.

Thank you!

Greetz Hansanaut
Attachments
SUB20_ADC.zip
(5.64 KiB) Downloaded 1460 times
sub20_adc.jpg
sub20_adc.jpg (31.75 KiB) Viewed 15306 times

serg
Posts: 143
Joined: Mon Aug 31, 2009 9:17 pm

Re: ADC read with labview

Post by serg »

Hi Greetz,
This sample demonstrates using the SUB-20 adc interface
sub20-adc.JPG
sub20-adc.JPG (44.61 KiB) Viewed 15296 times
Attachments
adc.zip
adc vi
(18.95 KiB) Downloaded 1531 times

Post Reply