Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Declare all the motion functions in visual c++?

Hi Vu D
 
Thank you very much for replying fast. I opened the link you send in the last message. It is a Visual Basic example and we are trying to develop the motion application in visual C++, I tried to find an example in visual C++ and I couldn't.
 
Finally we were able to compile the simple example presented by Marc C in the previous message. We used visual studio 2003 instead of visual studio 2005 and every thing went OK. We think there might be some options to add/remove to the compiler in visual studio 2005 to make the thing work, but we will not spend time finding the problem now.
 
As I said, we were able to make the first step towards our goal. Our goal is to make a simple possition control application using MFC visual C++ and Meassurement Studio. For now we were able to compile one line in a Win32 console application. The next step will be to try to compile an example code to move one axis which we found in FlexMotion library directory examples. But it would be very interesting for us to have an example code MFC VC++ project which does some simple movement control. In the National Instruments web page we found the following link   
 
which offers links to different code examples in VC++, Visual Basic, LabView... but if we click in any of these links we get the following message:
 
No results were found for your search.
 
Could you tell me how to access to these examples?
 
Thank you,
 
uftk
0 Kudos
Message 11 of 13
(2,235 Views)
Hi uftk,

Thank you for pointing out these broken links on our website.  We will try to get these repaired as soon as we can.  In the meantime, you can search on our website for example codes using some of these keywords: motion, control, c++, etc. or going directly to the motion control example code page:

http://zone.ni.com/devzone/fn/p/sn/n23:6

http://zone.ni.com/devzone/fn/p/sn/n23:6/pg/3/q/c%2B%2B

Regards,
Vu
0 Kudos
Message 12 of 13
(2,219 Views)

Hi I'm trying to develop an application in visual C++ using functions from NI Motion, to control linear motor guides through NI PCI 7356 Motion Controller.

I have written and compiled some of the C example programs that come in the NI Motion examples folder succesfully, but they are only written for Win32 Console Application. I would like to know if it's possible to define classes (to encapsulate code) and create Windows form applications (to create graphical user interfaces), in visual C++ 2008 or if it's only possible in console application. Also when I define a class in Visual C++ (Console application) and declare and object of that class (that contains NI Motion fucntions) I get some errors after compiling (This is not the case If I only define a routine and call it in the void main(void) method). 

 

I hope you can help me or give some advice.

 

Thanks.

 

Arturo Marban

0 Kudos
Message 13 of 13
(1,536 Views)