From: nourry@domain.hid
To: xenomai@xenomai.org
Subject: [Xenomai-help] Daq System Compatibility
Date: Thu, 26 Jun 2008 11:22:03 +0200 [thread overview]
Message-ID: <1214472123.48635fbbca3f3@domain.hid> (raw)
Hi,
> 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
next reply other threads:[~2008-06-26 9:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-26 9:22 nourry [this message]
2008-06-26 21:42 ` [Xenomai-help] Daq System Compatibility Alexis Berlemont
-- strict thread matches above, loose matches on Subject: below --
2008-06-30 9:09 nourry
2008-06-22 12:42 [Xenomai-help] DAQ SYSTEM COMPATIBILITY Antoine Nourry
2008-06-22 22:31 ` Alexis Berlemont
2008-06-23 8:11 ` Anders Blomdell
2008-06-23 10:23 ` [Xenomai-help] Daq System Compatibility Antoine Nourry
2008-06-23 22:52 ` Alexis Berlemont
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1214472123.48635fbbca3f3@domain.hid \
--to=nourry@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.