LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RT Shared Variable Size Limit

Hi all.

 

I have a cRIO system that is using shared variable to publish to a host PC for display and data logging. I've declared a U32 to allow me to count to 100000000 cycles. Everything appears to run fine when I am running the RT code in labview. When I deploy and run the system out of labview, the counter maxes out at 32767 (I16 maximum size) and then stuffs 4294967295 into the display which stops the program since it is above the 100000000 cycle maximum. I am baffled. I've tried redesigning using singles instead of integers but still get this behaviour when running outside of labview.

 

Any ideas?

0 Kudos
Message 1 of 6
(3,078 Views)
Not sure if I will be able to help but what target are you running this on?
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 6
(3,067 Views)
What version of LabVIEW and Windows do you have?
Regards,
Claire Reid
National Instruments
0 Kudos
Message 3 of 6
(3,043 Views)

Win XP SP 3, Labview 8.6.1, NI-RIO 3.1.0 w/ scan engine

 

Hardware cRIO-9101 with 3rd Party FPGA (Drivven Fuel Port Driver) device and a NI 9219

0 Kudos
Message 4 of 6
(3,041 Views)
I think I figured it out. I had to "always include" the shared variable library in my RT Start up EXE build. Just deploying the library to the cRIO was apparently not enough. Anywho, it seems to be working and I have easily surpassed the 32767 mark.
0 Kudos
Message 5 of 6
(3,028 Views)

For reference, follow the instructions provided in the linked article:

How Do I Deploy Network Shared Variables from a Compiled Executable?

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 6 of 6
(3,026 Views)