Showing results for 
Search instead for 
Did you mean: 
Reply

Queued Message Handler (QMH) and Asynchronous Message Communication (AMC) Reference Library

AMC Ping dispatcher not working inside project

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


Possible reason(s):

LabVIEW:  The specified network address is currently in use.

 

Can someone help me out

0 Kudos
Message 31 of 84 (3,926 Views)
Reply
0 Kudos
Highlighted

Re: AMC Ping dispatcher not working inside project

Are your server and client projects running on the same machine?

CLAD
0 Kudos
Message 32 of 84 (3,914 Views)
Reply
0 Kudos

Re: AMC Ping dispatcher not working inside project

Yes..... I'm using the same machine to test the vis......

0 Kudos
Message 33 of 84 (3,909 Views)
Reply
0 Kudos

Re: AMC Ping dispatcher not working inside project

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?

CLAD
0 Kudos
Message 34 of 84 (3,904 Views)
Reply
0 Kudos

Re: Queued Message Handler (QMH) and Asynchronous Message Communication (AMC) Reference Library

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?

0 Kudos
Message 35 of 84 (3,856 Views)
Reply
0 Kudos

Re: Queued Message Handler (QMH) and Asynchronous Message Communication (AMC) Reference Library

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.

0 Kudos
Message 36 of 84 (3,836 Views)
Reply
0 Kudos

Re: Queued Message Handler (QMH) and Asynchronous Message Communication (AMC) Reference Library

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?

 

Confused.

0 Kudos
Message 37 of 84 (3,809 Views)
Reply
0 Kudos

Re: Queued Message Handler (QMH) and Asynchronous Message Communication (AMC) Reference Library

Is there a tutorial for using the AMC example for multiple targets on different machines over Ethernet?

0 Kudos
Message 38 of 84 (3,754 Views)
Reply
0 Kudos
This widget could not be displayed.
This widget could not be displayed.