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 » Wed Aug 15, 2018 3:10 pm

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
PICO STAFF
PICO STAFF
Posts: 2855
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Return mV data without sep call to that function

Post by Hitesh » Thu Aug 16, 2018 9:34 am

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,
Hitesh

Software Dev. Engineer

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 » Thu Aug 16, 2018 2:40 pm

Thanks, figured it out and have it working.

Post Reply