Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure PFI lines?

I have an NI M series DAQ module. I need to configure the PFI lines (port 1 & port 2, each 8 bits wide) to input and output lines (they're sort of mixed) and set my output lines to some initial state (high or low). It seems that there are so many ways to do this. And that's where I'm confused.
 
There is the DAQmx Set Power Up States vi. Does this vi both configure AND write to the port lines? Or just writes to them?
 
Then there is the DIO Port Config vi and DIO Port Write vi. It seems that I can use that combination of vi calls to do the job. But then I ran into DIO Config vi and Write to Digital Port vi, and it seems that this combination should work as well. For writing to the lines there is also DIO Single Read/Write vi. I am confused as to which vi is best suited to do what I'm trying to do. And if they are all suitable, is there one that's more efficient than others? Keep in mind that I want to do this once at the beginning of my code to initialize the hardware. Can anyone tell me what's the best vi for configuring and writing to my hardware? Thanx a bunch.
 
Fataneh
 
0 Kudos
Message 1 of 2
(3,469 Views)
Please see our responses in this thread.
Tom W
National Instruments
0 Kudos
Message 2 of 2
(3,462 Views)