LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Comunicating with devives using Labview REAL TIME

Hi All
i have a problem. I was using labview for controlling stage movement. The PCI board for the stage is installed on the CPU. Now i tried to use LabView real time and for that i am using Desktop PC as real time target. The problem is when i tried to run the same program after deploying it on the Real Time taget (which is another CPU connected to the host computer), it says that there is a problem communicating with the stage motors. Where as the program is running perfectly fine on Labview. Is it because of  the fact that PCI board is still on the host computer. will i have to install all hardware which i am using for real time on the target CPU. For example i am using a data acquisition card for acquisition, does it mean that if want to acquire data in real time, i will have to install it on the Real Time target CPU and not on the host computer. Kindly, help me in this.
Thanks.
Chauhan
0 Kudos
Message 1 of 6
(4,636 Views)

Hello Chauhan,

Yes, you will need to have your Data Aquisition card installed on your target machine.  See the following link for more information.

http://digital.ni.com/public.nsf/allkb/179BC9B0266168288625722100738C22?OpenDocument

Regards,

Clint M

National Instruments

0 Kudos
Message 2 of 6
(4,617 Views)
Hi
thanks for this information. Well data acquisition card will work but what about the Motors. Is it supported by Labview Real Time. well the problem is that i want to acquire the data from the data acquisition board and at the same time i want to know what exactly is the position of the motors. can i do both of these things at the same time. Kindly let me know if there is a way to do so. Thanks for your support.
Chauhan
0 Kudos
Message 3 of 6
(4,609 Views)
Chauhan,

Are you using one of our motion controllers?  How are you reading your motor's position?

http://sine.ni.com/nips/cds/view/p/lang/en/nid/3809

If you would like to have the data acquired from your DAQ board and your Motors, you would need to have both cards on your Real-Time target, and have the software installed on the RT machine.

Trey B
Applications Engineering
National Instruments
0 Kudos
Message 4 of 6
(4,601 Views)
Hi
actually i am using motors from MICOS company and i dont know if i can control them using NI controllers. Actually MICOS company has provided a program in Labview to control motors and get the position also from them. They are connected to the CPU through serial (RS 232) port. And the program provided by them uses DLL files which they have provided. So is there a way to use these motors in Real Time, any document or any online help which i can access to do so. thanks
Chauhan
0 Kudos
Message 5 of 6
(4,598 Views)

@Chauhan wrote:
Hi
actually i am using motors from MICOS company and i dont know if i can control them using NI controllers. Actually MICOS company has provided a program in Labview to control motors and get the position also from them. They are connected to the CPU through serial (RS 232) port. And the program provided by them uses DLL files which they have provided. So is there a way to use these motors in Real Time, any document or any online help which i can access to do so. thanks
Chauhan



With a serial connection, you would not be able to use our motion controllers.  I would suggest trying to communicate with as you do on a normal (not RT) version of LabVIEW:

1.  Ensure that NI-Serial is installed on your RT target, as this KB describes:

http://digital.ni.com/public.nsf/allkb/B883DA19A7D8359C86256EEA00031981?OpenDocument

2.  Hook up your RS-232 cable to the RT PC.

3.  If there's dll dependencies for the MICOS motor, add them as dynamic files in your project explorer window on the RT target.


Trey B
Applications Engineering
National Instruments

Message Edited by Trey B on 07-12-2007 01:20 PM

0 Kudos
Message 6 of 6
(4,581 Views)