05-15-2017 12:26 PM - edited 05-15-2017 12:54 PM
Hello, Everyone!
I'm a 3D artist in the Game and film industry, so I'm finding it hard to use LabView to build a stop-motion camera rig.
The VI takes a .csv file from Maya (single Axis animation data) and loads it into a graph and an Array (Please see images attached).
So the VI works so far. The file loads, I get the correct graph info. It's perfect!
Here LabView has taken the CSV file and loaded it into the graph and they match.
The stepper motor also sets up and is ready to go. All good.
What is missing is the connection from the string/array to the motor SetPoint input of (MA) Move Absolute.
I think I want all numbers in the string to go to that input on the motor. all I need is the string to load (is that possible?)
Here is the front panel and the data:
I will send: .csv file and the Vi file:
Maybe someone can point me in the right direction.
Many thanks for reading and hopefully you can help!
Mike
Solved! Go to Solution.
05-15-2017 02:04 PM
What kind of input does the Move Absolute selection expect? Comma delimited X,Y,Z?
05-15-2017 02:46 PM
I think it is Comma delimited X,Y Z. As in attached diagram.
05-15-2017 03:12 PM
Hi mpartist,
what is the command string expected by the MA vi?
I suggest to read the CSV file before the loop.
I also suggest to setup the motor before the loop.
In the loop you only need to send your MA parameters to the motor...
05-15-2017 03:18 PM
So, you can remove the case statement from around the Move Absolute part. It is hard-coded to be true so serves no purpose. You can get rid of the nested for loop building a string array. Its just extra work.
One option you have is to wrap the Move Absolute in a for loop, loop over the array of doubles an convert each row to a comma delimited string (Array to Spreadsheet String function)
05-16-2017 11:24 AM
Thank you for this! I will have a go now.
Cheers.
I'm learning.
M
05-16-2017 12:05 PM
Hello Mancho00,
I tried that just now. I don't have the motor connected, so it fails on that. BUT Everything else works as intended. Did I get I right?
Good stuff if it worked the first time!!
Please take a look and see if it's cool!
Thank you!
M
05-16-2017 12:25 PM - edited 05-16-2017 12:26 PM
Always one more wire.
05-16-2017 12:32 PM
Looks good, but move the Close Port block out of the loop, otherwise it'll probably only work once. Looks like you can remove the sequence frame as well.
05-16-2017 12:40 PM
Doing that.
Removing the frame, that works.
Moving the close port brakes it.