Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DIO Config output initial values

Hello All
 
I am using PCI-MIO-16E-4, with traditional NI DAQ and LabView 7.1.
DIO port default configuration is as input, high impedance with pull-ups, which turns out to be all "ones".
When I configure some of the lines as outputs they imediatelly output the value "zero".
Is it possible to configure a line as an output while keeping the output value of "one"?
 
Regards,
          Joao
0 Kudos
Message 1 of 6
(3,824 Views)

Hi.

I've not used THAT particular board, but can't you set the outputs to '1' before configuring the lines as outputs?

 

0 Kudos
Message 2 of 6
(3,813 Views)

Thanks for the tip, but I dont think I can do that, I must always use config before writing or reading the DIO lines.

Joao

0 Kudos
Message 3 of 6
(3,807 Views)

Ah.

OKay - another stab in the dark, then: how about using config to set the IOs as inputs, set the lines as '1' then set the lines as outputs?

 

0 Kudos
Message 4 of 6
(3,804 Views)
Hi,
A simple solution is to write 1 on the line just after the configuration.

Johan G.
NIF
0 Kudos
Message 5 of 6
(3,776 Views)
 
I had the impression that our friend wanted to maintain the high setting of the pin. Ergo the suggestion of setting DIOs before configuring them as outputs.
 
Joao,
 
it's probably overdue, but could we ask why it's important to keep the outputs high while switching them to be outputs?
 
0 Kudos
Message 6 of 6
(3,764 Views)