09-07-2015 05:51 AM
Hi
I´ve got two programms which I use for dataevaluation. The first one collects the data from a µC the other one is used to translate the data.
The problem is, if I start my data translater it says... error 116 .... So I tried another programm which ive found in this forum .... basically i could open the file but it was more or less empty ... 3 numbers appear and some 1000 ohters were 0.
Hence I would think that my data collector is somehow not working as it should?!
The idea of my data managment is to run the program and store the data every10000 cycles in a file. If i stop the program I want to add the resindual datas which I ve recorded during the program process.
I would be super happy if someone could help me, as iam not that experinced I do not know what I did wrong.
Thanks a lot
09-07-2015 06:36 AM
Hi Meise,
I do not know what I did wrong.
- You only attached an image instead of a VI.
- You always replace the very same array element as you wired a constant to ReplaceArraySubset.
- Your VISA Read-loop seems to look for a termchar. Why don't you use the built-in TermChar feature of the VISA functions?
09-07-2015 06:48 AM
Hello Kohlmeise,
please provide us with more detailed informations.
Some things I noticed:
09-07-2015 06:53 AM
Here the VI.
Thanks ! 🙂
09-07-2015
07:13 AM
- last edited on
05-14-2025
10:07 PM
by
Content Cleaner
1. As I told you in your other thead, you do not need that inner loop. Let the VISA Read do its job and stop the read when it finds the termination character. Just set the Bytes To Read to something like 50 and it will stop when it finds the termination character.
2. Since you are logging everything, I would recommend using a Producer/Consumer architecture.
09-07-2015 07:54 AM
Hi crossrulz
thanks .... i ve tried that but in my case this resulted in short timeframes where the values stays constant .... in the end i managed the timing problem by better timing of my µC ... now thats fine 😉
Btw an old version of my program doen´t have that timing problem .... maybe it will be a little more helpful...
Actually i just tried to simplify the way how the filter works ?!
Could that be the problem ?!....