[Kst] Corupted equations after changing data file

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


Some additional information I forgot in my first mail.

I use kst 1.9.1 from cvs but this behaviour is also present in 1.7.0 packaged 
with kubuntu 9.10 and 1.80 from the tarball.

The data file I use is a simple ascii file with one header line and space 
separated values.


Arne

> 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
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
> 


More information about the Kst mailing list