LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to know : how can I do, with LabWindows, for waiting a message (_RDY) from a robot, before sending an other message to my computer?


A french guy. Thanks a lot if you can send me a code exemple.
0 Kudos
Message 1 of 5
(3,191 Views)
How is your robot connected to the computer? Serial, Ethernet, GPIB, a built-in control card...?
There are a couple of ways you can do this, but they all depend on the type of connection between them.
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,191 Views)
Thanks Roberto.
I found a solution in ni.com.
my robot is linked with RS232 (serial).
I'll contact you later because I saw that your specialisation are in DAQ card and others.
thanks again to have sent me an answer.
A French guy.
(if you want to send me your mail address, it will be better for the future).
0 Kudos
Message 3 of 5
(3,191 Views)
No problem: you can post your messages to roberto.bozzolo@eltra.net.
Or you can continue posting to the Developer Exchange to have more people responding to your doubts.
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 5
(3,191 Views)
Try using a MainCallback fuction, which will loop round continuously without making undue demands on the operating system.

Like this:

int CVICALLBACK MainCallback(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int CVICALLBACK MainCallback(int panel, int control, int event, void *callbackData, int eventData1, int eventData2)
{
switch (event)
{
case EVENT_IDLE:
if(ROBOT==_RDY)
{
// Do what needs to be done.
}
break;
}
return 0
}

int main ()
{
LoadPanel (0, "robot.uir", PANEL)
InstallMainCallback (MainCallback, 0, 1);
RunUserInterface ();
return 0;
}
0 Kudos
Message 5 of 5
(3,191 Views)