Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Affectation of a channel with PDA

Hello !

I use a PDA for make an acquisition and write on a channel but I don't know how select also one channel and not all the port. Someone can explain to me?
I try to create a new task but it propose to me also the port and not one channel.
I need help. I think someone has ever see this problem.

Thanks

lolo
0 Kudos
Message 1 of 5
(4,072 Views)
Hello lolo1,

The LabVIEW example that you can use to write on one digital line using NI-DAQmx Base is : "Write Dig Port.vi" that you can found on "C:\Program Files\National Instruments\LabVIEW 7.1\examples\daqmxbase".

This example uses the channel "dio write port".
To write on one line and not all the port, change the properties of that channel using the tool "NI-DAQmx Base task configuration utility" :
Go to the tab : "Line Selection" and write 00000001 to write on line 0, 00000010 to write on line 1...

Then modify the example VI to write only one booleen and not an array of booleen values.
See attached example.

Hope this help.
Regards,

Sanaa T
National Instruments Franc

Sanaa T.
National Instruments France

0 Kudos
Message 2 of 5
(4,054 Views)
Hello,

Ok. I think it work for one line. But if I want to write an other line without change the first line I can't use this porgram. I do this program with a read and with a mask I can affect also one line. I can do the some thing with the other line. Maybe existed an other solution easier for do that.
See attached example.
Message 3 of 5
(4,048 Views)
hello,

I give you the VI lecture_port
0 Kudos
Message 4 of 5
(4,047 Views)


sissi2003 a écrit:
hello,

I give you the VI lecture_port




Hello Sissi,

I saw your program and I find that it's a good solution.

Regards,

Sanaa T

Sanaa T.
National Instruments France

0 Kudos
Message 5 of 5
(4,030 Views)