Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO modbus

Rudi N
 
Thanks for the code. I have added a read variable2 instruction to the host vi and when I run the vi's LabVIEW gives error "-1950679023 The connection to the server was disconnected". Why I get this error message?
Download All
0 Kudos
Message 11 of 16
(2,595 Views)

MuratG:

Thank you for getting back with me. Are you able to still ping your cRIO while you are getting the error. I wonder about whether or not it is merely a network connection. You can also try to use Datasocket while you are experiencing errors to see if the issue is related to the Shared Variable Engine. Let me know what you find.

Thanks,

Rudi N.

0 Kudos
Message 12 of 16
(2,579 Views)
Hi Rudi,

I discovered your message about cRIO modbus. I tried your project in the attached file and I am able to run RTVI.vi on the controller 9014 with Labview 8.5 and the SVvi.vi on a laptop. But when I built RTVI.vi to obtain a RT stand alone application with autorun, then I am not able to run the SVvi.vi on the Host PC. I receive a following Deployment Error.
How could I solve this conflict?

Regards, Nicolas
0 Kudos
Message 13 of 16
(2,307 Views)

Hi Nicolas,

It sounds like the host VI SVvi.vi is attempting to redeploy Lib.lvlib, the library containing Variable1 and Variable2.  Since the variables have been deployed by RTvi.vi, they do not need to be deployed again by the host VI.  If you right-click Lib.lvlib and uncheck Autodeploy Variables, the variables will only deploy once. 

Another option is to create new variables in SVLibrary.lvlib and bind them to Variable1 and Variable2.  Both methods are discussed in more detail here

Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 14 of 16
(2,261 Views)
Hi Jennifer,

It works perfectly well now, it was indeed the issue of Autodeploy Variables.
Thanks a lot!

Nicolas
0 Kudos
Message 15 of 16
(2,214 Views)

Hi Nicolas,

My pleasure.  Glad to hear everything is working Smiley Happy

Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 16 of 16
(2,209 Views)