10-23-2019 12:57 AM
Hey everyone,
currently I'm writing a VI for continous acceleration measurement. Herefore I'm using a PXIe-4480 and a ADXL001-70.
I want to monitor the acceleration continously and write the data of acceleration changes. My idea is to implement a trigger which checks the acceleration.
The Trigger should check the acceleration continously and pause the "Write file" if the sensor is in neutral position.
It's my first VI and my first experience with LabVIEW.
Kind Regards
Devran
Mein Problem:
Aktuell werden alle Messdaten aufgezeichnet.
Mein Ziel ist es einen Trigger zu haben, der prüft ob es eine Beschleunigungsänderung gibt und dann nur diese Daten speichert.
Ich habe einen Ansatz geschrieben, komme aber nicht weiter...
Ich hoffe, dass ihr mir dabei helfen könnt. Das VI ist im Anhang zu finden.
Viele Grüße,
Devo
Solved! Go to Solution.
10-23-2019 07:18 AM
I would suggest that you continuously acquire data, then use a Producer/Consumer design to process the data in a consumer loop.
This loop can check if the data is greater than some threshold, and if so, either directly log the data, or pass it to another loop (becoming then a producer as well as a consumer) to log it there.
11-09-2019 05:14 AM
Hey,
thank you for your help, cbutcher.
I solved the problem with a simple for-loop.
Kind Regards
Devo
11-09-2019 06:30 AM
11-11-2019 04:05 AM - edited 11-11-2019 04:18 AM
Hey,
thanks for your help. A very elegant solution, but this doesn't work for me. I need data out of the range (for example: all data bigger than 5 and lower than -5). Is there also a function for it?
(sorry for the double post... Bad internet connection)
Kind Regards
Devran
11-11-2019 04:12 AM
Hey,
thanks for your help. A very elegant solution, but this doesn't work for me. I need the data out of the range (for example: all data bigger than 5 and lower than -5). Is there also a function for it?
Kind Regards
Devran
11-12-2019 04:15 AM