Skip to contentSkip to conversation

Daq System Compatibility

Xenomai-help [email protected] 2 participants 2 messages Jun 26, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

Quoted 3 lines

That seems to be an example showing how to use the driver. That will not help us to write the driver. The hardware access are abstracted / encapsulated by DAQmx functions.

Alex, do you think this sample looks more like a driver ?
It comes from NI Development Kit and i saw on NI forum that someone was developing a driver from that sources for a PCI card in order to make it work under Xenomai. He had some problems but he seems to manage to initialize the card and program interrupts.

//

// common.cpp

//

// $DateTime: 2006/07/27 23:51:45 $

//

#include "common.h"

void analogTriggerReset (tMSeries* board)

{

    board->Analog_Trigger_Etc.setAnalog_Trigger_Reset(1);

board->Analog_Trigger_Etc.setAnalog_Trigger_Mode(tMSeries::tAnalog_Trigger_Etc::kAnalog_Trigger_ModeLow_Window);

    board->Analog_Trigger_Etc.flush();

board->Analog_Trigger_Control.setAnalog_Trigger_Select(tMSeries::tAnalog_Trigger_Control::kAnalog_Trigger_SelectGround);

    board->Analog_Trigger_Control.flush();



    board->Gen_PWM[0].writeRegister(0);

    board->Gen_PWM[1].writeRegister(0);

board->Analog_Trigger_Etc.setAnalog_Trigger_Enable(tMSeries::tAnalog_Trigger_Etc::kAnalog_Trigger_EnableDisabled);

    board->Analog_Trigger_Etc.flush();



    return;

}

Thank you,
Antoine

#1 lore raw

Hi,

Quoted 9 lines
Quoted 3 lines

That seems to be an example showing how to use the driver. That will not help us to write the driver. The hardware access are abstracted / encapsulated by DAQmx functions.

Alex, do you think this sample looks more like a driver ?
It comes from NI Development Kit and i saw on NI forum that someone was developing a driver from that sources for a PCI card in order to make it work under Xenomai. He had some problems but he seems to manage to initialize the card and program interrupts.

Would you mind sending the URL of the post on that forum?

Thanks in advance.

Alexis