Reading variables/​parameters from stpper motor controller

I have three Pacific Scientific stepper motors and controllers. The controllers are programmable via a proprietary version of the basic programming language, called stepperbasic. I can control the motors using labview by performing a serial write function, and outputting an ASCII string to the controllers, for example 'GO.VEL', starts the motor moving. However i am unsure how i can read parameters from the controllers. For example there is a variable 'MOVING', this is logic 0 if the motor is not moving and 1 if the motor is moving. How can i get labview to read this variable and others like it?

Thank for contacting National Instruments. From the sounds of your system, this post may be better aimed at our GPIB/Serial group rather than the Motion team. If the only communication you have with these controllers is through serial communication, then most likely you will need to use a serial read (or possibly the I/O Assistant if you are using LabVIEW 7.x) in order to pull in that information. I am not the expert here on serial, but for this you will need to know what commands to send to get this information out and then what type of data you are expecting.
Another option that you can look into is if Pacific Scientific included a C/C++ library, then you may be able to call that dll or code from within LabVIEW to control the controllers/motors also. If you hav
e not done so already, I would take a look at the documentation for your hardware and see what software came with it. If they provided anything that could be used to write a basic C/C++ program to control the motor, then you should be able to do the same from within LabVIEW.
I hope this helps out some and let us know if you have any more specific questions.
Regards,
Michael
Applications Engineer
National Instruments

Similar Messages

  • Is LabView able to read digital inputs from maxon motors controller, EPOS2?

    Hello,
    I would like to ask that if LabView is able to read any digital inputs directly from a maxon motor controller, EPOS2. As i have tried making a new VI from the maxon example VI, but the difference is that i've added a input control. But the program doesn't seems to work.
    That's why i would like to ask if LabView can read a direct digital input from the maxon motor controller.
    Thank You & Regards,
    ParkyPak
    Attachments:
    sensor.vi ‏34 KB

    Hello Parky,
    I understand now. I check on the motion controller and it is connected through USB to your computer. In term of controlling the motion controller, you are using some LabVIEW library from maxon. The photosensor is connected to the motion controller may be as a switch or as a limit switch.
    In order to read the value of the Digital input port, you may need to take a look of the libraries to check on what function call and the supported command to check the digital input port. If this is not successful, then question or referring to examples from Maxon motors would be the best.
    I hope that this helps.
    James
    - Meadow -
    LabVIEW 7.0 - 2011, Vision, RT, FPGA
    TestStand 3.0 - 4.5

  • Need Read URL parameters from Adobe from

    Hi all,
    I have a specific application where in i need to read the parameters of the iview URL from an adobe form. The adobe form is a stand alone adobe form in KM. Its not developed using netweaver developer studio. 
    It would of very major help if some one can help me in this regard. Any javascript or formcalc to read iview URL parameters from an adobe form would be of great help.
    Thanks in advance.
    regards,
    Deepthi lakshmi.A.

    See http://forums.adobe.com/thread/1279496

  • Creating variables/parameters from a code module that persist when the sequence is over

    I am creating variables/parameters programmatically in a code module (C#) by passing in the Locals object and calling the method 'NewSubProperty'.
    I've also tried SetValNumber with PropOption_InsertIfMissing.
    But it seems they are only being created in that instance of the sequence, because they are gone when the sequence is over. I really wanted them to persist.
    I wanted to avoid creating station globals dynamically like this, but maybe that's all I can do to make them last.
    Any ideas would be gratefully appreciated.
    Thanks,
    Ronnie
    TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
    Solved!
    Go to Solution.

    Hi,
    Check out the links on this response
    http://forums.ni.com/ni/board/message?board.id=330&message.id=11226&query.id=267719#M11226
    It maybe of help
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to read url parameters from a decoded string

    Hi,
    Normally if I pass on a url string
    test.cfm?name=abc&num=8, I can do url.name and url.num
    to get the url parameters. But what if the url string is decoded by
    javascript escape() function? The above url string becomes
    test.cfm%3Fname%3Dabc%26num%3D8
    How can I read url.name and url.num from this string?
    Thanks!
    Min

    Escape is not really meant for urls because it encodes the
    delimiters: ? &
    http://www.w3schools.com/jsref/jsref_encodeURI.asp
    http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp

  • Adding and reading the parameters from the WebDynpro Application URL

    Hi,
    I have a WebDynpro Application with two views. Based on the values populated by the user in the first view, I am pulling the data from database and populating the data in the second view. I do have a scenario where I have to skip the first screen and show the second screen directly. But, for the values that has to be populated in first screen, I am planning to append the  parameters in the url and provide the link to the users via email.
    Is it possible to add parameters to URL and read those Parameter values when user clicks on the URL.
    Thanks & Regards
    swetha.

    HI,
    Code for accessing params in webdynpro java:
    String urlParamVal = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("URL_PARAMETER");
    if((urlParamVal != null) && (urlParamVal.trim().length() > 0))
    <Write the code>
    Reading parameters:
    Re: Reading URL Parameter
    How to pass and fetch multiple parameter in the URL of the Web Dynpro
    Regards,
    Lavanya.G

  • Read the parameters from ini

    Hi,
    I need to call some hfm function in odi, the existed application used some ini file as parameter for the hfm function, it is a property file. my question is: is there any way in odi I can read the ini file conviniently? or it is better for me to use global variable instead of keeping the existed ini files? and how does odi handle the global variables? is it saved in any other parameter file like xml or ini ?
    I am trying to decide the strategy here for the input paramter for the hfm function to be used in odi.
    Thanks

    In this case I suggest to let it at ODI variables (last value type).
    Just put the parameter in a "select 'my_value' from dual" at the refresh tab.
    This is better because you can control the users that access it and plus, have the values storaged at database.
    Make any sense to you?

  • Reading connection parameters from text or XML file

    Hello,
    Rather than hard coding my connection data into the source, I would like to be able to read it from a configuration file in either text or XML format.
    Does anyone have a configuration file and source code example for doing this? Or have any suggestions on how it might be done?
    Many Thanks and Happy New Year!

    Thanks for the pointer. A review of the utils Java doc gave me the framework of what I needed. I also found a good example of the config file and code in the Core Java 2, Vol 2 book.
    As to the password, a concept I have is to create a small UI for users to manage the config params. When I write the password to the text file it would be encrypted. When used in the app, it would be un-encrypted. Granted not the most secure method, but a nice compromise on convenience and security.

  • Reading URL Parameters from within PDF

    Is there a way to capture data appended to a PDF's URL for use by the Acrobat Javascript? Anyone have an example of this type of implementation?
    Thanks

    Hi Harry,
    You may find useful the following two articles dealing with portlets and parameters:
    [list]
    [*]A Primer on Portlet Parameters and Events
    [*]Adding Parameters and Events to Portlets
    [list]
    Peter

  • PLSQL: Reading variable value from keybord

    In default cursor it is possible to use:
    ACCEPT variable PROMPT "Enter value: ";
    I got a problem while I try to have the message depend on a constant eg. language:
    DECLARE
    v_DATA VARCHAR2(10);
    v_TEXT VARCHAR2(10);
    c_language CONSTANT VARCHAR2(2) := 'PL';
    BEGIN
    CASE c_language
    WHEN ('PL') THEN v_TEXT := "PODAJ DATE";
    ELSE v_TEXT := "ENTER DATE";
    END CASE;
    ACCEPT v_DATA Prompt v_TEXT;
    END;
    Can anybody help me how to properly enter values within PLSQL begin-end statement.
    I suppose it is quite simple but still... :-)

    THX a lot
    And there is another thing.
    In your example the question is asked always in English and is always the standard one "Enter value for ..."
    I need to support 4 language versions and have to ask question in different languages depending on a value of c_language variable, without the "Enter value for ..." :-)
    English user would see (c_language='EN' ):
    Enter the receipt date: {here cursor waiting for entering date}
    Polish user would see (c_language='PL' ):
    Podaj date przyjecia: {here cursor waiting for entering date}
    So now it looks as follows:
    set serveroutput on
    set verify off
    DECLARE
    v_DATA VARCHAR2(10);
    v_QUESTION VARCHAR2(30);
    c_language CONSTANT VARCHAR2(2) := 'EN';
    BEGIN
    CASE c_language
    WHEN ('PL') THEN v_QUESTION := 'PODAJ DATE';
         ELSE v_QUESTION := 'ENTER PO DATE';
    END CASE;
    dbms_output.put_line(v_QUESTION);
    v_DATA := '&v_ENTERED';
    dbms_output.put_line('Entered value:'||v_DATA);
    END;
    Result:
    Enter value for v_entered: 28-08-05
    ENTER PO DATE
    Entered value:28-08-05
    PL/SQL procedure successfully completed.
    SQL>
    Message was edited by:
    user448557

  • Read URL parameters

    Hi guys!
    Is posible read url parameters from a WD for Java?
    e.g.: http://server/webdynpro/dispatcher/local/TestApp/TestApp?SAPtestId=1&myVariable=123
    Then read value 123 from some code inside WD (controller, view, whatever).
    Thanks!

    Hi,
    You can do it, see this reference: Pass URL parameters to SAP Portal from an external application
    Best regards

  • How to read configuration data from an xml file (not web.xml)?

    Hi,
    I want to separate the application specific configuration parameters in a separate xml file and read them as and when they are needed? I know that I can use the wb.xml but I want to separate them in a different xml file because I don't want the web.xml file to be played around later after deployment. If any change is needed then it should be done in the application-config.xml.
    How can I read the parameters from this xml file in my jsp code and also what should be the location of this file if I have
    ../webapps/Root/application
    directoty structure ?
    Any help is greatly appreciated.

    can you give an example of a property file and also
    it is loaded in the jsp ?Hmm... loading properties in a JSP is not a very good idea. You should do it in a separate class, rather than mixing the logic with the display logic.
    Properties properties = new Properties();
    properties.load(UtilClass.class.getResourceAsStream("config.properties"));
    // Add a try - catch block around the load
    // for IOException...

  • How to read parameters from request object

    We want to read parameters from GET request
    but whenever we are calling GET_URI_PARAMETER from the REQUEST we don't see any results
    url is like
    http://coevi116.wdf.sap.corp:8000/sap(bD1lbiZjPTEwMA==)/bc/bsp/sap/z_test_json/jsontest.htm?PARAM=ABC
    But reading PARAM is not givng value of ABC
    onCreate and onRequest wherever we put the code it is not reading the value
    Can anyone please help and share some expert opinion

    in jsontest.htm page create a page attribute named "PARAM" with auto check box checked and check in oninitialization, this will carry the value passed to param from url.

  • Reading Variable from JSP and pass to servlet

    hello
    i have a servlet page which transfers data to a jsp page. The jsp displays the data only. Now i want to read a string from a jsp page and then pass it to the servlet.
    How can i do it?
    thnks

    hello
    this is working fine: out.println("<input
    type=\"hidden\" name=\"bookId\" value=\"+bookId+\"
    size=\"25\">") ;
    works fine
    thnksI guess you didn't understand me. Look to the difference between the following two statements:
    out.println("<input type=\"hidden\" name=\"bookId\" value=\"+bookId+\" size=\"25\">") ;and
    out.println("<input type=\"hidden\" name=\"bookId\" value=\""+bookId+"\" size=\"25\">") ;In the first you're handling the bookId variable as String, in the second it will use the actual value of bookId.

  • How to read a string from file & assign the val to a variable in batch file

    Hi,
    How to read a string from a file and assign the value to a variable then return the value to the screen in windows batch file?
    Any suggestions?
    thanks.

    Unless this is a homework question then I don't see the purpose of doing this, but....
    You should be looking a the supplied package utl_file to get the string out of the file, dbms_output to display the string and then google windows batch/command files calling sqlplus to execute your program.
    Andre

Maybe you are looking for

  • IPhoto not saving new imports

    Suddenly when opening or trying to import photos I'm getting a new (actually my first) error message: An error occurred while trying to save your photo library. Some recent changes may be lost. Make sure your hard disk has enough space and that iPhot

  • Please send some Important Quetions from REPORTS

    i have a interview in TCS Please send some Important Quetions from REPORTS,SMARTFORMS,ALE/IDOC's

  • My Office 2004 docs from leopard when sent to PC are the size of postage stamps

    I recently upgraded to Leopard on my iMac. I have Office 2004. No problems previously. Now when I send my 2004 Word docs to a PC when they are opened they are the size of postage stamps - help!

  • Some captions missing from slideshow

    Hi gang, I have created a photo page in iWeb '08. When I publish it, it looks fine when viewed on the web browser (in this case Safari). However, when I click to view the slideshow, as the slideshow plays in the pop-up window, some of the pics are mi

  • Pop up messages

    How do I get rid of this message that  keeps popping up on certain apps saying Connect to iTunes to use push notifications?