It sounds like you are generating the trigger correctly in the code. There should not be anything you have to change on the hardware to send/receive the trigger.
Have you tried using a different trigger line besides 0? Triggers 0-7 should be available to use on your system.
What version of Linux kernel build are you running?
Are you using ECL, TTL, synchronous, or asynchronous for triggering?
Also attached below are several articles that discuss VXI triggering in more detail.
Here is the kernel version I am using.
Linux ate4 184.108.40.206-RedHawk-4.1-trace #1 SMP PREEMPT Tue Mar 28 13:28:24 EST 2006 i686 i686 i386 GNU/Linux
Before I continue with linux testing I am going to run the same test on windows to verify my handler gets called when I generate a trigger.
I am going to have to read up on the trigger line information you sent. I assumed that if I generate a trigger (lines goes low for x us). Then the MXI driver would see that change and call my handler routine. I believe I am using TTL because the trigger line is high. The comparator card drives the TTLTRIG0 line low for approx 2us, and then it goes high again. Do I need to setup the MXI controller card to see this type of trigger so it will generate an interrupt on the PCI bus? I was looking in the MXI users manual and found the
VXIbus TTL Trigger Configuration Register (VTCR). Do I need to modify this register before seeing interrupts?
I was able to get our example program working with Windows NT and RHEL4 with kernel version 2.6.9-22.0.2.EL. This poses a problem because we need to use a real-time linux (kernel with prempt patches). Can you send me information on how we can get National Instruments to support Concurrent real-time linux (redhawk). It is based on RHEL4. As I stated in the last post we are using redhawk kernel version 220.127.116.11. From the MXI driver documentation the latest version of the kernel supported is 2.6.15. So I am suprised it doesn't work with redhawk kernel version 18.104.22.168.
I am working on a VXI controller VXIPC and Visual C++ 6.0, I stuck on writting code interrupts . Could you please post any sample code for the below, thank you for all the helps from you and others. Sorry! I did not have time to go thru the documents
1- Setup interrupts in NI-VISA for visual C++
2- Interrupt Service Routines for each time the interrupt occurs.
3- ANy other related interrupt code for VXI controller in NI-VISA
Thanks in advance, please help!