LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continued Problems with DSC from 7.1->8.2: Can't call memory variables and conversion of src has error

I have managed to get the I/O-board tied OPC tags to be brought into my VI, but memory variables will not work. I have tried various versions (forward slashes, back slashes, removing the word "lookout") of lookout://localhost/LabVIEW/Tag to no avail. These memory tags do show up in the Multiple Variable viewer.

 

Thoughts?

0 Kudos
Message 1 of 21
(4,318 Views)

Hi tug,

 

Can you post a little more information as to what you have done?   I don't quite understand what you mean by managing to get your tags "to be brought into my VI."  Also, "memory variables will not work"?  A little more info on exactly what you have done and what doesn't should give us something to work with.

 

Cheers, 

Brian A.
National Instruments
Applications Engineer
Message 2 of 21
(4,297 Views)

I have created a project that has all of my 7.1 files and the migrated library with I/O and memory tags. I can call up a new address for the shared variable constant that looks like \\My Computer\LabVIEW\DV-3, but the VI will not run. I have tried other references including \\localhost\LabVIEW\DV-3, and it does not work. The only references from my library that do work are direct I/O references to the DAQ-mx listing that I created from converting my traditional DAQ to DAQ-mx.

 

Note that the library variables show up fine in the multiple variable viewer, but do not show up in the variable manager.

0 Kudos
Message 3 of 21
(4,284 Views)

Hi tug,

 

If your variables do not show up in the variable manager that means they have not been deployed.   Right-click the library containing the variables to Deploy All or Autodeploy Variables (autodeploy will deploy when a VI accessing the variables runs).  Just to be sure, do you have an OPC Client I/O server set up?  Once this is set up you can bind shared variables to the OPC tags.

 

I hope this helps! 

Brian A.
National Instruments
Applications Engineer
Message 4 of 21
(4,271 Views)

I can deploy all the variables, but there is no data there (even though the server explorer shows data for the network tags underneath it.) when the system is run. In trying to set up the DaqOpc server as an I/O server from the project, although shown in the server explorer, it does not come as a registered server for selection.

 

Help?

0 Kudos
Message 5 of 21
(4,236 Views)
When you set up the I/O server in the project, what OPC servers do you see?  Do you see National Instruments.Variable Engine.1?  If so, choose this one, and see if your DAQ tags show up in the I/O items under System >> DAQmx.
Brian A.
National Instruments
Applications Engineer
Message 6 of 21
(4,222 Views)
The lookout and variable1 servers are the only two OPC servers, but the DAQ MX does show the I/O tag names.
0 Kudos
Message 7 of 21
(4,195 Views)
Good.  So can you now bind to these tags?
Brian A.
National Instruments
Applications Engineer
0 Kudos
Message 8 of 21
(4,187 Views)
I can bind the tags, but I don't get good values from DAQ-MX. They are mostly quite a ways off. If I, however, look at DaqOpc from NI-DAQ, the values are fine. I am also wondering why I can directly access DaqOpc from the shared variables?
0 Kudos
Message 9 of 21
(4,150 Views)
Can you describe what you mean by saying you do not get good values?  What exactly are you seeing that seems to be "quite a ways off"?   Also, when you say that values are fine when you are looking at "DaqOpc from NI-DAQ" where exactly are you looking?  You may also try browsing to C:\Program Files\National Instruments\NI-DAQ\OPC and running nidaqopc.exe to see if this gives you the DaqOpc server process you are looking for.
Brian A.
National Instruments
Applications Engineer
0 Kudos
Message 10 of 21
(4,116 Views)