LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

College Project urgent help please

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

0 Kudos
Message 1 of 4
(2,494 Views)

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.

0 Kudos
Message 2 of 4
(2,483 Views)

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?

0 Kudos
Message 3 of 4
(2,462 Views)

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.

0 Kudos
Message 4 of 4
(2,452 Views)