German (English below):
Moin,
ich habe ein kleines Problem mit der Write to Measurement File Vi.
Über meine DAQ Karte USB 6000 nehme ich Daten von 3 Sensoren auf. 2x ai input (voltage) und einmal den Counter input. Die Messwerte sollen (nach Bearbeitung, also simples skalieren der Spannungen) zusammen in eine Tabelle geschrieben werden. Die erste Spalte soll für die Zeit sein (relative Zeit reicht hier, und da meine DAQ Karte kein Hardware-Timing hat reicht auch hier das Software Timing). In die drei Spalten daneben sollen dann jeweils die Messwerte der drei Sensoren jeweils zum gleichen Zeitpunkt. Ich hätte dann gerne für jede Sekunde Beispielsweise 10 Messwerte.
Mein Problem ist jetzt
1. ,dass für die Messwerte für verschiedene Sensoren unterschiedlich oft in in die Tabelle geschrieben werden.
zum Beispiel wird ai0 mit 100 Messwerten pro Sekunde in die Tabelle geschrieben, der Counter Input allerdings nur einmal Pro Sekunde, die restlichen Zeilen sind hier dann leer. Wie kann ich meine Datenaufnahme Synchron halten?
2.,dass Messwerte für Beispielsweise eine Sekunde in die Tabelle geschrieben werden, und dann für die nächste Sekunde ein neuer Abschnitt in der gleichen Tabelle kommt, wieder mit neuem Header und allem drum und dran, statt eine Fortlaufende Tabelle zu haben. Wie kann ich einstellen, dass ich so eine fortlaufende Tabelle bekomme?
Ich habe schon Probiert die Write to Measurement File VI innerhalb und außerhalb der Schleife zu positionieren, und ich habe schon mit Timing und den Sample Rates herumprobiert aber konnte keine Zufriedenstellende Lösung finden. Die Write to Measurement File VI ist nur Beispielhaft in ihrer eigenen Schleife außerhalb, ich hatte Sie dort auch schon ohne Schleife und auch in der Hauptschleife.
Im Anhang habe ich einmal einen Screenshot meiner VI und einmal einen Screenshot einer erzeugten Tabelle.
Vielen Dank schon mal!
English:
Hi,
I have a small problem with the Write to Measurement File Vi.
Via my DAQ card USB 6000 I record data from 3 sensors. 2x ai input (voltage) and one counter input. The measured values are to be written (after processing, thus simple scaling of the voltages) together into a table. The first column should be for the time (relative time is enough here, and since my DAQ card has no hardware timing, the software timing is enough). In the three columns next to it the measured values of the three sensors should be entered at the same time. I would then like to have 10 measured values for each second, for example.
My problem now is,
1. that the measured values for different sensors are written differently often into the table.
for example ai0 is written into the table with 100 measured values per second, the counter input however only once per second, the remaining lines are empty. How can I keep my data recording synchronous?
2.that,for example, you can write measurement values for one second into the table, and then for the next second a new section comes in the same table, again with a new header and all the trimmings, instead of having a continuous table. How can I set up to get a continuous table like this?
I've already tried positioning the Write to Measurement File VI inside and outside the loop, and I've tried timing and sample rates but couldn't find a satisfactory solution. The Write to Measurement File VI is just an example in its own loop outside, I had it there without a loop and also in the main loop.
In the appendix I have a screenshot of my VI and a screenshot of a created table.
Thank you very much!