PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

About the trigger aquisition problem of the PXIe-5162

I have a PXIe-5162 board, and then what I need to set  in NI-Scope so that I can start data collection when the external trigger signal arrives, and collect the amount of data I set in advance.The program in my appendix can start collecting data and writing it to the file as soon as the program is run.I have tried many times in the trigger scope in the block diagram, and still can't realize data acquisition and write to the file after the external trigger signal arrives.I hope someone can give me some advice.thanks!

0 Kudos
Message 1 of 7
(3,317 Views)

Hi there,

 

As per the user help documentation for the NI 5162 (https://www.ni.com/docs/en-US/bundle/pxie-5160-5162-feature/page/ni-51605162-2-ch-trigger-sources.ht...), the analog triggers can be used as reference triggers only, not as start triggers (these must be done digitally).

Here are some links which may be useful:

1. NI 5160/5162 Analog Trigger Paths: http://zone.ni.com/reference/en-XX/help/370592W-01/digitizers/5162_analog_trigger_paths/ 

2. Use of Start and Reference Trigger Together with niScope: https://forums.ni.com/t5/Example-Code/Use-of-Start-and-Reference-Trigger-Together-with-niScope/ta-p/...

0 Kudos
Message 2 of 7
(3,294 Views)

Hello, in my program, after I run, the data will start to be collected and written to the file. At this time, my trigger signal has not arrived yet. How do I improve my program that when I run my program,it can wait for the external trigger signal? When the trigger signal arrives, the preset size data after the trigger signal arrives is collected and written into the file.Thank you very much for your answer.

0 Kudos
Message 3 of 7
(3,291 Views)

Hi,

 

What I could think of is using a case structure such that your function starts after external trigger is detected.

 

Hope this helps.

 

Thank you

0 Kudos
Message 4 of 7
(3,279 Views)

Hello

What you mean is to put my program into a frame, and then use a control outside the frame to detect the external trigger signal, then which function control can detect the signal of the board trigger port?

thank you

0 Kudos
Message 5 of 7
(3,271 Views)

Hi,

 

Maybe you can look at this example program here: 

1. Use Disabled Channel for a Trigger on PXIe-5162 or Other NI-Scope Device: https://forums.ni.com/t5/Example-Programs/Use-Disabled-Channel-for-a-Trigger-on-PXIe-5162-or-Other-N...

 

Thank you

0 Kudos
Message 6 of 7
(3,269 Views)

hello

Then I will continue to try, thank you.

0 Kudos
Message 7 of 7
(3,265 Views)