LabView coding and Newport's ESP 300 Motion Controller
Hi everyone, I am trying to coordinate two DC motors (a stage moving on the x-axis and another motor moving up and down on the z-axis) with Newport's ESP 300 controller by writing a control algorithm in LabVIEW 8.2 with the GPIB library Newport has provided on their webpage. The movement I want can be divided into four parts and in each part, both motors move at the same velocity, same acceleration, and travel the same distance. As well, in each part, I want to provide a continuous digital output of 0 or 1 until the start of the next movement and I copied an example VI to provide the output.1. Stage goes left, Z goes down, write 1 until 2. starts2. Stage goes right, Z goes up, write 0 until 3. starts3. Stage goes right, Z goes down, write 1 until 4. starts4. Stage goes left, Z goes up, write 0 until end of this movementThe biggest problem with my code is with the digital output - it is not changing at all as the motors move through the four parts. I also don't understand why if I stop the VI, the motors don't stop and continues to move until all 4 parts are done. Shouldn't my shift register be changing the 0 and 1 output every loop? I have attached my code and the library but some of you may not see the example VI I copied. I would greatly appreciate it if anyone looks over my code and provide me with some feedback. Thank you all for your patience, time and help.
http://forums.ni.com/attachments/ni/170/327642/1/Motor Con...Re: "Hi,I'm having problems controlling the Agilent E4422B Signal Generator with Labview. When using the Labview driver functions such as initialize instrument I always get an Error -1074135040
Attached please find the files containing all the information concerning my attempt to control the Agilent E4438C. Hope you can make sense of it and help me.
If this driver supports multiple instrument models, then you will probably have to set the model in the default settings in MAX.
Ray FarmerMessage Edited by...How do I use a LabView control element as ActiveX Control in another application?
I am was trying to include some simple ActiveX Controls(sliders,
buttons) in my VBScript. It worked with other ActiveX Components from
the web, however I wasn't able to include the LabView ActiveX Controls
because I was missing the necessary IDs. Moreover I was able to test
the LabView control by inserting it into the VC++- Test Container. But
I still can't find the necessary IDs...
I don't believe that any of the LabVIEW controls (except for 3D
Graphs) are ActiveX controls so I'm not sure what control you were
able to insert into the VC++ container. What's the exact name ...How can i use labview.tlb to control Labview from an external application?
I've been told by a labview engineer that i could use the file
labview.tlb located in the labview install folder to control labview
from an external application (in my case, a C# app). I'm using Labview
6.1 under Windows 2000. This article confirms that:
"ActiveX and LabVIEW"
But i've not been able to find out how to use this file to achieve
what i want. I just want to be able to open/close labview, open/close
a vi, start/stop a vi, hide/show a vi from a C# application. Th...How do I control flow through MKS Mass Flow Controller using Labview
How do I control flow through MKS Mass Flow Controller using Labview?
Im new to LabVIEW please let me know bout it in detail. Thanks for all the help.
...Using the cFP controller with only LabVIEW and FIELDPOINT software but no LabVIEW RT
I have a cFP-2020 controller and cPF-AI-100 modules which I intend to use in a small project. I do have LabVIEW and FIELDPOINT software but I dont have LabWIEW RT software. Is it possible to use the cPF controller with only just LabVIEW? if yes, I would like to be advised how. Thanks
It is not possible to set up your system without Labview realtime module.
There are system integrators who can build a executable for you. You can search for a alliance member by using the following link; <a href="http://sine.ni.com/apps/utf8/niaa.search_display" target="_blank">http://sine.ni.com/apps/utf8/niaa.search_display</a> Or call your local NI branch office. But if you are planning to do more realtime projects in the future this wouldn't be costs effective.
Another option is to use compact fieldpoint pc controlled backplane (so there has to be a PC to control your compact fieldpoint system (not deterministic)). You can do this by using the compact fieldpoint ethernet backplane; <a href="http://sine.ni.com/nips/cds/view/p/lang/en/nid/202527" target="_blank">http://sine.ni.com/nips/cds/view/p/lang/en/nid/202527</a>
Good luck with your project, and please let me know if there are any questions,
...What's the best source code control with LabVIEW?
I'm currently trying to convince the powers that be around here that we should invest in a third-party source code control application and link it to LabVIEW for our projects. Not counting price, what are the experiences of other LabVIEW users in this area from a functionality/ease-of-use standpoint? We are moving away from 7.1 towards 8.2 and my goals are to encourage:
- Organization of code in a central location where multiple users can access
- Access to previous revisions of the code
- Maintaining good revision history descriptions
- Code baseline storage for version CM or milestone CM
Please note, at this time it is not required that we use the utility to enforce process or manage change drivers (baby steps). I would love to hear pros and cons from anybody, big company or small.
...Motion control with labview
I'm working on the force feedback control with labview.
Two stepper motors are controlled by force feedback of Load cells (target force input by operator).
In terms of control the system,
can I use "velocity control" to control stepper motor?
- I've tried that stepper motors have linear motion to get target force.
But, I programmed it with repeatation of move&stop motion.
Two motors check the target force from load cell after every short movement.
The problem is that the delay of signal responses caused with the contol loop.
Could you show me any idea for my force feedback control?
Hi Ycano,Yes, you can operate your motor in velocity mode by using the Set Operation Mode VI to change it from position mode to velocity.As for your control feedback loop, are you bringing in the feedback from the load cell via a separate DAQ card? If the load cell outputs a voltage in the +/- 10V range (if it's not a current transducer or doesn't require an excitation voltage), you could connect it straight to the analog input on your motion controller and directly implement it in your control loop for your motion controller. ...Re: I'd like to control/read INCA with LabView. #2
I think that we have a misunderstanding concerning standards and interfaces. My understanding is that the interface is simply a program that runs together with INCA to listen for and transmit information via a serial or ethernet connection. The interface that I am using is the ASAM-MCD-3MC 4 INCA interface that is available with INCA V5.4 (I am using Hotfix 8). This interface is compatable with either the ASAM-MCD-3MC or ASAP3 standards. The standard is simply the method that you use to encode the data that you wish to send across the connection. Therefore, the implementation in LabView for setting up a TCP connection and sending/receiving data over a TCP connection is the same, and only the format of the data that you send will change depending on the standard that you use. And the standard that you use will depend on how INCA is configured.
I am using the ASAP3 because, at this point in time, it appears that ASAP3 is still the default standard used by INCA. While the new interface is compatable with both standards, all of the documentation for the interface still refers to ASAP3 and the default setting in INCA is set to ASAP3. I think that ETAS has provided the capability of using the ASAM-MCD-3MC standard in order to keep their product current, but that they expect that the majority of users and commercial software packages will still be using ASAP3 for some time. I honestly don't know much about the new ASAM-MCD-3MC standard; it appears to be completely...what are the advantages using labview 8.5 with my RT-9004 controller. #2
I am working with cRIO with 9004 RT controller.I am developing my application in LabView 8.2.I am using all 3 DMA FIFOs so i used 4 TCL in my RT(host) to reading data and writing in 4 sepearte binary file(on RT-flash memory-512 MB).is this recommended or will it decrease performance.I heard Labview 8.5 supports multicore programming.I dont know my RT controller has this feature or not.will i get good performance using 4 critical loops with LabView 8.5 plateform.
I think my query is clear,please reply me soon.........
Hi Pratsha, The 9004 is NOT a multicore controller, so being able to select which core a task runs on does will not improve performance. Also, 4 time-critical loops typically is NOT desired. That is because time-critical means the MOST important operation compared to other parallel operations. If all you have is 4 timecritical operations and no others, then all the loops are the most important, thus making none of them important.A reason to upgrade to LabVIEW 8.5 with a cRIO is the <a href="http://zone.ni.com/devzone/cda/pub/p/id/303" target="_blank">fixed-point data type</a>. I would look into that if your interested.
&nbs...How do I select a control based on another control's selection and how do I remove enumerations from a control?
I have a question and I *think* the answer may be the new active controls, so here goes: I have a control which contains a variety of enumerated items - essentially a typedef enum. I may have up to several dozen items in this control, like this:
Position - 1
Current - 2
Pressure - 3
Temperature - 4
Duty Cycle - 5, etc.
I also have a 2nd control (actually a set of controls) that refer to the indices of the above control. For example, if I "Position" chosen, I wish the 2nd control to appear that refers to posit...How to easily control multiple controls in labview
How can I easily control multiple controls with a single write to in Labview? For instance, I need to update 50 different boolean indicators. When I update them one at a time I use a cntrl refrence in my event structure, but outside of an event structure how can I easily cycle through them and update without making 50 local variables if I need to do them all at once?
Why don't you use an array of boolean indicators?
Have a look at the example attached <a href="http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=204328#M204328" target="_blank">here</a>, which can also be applied to this. You should usually avoid updating the value of a control from more than one place, though (unless it's something like initialization, where you can guarantee not having race conditions).
Other alternatives: using an array of booleans or using the picture control to create the image.
The way i use these booleans in my UI, I had to make them separate so I could arrange them in a user friendly way. And yes this is just for initialization so they won't be getting updated in two places at once.
...how do i send a 'control r' command from labview
I need to initialise a piece of test equipment through the serial
port, to do this i need to send a inialisation character. In terminal,
I press 'control' and 'r' simultaneously, which gives arrow pointing
both up and down (this being the character I need). When I do this in
Labview it acts as a shortcut to the toolbar. How do I get this
One way is to set the string control for hex display (right click the
string control/constant) and enter 13 which is the hex equivalent of
Dev Control 2 (CTRL R). You could also set it for \ Codes Display and
I got it to...Can I use type definitions to avoid having to edit multiple VI's when I update a control that is being accessed by reference number in several VI's?
Can I use type definitions to avoid having to edit multiple VI's when I update a control that is being accessed by multiple VI's?
I'v been passing to each subVI, a cluster that contains 3 reference numbers to my 3 control clusters.
The subVI's access the data from the controls on the top level front panel and sometimes updates their values.
Thank you for any suggestions you have.
Okay, I have the controls converted to strict type definitions. But when I update the controls, my links where I'm passing a cluster of control REFERENCES to my subVI's breaks. To fixes I have to remake an indicator from the build cluster function, convert it to a control, and place it in the subVI's.
Or do you mean, I can make my cluster of control references be a type definition?
Ok, I see what you're doing wrong. The cluster with the references needs to be a typedef. When you change one of the clusters of controls, the reference type changes. This will make the cluster of references change. So for your example, all of your clusters should be typedefs. It may seem confusing with all these typedefs, but trust me it's worth it when you figure it all out.
Also, you might as well just bundle the 2 clusters you have into one cluster to pass to the sub VI if you really want only one input. There's no need to use references just to get the values in the sub VI.
Thank you for your help, my example is working.&nb...Using Labview 6.1 on Linux, the 'Current VI's Path' function...
Using Labview 6.1 on Linux, the 'Current VI's Path' function returns
an incorrect and unuseable path.
'Current VI's Path' is returning my home director rather than the vi
path and it has a back slash '/' at the end which means I can not
append to it. Is this a bug?
I emailed you the my suggestions below
"I tried running LabVIEW 6.1 on a Linux machine here running red hat
7.2 and I couldnt reproduce you issue. I got the full pathname
'/home/login_name/untitled1.vi. I even tried LabVIEW 7 and that
worked fine too. This maybe a silly questi...instructor's solutions manual for Process Control Instrumentation Technology, 8 ed by Curtis D. Johnson
I have solutions manual for the scientific textbooks .. They are all
in PDF format .. If you are interested in any one, simply send me an
email to macmorino(at)gmail(dot)com .. Please this service is NOT
Here are solutions manual to some titles..
SOLUTIONS MANUAL FOR A Course in Modern Mathematical Physics by Peter
SOLUTIONS MANUAL FOR A Course in Ordinary Differential Equations by
SOLUTIONS MANUAL FOR A First Course in Abstract Algebra (7th Ed., John
SOLUTIONS MANUAL FOR A First Course in Differential Equations - The
Classic Fifth Edi...FPGA sub-vi in LabVIEW 8.2 Project used in multiple top level vi's
Hey All, Thanks for all you help on my last issue.
How do I use an FPGA sub-vi in multiple applications without having all the files of the multiple applications in the FPGA sub-vi project?
This question has to do with re-using FPGA code in multiple projects. There are 3, um, wait, 6, okay, MULTIPLE built applications that use the same FPGA module/sub-vi. Using LabVIEW 8.2, the expanded memory and i/o lines for the FPGA must be assinged in the "Project" (file name.lvproj). I created a sub-vi that interacts with the FPGA code. The sub-vi and the FPGA vi's are all in a single project. I tried to drag the sub-vi to a non-project vi, but got an error message that the new vi wasn't part of the project.
As of now the only solutions I can think of is to have one project with multiple top-level vi's inside of it or have multiple projects with duplicate FPGA sub-vi's in them. Either way this is very annoying from a version control standpoint.
Thanks in advance for your help,
The best way to do this would be to have multiple projects calling the same subVI, as you stated in your post. There does not seem to be a workaround for this. The reason you are getting an error when dragging your subVI into a non-project VI is because th...How can I access a control's description and data range information from within LabVIEW 6.1 or 7.0?
I didn't see an obvious way of accomplishing this. Is this possible?
Properties Data Range and Description. Data Range is a cluster with
minimum, maximum, and increment. Description is a string. The
properties exist in both 6.1 and 7.0.
Right click on the Control and navigate to Create>Property Node. Now
on the newly created node, right click on it where it says Visible and
navigate to Properties>Description. This will output a string of the
controls description. Now grow the node by right clicking and
selecting Add Element. On on the property, right click and navigate to
Properti...How do you control seperate motors with Labview through a remote control?
Forgive me if I am not typing the question correctly, or if it is a stupid question. I am only fourteen and only started learning about Labview.. I would appreciate all help possible. Thanks
What type of motors are you trying to control? How do you have them/plan to have them connected to your computer? When you say you want to control remotely, do you mean that you don't want them connected to a computer or that you want to communicate remotely through your computer (no cables)? The more information you can give the better help you will receive. Cheers
It would also be helpful to know what version of LabVIEW you are using. It's impressive that your starting to learn LabVIEW at such a young age, it will be challenging but worth it!
Well first off, thanks for asking questions to my questions, it helps me too :) The kind of motors I am trying to control are IFI Robotics Multi-Speed Motor Connect to PWM or RLY port (12 volt).. I am trying to remotely control it wirelessly, through an IFI Robotics Isaac16 EDU Robot Controller with 900MHz Short Range Radio Modem. Hope this Helps..
Oh yeah, and the version of LabView I am using is 8.5
It looks like your controller is designed to be programmed in BASIC. What you will need to do in order to control it with LabVIEW is figure out what the function calls are that will be required to activate your PMW signals etc.&a...Unable to install labview in the new mac using the 'labview CD for Power Mac'
I have got a 'Labview full development system for power macintosh'. I have to use labview for some application and so I tried installing labview in my imac using this CD. The CD gets ejected out by itself. I tried it in a Mac laptop. There it opened, but when I try to install it, it gave the following message: 'You can't open the application 'Install Labview' because the classic environment is no longer supported'. Please note that the macs that I used are Intel based. What is the cause of this problem? What is the solution?The version of the software is : 6.0Please do the needful.Thankyou,Pavithra Souriraj
The version you are trying to install was apparently written for Mac OS 9 or earlier, hence the reference to the Classic environment. The Classic environment is an emulation of OS 9 under OS X. However, Apple did not start using Intel processors until several years after the introduction of OS X, so they (Apple) did not develop an OS 9 emulator which will run on Intel based Macs. You cannot run LV 6 on an Intel based Mac. This is an Apple issue, not a National Instruments issue. LV 6 runs fine under OS X on a PowerPC Mac, as do several other versions.You will either need to get an older Mac or a newer version of LV. I am not sure which is the earliest version which will run on an Intel Mac.LynnUsing LV on the Mac since version 1.2
Hello Pavithra, Thank you for contacting National Instruments. Please look at this article for your ...Using Labview to control diadem
I have created a labview application that opens diadem using the diadem reference vi which works ok when logged onto the pc as myself.
Both labview and diadem were installed with full admin rights.
When I log on as a different user of the PC I get the message:
"Diadem configuration-Drive "C:\Documents and settings\local settings\Nick Holmes\local settings\application data\National instruments\diadem\10.0\" not found!
Labview is looking in documents and settings of my own user profile to find the "Diadem con...Control Micromaster Using Labview
Hello I am trying to integrate the control of Micromaster 430 into an aplication in Labview.I use "Starter" and "Drivemonitor" with the RS232 serial cable directly to control the micromaster, but I want to control it with Labview.
Does anybody know a library in LabView to control the micromaster? I have see the USS parameters, but I am not sure that I can adjust the paramerts of the speed. Thanks
Yes, Micromaster 430 is a Siemens device. The problem is not making the serial communication; the difficulty is that the communication is carried out under the USS protocol.
I have some information about the USS protocol, but it is a communication binary data of variable size. I don?t understand entirely the structure of this protocol. So I seek help, albeit in another language such as C
...how to use .net controls in labview
I am using labview for quite a while now but started using .net recently. I am trying to use .net controls on labview front panel. There are not too many examples available on this topic. Even the help topic in labview help is very limited. Is there a kind of crash course or something on this topic. And how much .net knowledge one needs to have to use .net controls. Is there a book available on the topic of .net and Labview integration etc.?
I want to thank everyone in advance.
Thanks for the detailed information. I was trying the .net combo box control. I did put the .net combo box control in the .net container. Now I am trying to populate this combo box (don't knwo how????). I did find the a property for this control called "List", now how do I use it??
Thanks again for the information.
...Controlling an executable using LabVIEW
I have an external application which I want to control using LabVIEW.
That application reads inputs from a file, and passes outputs. I want
to use LabVIEW to automate this. I am thinking of using System Exec.vi
or automation open to achieve this. Can someone help me out in this ?
Also when I use system exec.vi to open executables, even if choose the
option "hide", the window still pops up. Can someone help me in this
issue ? I want the window to be hidden and processing taken place in
There is a library of functions called Winutil.llb here in LV Zone
somewhere. With ...