Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

test PCI6528

Hi,
I want to test the PCI 6528 output pins using test panel in MAX. I think that If I make the logic high of the output pins, the resistance between positive and negative terminals is 18V. But I got overload resistance. What is the reason? Does the test panel have the control of the board circuits?

Thanks,
Joyce

0 Kudos
Message 1 of 5
(3,708 Views)

I'm a bit confused by your post.

Resistance is measured in ohms, not volts.

And you cannot measure resistance whenever voltage is present across the nodes of what you are trying to measure.

Yes, by changing the output states in MAX, this will change the states of the physical outputs.

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 5
(3,699 Views)
Thanks for your reply. I've got the solution for my problem.
I am a beginner in this field. Sorry for my lack of knowledge.
I want to control the Digital output through the binary switch in application software Labwindows/CVI. Is the following flow right?
1. get the attribute value of binary switch (1 or 0)
GetCtrlVal(panel,PANEL_BINARYSWITCH,&data);
2. create task
DAQmxCreateTask("BINARY",&TaskHandle)
3. creat channel
 DAQmxCreateDOChan (TaskHandle, "Dev1/port3/line0", "binary", DAQmx_Val_ChanPerLine);  
 4. write value to line
 DAQmxWriteDigitalU8 (TaskHandle, 1, 1, 10.0, DAQmx_Val_GroupByChannel, data, , NULL);  

Do I need to do anything in MAX?
Thanks,
Joyce
                                                                                      

0 Kudos
Message 3 of 5
(3,685 Views)
Joyce:
 
I have not done any CVI work in many many years, hopefully someone else with experience with it will chime in.
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 4 of 5
(3,683 Views)
Joyce,

Your code looks fine. I would add a DAQmxClearTask (TaskHandle taskHandle); command once you are done with your output. It is very impotant to clear the task once you are done working with it.


Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
0 Kudos
Message 5 of 5
(3,667 Views)