Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Dig_Out_Grp on 6534

I'm trying to use the 6534 to send some fairly slow control signals to another board. I've used Dig_Grp_Config to configure the CD group to be one output group, and I toggle the AB group between input and output as needed.

// Assign ports C and D to output group 2
i_Status = DIG_Grp_Config(i_DeviceNumber, 2, 2, 2, 1);
i_ReturnCode = NIDAQErrorHandler(i_Status, "DIG_Grp_Config", 0);

Unfortunately, while the input works fine I can't get an output on the oscilloscope using Dig_Out_Grp.

i_Status = DIG_Out_Grp(i_DeviceNumber, 2, 0x18);
i_ReturnCode = NIDAQErrorHandler(i_Status, "DIG_Out_Grp", 0);

Board's working; the Test Panels are able to put 5V on the line just fine. But my code doesn't work, and neithe
r does the nearest relevant example code ImmediateCDOSinglePoint.C , which both complains that the DIG_Line_Config isn't valid for the 6534 with dir=5 (runs fine with dir set to 1), and fails to output under either case. Any ideas as to why I can't get a signal out?
0 Kudos
Message 1 of 3
(3,389 Views)
An update: I found the dumb code glitch which was making me think the right lines weren't lighting up. However, I'm now having the same problem as "How do I implement unstrobed I/O with groups on PCI-6533?"
Any further assistance would be greatly appreciated.
0 Kudos
Message 2 of 3
(3,389 Views)
Hey rgaddi,

The user manual for the 653x has the information I think you are looking for.

http://www.ni.com/pdf/manuals/321464c.pdf

On page 2-5 it illustrates what commands to use when writing to a port unstrobed. This example uses the port commands instead of the group functions. The group functions should be used when you are performing handshaking or strobed I/O. I understand that the 653x can be very confusing to program, but the user manual does a great job of giving examples that can be used as a guide when performing specific operations.

I hope this helps out.

Joshua P.
Application Engineering
National Instruments
0 Kudos
Message 3 of 3
(3,389 Views)