Calling dll of Leetro MPC08 PCI motion controller card problems.
Hi,
I have been trying to develop an application using Labview 8.5. I need to control a motorized linear stage which uses the Leetro MPC08 PCI motion controller card. The manufacturer gave me example VIs which I configure to call "c:\windows\system32\MPC08.dll". About four months ago, I remembered that i tested them and they seemed to work somehow (but I did not finish the full test since i was busy doing other things). Nevertheless, when I got back to continue my development a few days ago, i just could not get the same old VIs to work. I could only get one library function of the card to work which is the "auto_set" which returns "4" which is the number of axes that the card can control. The next function I need to call is "init_board" but this one keeps returning "-3". The manual indicates that any negative number returned means there has been something wrong. I would guess it is "PCI initialization fails" but honestly do not know for sure. Can anyone help? My computer is a PC running windows XP.
Thanks in advance for any kind help offered.
Hi,
Wrapped VISA call means that the SubVI contains a set of VISA calls.
If you are calling the VI's individually it is possible that the VI's need to pass a reference to each other, so they might not work if run individually. Hard to know without the DLL docs, so to speak. It could be possible that there is no need to pass references between subVI's.
Direct VISA calls are probably not necessary if the device runs with the vendors software. The main goal was to verify functionality with either VISA or vendor app.
Ok I was looking at the Leetro web site, you can forget the VISA stuff as it is a PCI card, duh... you said that at the begining. :-)
The manual says Win2000 or XP. is this being run on two different systems?
Mark
Mark Ramsdale
Similar Messages
-
Motion controller card need to program PWM or not?
I just want to know about motion controller card (coz may be i will use it)
First, Motion controller card need to program PWM for drive DC motor or not? (If I want to control the dc motor by PWM signals!)
Second, If my motor have encoder (increment) the motion controller card can be read the position or speed directly or not?
Third, Normally motion controller card need Labview for programming or not?
Lastly, Please, could someone give me some example programming or .vi for basic closed-loop dc servo motor ?bkk,
here are the answers you are looking for
Motion Control boards like the PCI-7344 generate a +/-10 V signal to control DC axes. As they can't provide enough power to drive a motor directly an external power amplifier like the MID-7654 or a 3rd party drive with a +/- 10 V command input is necessary. Typically these power drives generate PWM power signals for the motors.
All NI motion control boards provide inputs for quadrature encoder feedback (position and velocity).
The NI-Motion driver provides a well documented API for LabVIEW, C and other programming languages.
After installing the NI-Motion driver you will find lots of example programs for LabVIEW and C that demonstrate every aspect of the boards' functionality. NI motion controllers run the control loop in hardware so the examples will work for both, closed loop and open loop (stepper motor) applications.
I hope that helps,
Jochen Klier
National Instruments Germany -
PCI USB2 Controller card conflicts with network card
I've installed a PCI USB2 controller card since my motherboard (IWill K266-R) only has support for USB1. However, the card seems to conflict with one of my network cards, because traffic on the internet-connected NIC is very slow, and often drops completely. Traffic to and from the other (local) NIC seems to work fine, though.
I have tried moving around all three cards in different PCI slots, I think I've tested almost every possible combination by now. I've also tried disabling as much as possible in BIOS, such as onboard sound, serial and parallel ports etc. I've tried lowering the FSB.
For now, I've removed the controller card, and is using the USB1 ports on the motherboard instead. This is very frustrating, though.
Does anyone have any suggestion on what I can try next? I've browsed forums, both this and others, but I haven't found any more hints on what to try. Could there be some setting in Arch that could affect these sorts of things?"I guess the ATA100 card will work fine correct?"
If you mean large drive support, it may provide that or may require a firmware update to do so. You should check the manufacturer's web site for specifics. All ATA-133 cards do provide 48-bit LBA for large drive support. I'd return the Ultra ATA-66 card to the eBay seller, although many refuse to pay for return shipping, even when the mistake is their own, either through ignorance or deliberate misrepresentation. In cases such as this, it's sometimes more cost-effective to swallow the loss and keep the incorrect part.
"Will adding a jumper apply for a ATA100 card as well? I'll need a blue and gray ribbon correct?"
If you use an 80-conductor ribbon cable with color-keyed connectors, set the drive configuration jumper to CS and connect the drives to the cable as you wish (in terms of physical placement in the computer). If the ribbon cable doesn't have color-keyed connectors, set the jumper for the device connected to the end connector as Master and the drive (if any) connected to the middle connector as Slave. -
K9vgm-v problem with pci ide controller card
My problem is with a promise ultra100 tx2 pci ide controller card that I got with a western digital hard drive a year or 2 back. I can plug the card in with no hard drives attached to it, boot into windows, update the drivers, etc. but when I plug either of my hard drives into the card, it goes to a black screen directly after the screen the promise controller brings up after the main msi bios screen.
It's my understanding that this problem is caused because the ide controller card can't inject its bios into the option rom of the motherboard. I've tried disabling as many other features that I can in the bios to clear up some space in the option rom, but so far no luck. I made sure I have the latest MSI bios, but I am 1 or 2 revisions behind on the promise controller card bios, because I don't have a floppy drive and I can't get any bootable cds to work.
If need be, I can get a new ide controller card, but I would rather not, because this one works just fine, and I am pretty short on cash. I am also worried that this same problem will happen with other controller cards that I pick up. Any advice on how to get this thing working?
P.S. - is there any way to get this board to boot from a USB key? My only options in the bios for booting to USB are USB-FDD, USB-ZIP, and USB-CDROM.
-MSI k9vgm-v
-phoenix rev 1.2 (I think. Can't remember. Whatever liveupdate says is the newest)
-AMD Athlon 64 3200+
-512 MB Wintec Ampo memory
-onboard video
-Enermax 370watt noisetaker
3.3v 30A
5v 32A
12v 1 14A
12v 2 13A
-ide hard drive as primary master (windows drive)
DVD-RW as primary slave
ide hard drive as secondary master (raid drive 1)
ide hard drive on ide controller card primary master (raid drive 2)
ide hard drive on ide controller card secondary master (raid drive 3)
-Windows XP Pro SP2"My problem is with a promise ultra100 tx2 pci ide controller card that I got with a western digital hard drive a year or 2 back. I can plug the card in with no hard drives attached to it, boot into windows, update the drivers, etc. but when I plug either of my hard drives into the card, it goes to a black screen directly after the screen the promise controller brings up after the main msi bios screen."
That means reboot cycle?
Have you tried with more powerfull PSU?
"P.S. - is there any way to get this board to boot from a USB key? My only options in the bios for booting to USB are USB-FDD, USB-ZIP, and USB-CDROM."
USB-FDD, USB-ZIP or in HDD area.. depend how will be detected your USB key.
"It's my understanding that this problem is caused because the ide controller card can't inject its bios into the option rom of the motherboard. I've tried disabling as many other features that I can in the bios to clear up some space in the option rom, but so far no luck. I made sure I have the latest MSI bios, but I am 1 or 2 revisions behind on the promise controller card bios, because I don't have a floppy drive and I can't get any bootable cds to work."
Could be...
"If need be, I can get a new ide controller card, but I would rather not, because this one works just fine, and I am pretty short on cash. I am also worried that this same problem will happen with other controller cards that I pick up. Any advice on how to get this thing working?"
"-phoenix rev 1.2 (I think. Can't remember. Whatever liveupdate says is the newest)"
Check the exact version. Latest version is 1.6, if there is an conflict that raid card unable to register property like(No enough Space to copy PCI Option ROM or similar) a new bios can help. -
Hy there.
Im using two "Haidenhain ERN 420" Encoders with TTL-Output Signal
A NI-Motion Controller 7334 with an NI-"nuDrive 2SX-411"
When I try to Read the Encoders Position (with ex.-Programm/Source) the Message: "Error -10401 occurred at AI Group Config ... the specified device is not a NI-product" appears
Can anybody help me to initiallize/Use the Encoders in Labview 6.01?
thanks, phil.Phil,
It looks to me according to the error that you were trying to use DAQ functions to access the Motion controller. The Motion controller uses its own functions. There are two for reading position:
Functions Palette >> Motion & Vision >> Flexmotion >> Trajectory Control >> Read Position.
Functions Palette >> Motion & Vision >> Flexmotion >> Analog & Digital I/O >> Read Encoder Position.
You may find a useful example in:
C:\Program Files\National Instruments\LabVIEW 6.1\examples\Motion\FlexMotion\One Axis.llb\One Axis Move with Position Monitor.vi
Make sure that you have configured and initialized your board properly in MAX.
I would suggest that you post your question on the Motion Control section and not in the LabVIEW section. Also, check the Dev
elopment Library section of the NI Developer Zone for the Motion Control section with tutorials and example code.
Good luck!
Nestor.
Nestor
National Instruments -
Every time I boot my PC , I have to reinitialize my 7344 through Motion and Automation Explorer in order for it to work. Does anyone have any suggestions as to how to initialize it from within labview itself?
thanksHi,
I am sending you a Vi for initializing the controller.The only thing you have to do is that you need to use sequence structure. In the first sequence you need to use the VI which is attached i.e 0 (default). Then the next sequence will be the program itself.
So that as soon as you run your vi the first thing done will be initialising controller using LabVIEW. Then your program will run.
Here the led in the front panel will glow green only the first time you are initializing.The next time it will be dim but no doubt your initializing will be taking place.Hope this vi solves your problem.
Thxs
Manish Karnik
Application Engineer
Cruiser Controls
Mumbai, India.
Attachments:
Initializing controller.vi 42 KB -
Installing Esata PCI-e controller cards
I have an IdeaCenter K450 and I have installed (2) two port esata controllers and niether of them is recognized. It does not ask for drivers or a installation CD. My second question is, there difference between an esata Raid controller and an esata controller?
I've to admit, it's new to me, and I believed to many others as well.
How old do you feel PCIE technology is?
To me, 3 years ago, Intel annouces PCIE platform to take over AGP and PCI on the number of parity bits handled to make smoother and faster communication with the board.
About 1 year later, nvidia annouces SLi to bridge 2 PCIE x16 GPUs for faster performance, following by ATI's Crossfire several months later.
If PCIE was really mature, all PCI slots would be simply phased out today on a motherboard. To me, the reason for the standard PCI to remain on a board is like a fall back plan, where makers do not jumped onto the bandwagon to start rolling out masses of PCIE cards. Probably high cost, probably more R&Ds needed due to compatibility issues, this I'm really not sure.
All in all, some have success and some have not, which is why I said test and trial. -
I need help getting the right PCIe Raid Controller card.
I have a Mac Pro 3.33 GHz (6 core) computer running 10.8.2. I purchased a Sans Digital TR4M+ http://www.sansdigital.com/towerraid-/tr4mplus.html which includes a Highpoint RR622 card but it's not bootable. I need a non-expensive card which is bootable. I'm currently using the drives in JBOD mode.
Any suggestions?
Thanks!I'm currently using the drives in JBOD mode.
The RAID features built into Disk Utility support JBOD, Mirroring, and Striping without the use of a card.
RAID methods that require checksum calculation, (e.g., RAID 5) always require a card to provide adequate speed.
Consider whether you really NEED your Mac OS X Boot Volume to be on a RAID at all. A great deal of its data is either invariant (Mac OS X code and Applications code) or temporary ( caches). If damaged, Mac OS X and Applications can be rebuilt from DVDs in a few hours.
Moving the Users files off to another Volume is a great way to speed up your Mac Pro, since it reduces competition for the busy Boot Drive. -
PCI-7344 motion controller encoder reset problem
I'm using a PCI-7344 motion controller for my application. I'm currently working on simple display of position and velocity using an encoder. I am able to read the encoder pulser, but I am unable to reset it. I want the encoder pulses to be display continously till I press a reset button on the screen. After pressing the reset button on the front panel, the encoder count should become zero and start counting again till I press stop button. Kindly give me a simple example of encoder reset using push button. Thanks.
Regards,
Giridhar Rajan
Cruiser Controls
Mumbai, IndiaThis should do what you are looking for. I am not at the computer that has a motion controller card in it, so I have not tested it.
It resets the encoders for Axis 1 and Axis 2. Unless you have a different configuration for encoders and axes, it should work.
Hope that this helps,
Bob
Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
DISTek Integration, Inc. - NI Alliance Member
mailto:[email protected]
Attachments:
Reset encoders.vi 66 KB -
How do I get labview for linux to send out ascii code to a motion controller?
I have posted part of this problem but I will now try to clearify things. I have an x-y stage that needs motion control. I have to run the motion controller from within a linux system (RedHat 7.1) due to others in the research area. I have found a motion controller card (PCI) that will run under linux. This card is not National Instruments. I understand that they do not have drivers for their controller cards. This other card comes with the companies own software that uses ASCII codes to move the motors on the stage. I was hoping to create a program that could call those ASCII codes to move the stage. An example would be if a user wanted to have the stage move to the right he would press a b
utton on the screen instead of typing in whatever ASCII could that move to the right happens to be. How would I go about programming something like this? I have heard of others doing things like this but I am unsure of how to program labview to send out ASCII codes to a PCI card to move motors.> would I go about programming something like this? I have heard of
> others doing things like this but I am unsure of how to program
> labview to send out ASCII codes to a PCI card to move motors.
Look in the manual to see get familiar with the sequences of codes you
need to write, and more importantly, where you write them to. I suspect
a memory location, but it could be a socket or port.
Each of these locations will have a slightly different way of accessing
it. Once you know, search devzone for how to do it on linux, or post
back here.
After you can send the codes to the right location, you probably want to
build a state machine that simplifies the interface and prevents certain
actions from taking place. Now determine which buttons or
keys perform
which actions and use either the event structure or the older polling
for control changes to affect state changes in the state machine.
I'm summarizing here assuming that you know what a state machine is and
why you'd want to use it. If I'm assuming too much, do some research
and post again with more specific questions. Also be sure to look at
example VIs as they show how to respond to UI actions.
Greg McKaskle -
KT266 PRO2 and PCI ATA controller
I have a lot of ide devices so I bought a PCI ide controller years ago. Now I got my little brothers motherboard. MSI KT266 PRO2, and plugged all my stuff into it. When it was time to reinstall Win, but it would not boot the cd, or from floppy. I checked the boot order, all looks fine.
Then I tried to take the PCI IDE controller out, and then it booted my winXP cd fine.
So basically, When the PCI ATA bios is loaded (the card), I'm unable to boot from cd-rom or floppy. Only boot from HDD1 works. So every time I need to reinstall windows, I need to unplug all harddrives from the PCI IDE controller card. Then windows is installed I can plug the harddisks back in...
I can't find an explanation to this...
No problem when the PCI IDE controller is used with 2 other motherboard I have. Latest bios is used on the motherboard and the pci IDE adapter card.
MSI KT266 PRO2
AMD athlonxp 1700+
Sapphire Radeon 9600 PRO
maxtor ata100 pci controller
768 MB DDR pc-2100 ramOn the MB controller I have 2 harddrives on primary (one master, one slave), and 1 dvd-drive (master) and 1 cd-recorder (slave) on secondary.
On my ata controller card I have 2 extra harddrives for backup. Both on the IDE1. One as master and the other as slave.
All drives are properly configured. -
NI-Motion PXI Card Device Status = Is Not Responding
I am unable to communicate with my NI PXI-7358 motion controller card. The general tab in MAX for the card shows that "Device Status" = "Is Not Responding" see attached. I have un-mapped and re-mapped the remote device. I have also removed and re-seated the PXI card without any success.
Solved!
Go to Solution.
Attachments:
PXI-7358 - Is Not Responding.PNG 29 KBHi Jeffmg,
This seems to be a known issue. There is an internal knowledgebase documenting this problem and a potential solution.
The solution according to the KB article:
"This problem can occur when a previous board was mapped to the host machine. The NIMtnSvr.exe is based on Board ID's and sometimes gets stuck. To fix this, close any NI software running and then open the task manager and end the NIMtnSvr.exe process. This will shutdown the server and allow it to start from scratch the next time it runs. When you open MAX, the boards will appear on the local host correctly mapped."
-N
National Instruments
Applications Engineer -
Hi,
We have Labview 2010 and the following hardwares for testing a specific motor (a brushless DC motor):
NI PCI 7356 Motion Controller
NI UMI 7774
AKD Servo Drive P00606
However, I met some difficulty when wiring the motor to the motor drive(and controller). In the manual, it says PCI 7356 needs encoder signals as the feedback. But our motor doesn't have a built-in encoder. It has three Hall Effect Sensors, which we plan to use as an encoder. If we feed the hall sensor signals as the encoder phase signals (Phase A, B) to the drive/controller, I wonder if Labview or PCI 7356 (after an appropriate configuration) can adjuct the phase (from 120 degree to 90). Does it work even without the adjustment?
If the above doesn't work, can I feed only one Hall Effect sensor signal as Encoder Phase A and don't feed anything to Phase B (since I only need control the motor speed in one direction)? Will PCI 7356 or Labview recognize the signal and function accordingly?
If it doesn't work as well, could I use motor's Back EMF as a feedback (this motor produces a decent sinusoidal back EMF)? If I can, how should I configure the hardware and wire the motor to controller accordingly?
If all three above don't work, could you suggest a way to solve this problem?
Thanks so much for your help.
Best,
ChenHey Chen,
I have comfirmed that the PCI card will not be able to do feedback with the hall effect sensors. However, you could do that with our NI 951x modules if you run it in FPGA mode. You would need an extra IO module to set up the hall effect sensors with, but you could effectively customize your control and your feedback on the FPGA board immediately.
For your other post, I am not sure you can create a time constraint on the move, I believe that when you define a motion, you would need to define the number of steps or the position and not the time. If you are running the motor at a specific velocity for an amount of time, you would need to set that as the number of revolutions and not time.
I hope this helps.
Regards,
A. Zaatari
National Instruments
Applications Engineer -
I'm using RTx, LabVIEW RT and LabVIEW FPGA.
The GUI is windows based. The motion control and FPGA are RTx based.
Is there any way to develop device drivers for the custom hardware in RTx. For example motion controller hardware, FPGA hardware, PCI hardware.
Is there a possibility to use custom FPGA boards to use with LabVIEW FPGA.
Please send me some links
Thanks
Bhoopathy
Take life as it comes! you may never know what's gonna happen TommorrowCODE WARRIOR Hello. I believe this question was answered in a previous post. Please let us know if you have any new questioins or if you need some clarification.
You are able to develop device drivers for your custom hardware using the NI Measurement Hardware Driver Development Kit.
However, it is not possible to use custom FPGA boards with LabVIEW FPGA. The FPGA boards have to be one of our R Series boards. Here are some links that should shed some light on the Measurement Hardware DDK.
Measurement Hardware Driver Development Kit Frequently Asked Questions
NI Measurement Hardware DDK (Driver Development Kit)
Please post if you have further questios.
Efosa O.
NIAE -
Problems with a PCI-7344 motion controller
Hi all,
I've run into a weird problem with a NI PCI-7344 motion controller, where I
have a program that provides the motion control for my program that works
reasonably well, but when I make minor changes gets motion errors. The changes
are not specifically to the motion parts, just changing a couple of globals
that provide communication with another part of the program (and another piece
of hardware). The errors I get indicate that I am trying to enable limits
switches at the wrong time in my program. I will add that I do not get any
errors when I go through the program in debug mode
Tnx,
P.W.MonroeThe portion of my program that gets the errors uses the "Flexmotion" Find Home
and Find Index routines, which are built into the 7344 controller. In the
exampes for using these VIs, they are followed by a loop that has a VI that
monitors the status of these VIs for completion, both move complete and Home or
Index Found. The globals that I mentioned are being used to terminate the loops
if an error condition occurs elsewhere, and do not cause the program to do
anything other than terminate looking at the status and then go into a wait
loop. It crashes when it goes into the loop when I substitute a different
global, which is baffling to me, as they aren't triggering something that would
result in a race condition.
Maybe you are looking for
-
For Container Freight payment can be downloaded through a standard query.
for Container Freight payment can be downloaded through a standard query. Regards Mahesh
-
Yahoo Webmail Blue Progress Bar Freezes adding attachments
Using Mac OS X, Leopard 10.5.6 and Apple Safari 3.2.1. There is a bug when using Apple Safari with Yahoo Webmail. Whenever you attach a file (while composing a message), the blue progress bar (fills in behind the website address window) freezes. Ever
-
How to save favorites in librivox application
How to save favorites in the Librivox application on iPhone 5s? Even the book currently in progress does not show anywhere and I have to search it every time. It however, resumes from the place I left when I do find it in the search bar
-
Creating server group for scheduling Webi report
Hi All, I have 33 scheduled reports running in my BO 4.1 environment. I want to split this in 3 groups and create server group to run specific job. To achieve this what should I have to do ? In group one what server and services should be there to ru
-
Write/read struct in binary file
Hi to all, I created a struct profile defined as follows: typedef struct profile { char name [30]; float power; double frequency; struct profile * next; I can write the structures in a file, but I should do so that when you try to insert a struct, yo