From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

differences in DAQmx Trigger (VI)

I am trying to figure out why DAQmx Trigger VI works differently with different hardware.

 

Case 1; using PXI-6133 and Reference Analog Edge version of VI

Case 2; using PXIe-6368 and Reference Digital Edge version of VI

 

My users have shown me that using an analog signal on an analog channel for a trigger source in both cases works.  Now, using the same trigger source conditions, I want to use a PXI-6133 and Reference Digital Edge version of VI.  This does not work.  Why?

 

My goal is to create a subVI that will use the appropriate DAQmx Trigger VI, given the source trigger hardware.  My application will aquire 2 sets of data simultaneously on different hardware.  One set based on a trigger, one set continueuosly.  Does this seem unreasonable? 

0 Kudos
Message 1 of 11
(2,844 Views)

Hi faustina, 

 

I had a look into your problem but I just need to clarify your problem a bit. From what I understood you have used an analog signal on an analog channel as a trigger on both PXI cards and that worked. Now, if I understood corectly, you are trying to use the same analog signal on an analog channel on the 6133 card but now using the DAQmx Trigger VI in Reference > Digital Edge mode and this doesn't work. Did an analog signal on an analog channel worked as a trigger with your 6368 card when the DAQmx Trigger VI was set to Reference > Digital Edge? Also, could you please specify what type of PXI chassis you are using? Also, it would be useful if you could upload your VI here so that I can understand better what you are trying to do. 

 

 

0 Kudos
Message 2 of 11
(2,815 Views)

Case 1; using PXI-6133 card in PXI-1045 chassis
DAQmx Trigger VI in Reference Analog Edge mode
inputs
 - task in [programmatically built by application*]
 - source ['Trigger' of string data type, name corresponds to HScard#/ai#]
 - edge [user selected in application]
 - error in
 - pretrigger samples per channel [computed by application]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Case 2; using PXIe-6368 card in PXIe-1075 chassis
DAQmx Trigger VI in Reference Digital Edge mode
inputs:
 - task in [programmatically built by application*]
 - source ['HScard#/PFI0' of IO name data type, according to users only valid input]
 - edge [user selected in application]
 - error in
 - pretrigger samples per channel [computed by application]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

new Case; using PXI-6133 card in PXI-1045 chassis
DAQmx Trigger VI in Reference Digital Edge mode
inputs:
 - task in [programmatically built by application*]
 - source [of IO name data type]
 - edge [user selected in application]
 - error in
 - pretrigger samples per channel [computed by application]

 

Error is generated at DAQmx Start Task VI prior calling DAQmx Read VI in Analog 1D Wfm NChan NSamp mode.

 

* Task is programmatically created based on collection of channels per device.  Channel parameters are specified in spreadsheet file created by users.  The application processing the file to create channels (using DAQmx Create Virtual Channel VI) and tasks.

0 Kudos
Message 3 of 11
(2,811 Views)

TrigConfig.png - code from main VI that create parameters for Trigger

Setup Triggers.vi - subVI that configures Trigger

Kevins_Triggered Fast DAQ.vi - working VI for PXI-6133 and PXI1045

 

0 Kudos
Message 4 of 11
(2,804 Views)

workingVI inputs.pptx - inputs for working VI with PXI-6133 and PXI-1045

Analog- Finite Input.vi - VI used to test code, borrowed from example Digital-Finite Input.vi

0 Kudos
Message 5 of 11
(2,802 Views)

lost last attachment

0 Kudos
Message 6 of 11
(2,801 Views)

Hey faustina,

 

I had a look at your new, clarified problem description and VIs.

I see that in case 1, you used the trigger VI in the Reference Analog Edge mode with an AI trigger source whereas in case 2 you used the same VI in the Reference Digital Edge mode with a digital PFI0 trigger source. Therefore, can I just suggest that you make sure that in your new Case you are using a digital line as your trigger source? 

0 Kudos
Message 7 of 11
(2,784 Views)

have done so.  Analog signal to an analog line in case 1 works.  Analog signal to a digital line in case 2 works.  Trying to repeat analog signal to a digital line for new case.

0 Kudos
Message 8 of 11
(2,759 Views)

It seems every thing ok with your code can you post the code with values you are giving input

AB
Kudos are Accepted
0 Kudos
Message 9 of 11
(2,756 Views)

If you run Analog-Finite.vi and specify any analog channel and use Reference Analog Edge mode, I get error -200284 for my hardware for any timeout (except -1) for my new hardware configuration.

0 Kudos
Message 10 of 11
(2,749 Views)