Return mV data without sep call to that function

Post your .Net discussions here
Post Reply
TimOster
Newbie
Posts: 0
Joined: Mon Dec 01, 2014 5:36 pm

Return mV data without sep call to that function

Post by TimOster »

My boss wants me to arrange things in our class library, so that instead of returning the adc array, then sending that to the adcToMv function, I simply get the mV array on the first call.

I was thinking that if I pass in all the parameters needed for both, into one function in my class that I can do this, however I'm not completely sure.

When I call GetTimesAndValues, I get an array containing adc counts (correct?). If I have a function in my class that calls GetTimesAndValues instead of the vb code, can I then send this array to the adcToMv function, which is also in the class and somehow return only the mV array to my vb code?

I think it's fine doing it the way we are all doing it, but he wants it his way.

Hitesh

Re: Return mV data without sep call to that function

Post by Hitesh »

Hi Tim,

The values are returned as ADC counts.

You can use a function that calls both the GetTimesAndValues() function and the converts the data to millivolts before returning the array.

Hope this helps,

TimOster
Newbie
Posts: 0
Joined: Mon Dec 01, 2014 5:36 pm

Re: Return mV data without sep call to that function

Post by TimOster »

Thanks, figured it out and have it working.

Post Reply