09-14-2005 02:43 AM
09-14-2005
03:38 AM
- last edited on
07-11-2025
09:02 AM
by
Content Cleaner
Bgrain,
I have been working with VC under RTX a while ago to acquire data from NI data acquisition hardware that was running with the normal Windows driver. This worked pretty well as I have used the WinAC SDK from Siemens that offers templates for this purpose. This SDK was part of the Step7 development package for Siemens Soft-PLCs so I don't think you could use exactly this software but maybe something similar is available as a general purpose programming library. The disadvantage of this method is of course the fact that you loose the deterministic behavior of RTX while accessing hardware that is running with Windows drivers. So you should run this task in a non time critical loop.
Depending on your requirements it could be a better option to develop your own driver using the NI-Motion DDK.
I hope that helps,
Jochen Klier
National Instruments Germany
09-16-2005 03:51 AM
Hello!
As most say:we can develop simple driver with rtx development tools,however the command port must be known!So I wonder if we can obtain the information that which port is corresponding to which command.For example,if I want to load a position to the card ,which port should I send commands data to?How could I know the address of the port?
Can ni offer the above information?
Thank you !!!
Hope your reply!!!
09-16-2005 04:22 AM
A hardware driver writes to and reads from registers. Because the motion controller is memory-mapped, you can read and write directly from an unsigned short pointer (16-bits). The following registers are defined for communicating with the motion controller:
09-17-2005 03:30 AM
09-19-2005 02:40 AM
09-21-2005 03:01 AM
09-29-2005 03:02 AM
09-29-2005 08:14 AM
09-30-2005 02:27 AM