Hello folks,
I have been tasked with using a mid-7604 to automate a 2 axis table. I was given no documentation or assistance at all, and only told that it needed to be done in C. The computer that I am working with has a whole series of NI software on it and I am not sure what was even used to control it previously.
I found a program on the computer called NI-Motion and when trying to run it manually it seems to be able to handshake with the hardware. When I attempted to do a manual 1-D move on either of the ports that are connected to a motor it results in an error.
I found the NIMOTION C reference help manuals as well as a series of example codes but I am unsure how to even send the code to the controller.
If running C code with the motion controller, does simply including the library allow communication to the motor or does the sent code have to be sent through NI-Motion somehow?
Here is an excerpt from the guide I found:
"For C/C++ users, all functions in flexmotn.h have BOARD as the first parameter. BOARD is defined as boardID (u8)—the board identification number assigned by Measurement & Automation Explorer (MAX)."[...]"Make sure you pass the correct board identification parameter for the programming language you are using. To use multiple NI-Motion devices in one application, pass the appropriate board identification parameter to each function. "