Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

flex_set_breakpoint_output_momo

hello there,

 

I am trying to use "flex_set_breakpoint_output_momo" in order to get a high state on BreakPoint 3 on my 7344, the question is that, I tried it by reading Motion Control help as follow:

 

 status = flex_set_breakpoint_output_momo( boardID, NIMC_AXIS_CTRL, 8, 0, INPUTVECTOR);

 

but i dont get the high voltage on Bp 3, I monitoring the port using a voltmeter, 

 

how can I manage to send a high voltage to BP3 port, i need it to trigger an external recording device, i am using axis 1 and 2 only. and my understanding is that regardless of which axes i am using, i can use BPs, do I need to configure them before using one!?

 

Thank you

0 Kudos
Message 1 of 5
(3,568 Views)

Please can you help me, how i can use "flex_set_breakpoint_output_momo", function to get 5V on my BP 3, how can I check for the BP3 port, to see if the 5 V is there or not? is it simply by using a Voltmeter or Oscillescope can be checked?

 

I am new to the Ni Motion Devices, I am writing C++ code to syncronize a outside recording device with my system, 

 

Thank you 

 

0 Kudos
Message 2 of 5
(3,556 Views)

Hello Aliak,

 

Do you have an encoder connected to axis 3? Have you entered any function commands to enable the breakpoints before setting the breakpoint output? Have you tried doing this on the breakpoint outputs of axis 1 or 2? 

 

 

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 3 of 5
(3,554 Views)

Dear Vivek

 

I dont have an encoder connected to axis 3, I have only axis 1 and 2 in use and which are mapped to encoders 1 and 2. 

Yes, I tried doing this on Bp outputs of axes 1 and 2, 

 

as per the guide, the Breakpoint should be disabled in order for me to control it using this command, 

my question is, should I do any configuration for Breakpoints or axis (encorder) before applying "flex_set_breakpoint_output_momo"?

0 Kudos
Message 4 of 5
(3,545 Views)

the other thing is that i tried to use "flex_set_breakpoint_output_momo" byt directing the command to encoder 3 (encoder 1 and 2 are assigned to axes 1 and 2), but I couldnt see the high 5V on BP3, ( Encoder/Axis 3 is mapped to Bp 3, I suppose)!

 

I am using a voltmeter to check for the high voltage state, but I couldnt get it!

 

Thanks for your help

0 Kudos
Message 5 of 5
(3,544 Views)