LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using group read/write for digital communication

Hi,

in my program i have to read/write digital signals from/to the installed
PCI-6527. I created two loops to split up the two different modes. For data
exchange inside the whole program i use a LV2 global variable. Inside MAX i
created virtual channels for each line of the six ports to give the user the
opportunity to change the interconnection.
I placed two group_config.vi's onto the blockdiagram and connect them with a
list of virtual channels. The secondary one i switched into output mode. The
first loop use the group_read.vi to get data and convert's it into a cluster
og booleans. The secondary converts another cluster into an array of u32 and
put it into group_write.vi.

If i use that methode, i will
always get an error -10614 from
group_write.vi! Do i comment out reading digital input, the writing works
perfectly. It's also appear on the other way by commenting out digital
writing and only do reading.
Why these both loops can't work together? Do i have to combine the two loops
and do reading and writing not simultaneous?

I hope someone can help me...

regards
Henrik
0 Kudos
Message 1 of 5
(2,984 Views)
Hi Henrik,

Try wiring a unique number into the group input when you do both of your configs. The documentation says this value is ignored when using virtual channels, but I have found that this is not always the case.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 5
(2,985 Views)
Hi,

thanx for your answer.. i tried it and it's working perfectly now!

regards
Henrik


Ben schrieb in im Newsbeitrag:
506500000005000000D3360000-993342863000@exchange.ni.com...
> Hi Henrik,
>
> Try wiring a unique number into the group input when you do both of
> your configs. The documentation says this value is ignored when using
> virtual channels, but I have found that this is not always the case.
>
> Ben
0 Kudos
Message 4 of 5
(2,984 Views)
Hi Henrik,

Make sure you are keeping your task ID's straight.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 5
(2,984 Views)
Thanks Ben, This solved my problem too.
0 Kudos
Message 5 of 5
(2,932 Views)