07-13-2011 01:29 PM
Depending on how accurate your measurment should be you can integrate a number of measurements in LabVIEW.
Normally you measure power and time and the integration of such power comes from the mean power between two points multiplied by the time between the two points.
That is an easy for loop in LabVIEW.
07-13-2011 02:28 PM
I suppose I could do that. This piece of equipment is capable of integrating and I have successfully gotten it to integrate. The problem now is controlling the integration time. I would still love if someone has already completed such and application and would be so kind as to post up a vi but I doubt that will happen. So, in the mean time I will keep working with it. I think I'm close but not to sure.
Cheers,
Pete
07-13-2011 02:56 PM
Pete,
Are you using the instrument driver from the NI website? It contains a function called 'YKWT200 Config Integration.vi' that allows the integration time and type to be configured.
07-13-2011 03:12 PM
Wayne,
I have been using that but with little success. It seems to be getting stuck in the while loop no matter the integration time that I set. It has a condition that it matches a bit of 2 with what is returned from the instrument. However the bit is always a 6 and I'm not sure why. Also, say I was to get that to work, how would I read the integrated value??
Thank!
Pete
07-13-2011 03:49 PM
Pete,
Page 14-25 of manual indicates the only the INTEGrate:MODE & INTEGrate:TIMer functions are supported. Says nothing about INTEGrate:TYPE. You might try modifiying function to not send the 'TYPE' part of the command.
07-13-2011 04:04 PM
Good suggestion. I was actually noticing that too. However now it at first spits out a 7 and then goes back to 6 about one iteration later.
Pete
07-14-2011 10:42 AM
Pete,
What mode and time settings are you using?