Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Pulse train pause trigger with sample mode is finite

I am pulsing a stepper motor driver with a pulse train from a USB-6351.  I use C#.  My first process homes with sample mode ContinuousSamples until I reach the limit switchs and trigger a pause.  This works OK.

 

Now I need to move to specified positions (FiniteSamples) but I still need to monitor the limits very closely.  I have the issue that pulse generation with Finite samples can not use pause triggers.  Is there any way to get around this restriction so that the pulse train pauses immediately if a limit switch is activated.

 

Out of curiosity why place the "no pause trigger" on pulse genration with finite samples.

 

0 Kudos
Message 1 of 2
(2,461 Views)

Hello,

 

Looking into the datasheet of the USB-6351, I do have one suggestion as to a potential workaround. It seems counters don't have this functionality, however digital output lines do have pause trigger. You could drive you counter's clock by routing a digital output line as the counters clock source, then when the pause trigger is fired for the digital output generation, it will stop generating the counter's clock and the counter will therefore also pause.

 

http://www.ni.com/datasheet/pdf/en/ds-100 - Page 12 illustrating digital output having pause trigger

 

Some documentation suggesting internal routing is possible: http://digital.ni.com/public.nsf/allkb/9052D691C228A56686256CFB00611D0D

 

The method to connect terminals:

http://zone.ni.com/reference/en-XX/help/370473H-01/mstudiowebhelp/html/2fdbb8e4/

 

You can also verify if this is possible using the below methodology:

http://digital.ni.com/public.nsf/allkb/E539D226A643C1CE8625715E007C23C8

 

When you configure the pulse generator, set it's clock source for the PFI line you will route the digital output too.

 

As may be evident from above, I cannot be completely certain this will work based on whether the lines can be routed, however the theory seems to be documented somewhat and I am hoping this provides what you need.

 

Best regards,

 

Ed

0 Kudos
Message 2 of 2
(2,413 Views)