Hi,
I'm having a problem with the activation of TriggerIn endpoints using C++.
I try it like this:
if (0 == dev->ActivateTriggerIn(0x40, **0x02**)){
std::cout<<"(Triggering ... )"<<std::endl;
} else {
std::cout<<"(ERR)"<<std::endl;
}
The VHDL part looks like this:
ep40 : okTriggerIn
port map (okHE => okHE, ep_addr => x"40", ep_clk => CLK_100, ep_trigger => ep40trig);
Trigger_T <= ep40trig(0);
Trigger_R <= ep40trig(1);
I'm not sure how to use the second parameter of ActiveTriggerIn, I tried different numbers, but none of them seem work. I'm trying to use the 2nd bit of this TriggerIn.
It worked when I used a XML interface with a trigger button (I used separate TriggerIns for every trigger though). Also, reading TriggerOut (UpdateTriggerOuts() and IsTriggered()) and setting and reading Wires works.
So I thinkt that either I'm using the ActivateTriggerIn()-command in a wrong way or it might be something wrong with the VHDL implementation.
Thanks in advance.