LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatic Access to RT target shared variables

I'm working with a cRIO-9073 and I want to set up programmatic access to the variables associated with various I/O module channels.  Per http://zone.ni.com/devzone/cda/tut/p/id/4679 i'm trying a DSC datasocket provided with the path to the shared variable associated with the module channel.  The Datasocket open works fine, but when I try the write or read blocks I get an error code 42 "Generic Error".  Is this the right appoach or is there another way to programmatically access these variables?
0 Kudos
Message 1 of 2
(2,603 Views)
failureman-

I have a few questions about your setup:

1.    Are you using a RTOS on your cRIO and hosting your code on the controller? 
2.    Do you have the Variable Manager on your cRIO?
3.    IS there a firewall on your network?  If so, Port 3015 will need to be open in order for DataSockets to work correctly.
4.    On your host machine, can you view any of the data from your variables on the Distributed System Manager?

Let me know and we can continue troubleshooting your issue.

Regards,

Mike S
NI AE
0 Kudos
Message 2 of 2
(2,571 Views)