LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arrays from host to target

Solved!
Go to solution

I'm trying to transfer an array from the host LabVIEW program down to the real-time target on a cRIO.

I'm setting up a controlled loop that transfer the values one by one via Shared Variables.

This works fine when I run under Highlight Execution.

However, if I let them both run at full speed, something goes wrong

and the size of the array doesn't end up correct at the target.

Is there some tricks on how to transfer arrays down

from host to target, or any other traps I should be aware of when

working with a real-time target ?

And yes, I never have taken the RT course, so there could be vital info I'm missing.

Martin

0 Kudos
Message 1 of 3
(2,498 Views)
Solution
Accepted by topic author MartinP

Hi Martin,

 

why don't you use a SharedVariable holding an array? Why do you transfer data one by one?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,489 Views)

GerdW

It seems I have misunderstood something. I thought I had to Enable RT FIFO on all shared variables that was used between the Host computer and the RT Target, something that makes it impossible to use parameters without predefined size (arrays, string etc). But it seems I was wrong, I just tested now without RT FIFO enabled, and that worked fine.

Thanks.

Martin

0 Kudos
Message 3 of 3
(2,454 Views)