Sending User RECORD over RMQSendMessage
Evanmj
✭
Hi,
I'm finally able to send IPC messages from the controller to my PC SDK vb client...
This code works:
PROC sendAMessage()
stProcessData.sDate := CDate();
stProcessData.sTime := CTime();
stProcessData.sPoint_Name := "TestPoint";
stProcessData.sPoint_Type := "Force_Actual";
stProcessData.fPoint_Value := 15.9;
stProcessData.sTool := "NA";
RMQFindSlot vbclient, "PC_SDK_Q";
RMQSendMessage vbclient, stProcessData.sPoint_Name;
ENDPROC
However, if I try to send the entire structure of stProcessData, the send seems to go fine, but the receive side's myQueue.Receive() call posts an immediate timeout.
Examples in the manuals show sending user "records" in this way, but I'm unable to receive them. What do I need to do to get VB to be happy with them? I really need a record to come across in a single message for logging purposes.
Maybe it has trouble with mixed types in a record?
Thanks.
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings