Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

can i run 2 labview codes in one PC simultaneously

Hello,
zi am using labview 7.1, currebtly i am using the PCI 7344 for mu application. For my application, i need to run a stepper motor and a servo motor simultanueously using the PCI 7344. The motor will connectted to PCI7433 thru different axis.
Both motors will reveice data thru serial port from other computer, I already wrote the labview codes for the servo and stepper motor, now my question is can i run both labview code simultaneously in one PC?
If can't, what you suggest me to do meet my application ?

thanks

Regards
Alex
0 Kudos
Message 1 of 6
(3,796 Views)
Hi Alex,

Thanks for using our discussion forums. This should work as long as you do a few things. First of all, make sure that you configure each axis appropriately in Measurement & Automation Explorer (MAX). Then make sure that all axes ae initialized. YOu will need to appropriately break out the pins of the Motion Controller board using something like a UMI-7764. Do you have one of these? Then tie the servo axis with appropriate connections to your servo amplifier and do the same for your stepper on the other axis.

I noticed you also mentioned using the computer's serial port. How are you using it to receive data? Typically you would wire the encoder back to the PCI-7344 through the breakout box.

Regards

Dan
National Instruments
0 Kudos
Message 2 of 6
(3,792 Views)
Hello
thanks for your reply.
I am using the UMI 7764. The data will send thru serial port by the XPC(simulink) computer. The other thing which is myconcern is that, time is an important aspect in my application.
So will it cause delay to my application, if i run more that one labview codes in one PC.

thanks

regards
ALex
0 Kudos
Message 3 of 6
(3,788 Views)
Hi Alex,

By "data" through your serial port do you mean the feedback from the encoders on the motor? The only way I might see this causing a problem is if your data transfer rate was slower than your PID rate.

Regards

Dan
National Instruments
0 Kudos
Message 4 of 6
(3,782 Views)
Hi Dan
what i mean by data is that the target position of stepper motor, which will instruct the stepper motor to turn to the desired position. this taret position will send thru serial port by simulink XPC.
i don't really understand what you mean by the data transfer rate will slpwer that the PID rate.

thanks.

Regards
Alex
0 Kudos
Message 5 of 6
(3,779 Views)
Alex,

My concern was that the rate of transfer of bits through your serial port (the baud rate) will be sending data fast enough so that PID commands are not backed up. Your system may not even be using PID so you should be OK. If you want to read up on PID you can do so here:

http://zone.ni.com/devzone/conceptd.nsf/webmain/d211223ae3de7e74862568110052f62f?OpenDocument

Regards

Dan
National Instruments
0 Kudos
Message 6 of 6
(3,770 Views)