02-27-2009 04:03 PM
Hello,
I'm using LabVIEW 8.5.1 and I have modeled and simulated a plant I'm developing within a Simulation Loop (attached) and now I want to go and implement the system, but it doesn't appear to be as simple as just dropping the transfer functions and putting DAQ Output and Input VIs in as specified in the "Introduction to LabVIEW in 3 Hours for Control Design and Simulation" tutorial for this particular system. I have a Maxon RE-40 brushed DC motor and a HEDS 5450 encoder interfaced with an EPOS 24/5 positioning controller that communicates with my PC through an RS-232 cable. Can someone talk me through how I can communicate with this system with the VI I already built for simulation purposes?
Thanks,
Brian
02-27-2009 08:54 PM
So what exactly is the problem you're having?
Mike...
03-01-2009 11:15 AM
03-01-2009 09:17 PM
Well you have the simulation running right? The point of the transfer function is to represent the response of the physical system right? Well replace the transfer function with the routines for writing values to the system and reading the response that relates to the transfer function output.
Mike...
03-04-2009 06:11 PM
I think I can simply nix the transfer function and replace it with a set current VI, but how do I open and enable the EPOS? The VIs are obvious (VCS Open Device and VCS Set Enable, me thinks) but where do I wire them to? Do I need to create conditional loops outside the simulation loop that only run the PID control if the EPOS has been enabled and opened?
Thanks,
Brian