LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

merging count buffered edges.vi with dig buf handshake in.vi

I'm trying to merge the count buffered edges.vi and dig buf handshake in.vi together, however it giving me error. How to solve this problem?

I'm application both handshaking and counting of the buffered edges.
0 Kudos
Message 1 of 4
(2,837 Views)
Lyn,

What board are you using?
What handshaking protocol are you wanting to use?
What are the errors you are seeing?

Also, commenting on the overall idea of what the application should do might help us towards suggesting solutions.

Let us know,

Alejandro Asenjo
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,837 Views)
thanks alejandro,

i'm using PCI-6025E board to do both the buffered handshaking and counting buffered edges.

therefore i'm trying to merge the following 2 vi together.
1. Count Buffered Edges(DAQ-STC).vi
2. Dig Buf Handshake In(8255).vi

In my application, i wanted to count the event on the gate pulse using internal timebase of 100KHz as the source (digital acquisition) and buffered handshaking to acquired about 2000 data.(mode 1)

this 2 vi function very well so far when tested separately. however when i tried to merge this 2 vi together, it gives me the following error

Error -10007 occurred at Digital Group Config
Possible reasons: NI-DAQ LV: A channel, port, or counter is out of range for the device type or device configuration; or the
combination of channels is not allowed; or this scan order must be reversed(o last)

i suspect this is because there are 2 group config in the vi, counter group config.vi and the digital group config.vi .

1. Is my guess correct about the cause of the problem? what should i do to solve this problem?

2. what is the function of the "call library function" in the group config? what should i do if i want to merge the 2 group config together?

thks,lyn
0 Kudos
Message 3 of 4
(2,837 Views)
Lyn,

I was able to run the example you attached with a 6025E. The cause of the error is probably something simple like the numbering of the ports on the board. At first I was mislead by the fact that you mentioned that the example works fine by itself. Actually if you open up the 8255 Buferred Input (handshake) example you would probably have to set the ports to 2 or 2,3 before you can use the example. If you tr to run it with the default ports 0,1 you will get the -10007 error.

Try using ports 2 or 2,3 (notice that the handshaking lines will vary, refer to the VI's documentation) and let me know if the problem persists.

I hope this helps,

Alejandro
0 Kudos
Message 4 of 4
(2,837 Views)