Jump to content


hendrick

Member Since 14 Jun 2012
Offline Last Active Aug 26 2012 08:43 AM

Posts I've Made

In Topic: Digital balance communication via RS232

22 August 2012 - 05:36 PM

thanks so much
I'll try now!

In Topic: Digital balance communication via RS232

20 August 2012 - 08:45 PM

Thanks works fine!.
But I need to calculate the mass flow, defined as "dW/dtime".
In my previous script set dtime=10 (10 seconds for the 10 points), as shown below:

private string datain
private data
device.digimed.readuntil(10) // clear half frame
while(1)
   try
	  datain = device.digimed.readUntil(10)
	  data = strToDouble(mid(datain,1,1000))  
	  weight.addValue(data)
	  if (numrows(weight) > 9)
		 dWdTime.addValue(insertTime(Abs(weight[0] - weight[9])/10, weight.time[0],0))
	  endif
   catch()
	  ? strLastError
	  delay(0.1)
   endcatch
endwhile

But the time is determined by the digital balance and is not exactly 10 seconds. How can I determine the time elapsed since the point [0] to [9]?.
I tried to replace "10" for "Abs(weight.time[9] - weight.time[0])", but don't work.

The picture shows an example of calculation.



Thank you for your help in advance

Hendrick

In Topic: Digital balance communication via RS232

17 August 2012 - 06:09 PM

Hi,

In my script the acquisition rate of the channel “weight” is determined by my scale (it's OK).
But the channel “dW” is calculated every second using 10 points. It is possible to calculate the channel “dW” using the 10 points, but storing only the "time" and "dW"of the tenth point?
In the picture show the example.

Thanks.

In Topic: Digital balance communication via RS232

28 June 2012 - 04:50 AM

I understand now.
Thank for your help


Hendrick

In Topic: Digital balance communication via RS232

27 June 2012 - 11:55 AM

I tested it and it works!
But some data is missing for some times. In my "Logging set:" I'm using "Align threshold: 1" to align my data.
It's correct that?

Thanks

Hendrick