Interacting with labview with my own developed scritpting language.

Hi all,
I am Divya.
My aim :
I need to develop a programing language to interact with Labview such that the script should call labview front panel, execute the given task and front panel shold give back the result to the script.
I want to achieve this by using my own developed programing language (Valid reasons are there why not to use already exixting scripts which I dont want to discuss here as it is not relevant).
My idea :
As developing a new scripting language is a big task I am planning to start with Python scripting. I am trying to interact with labview using python script for now.
My problem :
As I am fresher to this field I dont know the possible ways to interact with Labview using python scripting. (Except using Labpython). If there is any way to achieve this please guide me on this.
Thanks in advance

Hi Dennis_Knutson
I am doing the same as the original question I have asked. As I have mentioned in my question I am starting off with a small addition (or any basic mathematical operation) function using Python script. 
And yes the basic idea is to call Labview from script not the vice versa. To achieve this I need to pass the parameters from the python script to Labview and output from Labview to Python. For this purpose I am developing a small VI which vil take Python commands and carry on furthur operations.
I can explain with an example.
I have a command in python as sum=x+y. I want to take this command and send 'x' to a numeric control, 'y' to another numeric control and 'sum' to a numeric indicator and at the same time back to script. In between numeric controls 'x' and 'y' I need to carry out '+' operation. Say if the command is sum=x-y I need to carry out '-' operation(Where identifying '+' or '-' or any other operation is the job of labview). 
I have developed a VI which can take the command from python and give it to Labview as a string. I need to know how to bifurcate that string to numeric controls, operands etc.

Similar Messages

  • Way to communicat​e with labview with my own scripting language

    Hi guys
     My objective is to design my own scripting language that can communicate(sending inputs and receiving outputs) with labView for my project. I do have little knowledge about labView . But I dont have any idea how to design scripting language or where to start learning about it since i dont have any computer science background. Can some one guide me about this?? 
    Thanks in advance

    Why do you want to design your own scripting language?  That wheel has already been invented.  There's a free Python toolkit and a Lua toolkit that you can buy to do scripting in LabVIEW.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Interfacing robot with labview with SBRIO 9631

    i am working on a project of AUTOMATED GUIDED VEHICLE (PEOPLE MOVER)... i  need help regarding programming the vehicle for its autonomous operation on a pre planned path, which we have decided based on the  application... we have to control two DC motors, one servo for steering, and there should be obstacle avoidance .. if any obstacle there the vehicle should stop until the path is cleared , and it has to stop in the respective pre planned stations,which is at certain distances , for certain time delay  (say 10 sec- to drop the peple in those stations) . based on the people's input who's travelling on the vehicle, we have to stop the vehicle in the stations .. we have to get input from the user onborad , by providing physical key pads.
    in our college we have sbrio 9631, can we use this for programming ... and if so how to start the work.. ? it would be great if anyone helps to start this project...

    Duplicate post.

  • Interfacing Beckhoff EK1100 with LabVIEW without using any other hardware

    Hello All,
    I'm new to Beckhoff & I have EK1100 with EL2809 & EL3054. I want to interface with EK1100 with LabVIEW with PXI or cRio or any other hardware.
    Is there anyone who can explain how?
    I'm using the following sofwares & drivers.
    LabVIEW2012
    EtherCAT Acquisition Driver
    EtherCAT Acquisition Library for LabVIEW
    TwinCAT ADS Library v3.0.3
    Please suggest at the earliest.
    Regards'
    Love Diwan |+91-9810013576

    cross post
    Jesse Dennis
    Design Engineer
    Erdos Miller

  • Custom device / I am trying to use a vehicle controller model developed in LabVIEW with compactRIO (cRIO-9024)

    Now I have developed a vehile controller model with LabVIEW so as to run on VxWorks operating system. ( compactRIO cRIO-9024)
    And I converted a controller model of labview into *.lvmodel in order to use it as I did with simulink models. 
    However, converted *.lvmodel was not supported for VxWorks operating system. so after searching for this, I found out that I have to use a custom device. 
    I am now studying the custom device, but it looks diffcult because I dont have much experience in real-time system.
    Here are my questions.
    1. Simulation model in VeriStand
    Should I convert a labview controller model into *.lvmodel even if I use the custom device in order to run on VxWorks operating system? 
    If not, what should I do after building a controller model with labview?
    2. Operating system
    It is silly question. anyway, as long as I run a controller model on compactRIO cRIO-9024, the operating system always has to be set to VxWorks. Is it right?
    3. Custom device
    This is the most difficult thing. I dont know even what to do. What functions should be inside a custom device template tool? The controller model send output signals to a vehicle model, and receive input signals from a vehicle model.
    Thank you in advance. 
    Hognjun

    Hi,
    You should post this on the Veristand Forum.
    http://forums.ni.com/t5/NI-VeriStand/bd-p/440
    Ravi

  • Who can i make a set-reset flip-flop with labview interacting with for cycle outputs

    Who can i make a set-reset flip-flop with labview interacting with for cycle outputs

    Are you wanting a VI that emulates a RS filp flop, or do you have a question about using an actual one?
    You can make a RS flip flop by knowing the 4 states:
    R=0, S=0, Q=no change
    R=0, S=1, Q=1
    R=1, S=0, Q=0
    R=1, S=1, Q=?(invalid condition)
    I have attached a RS flip flop VI in LV version 6.0
    dhuff
    Attachments:
    RS_Flip_Flop.vi ‏34 KB

  • Is it possible to view VIs remotely on windows 7 if VI was built with LabView 8.2?

    So I know i'm probably dealing with software compatibility issues here, BUT, I wanted to make sure every option was exhausted before considering the idea of upgrades.  
    Im using LabView full development system 8.2 on windows XP 32bit os.  Currently, I run into no issues when controling or building VIs on my computer.  Problems do occur when trying to control VIs on a remote computer with windows 7. That computer has run-time 8.2.1 installed on it.  For the most part it works best to just view the VIs, and not interact or control too much.  More specifically, the VI will freeze once interacting with a control that is intended to pop up a two button dialogue box.  I'm sure there are a lot more issues with using run-time 8.2.1 on a windows 7 computer; that one in particular is just the only one i've experienced.  
    In all efforts to avoid what could eventually be an unavoidable situation where an upgrade is necessary, is there a way to remotely control (on windows 7) a VI front panel that was built with labview 8.2?

    Thank you for the response.  Just to preface, I am fairly new to LabView so pardon my potentially "stupid" questions.  Here's my process in a nut shell:  VI programs are created on our server computer and then published for web with the "web publishing tool...".  The html page created is then put on a main page with all other created VIs and are then viewed on other computers that are part of the network via ip address.  
    I was under the impression the LabView run-time engine enabled remote computers to view and control these VIs.  Could be wrong?  After downloading and installing run-time 8.2.1 (since vi's were created with labview 8.2), those computers are able to enter the ip address and navigate to the main page to control the web published vi's.  The issue is with the computer that has windows 7.  I know run-time 8.2.1 isn't necessarily compatible with windows 7, but it does seem to run the vi on a pretty minimal level.  I run into problems on that computer when hitting particular controls that are wired to be more complex than just a simple boolean.
    Just to provide a visual, I attached an image of one of the scenarios where it will freeze up on the windows 7 computer.  This is how the VI should normally function; however, before the dialogue box even pops up after clicking a valve control, it freezes.  
    I didn't even consider VNC or Remote Desktop up to this point.  Thank you for that idea.  I'll definitely look into that as an alternative.

  • Is it possible to get 2-ch signals from TDS2012 oscilloscope at the same time with LabVIEW "7.0"?

    Hi, everyone.
    I've been trying to get the signals from 2-ch of Tektronix TDS2012 oscilloscope at the same time using IVI connection with LabVIEW "7.0"
    I've already searched this developer zone for the answer.
    I've tried the famous example: "IviScope - Acq Dual Wfm Edge Triggered.vi"
    and it gave me the error message like:
    Error -1074110451 occurred at IviScope Initialize With Options.vi
    Possible reason(s):
    Driver Status:  (Hex 0xBFFA600D) Primary Error: (Hex 0xBFFA600D) The Config Server module is not present on the system.
    I think I've installed all~ the required softwares for IVI. For example, ICP 2.2, IVI engine 2.0.46, and tktds1k2k ivi (instrument driver for tds2012, in fact this one is for LabVIEW "7.1"... :-P)
    TDS2012 and my computer is connected through HPIB(GPIB) and it is shown on the MAX (a GPIB instrument as well as an IVI hardware asset)
    I've tried GPIB connection but it gives me asynchronous signals...
    Is it possible to get 2 signals at the same time with LabVIEW 7.0(not 7.1 or higher) by any means?
    What in the earth is the "Config Server" in this case?
    I don't need to sticking to IVI and any method to achieve my goal will be welcome.
    Could anyone give me the hint for this problem, plz?

    I think your problem is that the instrument specific driver is version 7.1 and you are using the class driver with 7.0. You can create your own 7.0 driver by downloading the LabWindows driver and using the Import CVI Instrument Driver under the Tools>Instrumentation menu.
    Since you don't seem to have a good reason to use IVI, why don't you try the native LabVIEW driver at http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E9139659CE034080020E748.... I believe you have all of the functions to setup each channel and then when you trigger the scope, both channels will be captured. You would then transfer each waveform separately. The data is always read sequentially but that's not important as long as both channels are triggered at the same time.

  • I have got a 1500 Kinetic Systems CAMAC crate and 3922 controller. I want to use it with LabView inst

    alled in PCI-bus IBM PC, which does not have GPIB interface. Which way would be easier for developing my own instrument driver: a new GPIB controller + interface or 2915 Kinetic Sys. PCI-bus in-slot interface? Can the latter interface be used with LabView?
    Many thanks.
    Victor. I have got a 1500 Kinetic Systems CAMAC crate and 3932 controller. I want to use it with LabView installed in PCI-bus IBM PC, which does not have GPIB interface. Which way would be easier for developing my own instrument driver: a new GPIB controller + interface or 2915 Kinetic Sys. PCI-bus in-slot interface? Thanks

    alled in PCI-bus IBM PC, which does not have GPIB interface. Which way would be easier for developing my own instrument driver: a new GPIB controller + interface or 2915 Kinetic Sys. PCI-bus in-slot interface? Can the latter interface be used with LabView?Victor,
    I couldn't find an Instrument Driver for the 3932 crate controler. There is a driver for the 3988: http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/045f8392cc4d1b01862568ab005fbb49?OpenDocument
    If you look at the driver it isn't too complex. Well ... actaully there are certain differences when using the 3988 GPIB controller that the driver takes care of that relate to correctly passing commands (FAN).
    If the 3922 controller is similar then maybe you can use the 3988 driver and modify it to meet your needs. I'm not familar with the 2915 Kinetic system so I'm not sure what would be easier.
    If you have a GPIB board, then you could try using the 3988 driver with your 3922 controller and see if you can modify the driver to get things to work.
    I
    've only used the 3988 and that was quite three years ago but it might be worth a try.
    Best of luck,
    Kamran - NI

  • How come you can not use more than 126GB of a 1.5TB diskdrive with LabVIEW Real Time?

    How come you can not use more than 126GB of a 1.5TB diskdrive with LabVIEW Real Time?
    This is only 8.3% of the available disk drive space!
    http://digital.ni.com/public.nsf/allkb/E7E2F5657B6​026358625750B007201A6?OpenDocument
    National Instrument's solution is either reformat you drive to less than 126GB or replace the drive with one less than that size.
    Please NI, tell me you are going to fix your LabVIEW Real Time soon, and that we won't have to wait for LabVIEW RT 9.2.1 in 2011 for this one to be fixed.
    http://upload.wikimedia.org/wikipedia/commons/9/90​/Hard_drive_capacity_over_time.svg
    Drives as large as 126GB or more have been around since about mid 2002.  That's about 7 Years now and LabVIEW Real Time STILL can't use drives larger that 126GB!  Please NI.  Do something.
    We deserve fixes to the old versions of LabVIEW RT.  How about updates to LabVIEW RT.  Such as 7.0.2, 7.1.2, 7.6.2, 8.0.2, 8.2.2, 8.6.2.
    We don't need new features or versions of LabVIEW RT such as 9.0 until we have some of bugs fixed in the existing versions. 
    Kevin. 
    Message Edited by kmcdevitt on 05-29-2009 03:39 PM
    Solved!
    Go to Solution.

    Coq rouge wrote:
    NI is not making the Real Time OS in house. I do not remember which firm that is making it. Anyway you are allowed to use a hard drive that has been partitioned. And 126GB is some space is it not? I remember Bill Gates declared one time that 640Kb ram should be more than enough for any PC application also in the future 
    Coq Rouge (formerly t06afre),
    The RealTime OS is an NI Product that is purchased from NI.
    NI may or may not outsource design, developement, or manufacturing of the products that it sells under its own Company name.
    For this reason I would be concerned if I were a PXI Embedded Controller designer/developer in the United States. 
    Yes, 126GB is some space.  I see that there are now 2TB drives available.  126GB would be 6.3% of a new 2TB drive.  Should we all be happy with being able to use 6.3% of the available drive space.  Moore's Law seams to be alive and well.  Drives larger than 126GB have been readily available for 5 or 6 Years.  This should not be a surprise to NI.  Why don't they do something about it.
    Thanks for the trivia on Bill Gates.  I must have missed that one since I don't try to keep up with Microsoft.  I believe that he is a wonderful person and he and his family are doing wonders for the world in their "retirement".   The world needs more like him.
    What I do remember is Steve Jobs telling us that we would never need more that 128MB and that we would never to need to do anymore software development because everything was already in the "ToolBox".
    McKevin.  

  • Warner/superior electric's SS2000PCi motion controller interfacing with LabVIEW 6i

    Sir,
    In our application, we are controlling the movement of X-Y arm on the X-Y table. For this we are using superior electric products:
    (a) Slo-Syn SS2000PCi Programmable Step Motor Controller
    (b) MD808 Motor Drive
    We are using two such controllers and motor drives to drive two 2 Amps Sanyo Denki Stepper motors: one each along X-axis and Y-axis. Along with the arm movement a data acquisition also has to be carried out. So, the motion control and Data Acquisition has to be synchronized by means of software. The problem now is to program the controller. Though MCPI Version 4.41 is there, we want to program the controller in LabVIEW 6i so that we can synch
    ronize both motion control and Data Acquisition.There is no driver which is compatible to LabVIEW 6i.
    Is there any 32-bit DLLs for this controller? If any one has these dll's please let me know. My E-mail ID: [email protected]
    So that i can call these DLLs in LabVIEW 6i and program it.Or else send me at least the detailed low level command sets of the controller in pdf format so that i can develop our own drivers.
    Regards,
    Nagendra

    Nagendra,
    Unfortunately, I was unable to find any helpful resources for you based on a cursory web search. I recommend that you contact the manufacturer of the hardware and ask them if they have a driver (DLL) that you can use to interface with LabVIEW.
    Good luck with your application, and have a good day.
    Sincerely,
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Building classes with labview (version 8+).

    Just wondering if it is possible to build classes with labview and how this applies, starting a new project and want to design the software to be easily maintained.  I would like to be able to Inherit vi modules and possibly override portions of the inherited vi.  Also if anyone has any experience trying to impliment OOD features and can provide any feedback.  In addition are there any suggested standards to adhere to for labview development that might increase readability.  thanks Paul.

    svt4cobra6 wrote:
    Just wondering if it is possible to build classes with labview and how this applies, starting a new project and want to design the software to be easily maintained.  I would like to be able to Inherit vi modules and possibly override portions of the inherited vi.  Also if anyone has any experience trying to impliment OOD features and can provide any feedback.  In addition are there any suggested standards to adhere to for labview development that might increase readability.  thanks Paul.
    Come on now! Do you you really think you can get a good answer with such a broad question?
    If you are uisng LabVIEW 8.2 or better then LVOOP is what you want to look into.
    LAVA has a forum devoted to OOP in LV and can be found here. If you are not uisng LVOOP then that site is your best resource for help.
    At this link you will find a document that talks about what went into LVOOP.
    If you are an old time OOP type you will probably be disapointed that the is no "call by refence" (yet) and you will have to "roll-your-own" if you want a design that uses Active Objects.
    I believe there is a style guide built into the LV help.
    Did I cover the main points?
    Ben
    BTW "LVOOP" = LabVIEW Object Oriented Programming and is often pronounced like it is a french word "la-voop".
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Callable VEE with LabView? / Accessing HP Lan gateways?

    Hello,
    We have several years worth of HP VEE code written and are now exploring
    LabView as a new development tool. HP VEE provides something called
    "Callable VEE" which loads a server and allows any program which can
    "access C routines" to call HP VEE's userfunctions. Has anyone had
    experience implementing such a hybrid? Can examples be found anywhere?
    While this is probably not the best solution it would give immediate
    access to a lot of proven code. Are there any better solutions to
    accessing the HP VEE code base?
    Also, there are currently several Lan <--> GPIB gateways installed. Is
    there any way LabView can access these lan-drops to access the test
    equipment installed there?
    Alternatively,
    is it possible to set up a computer with LabView as a
    test site and have others log on to it over the lan and access all local
    resources (serial ports & GPIB devices) remotely (without having to use
    Timbuktu) ? Any examples or ideas would be appreciated.
    Thanks in advance for any help,
    joel

    > We have several years worth of HP VEE code written and are now exploring
    > LabView as a new development tool. HP VEE provides something called
    > "Callable VEE" which loads a server and allows any program which can
    > "access C routines" to call HP VEE's userfunctions. Has anyone had
    > experience implementing such a hybrid? Can examples be found anywhere?
    >
    LV has a node called the Call Library Function Node that can call
    functions within a DLL. If the VEE object looks like a DLL, then
    it should work. I'm not aware of any examples laying around, but
    I do know of organizations that use both; so they might be good
    places to start. I know that JPL uses both.
    > While this is probably not the best solution it would give immediate
    > access to a lot of proven code. Are there any better solutions to
    > accessing the HP VEE code base?
    >
    > Also, there are currently several Lan <--> GPIB gateways installed. Is
    > there any way LabView can access these lan-drops to access the test
    > equipment installed there?
    NI sells an Ethernet-GPIB device that I think is similar. The device
    comes with drivers that make it look just like any other GPIB device
    hooked to the computer. If the LAN/GPIB device has drivers, then it
    should be possible to hook it into LV. It is probably access normally
    through HP-VISA drivers. You might want to search the Knowledge Base
    on the NI web site to see if there are any guiding instructions there
    on whether to use the NI-VISA drivers instead.
    > Alternatively, is it possible to set up a computer with LabView as a
    > test site and have others log on to it over the lan and access all local
    > resources (serial ports & GPIB devices) remotely (without having to use
    > Timbuktu) ? Any examples or ideas would be appreciated.
    >
    It is currently possible to write smallish LV client programs that
    talk to a LV server program to carry out the I/O. The programming
    to do the client server stuff is quite easy using the VI Server.
    It is also possible to write the client in most other tools and
    communicate to LV over DCOM using the VI Server's ActiveX interface.
    The interface publishes a class to the EXE to load VIs and make lots
    of other changes, and another class to a VI that allows for Running,
    printing, and lots of other changes. Remote interaction without
    doing the client/server stuff isn't currently possible, but it was
    demonstrated at NIWeek working in web browsers.
    Greg McKaskle

  • Integrating custom PCIe hardware with LabView

    Hi, I am new to LabView so appologize if question is in the wrong place.
    I have a custom PCIe acquisition card that I want to use in LabView environment to postprocess some data. So far the board has been used successfully with its windows drivers and VS.NET software. What is the process for setting up a device like that in LabView? Can LabView use the COM object windows driver just like a Visual Studio project would? If yes, is there a document that explains how this is done?
    I have worked with NI's own instruments where the driver is provided and seamlessly integrates into the LabView, but I am a bit lost with this custom non NI board.
    Thank you.

    Thanks. I tried searching that site for examples... but this is a board that our company has developed (software defined radio) and I am certain no one has written any drivers for it yet. Thats the problem statement that I am trying to research. What would it take to make the board we designed compatible with LabView. Since this is a Software defined radio platform, LabView offers some useful functions that can be used to postprocess and analyze data captured by our card.
    Ideal goal is to have LabView module capture data from PCIe buffer allowing for further processing (filtering, FFT, demodulation, etc...). I would appreciate if you can direct me to some examples or literature on this topic.
    Thanks,
    Anton

  • Using LabVIEW with MSP430 LaunchPad?

    I was introduced to LabVIEW this year in my senior only high school class EDD(Engineering Design and Development). This year our class decided to compete in the First Tech Challenge for the first time. I'm very good with computers, so I took on the task of being the only programmer. We did very good for our first year, placing 7th out of 35 teams. (Mainly because the autonomous I made in LabVIEW on the bus ride to the competition) I fell in love with LabVIEW mostly because the graphical NXT programming which speeds up the programming process significantly. I'm now hook on LabVIEW and want to do some of my own personal projects. I recently found the MSP430 LaunchPad which comes with both the MSP430G2211IPN14 and the MSP430G2231IPN14. I decided to purchase two of them along with one of their Capacitive Touch BoosterPack which also contains the MSP430G2452IN20. What I was wondering is it possible to both read data values from these microcontrollers and also program them in LabVIEW like the NXT?
    Thanks in advance.
    Solved!
    Go to Solution.

    Congratulations for you and your team mates, and welcome to the LabVIEW community.  I too have a couple of the MSP430 "kits", but haven't had time to start playing with them. My recollection is that they communicate with the development PC via USB. If so there should be a USB communications dll they we may be able to access to communicate with the units. A quick google search on "MSP430 LabVIEW" returns a number of links.
    Good luck, keep checking back, particularly as you have addtional questions. Others may be answering this as well.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

Maybe you are looking for