Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

c++ application losing focus/control during controller cummunication

I have a couple of questions if someone has some time to help...

I am developing a Visual C++ application using the NI 7350 Motion Controller, on a 3 axis configuration.

We have made some good progress with controlling the machine, referencing etc...

During any communication with the controller (initialize, move straight, buffered contour move) we do not have any control of our application during this time.

Basically, we call a flex_start and do not have any control during the motion, we have tried to remove the checking of move status etc but to no avail.

We would like to be able to have a PAUSE or KILL button on the software but without control this is not possible.

I have thought of some possible solutions using multi-threading (will this solve it?), or a second application that opens that can send messages to the controller.

At this stage we are stuck and have not come to any nice solution. Perhaps we have configured the controller incorrectly, or are doing something wrong from within our C++ app???

If anyone has any comments, ideas, solutions, jokes or whatever, it would be much appreciated...

Cheers
0 Kudos
Message 1 of 2
(6,392 Views)

Hello ale_je,

have you seen examples in C:\Program Files\National Instruments\NI-Motion\FlexMotion\Examples?

Also, maybe in this forum you could find something useful:

http://forums.ni.com/ni/board/message?board.id=240&message.id=4239&requireLogin=False

 

Let me know if this helps!

Kind regards,

RL

0 Kudos
Message 2 of 2
(6,332 Views)