04-23-2012 08:30 AM
Hi I'm working on a college project and need help. I have been on the forum before looking for help with various parts and now i have it all together. I have a displacment sensor which gives me position, i differentiate this twice to get velocity and acceleration. The the velocity is multiplied by a value calculated for force. I am writing all these values to a file. My project is due in three days time but the program is not writing enough information from the file. I want the VI to run as fast as possible so i can get as much information from the program as possible. it doesnt seem to calculate the force from the formula node.
Can someone have a look at my VI and see if i am making mistakes and why it is constantly calculating values.
This is part of my final year and i need help..
Many thanks
04-23-2012 08:42 AM
Check your setup for your DAQ Assistant Express VI.
You're acquiring 100 samples at 1kHz which takes 100 ms.
You're then pulling 1 scalar out of those 100 samples and passing that in as X.
I'm not sure how the dynamic datatype goes from 100 samples to 1 scalar.
04-23-2012 10:08 AM
I see where your coming from. I would like to put the dynamic data through as my X but dont seem to be able to? is it possible?
04-23-2012 10:30 AM
If you simply want to apply the formula to each value you acquire, convert the dynamic data to an array instead of a scalar. You can pass in the array or put the formula node inside a for loop. Up to you.