Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with descrete outputs on PCI-6115(VC++, windows -2000)

Hi,

I am trying to generate pattern on do line with the example programs(DOdoubleBufPatternGen.C,DOsingleBufPatternGen.C) given by NI for VC++ on PCI-6115 card(windows 2000),i am getting error# -10600 (No setup operation has been performed for the specified resources. Or, some resources require a specific ordering of calls for proper setup. )

the changes made in the program are :
the parameters for DIG_Grp_Config : group - 1
groupsize - 1(one port assigned(8 bit group) to group)
port - 0(assign to port 0(A))
dir - 1(output)
with the above setup, i am getting above error.(i haven't changed any thing else).
My application needs to generate pattern on DO line (not with counter)in asynchronous mode, pleeez help to come out of this problem.

Regards
Reddy JS
0 Kudos
Message 1 of 8
(3,429 Views)
Hello,

To avoid this error, you must call the Dig_Line_Config function to setup the direction for each digital line prior to calling the Dig_Grp_Config function.

Let me know if this does not help.

Sean C.
0 Kudos
Message 2 of 8
(3,424 Views)
Hi Sean C,
Thank you for responding,
I made that change and tried, but i haven't seen any pattern on CRO Scope and one more thing is that the control is not coming out of the while loop, please very the code which i am sending as attachment.i commented Align_DMA_Buffer,since it not supported by PCI-6115.


i application needs to configure 2 digital lines(output) for pattern generation and 4 digital lines(input) for acquisition for simulataneous operations, is it possible?,if so how can we achive this, please help me.



Thank you,




Regards
Reddy JS
0 Kudos
Message 3 of 8
(3,419 Views)
Hello,

Are you just writing an array of 0s to the DO lines? If so that would explain why you aren't seeing any outputs. Are you getting any errors from this code?

Sean C.
0 Kudos
Message 4 of 8
(3,393 Views)
Hello Sean,

Thanx for responding,
i have tried with array values (0,1,0,1,0,1......}and (0,2047,0,2047,.....) etc, even then i haven't seen any output, i am not getting any error.the return status of DIG_Block_Out is always ZERO,its never getting changed,the parameter "ulRemaining" of DIG_Block_Check is always ONE, its never decremented to ZERO.

The API's DIG_Block_Out,DIG_Block_PG_Config,DIG_Grp_Config are group(port) configurable,is there any way to configure DIO lines individually in asynchronous mode, for continuous pattern generation and acquiring the data.

when i tried with example DOoneLine.C ,able to see output,but it doesn't meet my requirement.

Regards,
Reddy JS
0 Kudos
Message 5 of 8
(3,390 Views)
Have you tried using the DOsingleBufPatternGen.C example at C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Do? This example performs pattern generation on multiple ports.

Sean C.
0 Kudos
Message 6 of 8
(3,382 Views)
Hello Sean,

I have tried with DOsingleBufPatternGen.C example also,no output seen,but PCI - 6115(S-series) Card contains only one port i.e Port 0 with 8 Digital lines,isn't it?(info : i am using BNC-2110 I/O connector).


Regards
Reddy JS
0 Kudos
Message 7 of 8
(3,377 Views)
You are correct, the 6115 only has one digital IO port with 8 lines.

-Sal
0 Kudos
Message 8 of 8
(3,368 Views)