Encoder counts to controller - error

Hello everyone,
Could someone please help me with this LabVIEW program? I thought I was near complete with finishing up this project, but have encountered problems while executing the program with hardware. I am under a very close deadline, so any tips or advice is very much appreciated. 
About the program:
I have a sub panel that represents an x-y stage where a mouse cursor navigates about. The x-y stage is controlled by two actuators, and a mouse cursor's movement within the subpanel will allow for the actuators to move about.
There are three different cases (case structure):
0: Do nothing
1: Update mouse coordinates (x & y coordinates are displayed in boxes titled "Local Mouse Coord")
2: Display absolute position (x & y coordinates are displayed in boxes titled "Encoder counts")
My program currently works so that the mouse coordinates (in pixels) are updated and displayed ONLY when the cursor is within the panel's bounds. I did this by implementing the In Range and Coerce Function.  
Screenshots of my current sub panel and block diagram are in the attachments below. 
(Note: Coord to Encoder on the Front Panel is supposed to be at 500 to attain encoder counts) 
I have two axes where one axis represents x and one axis represents y. These axes are controlled by actuators connected a Newport MM3000 Motion Controller. 
Once I had my program running and the controller was turned on, the program would only execute partially for Case 2 (encoder counts). 
Moving the mouse cursor up and down within the subpanel allowed for some movement on the actuator for axis 1 
Moving the mourse cursor left, right, and diagnol caused an error on the controller called "Bad Command"; there was no movement on the actuator
Below is a zoomed in version of my Case 2: 
The front panel and block diagram for "IEEE Write" is below: 
As you can see in the front panel of IEEE write, 1pa1000 represents a command that will move the actuators to absolute position, where 1 represents the axis number and 1000 represents the absolute position destination (in encoder counts). 
I know that no one will probably be able to implement this without the hardware. However, if anyone has dealt with similar issues before, could you please lend me a guiding hand?
I just need to know what I could do to modify my code to elminate the "Bad Command" I am getting from the controller. 
Many thanks in advance! 
Attachments:
Screen Shot 2012-11-08 at 8.12.01 PM.png ‏105 KB
Screen Shot 2012-11-08 at 8.14.37 PM.png ‏104 KB

qpt,
I would definitely recommend contacting the manufacturers of your Newport MM3000 Motion Controller to check and make sure the commands and the command protocol that you are sending the device are compatible with the controller. They might have some more insight as to why you are recieving this error. 
Regards,
Leah
Regards,
Leah
National Instruments
Applications Engineer

Similar Messages

  • Need help for encoder count program !!!!!!!!!

    I am a new labview user.
    And i am trying to complete a project for my course.
    For a quick background on what I am working with, I am using a NI PCI-73566-Axis Stepper/Servo Motion Controller for PCI, NI UMI-7764 Series, NI USB-6009 and a IDEC SC1B Rotary Encoder.
    I am try to design a encoder count program and a new program to convert the encoder signal to RPM.
    But I just don't know where should I start? How can I get the same block diagram like P11 in the attach file?
    Please check more detail from the attach file.
    Attachments:
    P11.jpg ‏127 KB
    P8.jpg ‏149 KB
    P15.jpg ‏141 KB

    Hello,
    The two objects on the block diagram are DAQ Assistants and can be found under Functions»Measurement I/O»NI-DAQmx. From what I can gather, this is acquirign signals that you should have connected to the USB-6009.
    -Zach
    Certified LabVIEW Developer

  • QT Pro Crashes with "Export Controller" error when converting M2V to H.264

    I am currently experiencing a problem with QT Pro for Win. Any time I try to convert a M2V file to an H.264 encoded .mp4 file, QT pro gets approx 10-16% complete with the conversion and then crashes. (This happens when trying to encode an 2hr SD M2V file taken from a DVD or a 1/2hr M2V HD file recorded via EyeTV, so the resolution/size isn’t an issue.) The error message is always that there was a “QT Export Controller error”. I do not get this kind of error when using the same files with QT Pro on my MacBook only on my windows box. I am running the most current version of QT. Does anyone have any ideas on this?

    Hi,
    I too am having crashing issues.... and I too got no help from Apple. Just go to website they said... great!!?? Now I know why I never use these guys products!!!
    However, rant over, I do have a need to use Quicktime.
    I am trying to use Quicktime to convert quicktime movies to the new H.264 codec, a function available with Quicktime Pro.
    However when I go to export window and then to the video setings window, quicktime just suddenly closes(not crash). I can go into the audio section though and change options in there. I have uninstalled and re-installed with no luck.
    This is extremely frustrating
    any help greatly appreciated
    sharky

  • Encoder counts wrong after Firmware update to 7.2?

    Hi,
    I recently updated the firmware of my motion controller card 7344 PCI to 7.2.
    Since then a 360degree-rotation in 15degrees-steps seems to miss one 15degree-step. A 360degree-rotation stopps at 345degrees
    I think that maybe the encoder counts wrong or the move function isn't executed one time.
    Has anybody expierienced similar problems or has any hints?
    Thx.
    PS. Does anybody know a way to downgrade the firmware to the version below? It seems that the firmware update causes the problem.

    saimen54,
    Odd behavior.  Is there anyway you could post the code for a simplified version of your program that exhibits this same issue.  I don't think there will be any other way to troubleshoot your issue without taking a look at the code.
    Thanks,
    Lorne Hengst
    Application Engineer
    National Instruments

  • I cannot run Adobe Video Encoder, I get this error: ' Adobe Media Encoder CS6 6.0.1 Update Installation failed. Error Code: U44M2P7'

    I cannot run Adobe Video Encoder, I get this error: ' Adobe Media Encoder CS6 6.0.1 Update Installation failed. Error Code: U44M2P7'

    Hi
    Uninstall the Adobe Application manager from your computer.
    and download the latest version of the AAM from the below mentioned sites.
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4774- For Mac
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4773 - For Windows
    Once installed , Then try to update the application by launching the application and Help--> Update
    Hope It Helps
    Thanks

  • How can I resolve Exception : "Count Field Incorrect" error

    Hi all,
    I am experiencing with "Count Field incorrect" error. What's wrong with it? How can I resolve it?
    This error is occured at UPDATE function of SQL. My JSP page is to update the old record.
    Sometimes, "Update statement error" message appear. These two problems I always confusing.
    What are the possible point of these error in my Java file and JSP page? I use package import to JSP Page.
    Pls help me.
    With thanks,

    Thanks,
    Your URLs help me exectly. But after I have changed my code, the error is changed to "Too Few Parameters : Expected 35". What's wrong with it? The following is my code.
    try {                                                                                                                                                                                                                
    String DRIVER = ("sun.jdbc.odbc.JdbcOdbcDriver");               
    String URL = "jdbc:odbc:Industrial_One_DSN";
    String sql = "UPDATE BusinessRegistration " +
    "SET [Date] = ?, ISIC = ?, BizName = ?, BizAddress = ?, " +
    "OwnerName = ?, OwnerNRC = ?, Investment = ?, EstablishedYear = ?, " +
    "L_Male = ?, L_Female = ?, F_Male = ?, F_Female = ?, " +
    "OwnershipType = ?, Remarks = ?, IndustialZoneName = ?, Unit = ?, " +
    "Fuel = ?, FactoryType = ?, FactoryName = ?, Township = ? " +
    "MainProductName = ?, MainProductCountType = ?, " +
    "MainProductQuantity = ?, MainProductValue = ?, RMName = ?, " +
    "RMCountType = ?, RMQuantity = ?, RMValue = ?, EnergyName = ?, " +
    "MachinePower = ?, AmountGallon = ?, StateDiv = ?, BizSize = ?  " +
    "WHERE RegistrationID = ?";
    Class.forName(DRIVER);
    Connection con = DriverManager.getConnection(URL);
    PreparedStatement pstmt = con.prepareStatement(sql);
    int ilmale = Integer.parseInt(lmale);
    int ilfemale = Integer.parseInt(lfemale);
    int ifmale = Integer.parseInt(fmale);
    int iffemale = Integer.parseInt(ffemale);
    int impq = Integer.parseInt(mpq);
    int impv = Integer.parseInt(mpv);
    int irmq = Integer.parseInt(rmq);
    int irmv = Integer.parseInt(rmv);
    int iamountgallon = Integer.parseInt(amountgallon);
    pstmt.setString(1, date);
    pstmt.setString(2, isic);
    pstmt.setString(3, bizname);
    pstmt.setString(4, bizaddress);
    pstmt.setString(5, ownername);
    pstmt.setString(6, ownernrc);
    pstmt.setString(7, investment);
    pstmt.setString(8, eyear);
    pstmt.setInt(9, ilmale);
    pstmt.setInt(10, ilfemale);
    pstmt.setInt(11, ifmale);
    pstmt.setInt(12, iffemale);
    pstmt.setString(13, ownershiptype);
    pstmt.setString(14, remark);
    pstmt.setString(15, izn);
    pstmt.setString(16, unit);
    pstmt.setString(17, fuel);
    pstmt.setString(18, ft);
    pstmt.setString(19, fname);
    pstmt.setString(20, township);
    pstmt.setString(21, mpn);
    pstmt.setString(22, mpct);
    pstmt.setInt(23, impq);               
    pstmt.setInt(24, impv);
    pstmt.setString(25, rmname);
    pstmt.setString(26, rmct);
    pstmt.setInt(27, irmq);
    pstmt.setInt(28, irmv);
    pstmt.setString(29, ename);
    pstmt.setString(30, mpower);
    pstmt.setInt(31, iamountgallon);
    pstmt.setString(32, statediv);
    pstmt.setString(33, bizsize);
    pstmt.setInt(34, Integer.parseInt(rid));
    pstmt.executeUpdate();
    }I have got 35 fields in my db. But i wanna edit 34 fields only. I have no primary key in my table. Is't alright?
    pls keep on helping me.
    With thanks,
    WTDAHL

  • HD Controller Error in System Properties

    Hello,
    Under system properties--hard disk controllers I have 3 entries:  Primary IDE Controller (single fifo), Secondary IDE controller (single fifo), and Duel PCI IDE Controller.
    The primary and secondary IDE controller entries have exclamation marks next to them noting that they are not working corectly.  
    My 2 hard disk drives do not show under the disk drive entry due to the controller "errors".
    What IDE drivers should I use to fix this problem.  Since I cannot access the hard drives I cannot turn on DMA support.
    Thanks for the help!

    Quote
    Originally posted by biodude
    What IDE drivers should I use?  The drivers that the puter wants to use (MS) aren't good.  I can't see my hard drives, or CD ROM in Win ME system properties. This means that the drives are using MSDOS compatibility mode.  
    Does NVIDIA have any NF2 IDE drivers?
    Thanks
    Can your machine read CDs?  There may be drivers for your IDE controllers under Windows ME on the CD that came with your motherboard.
    Caveat: I am speaking from experience with EPoX and ASUS motherboards; I am fairly new to MSIs, but I would expect they would have the same sort of drivers available.
    --Barry

  • I get MP AV controller error domain error 3 when I try to play a movie I rented. Using OS 8.1.3

    I Updated my OS a few days ago and downloaded 3 movies. When I go to play the, I get the error message
    MP AV controller error domain error 3
    wwhat is this and how do I access the movies I have paid for?
    thanks!

    this worked for me: after downloading a movie from itunes i get the message MPAV Controller Error Domaine error 3 what can i do ?
    Basically
    log out of itunes from settings
    power off the ipad
    power on the ipad
    log back into iTunes
    then  the video was available

  • Does Stop task reset a quadrature encoder counter?

    I am using an M-Series PCI-6280 board, with one of its onboard counters wired as a quadrature encoder.
    1)I start the counter task, take a set of measurements with the counter, and then stop the task.
    2) The encoder which the encoder counter is monitoring continues to output quadrature encoder signals into the PCI board's counter.
    3) I start the task again, and perform another set of measurements.
    Which of the following occurs?
    Upon starting the task again, the counter's previous value was wiped and the measurements taken in (3) start at 0 counts. 
    The counter keeps the value it had before it was stopped and subsequently started, and the measurements in (3) cumulate on top of the measurements taken in (1). 
    The counter keeps the value it had before it was stopped, continues to increment/decrement position in (2) even after the task is stopped, and when the task is started in (3) the counter value is cumulative with the quadrature encoder pulses in (1) and (2). 
    Thanks in advance for the help. 
    Solved!
    Go to Solution.

    Hello acmap,
    In this case The behavior will be the following:
    Upon starting the task again, the counter's previous value was wiped and the measurements taken in (3) start at 0 counts.
    However, you can specify the initial count value of the counter on the Initial Count terminal of the DAQmx Start Task VI, so it doesn't have to start at zero, and you can implement the behavior described in your second option.
    Daniel

  • Getting Export Controller Error When Exporting MPEG2 to High boardband & up

    I just got QuickTime Pro and MPEG 2 Playback for Windows. I am getting an Export Controller Error When Exporting MPEG2 to High boardband or to the default settings. The file I am exporting is around 60 MB and when it gets to about 15%, the program errors. However, the program works for Medium and low Board band. If anybody has a solution for my problem, I would love to know.
    Thanks!

    Not sure if this is going to work, but it worked for me. After exporting the movie and I got the error, I noticed that the process "exportController" was still running, so I stopped it from the task manager and am not sure but apperantly that was the problem because once I did that the file open up fine in other players like Winamp. Also after stopping the process the following exports I did seemed to be exported fine without any errors !... worth a shot.

  • "no row count was produced" error using mqsl commands through Access

    "no row count was produced" error using mqsl commands through Microsoft Access. This sql statement works when I use in in the Access program but it does not work when I try and put it through Access using my Java program. Here is the block of code that I have that does the search.
    public static Game searchRecord(String search) throws SQLException{
    String query = "SELECT* " + "FROM gamefields WHERE SKU = '" + search + "' ORDER BY SKU ASC";
    Game lastGame = new Game(gamefields.getString(1),
    gamefields.getString(2),
    gamefields.getString(3),
    gamefields.getString(4),
    gamefields.getString(5),
    gamefields.getString(6),
    gamefields.getString(7),
    gamefields.getDouble(8));
    Statement statement = connection.createStatement(); //Creates connection
    //statment to database
    statement.executeUpdate(query); //Executes the delete query and Updates the database
    statement.close();
    close();
    open();
    return lastGame;

    When you use the code from java, you access access (!) through the ODBC interface. Things can be different in ODBC and Jet. When you use PrepareadStatements, you should be on the save side:
    public static Game searchRecord(String search) throws SQLException
    String query = "SELECT * FROM gamefields WHERE SKU = ? ORDER BY SKU ASC";
    PreparedStatement statement = connection.prepareStatement(query);
    statement.setString(1,  search);
    ResultSet rs = statement.executeQuery(query);
    if(rs.next()
    // if a row retuned extract the details here
    rs.close();
    statement.close();
    return lastGame;
    }

  • HT202027 Mpav controller error doman error 3 on a movie download that never completed download

    I Was downloading a rental and my wifi was interrupted and I never was able to finish my down load. I have now been charged the 5.99 and not able to watch to watch the movie. I keep getting the error MPAV controller error domain error 3. Any idea how I can get the download to recommence?

    Greetings Deedledash,
    Welcome to the Apple Support Communities!
    I understand that you rented a movie from iTunes and the download was interrupted before it finished. For this situation, I would recommend using the attached article for information on resuming your download.
    iTunes: How to resume interrupted iTunes Store downloads - Apple Support
    Cheers,
    Joe

  • After downloading a movie from itunes i get the message MPAV Controller Error Domaine error 3 what can i do ?

    after downloading a movie from itunes i get the message MPAV Controller Error Domaine error 3 what can i do ?

    Log out of iTunes from Settings, power down and restart the iPad, log back into iTunes. Your download should play now.

  • How do you convert the encoder counts to RMP of the motor using a myRIO in LabVIEW?

    My intent is to gain hardware interfacing and general Labview experience. I am using a myRIO to control a Pittman 8222 34V Brushed DC motor (Motor Specs).
    I recently created a code to control the angle of this motor using PID, which was visually implemented using the black disc with a white tick mark on it (see attached picture: "IMG_2523"). 
    I now want to control the speed of this motor againg using PID, but I am not sure how to properly convert the encoder counts to RPM of this motor. I have attached 2 screen shots of my block diagram and my front panel for reference ("Capture" and "Capture2"). In the front panel picture, you can see my "actual" speed of the motor is a very choppy signal when it should theoretically be a flat line. To get the RPM, I currently use a shift register to store the current count value (which I converted to deg, then to radians), and then subtract the previous run's value, then divide by the while loop sampling time (10 ms). This would give me rad/s, which I then wrote a subVI to convert it to rpm. 
    Any help would be greatly appreciated, thanks. 

    Hi,
    One thing you could try doing is verifying that the conversion from rad/s to rpm is working correctly. 
    This tutorial might also be helpful. It's not using the same hardware that you are, but goes through the general steps using PID control. 
    CompactRIO Motor Control Basics Tutorial: http://www.ni.com/pdf/labview/us/compactrio_motor_control_basics.pdf
     

  • The driver detected a controller error on \Device\Harddisk1\D

    Hope someone can help, yesterday in the event viewer I encountered the following error
    "The driver detected a controller error on \Device\Harddisk1\D
    ....I have added no new hardware for months, I checked this out on the microsoft website but they recommend changing the cable!
    I ran diagnostics on the hard drives and they found no errors at all ....I got a feeling it the motherboard, frustrating as this is the second board Ive had!
    Can anyone advise  on this error?
    My setup is as follows
    P4 3.2GHZ
    1GB Transcend Memory
    1 NEC 2510 DVD Wrtier
    1 IDE 120GB Maxtor Diamond Max
    2 X SATA HDD
    450 watt Thermaltake Butterfly PSU

    This seems to be a common problem between ICH5 chipsets and SATA NCQ drives. Apparantly a BIOS update will be able to fixed the problem but I'm not sure which BIOS you should use. I suggest that you check MSI's website to look into your mobo's BIOS release notes to find out more first.
    Please also note that there's an amount of risk to flashing your mobo's BIOS as and improper flash will caused the mobo to die immediately or having multiple errors due to bad flash. I would recommend that you flash through a floppy bootdisk which seems to be the best method till date.

Maybe you are looking for