LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog Input - PFI0 - Trigger

I have a DAQ-6036E using LabWindows 7.1. I'm trying to configure PFI0 channel for triggering. I tried looking at the example code ConAct-IntClk-AnlgStart. When I try running it, I get the following error:

NON-FATAL RUN-TIME ERROR: "PWM.c", line 253, col 13, thread id 0x00000118: Function DAQmxCfgAnlgEdgeStartTrig: (return value == -200077 [0xfffcf273]). Requested value is not a supported value for this property. Property: DAQmx_StartTrig_Type You Have Requested: DAQmx_Val_AnlgEdge You Can Select: DAQmx_Val_DigEdge, DAQmx_Val_None Task Name: _unnamedTask<2> Status Code: -200077

Does this mean my card only accepts digital triggers? If so, is there a way to set a level with a digital trigger?
0 Kudos
Message 1 of 5
(3,921 Views)
It's not so clear from 6036 data sheet wether your card is capable of analog triggering or not, but since it is not explicitly mentioned among the cards that include this feature it must be argued that you cannot use it in your application.

To perform some sort of analog triggering with your daq card you can only rely on analog software triggering, also known as "conditional retrieval". Basically, the card is put into continuous acquisition on a circular buffer and internal resources scan acquired measures to verify that "triggering" conditions are met; in that case an interrupt is fired to a specific callback that actually performs what you need.

While on this argument several documents can be found with LabVIEW, seems that for CVI environment only this link is present.

I am not aware of other means to obtain this with only internal daq board resources. Of course you could prepare an external circuit with an analog limit that fires a ttl signal into some digital input to use as a digital trigger for your acquisition.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,910 Views)
Hello,
So just to clarify, on the data sheet linked above, on page 9, it says that the 602XE family has no analog triggers. So for an analog trigger you are going to have to use a software approach, or go with external circuitry as Roberto mentioned in the previous post.
-Alan A.
0 Kudos
Message 3 of 5
(3,904 Views)
Just a little comment on Alan note: what was not so clear to me is that a 6036 card pertains to 602x family! 😉


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 5
(3,877 Views)
Whoops.....great catch Roberto!!
-Alan A.
0 Kudos
Message 5 of 5
(3,869 Views)