High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

Using LabVIEW to program a Pattern Trigger for the PCI-5112

I am trying to program a pattern trigger for the PCI-5112.  Has anyone ever done this?  I am trying to use the the "Fetch forever" example as a base, then use the software trigger when there is a pattern match.
 
Any help or advice with this would be very appreciated.
 
PS as an example, I want to trigger when the pre-trigger data matches the pattern, say a 8 bit word such as 1010 0000.  Maybe I can try to do like my Tektonix TS5104B scope and try to program a timeout trigger.
0 Kudos
Message 1 of 4
(6,716 Views)
Good morning Andronicus,
 
Thanks for contacting National Instruments with your issue, we'll try our best to resolve it for you as quickly and efficiently as possible.
 
Unfortunately, there is no easy way to do what you're trying to accomplish with simply a Scope alone. The trigger input and PFI lines have no buffer and are only capable of looking for a single edge, and the standard CH0 and CH1 inputs strictly represent signals in analog. 

So your current approach may be best, of using the Fetch Forever to acquire the signal into a prebuffer and then analyzing it and sending a software trigger.  So the best you can do in terms of response will be software-time, which is not ideal.  There is also the very tricky matter of interpreting that analog signal as a digital signal.  You'd have to know the clock rate of the incoming pattern and then also the phase in order to correctly assess the incoming pattern.  No easy task, and certainly nothing that would be super reliable or recommended.
 
Your best bet would be to purchase one of our  HSDIO cards, such as the PCI-653x that inherently does pattern triggering in the hardware domain, and then route the start trigger (i.e. when the pattern has been matched) via a RTSI cable to the Scope card which can then simply use the digital edge trigger to begin it's acquisition.  This will be far more robust, easier to code and have a much quicker response time. 
 
Best of luck with your project.
 
Sincerely,
Minh Tran
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(6,690 Views)

Thanks for the input. 

I am now looking at possibly purchasing a PCI-6533 or 6534.  However, from looking at the manual, I am not sure if the pattern trigger is going to do what I need.  It would appear that the pattern triger is looking for a parallel patter, however, I am looking for a serial pattern on a single input line. 

 

0 Kudos
Message 3 of 4
(6,684 Views)
Good afternoon Andronicus,
 
You are correct, the PCI-653x series boards match to a parallel pattern and not serial.  No National Instruments products currently support purely serial pattern matching.  One way to overcome this would be to use a deserializer which would convert a stream of one-bit data into 10-bit (or however many bit) chunks of parallel data. 
 
There are many such products on the market depending on the speed and conversion you require.
 
Sincerely,
Minh Tran
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(6,671 Views)