i have made two projects - a server and a client.
server has the amc dispatcher running. when i created a vi havin a ping dispatcher, it worked fine and i got the ping acknowledgment. But when i used the same vi inside the client project and ran it, it gives an error -
Error 60 occurred at UDP Open in amc_UDP Port.vi->amc_Send Message over UDP.vi->AMC Send Message.vi:5->AMC Send Network Message.vi:1->amc client.vi
LabVIEW: The specified network address is currently in use.
Can someone help me out
I believe that, since the Ping VI (and all the networked AMC VIs) communicate over UDP, you won't be able to use the network AMC VIs to talk to two different applications on the same machine. I ran into the same problem when I was developing my application; I wanted to simulate the RT target by running VIs in two projects on the same machine. Using the local AMC VIs didn't work either, and that would have made the simulation useless anyway as I would have to change VIs between the simulation and the real thing and debug all over again.
Anyone have a way to use AMC to communicate between two apps running on the same machine?
I am using the AMC Ref Lib with a TPC-2106, a cRIO, & a PC to communicate between them. I am having problems with the TPC-2106 receiving messages ( I can send them from the TPC to the cRIO no problem, just do receive the response sent from the cRIO.) I've included the AMC dispatcher in the TPC LabVIEW code.
Anyone else seen this behavior?
I was able to find the issue with the AMC ref lib. I had to modify the amc_Parse XML.vi to search the Message XML String in a different way. The format string in the Scan from String.vi was not parsing the string so no information was returning to the TPC.
I am new to this AMC LabVIEW. One thing that I have not found defined is keys and values. What I am doing is taking JAVA app and breaking it down and using the commands for the instrument that I am trying to control. What are the key and value used for? Also in the message cluster some of the windows are not taken into account from Parse to format. Should I finish the vi?
Is there a tutorial for using the AMC example for multiple targets on different machines over Ethernet?
There is not a separate tutorial for this use case other than the 'Sending Messages Across the Network' section in the main document.
One of the example that is included with the AMC package is a multi-target application.
C:\Program Files\National Instruments\LabVIEW 2010\user.lib\AMC\Examples\Multiple Targets\
You can run the Target 2 VI (AMC Multiple Targets Example 2 (RT).vi) on a Real-Time or Windows target.
fat kid wrote:
I am new to this AMC LabVIEW. One thing that I have not found defined is keys and values. What I am doing is taking JAVA app and breaking it down and using the commands for the instrument that I am trying to control. What are the key and value used for?
The Message Attributes cluster with keys and values is an optional part of the message that can be used to add additional parameters to a message. The Key/Value pairs is a method to include multiple parameters ina self describing flexible format. Many uses of AMC will not use this feature.
fat kid wrote:
Also in the message cluster some of the windows are not taken into account from Parse to format.
Can you clarify this statement? I'm not sure what you are referencing in this case. Which specific VI are you referencing?