02-16-2025 08:36 PM
DAQ.mxのデジタルトリガーの使用方法をお聞きしたいです。
疑問点
1.トリガーがポートに入力していなくても、入力を待たずしてokを出して次のプログラムに移動してしまう。
2.トリガーがない場合は、エラーなく次のプログラムが動くが、トリガーありにした場合、通った後のプログラムがエラーを吐いてしまう。
使用環境
NI PCle-6343を使用し、BNC-2120のデジタルポートを使用し入力している。入力は1を出力するプログラムを入れたArduinoをしており、NI MAXにて1が入力されていることは確認しています。使用しているサンプルプログラムは、デジタル連続入力です。
初歩的な質問で恐縮ですが、ご回答のほどよろしくお願いいたします。
02-17-2025 01:56 AM - edited 02-17-2025 01:56 AM
Hi tetisan,
@tetisan wrote:
I would like to know how to use the digital trigger of DAQ.mx.
Questions
1. Even if the trigger is not input to the port, it will issue an OK and move on to the next program without waiting for the input.
2. If there is no trigger, the next program will run without an error, but if there is a trigger, the program after it will throw an error.
Usage environment
I am using an NI PCIe-6343 and inputting using the digital port of BNC-2120. The input is an Arduino with a program that outputs 1, and I have confirmed that 1 is being input in NI MAX. The sample program I am using is a digital continuous input.
I apologize for the basic question, but I would appreciate your answer.
Do you need a trigger or a simple DI (digital input)?
Do you want to start "new programs" or just "next steps within a single program"?
02-17-2025 10:29 PM
Thanks for the reply Dear GerdW. The purpose of the trigger is to make the program lighter and to synchronize the timing of the program. I would like to send out a pulse from the Lab view main program running on a different computer and have it picked up by a digital trigger in a sub-program to synchronize the timing. Therefore, I need a digital trigger and want to start a new program. Sorry if this is rude or confusing to you, I am translating it to English on a translation site. Translated with DeepL.com (free version)
02-18-2025 12:47 AM
Hi tetisan,
@tetisan wrote:
The purpose of the trigger is to make the program lighter and to synchronize the timing of the program. I would like to send out a pulse from the Lab view main program running on a different computer and have it picked up by a digital trigger in a sub-program to synchronize the timing. Therefore, I need a digital trigger and want to start a new program.
So you create an executable from your LabVIEW code to run it on a "different computer"?
02-18-2025 11:02 PM - edited 02-18-2025 11:05 PM
Hello Dr GerdW, sorry for the delay in replying.
・So you create an executable from your LabVIEW code to run it on a ‘different computer’?
⇒ No, it is not. I would like to run the two attached files on two different computers, synchronising the timing of each programme.
・Where is this ‘sub-program’ executed?
⇒I want to run the sub-program on a different pc from the pc on which the main programme is run. We would like to separate the programme into one for measurement (main programme) and one for photography (sub-programme) in order to reduce the weight of the programme.
・How should a ‘digital trigger’ allow to ‘start a new program’?
⇒We want to run the main programme, output digital signals, detect them with the sub-programme's digital trigger and run the sub-programme.
I want to run the sub-program on a different pc from the one running the main programme. We would like to separate the programme into one for measurement (main programme) and one for filming (sub-programme) in order to reduce the weight of the programme.
・How should a ‘digital trigger’ allow to ‘start a new program’?
⇒I think it is necessary to move the main programme, output a digital signal, detect it by the sub-programme's digital trigger and start the sub-programme moving in order to synchronise the timing.
・Which hardware do you want to use to send that trigger signal from your ‘different computer’ to your ‘sub-program’?
⇒The hardware you want to use is a NI PCle-6343 and BNC-2120 digital port for each of the main and sub-pcs, which you plan to connect with copper wire.
・Can the digital trigger wait until the digital trigger detects a rising edge on the specified port before executing the programme?
Attached are the calculation and measurement (main) programme for the fatigue test used in the study and a program to photograph the test section.
Translated with DeepL.com (free version)
02-19-2025 12:34 AM
Hi tetisan,
I'm not a "Dr"…
So you have two independent computers, both executing two independent programs and you want to sync those programs with a digital signal!?
You can do so!
Output the digital signal on your "main" computer and read that signal on your "sub" computer. When the digital signal changes the "sub" program will do it's task…
What is the accuracy requirement for your "trigger" signal?