[Kst] Corupted equations after changing data file

Arne Knoblauch arne.knoblauch at sw-engineering-services.com
Wed Apr 14 22:50:21 CEST 2010


Hello all,

I am new to this mailing list. My name is Arne Knoblauch and I use kst to 
visualise some temperature and pressure readings. Now I facing the following 
problem:
I defined some equations which calculate the resistance of an NTC temperature 
sensor from the raw data reading which is a voltage. The equation looks like 
this:

([Channel0]/[Channel5]*[Rref])/(1-[Channel0]/[Channel5]) 

where Channel0 is the voltage reading, Channel5 the reference voltage (also 
logged) and Rref a scalar.

Now when I change the data file all equations get corrupted. The above looks 
like this after changing to the new data file:
(/[Channel5]*[Rref])/(1-/[Channel5]) 
so Channel0 is simply missing.

Interestingly the data show up right in all plots so when reading the data file 
everything seems to be calculated right.

The problem is when I save the kst file all equations are lost as they are not 
valid expressions and are not saved to the kst file. When I reload the kst file 
after saving with corrupted equations the equations are simply empty.

I get the following console output when I change the data file.

ASSERT: "myLockStatus() == KstRWLock::WRITELOCKED" in 
/home/arne/1.9.1/kst/src/libkstmath/kstequation.cpp (248)
ASSERT: "myLockStatus() == KstRWLock::WRITELOCKED" in 
/home/arne/1.9.1/kst/src/libkstmath/kstequation.cpp (248)
ASSERT: "myLockStatus() == KstRWLock::WRITELOCKED" in 
/home/arne/1.9.1/kst/src/libkstmath/kstequation.cpp (248)
ASSERT: "myLockStatus() == KstRWLock::WRITELOCKED" in 
/home/arne/1.9.1/kst/src/libkstmath/kstequation.cpp (248)
ASSERT: "myLockStatus() == KstRWLock::WRITELOCKED" in 
/home/arne/1.9.1/kst/src/libkstmath/kstequation.cpp (248)
ASSERT: "myLockStatus() == KstRWLock::WRITELOCKED" in 
/home/arne/1.9.1/kst/src/libkstmath/kstequation.cpp (248)
ASSERT: "myLockStatus() == KstRWLock::WRITELOCKED" in 
/home/arne/1.9.1/kst/src/libkstmath/kstequation.cpp (248)
ASSERT: "myLockStatus() == KstRWLock::WRITELOCKED" in 
/home/arne/1.9.1/kst/src/libkstmath/kstequation.cpp (248)

Any idea what I can do?

Thanks

Arne


More information about the Kst mailing list