Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

When i try to write Port2/Line0 to High state, along with Line 0 Others lines of Port 2 are also getting High

I have PCI 6509 Card, using Labwindows/CVI (v7.1)

 

I have SH-100-100F Cable connected to Terminal Box.

 

On Terminal Box, S1, S2, S3, S6 are ON and S4, S5 are OFF.

<Here, ON meaning, Dot is Not visble on the switch. OFF meaning, dot is visible on the switch>

 

When i try to enable Port2/Line0 High, along with Port2/Line0, Port2/Line7 and Port2/Line6 are setting to High. Sometimes it is Port2/Line6 and Port2/Line5.

 

With the below code, I tried to read the voltage on terminal box for all the lines on Port 2, after each Step.

 

At Step 2, line 6 and line 7 of Port 2 were LOW.

After Step3, (ie., after starting the task)  line 6 and line 7 are showing High.

 

i8Data = 1;

Step1: DAQmxCreateTask("", &iHandle);

Step2: DAQmxCreateDOChan(iHandle, "Dev1/port2/line0", "", DAQmx_Val_ChanPerLine);

Step3: DAQmxStartTask(iHandle);

Step4: DAQmxWriteDigitalLines(iHandle, 1, 0, 10, DAQmx_Val_GroupByCHannel, i8Data, iSamplesPerChanWritten,

           NULL);

Step5: DAQmxStopTask(iHandle);

Step6: DAQmxClearTask(iHandle);

 

PCI Card, Cable, Terminal Box are just 2 weeks old.

 

I tried to check with the Test Panel. I think in the test panel, it tries to read and write all the lines, so i did not find any undesirable behaviour here.

 

But, i tried to Generate code using DAQmx Crete Task, under Tools option. Here also, i have selected only port2/line0 to generate the code, and still i observed line6 and line 7 getting to High State.

 

What could be the problem? Is the Card Faulty?

 

Any Help Appreciated.

 

Thanks,

Mahi

Regards,
Mahi
0 Kudos
Message 1 of 1
(3,889 Views)