Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read 7340/44 digital port on real time system

Hi All,

 

I would like to know how to use the motion controller 7340/ 44 card digital port for the same purpose of 6534 in pattern I/O mode with buffered reading. Or in other way how to read/write the I/O port values in each position (step) at the time of motion. Its running in Axis 1.

In NI help mentioned that buffer reading can configure for analog port of  7344, but I did not found any example for that.

I tried to run the sample program which I found in NI samples for creating buffered break point but the function  flex_configure_buffer giving error when  buffer type= NIMC_BREAKPOINT_DATA.

 

So Please help me to solve the problem,

 

0 Kudos
Message 1 of 3
(3,442 Views)

Renjith,

 

the digital ports on NI-Motion boards are meant to be used for simple machine communication tasks. There is no way to read these digital lines in a buffered or synchronized mode. If you need a feature like that you should use a board that supports buffered digital acquisition like all M-Series devices or the 6534 that you have mentioned. To synchronize the digital lines of these devices to the motor position you could either use the breakpoint feature or route an encoder phase to the RTSI connector and use it as an external clock signal.

 

 

 Please refer also to the shipping examples.

 

Kind regards,

Jochen Klier

National Instruments

0 Kudos
Message 2 of 3
(3,432 Views)
Message Edited by Jochen on 01-29-2009 08:56 AM
0 Kudos
Message 3 of 3
(3,432 Views)