07-10-2019 04:04 AM
Hi guys,
I am writing since I a have a problem. I have to create a program for an experiment and I miss to finish the last step but I don’t know how to do.
Let me to explain how the program should work: I have to control a stepper motor through Arduino to flip a sample. For each rotation degree (I have already done the calibration and I know how many steps of the motor correspond to one degree) I have to acquire the data from a spectrometer and to save everything in an excel file.
I have finished the program and it works in the right way but the only problem is that when it prints the value of the angle it always gives the value that corresponds to the step that I have selected.
I would like to print the final angle achieved.
For example, I assume to start from 0 degree and to select 200 steps which correspond to 6 degree, in the file of excel it prints 6 degrees. At the second iteration with the same number of steps the sample will be in the final position of 12 degrees and I would like to read in the excel file this value of angle.
Someone could help me?
You can find the program attached.
07-10-2019 04:51 AM
Seems like you'd need to somehow integrate that value.
07-11-2019 07:25 AM
I don't try to debug messy VIs. May a lot of other people are like me. If you clean up your block diagram, you're more likely to get help.