LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Where do I find the DIO-96 commands

I am trying to checkout the operation of a DIO-96 Card. When I write to a Port on a single 8255 chip, then write to the second Port on the same chip (Ports 0 and 1/Ports 6 and 7/Ports 9 and 10), the second port receives the desired pattern but the first port gets reset. Why is this happening? An article on the NI Tech Support page discusses a Dig_Port_Config() command issue and that when the 8255 chip gets re-configured, it resets all the other ports on the device. I am only using the WriteToDigitalPort command, with the Configure Bit set to "Only if Necessary".

I looked for the Dig_Port_Config command in the STLIB manual, but did not find it there. Where do I locate this command, and how should it be used? I also looked for conf
iguration information that would permit me to set the different modes for the 8255 but could not find any reference in the NI commands to the Modes that are identified in the 8255 specification. Specifically, I am referring to the Modes (static/latched/handshake) that the 8255 will perform. The configuration in both the WriteToDigitalPort and WriteToDigitalLine do not address this subject. Where do I find these commands to control the DIO-96 card? In my application, I need 6 8-bit ports that are all static Outputs to drive a bank of buffered relays. I do not need to reconfigure these ports every time I power-up the computer or DAQ card. I also need each output port to stay at the desired setting as I write (different patterns) to the other ports. Ports that automatically reset are not of much use in my application. What commands do I need to review? What documentation will describe these commands?

I have also changed the hardware jumper W1 from the HI state to the LOW state
for the PowerUp default, with no difference visible at the ports. The ports continue to initialize in the OFF condition for both cases. What is happening here?
0 Kudos
Message 1 of 5
(3,470 Views)
Did you install the NI-DAQ drivers ? The driver cd-rom is normally delivered
with all NI DAQ products like your DIO-96 Card. After you install the driver
you should find a 'data aquisition' entry in your CVI Library menu. This
menu entry is dimmed as long the driver isn't installed. You should further
check, if the checkmark 'Data Aquisition' in menu Options/LibraryOptions is
activated.
In this library you will find all the functions you are looking for !

Regards,
Manfred


Farside schrieb in im Newsbeitrag:
506500000008000000972A0000-999158726000@exchange.ni.com...
> I am trying to checkout the operation of a DIO-96 Card. When I write
> to a Port on a single 8255 chip, then write to the second Port on the
> same chip (Ports 0 and 1/Ports 6 and 7/Ports 9 and 10), the second
> port receives the desired pattern but the first port gets reset. Why
> is this happening? An article on the NI Tech Support page discusses a
> Dig_Port_Config() command issue and that when the 8255 chip gets
> re-configured, it resets all the other ports on the device. I am only
> using the WriteToDigitalPort command, with the Configure Bit set to
> "Only if Necessary".
>
> I looked for the Dig_Port_Config command in the STLIB manual, but did
> not find it there. Where do I locate this command, and how should it
> be used? I also looked for configuration information that would
> permit me to set the different modes for the 8255 but could not find
> any reference in the NI commands to the Modes that are identified in
> the 8255 specification. Specifically, I am referring to the Modes
> (static/latched/handshake) that the 8255 will perform. The
> configuration in both the WriteToDigitalPort and WriteToDigitalLine do
> not address this subject. Where do I find these commands to control
> the DIO-96 card? In my application, I need 6 8-bit ports that are all
> static Outputs to drive a bank of buffered relays. I do not need to
> reconfigure these ports every time I power-up the computer or DAQ
> card. I also need each output port to stay at the desired setting as
> I write (different patterns) to the other ports. Ports that
> automatically reset are not of much use in my application. What
> commands do I need to review? What documentation will describe these
> commands?
>
> I have also changed the hardware jumper W1 from the HI state to the
> LOW state for the PowerUp default, with no difference visible at the
> ports. The ports continue to initialize in the OFF condition for both
> cases. What is happening here?
0 Kudos
Message 2 of 5
(3,470 Views)
This has helped. Ben Schulte also indicated I needed to install the NI DAQ from the CD. Ben also indicated the that reconfiguring occurs everytime the Port Number or Port Width changes. I have modified my code to use a 16 bit wide port since my Relay functions are mapped at a 16 bit width. This has eliminated the configuring problem every time I write to the port.
0 Kudos
Message 4 of 5
(3,470 Views)
Hello;

The description about all functions can be found at the NI-DAQ on line help. You must select the documentation to be installed when you install NI-DAQ. I'm attaching a flowchart to this document which has the commands you must call to accoomplish that and the correct order of those.
Again, call the Config functions for all ports you need to use, and then call the read or write function for all those.
Hope this helps.
Filipe
0 Kudos
Message 3 of 5
(3,470 Views)
Thanks for the flowchart. I have stayed with the initial commands, but have gone to a 16 bit wide port to eliminate the re-configuration issue. I still have not explored the problem with the powerup default state.
0 Kudos
Message 5 of 5
(3,470 Views)