Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with trigger edge specifyins : error 89133

Hello,
 
I'm working with a USB-6259 counters with Labwindows/CVI 8.0. I have a problem when specifying the edge type for an Digital Trigger.
If I specify an Rising edge trigger, it works fine. If I specify a Falling edge trigger, I have got this error :
 
Specified inversion cannot be satisfied, because the hardware cannot suport it.
Property : DAQmx_DigEdge_ArmStartTrig_Src
Property : DAQmx_DigEdge_ArmStartTrig_Edge
Source Device: Dev1
Source Terminal: PFI1
 
Task Name: _unnamedTask<0>
 
Status Code: -89133
 
My code is :
 
//Create
 DAQmxErrChk (DAQmxCreateTask("",&thCodeurTaskHandle));
 DAQmxErrChk (DAQmxCreateTask("",&thSpeedTaskHandle));
 //Fonction
 DAQmxCreateCISemiPeriodChan (thCodeurTaskHandle, "Dev1/ctr0", "", 0, 4294967295, DAQmx_Val_Ticks, "");
 DAQmxCreateCISemiPeriodChan (thSpeedTaskHandle, "Dev1/ctr1", "", 0, 4294967295, DAQmx_Val_Ticks, "");
 //Nombre de samples
 DAQmxErrChk (DAQmxCfgImplicitTiming(thCodeurTaskHandle,DAQmx_Val_FiniteSamps,ui32SampsToReadSync));
 DAQmxErrChk (DAQmxCfgImplicitTiming(thSpeedTaskHandle,DAQmx_Val_FiniteSamps,ui32SampsToReadSensor));
 //Time base (source compteurs)
 DAQmxErrChk (DAQmxSetChanAttribute (thCodeurTaskHandle, "/Dev1/ctr0", DAQmx_CI_CtrTimebaseSrc, "/Dev1/80MHzTimebase"));
 DAQmxErrChk (DAQmxSetChanAttribute (thSpeedTaskHandle, "/Dev1/ctr1", DAQmx_CI_CtrTimebaseSrc, "/Dev1/80MHzTimebase"));
 //Type de front gate
 DAQmxErrChk (DAQmxSetChanAttribute (thCodeurTaskHandle, "/Dev1/ctr0", DAQmx_CI_SemiPeriod_StartingEdge, DAQmx_Val_Falling));
 DAQmxErrChk (DAQmxSetChanAttribute (thSpeedTaskHandle, "/Dev1/ctr1", DAQmx_CI_SemiPeriod_StartingEdge, DAQmx_Val_Falling));
 //Trigger
 DAQmxErrChk (DAQmxSetTrigAttribute (thCodeurTaskHandle, DAQmx_ArmStartTrig_Type, DAQmx_Val_DigEdge));
 DAQmxErrChk (DAQmxSetTrigAttribute (thCodeurTaskHandle, DAQmx_DigEdge_ArmStartTrig_Edge, DAQmx_Val_Falling));
 DAQmxErrChk (DAQmxSetTrigAttribute (thCodeurTaskHandle, DAQmx_DigEdge_ArmStartTrig_Src,"/Dev1/PFI1"));
 
 DAQmxErrChk (DAQmxSetTrigAttribute (thSpeedTaskHandle, DAQmx_ArmStartTrig_Type, DAQmx_Val_DigEdge));
 DAQmxErrChk (DAQmxSetTrigAttribute (thSpeedTaskHandle, DAQmx_DigEdge_ArmStartTrig_Edge, DAQmx_Val_Falling));
 DAQmxErrChk (DAQmxSetTrigAttribute (thSpeedTaskHandle, DAQmx_DigEdge_ArmStartTrig_Src,"/Dev1/PFI1"));
 
How can I do to trig on a Falling Edge ?
 
Thank you for your help.
Franck


Message Edité par Franky_31 le 11-29-2007 03:07 AM
0 Kudos
Message 1 of 8
(7,216 Views)
Hello,

I reproduce the problem (with LabVIEW). It does not return any error with TIO boards. If you need two counters, it will be easier to use 6602 or 6608 (see NI 660x Specifications), with up to 3 DMA channels. You can simulate thoses devices under MAX.

Could you envisage to invert the PFI line with an external component?

Cordially,
0 Kudos
Message 2 of 8
(7,111 Views)
Hello,
 
Thank you very much for your reply.
I'm currently waiting for a 6608 to update my hardware. I'll make some tests with it when I'll receive it.
 
Best regards
Franck
 
 


Message Edité par Franky_31 le 01-04-2008 09:29 AM
0 Kudos
Message 3 of 8
(7,107 Views)

Hello,

I have the same problem with triggering Falling Edges with Error -89133 

 

A used LV Example "Counter - Count Edges.vi"

 

I have NI PXI 6251

 

What is the way to trigger by falling edge?

 

 

0 Kudos
Message 4 of 8
(4,751 Views)

Hello Marek_V,

 

What do you want to do exactly ?

 

Is this example could help you ?

https://decibel.ni.com/content/docs/DOC-2340

 

Best regards,

Eloise
NI France

0 Kudos
Message 5 of 8
(4,731 Views)

Now, I'm using Digital Inputs(Counters) for this task.

 

I have Reference sensor + Tested sensor. I'm using Reference sensor Rising edge to trigger acquistion of Tested sensor Rising edge by using Digital Arm Start.

 

When I switch setting from Rising to Falling in Example, then same mistake occurs.

0 Kudos
Message 6 of 8
(4,727 Views)

Hello Marek,

 

If you recieve the same error, please read the description : "Specified inversion cannot be satisfied, because the hardware cannot suport it."

 

My understanding is that your hardware (PXI 6251) does not support inversion of the trigger line, i.e. the only start condition you can use is Rising Edge.

 

As long as yur hardware do not support inversion, could you envisage to invert the PFI line with an external component?

 

Best regards,

0 Kudos
Message 7 of 8
(4,721 Views)

It's not practical to invert signal externally. I need to detect both rising/falling:

- at the best way... alternately

- at least... count multiple Rising and then switch and count multiple Falling + switch between Rising and Falling setting should be automated.

 

So is there only option to use analog?

 

 

0 Kudos
Message 8 of 8
(4,714 Views)