08-20-2008 02:46 PM
I have an app that has a target and host VI that takl via SVs. Tha target VI uses DataSockets to read/write SVs. I've developed and tested the VIs on my PC (i.e. using localhost for the hostname on both sides). The HW is available to me for testing now and I've tried running the same target VI on the PXI target but I get a datasocket error (see image) when I try to open the PSP address for the SV. For example, a URL the target is trying to open is "psp:\\192.168.1.123\Shared Variables\PV9" where the IP address is the host PC (which is running the SVE). What am I doing wrong?
08-20-2008 04:16 PM
Looks like my problems are more deep than this. I created as simpe a project as I could with a single SV that's changed on the target and viewed on the host (attached). This does not work either (the SV does not change on the host VI). What am I doing wrong?
08-20-2008 05:02 PM
If I switch my SVE to the target, it works. But according to the way I read the docs, I should be puttig my SVE on the host PC, not the T target. Besides, I'm running DSC and SV logging so I CAN'T run the SVE on the target (according to the docs). So what gives??
08-22-2008 10:20 AM
Hi,
One possibility is that you don't have Datasockets for LabVIEW Real Time installed on your system or that your Datasocket isn't configures correctly. Please refer to this knowledgebase for more information on this.
It sounds like you are running the SVE in either the host or target but not both simultaneously. You will need to ahve the SVE running on the host system to deploy the shared variables but you will also need the variable engine and variable client on the RT system.The location of the shared variable library will determine the location of where the shared variable engine is deployed.
If you need to test this, please create another variable on the target and bind that to the one on the host. Use the SV on the target to still log on to the host.
Hope this helps!
body { margin: 0 0 0 0; padding:0 0 0 0 }
td,div { font-family:Tahoma;font-size:8pt;vertical-align:top }
body { margin: 0 0 0 0; padding:0 0 0 0 }
.transcript { background-color:#d2d2d2; }
.messageBlock { margin-left:4px; margin-bottom:3px }
.message { margin-left:100px; word-wrap:break-word; white-space:-moz-pre-wrap; _white-space:pre; }
.messageCont { margin-left:100px; word-wrap:break-word; white-space:-moz-pre-wrap; _white-space:pre;}
.other { color:#39577a;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.myself { color:#da8103;font-style:normal;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont { font-size:8px;text-align:right; color:#39577a;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.myselfCont { font-size:8px;text-align:right; color:#da8103;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.system { margin-left:4px; word-wrap:break-word;color:#da8103;font-style:normal;font-weight:normal; white-space:-moz-pre-wrap; _white-space:pre; }
.showTimestamp { margin-right:3px; float:right; color:#999999;font-style:normal;font-weight:normal; }
.other1 { color:#ac2000;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont1 { font-size:8px;text-align:right; color:#ac2000;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.other2 { color:#3c9fa8;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont2 { font-size:8px;text-align:right; color:#3c9fa8;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.other3 { color:#e25614;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont3 { font-size:8px;text-align:right; color:#e25614;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.other4 { color:#0b6ac8;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont4 { font-size:8px;text-align:right; color:#0b6ac8;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.other5 { color:#b23290;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont5 { font-size:8px;text-align:right; color:#b23290;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.other6 { color:#02e7c7;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont6 { font-size:8px;text-align:right; color:#02e7c7;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.other7 { color:#5b3284;vertical-align:top;font-weight:bold;font-style:normal;float:left; width:95px; }
.otherCont7 { font-size:8px;text-align:right; color:#5b3284;font-family:Arial,Lucida Grande;font-style:normal;vertical-align:top;font-weight:bold;float:left; width:95px; }
.tsDisplay { display:block }
08-22-2008 10:19 PM
Actually, it was the stupid firewall on my PC preventing it from working. I have no idea why that would allow it to work when the SVE was on the target but not on the PC. Oh well. It works fine now.
Keith.