05-09-2011 03:37 PM
Hello!
I'm using NI-Motion 7344 and FlexMotion 5. I need to to perform coordinate measurement along a trajectory with a rather high rate (a sample in 1-2 ms). And I need to know the exact time, when a coordinate sample has been measured. Had anyone faced a similar problem? Is it possible to get any timing information with the FlexMotion?
Thank You!
05-10-2011 10:19 AM
Hi Alanbor,
I just provide with a couple of useful links in order to let you access to basic information:
Overview of the FlexMotion architecture
http://zone.ni.com/devzone/cda/tut/p/id/3753
FlexMotion Software Reference Manual
http://digital.ni.com/manuals.nsf/websearch/92003B670CC3CB3F862567C800755B95
Motion Synchronization with DAQ via (Breakpoint-external Scan Clock)
http://zone.ni.com/devzone/cda/epd/p/id/4624
Let me know if you're able to gather information yuo need or if I can provide with additional assistance.
Best regards
05-10-2011 12:34 PM
Thank You, Matteo!
I've looked through the links you provided.
As for the third link. I don't have a LabView installed, is there the same example in C++? As far as I understood from the description, the NI-Motion board can issue trigger signals at predefined positions which can then be used by some external DAQ device, connected via RTSI. Right? This can be a solution, though it is not exactly what I'm searching for. In current hardware design I have to perform data acquisition every 2 ms. Can breakpoints be loaded, enabled and having status read at this rate?
I'm also going to try HS capture. What is the fastest way to transfer a set of captured positions from encoder registers to the host memory? Do I need to call flex_read_cap_pos() after each HS capture event?
Thank You!
05-11-2011 05:39 AM
Hello Alanbor,
Here below the example code edited in ANCI C language. The project is designed to be loaded into LabWindows/CVI, which is a ANSI C editor that allow you to program in a procedural and have NI libraries to be loaded into your application. However you can access to the C code and take a look to the implementation you are looking for.
Motion Synchronization with DAQ via RTSI (Routing Onboard Breakpoints to DAQ as Scan Clock) with CVI
I figure out that the HS Capture function call should be the right way to accomplish your task. Anyway I'm not sure about the best tune that would allow you to optimize your tasks. Can you provide for additional details or clarify the specifications?
Did you try to benchmark your hardware performance and tune your parameters?
Bye