Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem, not worked genDigPulse.c - daqmxbase 3.6

Hi,


I tried daqmxbase3.6.0 for linux. example program "genDigPulse.c", on ScientificLinux6.1(x86), PCI-6251.

each daqmxbase function no error. program was normal end.

but, no output Pulse.

lsdaq command result is  "NI 6251: Dev1 (PXI3::10::INSTR)".

I tried Dev1/ctr0(PFI 12), Dev1/ctr1(PFI 13), and pulse frequency change to 1000.0Hz.

both no output Pulse.

I tried AI 1Scan sample,  It worked. acquired AI voltage.

Why cannot output Pulse?

my system has

ScientificLinux6.1(x86) 2.6.32-131.015.el6.i686, gcc 4.4.5

DAQmxBase3.6

PCI-6251 (It worked on WinXP + DAQmx)

Thanks,

0 Kudos
Message 1 of 3
(4,025 Views)

Hello,

Perhaps there is a problem with your board or connections. Have you tried using the counter output recently?

I just tested a PCI-6251 on ScientificLinux 6 and it worked correctly with this example. I tested it with a BNC-2120 and a wire connected between the CTR-OUT and one of the DIO LEDs. It turned on for about .5 seconds.  Note, it takes the example about 6 to 7 seconds to load up.  There is a chance you are giving up watching for the pulse before it is even output.

Thanks,

Steven T.

0 Kudos
Message 2 of 3
(3,256 Views)

Thanks Steven T.

It worked.

> Note, it takes the example about 6 to 7 seconds to load up.

> There is a chance you are giving up watching for the pulse before it is even output.

genDigPulse.c output pulse time 10 seconds, time was too short.

change to 60 seconds. puluse output after 6 to 8 seconds.

I have tried other samples.  ai/contAcquireNChan.c - worked.

nidaqmxbase3.6.0 is nice.

  smoothly installed to ScientificLinux 6.1(without kernel recompile).

Thanks to NI-DAQmx Base linux dev team.

Thanks for your time.

0 Kudos
Message 3 of 3
(3,256 Views)