Interfacing LabVIEW 7 Express with VC

My colleague has developed a Data aquisation software using VC++. I am required to build the user interface for it. How is it possible to call VC exe using LabVIEW 7. How can I pass parameters between the two. Please give some suggestions.

Preeti_India wrote:
> My colleague has developed a Data aquisation software using VC++. I am
> required to build the user interface for it. How is it possible to
> call VC exe using LabVIEW 7. How can I pass parameters between the
> two. Please give some suggestions.
A better approach in many ways although more elaborate in the beginning
is to have the software being compiled as DLL and call it as such.
Or have an Active X interface added to the VC++ app (not something I
would recommend but your mileage may be different) and access it through
that.
System Exec.vi is fine to call external applications but passing
parameters back and forth does get a little cumbersome in this way.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Interface labview program with real appliances

    How do i interface labview program with real life appliances. For example: interface with light bulb

    I suppose you could also find some kind of adapter to turn it into an IP based appliance and you could control it through the ethernet.  Or you could wait a few decades and interface LabVIEW 2059 with your cranial implant to directly control your light bulb. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Interfacing LabVIEW 2009 with PIC microcontrolller

    I would like to quickly setup an asynchronous duplex RS232 (or USB) communication between LabVIEW 2009 and a PIC16F8xx. Before I get stuck in, does anyone know if there are any reference code templates or examples available for either LabVIEW, assembly or c code (using the CCS compiler) to speed up the development?  
    Many thanks
    Graham 

    grahamwebb wrote:
    Hi, It's a fairly generic application (which is why I started a new thread!) My PIC is generating a PWM output, I'd like LabVIEW to send commands to modify the pulse shape. My commands are simply one character (a, f or p) to represent the parameter to change, followed by an int. So f100 is change frequency to 100. I've sorted the write functions out using an event structure, but I'd like to now add a serial read so I can echo back from the PIC to help with the assembly code writing. I haven't used event structures much with VISA functions. I'd like an interrupt style read.
    I could not run your code, since a VI is missing and I do not have your hardware. But that is OK. You had some labview no-no that I correct in your code. Also be careful with using globals and locals in your code. They may slow down your code. Global and locale variables are not pointers but a copy of the original data. A few global/locale with short strings and some values will not hurt you much. But large arrays and complex clusters will do.
    Also have you considered using C and not assembly code. It will make things simpler for you. The last thing is KISS (Keep It Simple Stupid). That is a phrase I learned in my time in the army. What is mean is that then you try to do things in a fancy but overcomplicated way. You will quite often fail. As an example if you send the code f100 to your microcontroller you must decode the 100 value into binary number. So why not send the vales as one or more binary bytes that the microcontroller do understand directly. But beware of the endian format.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    serial comms with PIC[2].vi ‏19 KB

  • Error occur while interface labview with power and harmonic analyser

    hello,
            i done a project to test coreloss of motor. i our project we met some some trouble while interfacing labview software with navonip power and harmonic analyser through rs 232 communiation.i generate some error msg when i am using *IDHN? command to communicate with this hardware......  so i need ur technical support

    You will have to supply more info on the error(s) you encounter. Is there a command that does work as expected?
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • Interfacing C# code with SolidWorks via Softmotion

    Hi folks,
    I need to interface some C# code with a Solidworks model via LabVIEW/Softmotion, and in the interests of not going up too many blind alleys was wondering if anyone can give me any architectural pointers.
    I can interface LabVIEW itself with the code either as a DLL or a TCP/IP server, my preference is for a DLL but its not vital. What I'm wondering is if Softmotion will still interface with SOlidworks if I compile the LabVIEW project as a DLL? The C# app will be sending control commands to the Solidworks model, and receiving confirmation messages (e.g. prox switch open/closed) back, so the TCP/IP option seems to make more sense from the real-time control perspective.
    ANy pointers would be much appreciated.
    Thanks!

    Hi,
    Sorry in advance for not being particularly helpful, but I'm afraid you just have to try to build a DLL with SoftMotion and try interfacing it with SolidWorks to see if it works. I wasn't able to find any information from previous service requests or any other internal literature on this kind of integration; however, I don't think there would be any reasons why it wouldn't work.
    Regards,
    Imtiaz Chowdhury
    Head of Digital Technologies
    Brand786

  • Mobilepre audio interface not working with logic express 8

    I have been using an M-AUDIO usb interface for garageband for the last year,i recently installed logic express 8 and i just can't get any sound whilst trying to record,logic displays a signal in the channel strip but no sound comes from my monitors,only when i plug the ear phones into the interface can i hear what i'm recording.I've tried every trouble shooting option in my apple pro training book like monitoring and audio preferences.I've contacted M-AUDIO but they just put me on hold as if there really busy!!!
    in the end M-audio emailed me and blamed logic,they told me to contact apple,W@**ERS!!
    I'm new to this apple discussions business and hope someone can help!!
    ps the interface works fine with garageband
    cheers c

    callummccall wrote:
    I have been using an M-AUDIO usb interface for garageband for the last year,i recently installed logic express 8 and i just can't get any sound whilst trying to record,logic displays a signal in the channel strip but no sound comes from my monitors,only when i plug the ear phones into the interface can i hear what i'm recording.
    Welcome to the wonderful world of M-Audio!!! Now, what you are doing is perfectly NORMAL. You need to hook up speakers to your audio interface. Where the little diagram says so:
    http://www.m-audio.com/layout/imgview.php?i=/images/en/connectivity/big/mobilepr eusbcd779px.gif
    See? The reason this is so, is because when you are using this interface, you are BOTH using the inputs AND outputs. Logic always works like this, it is a requirement to use "a full-duplex sound card" which means a sound card that has inputs and outputs.
    I've tried every trouble shooting option in my apple pro training book like monitoring and
    audio preferences.I've contacted M-AUDIO but they just put me on hold as if there really busy!!!
    in the end M-audio emailed me and blamed logic,they told me to contact apple,W@**ERS!!
    I'm new to this apple discussions business and hope someone can help!!
    ps the interface works fine with garageband
    cheers c
    M-audio blaming everyone else is not new, however, your "issue" is a user issue, not a gear issue.
    Cheers

  • Interface labview with the test board to identify opamp pins automatically

    is it possible to interface LABVIEW to a test board in such a way that the input, output pins of an op amp (8, 10, 14, 16 pin opamps) are identified automatically when DUT is placed in the socket

    pratheek wrote:
    Thanks alot. pin numbers are variable. I need to test the functional and test parameters for 8, 10, 14, 16 pin opamps.
    The first thing you need to do is ensure that +VCC, -VCC, and GND are always connected to the correct pins.  I think the best way to do this is have preset wire options that you manually select with some switches (reduces the complexity of the LabVIEW controlled wire switching).
    pratheek wrote:
    The desired out put for my project is to check the functionality of the opamps
    I understand the end goal, but what you need for first specity is the test sequence.
    1. Identify In/Out pins & number of op-amps.  What is the sequence for this??? What voltages do you apply to the various pins and what is your desired outcome???  How do you identify each pin as in/out and whether they are for OpAmp1, OpAmp2, etc.  Since this sequence will inevitabely apply voltage to the output pins, make sure your test sequence doesn't damage the chips.
    2. After identfying each op-amp, what is the test sequence for evaluate its "functionality"??  Do you wish to evaluate the gain for various resistor combinations in an external circuit????
    3. Now with your test sequences outlined, you can finally begin on getting LabVIEW to implement these functions.  I'd use the DAQ digital outputs to a decoder (3-to-8 or 4-to-16).  Use the outputs of the decoder to control switches (these switches control the connections between a second DAQ and the test pins).  A third DAQ may even be necessary to control the selection of various test resistors.  Keep in mind that each of these switches will add resistance to the path so your evaluation must be made measuring the voltages at the op-amp pins (not using the sourced voltage values).  Planning the full measurement sequence and requirements before you start will not only help guide your program's development but it will tell you which DAQs are useful and how many you will need.
    This is quite an undertaking and we can't really provide any help on the LabVIEW end until you have a full write up of what you want to happen and how (step-by-step details).  Once you have that, start thinking about the sequence of events your code will have to follow to make it happen, then come back for guidance/help.

  • Is there a way to interface Labview Web GUI with Fusion Charts?

    Is there a way to interface Labview Web GUI with Fusion Charts for dynamic web presentation?
    http://www.fusioncharts.com/

    I have a ballistics program which our clients can use (see attached).  Basically there is a series of Cascading Combo boxes that the user must select for Bullet Manufacturer, Caliber, and Bullet ID.  The program then goes out to the relevant data file (.CSV) and provides ballistic inputs for the selected projectile.  The user is also required to enter in additional data, such as Sight Height, LOS Range, Temp, etc..  Once all data is input, the user either hits the Calculate Button or the Tab (I'm using Event Structures and I now realize this is an issue for Web UI Builder), and the data gets passed to a MathScript which then crunches numbers and spits output to fill a table and a series of Graphs based upon the tablulated data (if so desired).
    I was hoping to use Labivew for the first two parts ( Data Collection and Number Crunching) and use something like Fusion Charts for the presentation.  I tried learning Ruby on Rails.  I was successful with the Ruby part (basically the Mathscript portion) but really got hung up on the Rails section and the need for something like JSON to interface with it.  Could not find a useful source of information which really showed you how to combine the two effectively. 
    Attachments:
    Ballistics1.JPG ‏144 KB
    Ballistics2.JPG ‏265 KB

  • Interfacing of hardware with labview

    can u pls tell me the steps for interfacing a hardware wiht labview........ i mean to say the detailed descrpition....... for ex: interfacing keithley sourcemeter with labview....... pls do give me a detailed steps of interfacing

    Start by downloading the LabVIEW driver, which is available in http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=7117
    You should also make sure that the VISA driver is installed.  It should have been part of your LabVIEW installation.
    Or a shortcut location from the Keithley website is here:
    http://www.keithley.com/support/data?asset=51950
    Message Edited by Ray.R on 04-11-2010 05:42 PM

  • Interfacing labview 8.5 with spectrum analyzer

    can anyone tell me how to interface labview 8.5 with spectrum analyzer.............i am beginner ...i don't know much about labview
    Solved!
    Go to Solution.

    Why don't you tell us what you do know so we can better help you out?  Do you know how to hook up the spectrum analyzer?  Make/model of the spectrum analyzer?  Do you know how to use it manually?  Do you know what a spectrum analyzer is for?
    I know some of these questions might sound almost insulting, but we have to establish a baseline so we know how much help you need, and how much detail to include. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Digital outs in Logic Express with 828 or 002 rack

    Can someone tell me if it is possible to use the digital ins and outs of either my MOTU 828 or DIgi 002 rack with LE? It's no where as easy as Pro tools or DP!!

    Forgive my naivety... when you say "digital outs" are you talking about SPDIF? Does this mean I can't run Logic Express with an interface connected to the SPDIFs on my G5? Only Pro? Or am I off the mark?
    Thanks!

  • I need to interface SCC-TC02 with help of SC 2345 and PCI-6024E DAQ Card.please tell me the procedure and if possible send me the program

    Dear Friends,
               I need to interface SCC-TC02 with help of SC 2345 and PCI-6024E DAQ Card.But i can not understand example program.please send me the procedure to interface these three componnets and if possible send me the program.
    With Regards,
    Eswaramoorthy K V

    nce of nth triggering pulse. i need to know when the when the ist trigger occurs and when the nth trigger occurs . please tell me how to to . what i know is that event triggering has to be done with start and stop trigger. please tell me how it has to doneSuresh;
    What you will need to do is to set up a digital start and stop triggered Analog Input acquisition. Then you will need to have a counter set as event counter, having the specific number of pulses you need configured as the preset value, configured to count down, and generating a pulse after the terminal count has been reached. That counter output will be the stop trigger of the Analog Input operation. In summary, you will have the external pulse being both the digital trigger of the Analog Input operation and the source pin of the counter, and the counter output being the digital stop signal for the analog input.
    I'm attaching a Labview VI that does the start and stop analog input acquisition. You will need to include the counter part and set the stop s
    ignal to be the counter output.
    Hope this helps.
    Filipe
    Attachments:
    AI_Start-Stop_D-Trig.zip ‏25 KB

  • Running LabVIEW Express Student Edition.

    Purchased LabVIEW Express Student Edition, installed the software that
    comes with the book. Application does not run, error message is
    "attribute on localhost have been configured improperly". How do I
    resolve this problem, any solutions

    Hello,
    I have not seen this error before, can you attach a screenshot and/or perhaps an error number that accompanied the problem?  In the mean time, here are a couple documents providing solutions to problems others have had with the student edition:
    http://digital.ni.com/public.nsf/websearch/3AC8A893446873E686256B22006C2DEF?OpenDocument
    http://digital.ni.com/public.nsf/websearch/98DFF2B564902B9886256FB1004E448F?OpenDocument
    Also see the related links in the pages linked above.
    Best Regards, and I look forward to hearing back from you!
    JLS
    Best,
    JLS
    Sixclear

  • How to Interface TSop sensor With Labview2011 & ArduinoMega2560.

    Good morning reader,
    I want to control my home automation system by using a TV remote control with the help of Labview2011 with hardware interfacing media as Arduino Mega2560 (R3).
    Kindly provide me support regarding it.
    Thank you.

    Hi Danl, 
    We don't have anything on that protocol. However, it appears that it requires a dedicated physical interface to integrate with a PC. I assume that there is a software api for any PC hardware you need to get. LabVIEW should be able to call into that api. 
    Alternatey there are hardware modules for PLCs. If you are using a PLC, the PLC can act as a repeater for the sensor though an IO-Link module and communicate with LV through a protocol we do support. 
    Jesse Dennis
    Design Engineer
    Erdos Miller

  • Interface LabVIEW and matlab

    Hello, I want to interface LabVIEW with MATLAB using TCP/IP for data transfer. Can anyone, please give me a step-by-step instruction to how to do this? Or else can you point out where I can get them? Thanks.
    Solved!
    Go to Solution.

    Hi Sanchu,
    As TCP/IP is such a generic protocol then you should be able to fairly easily build TCP/IP interfaces for both your LabVIEW and Matlab code and transfer data using ASCII, or variants etc depending on what sort of data you are trying to transfer. I'm not too familiar with Matlab, but on the LabVIEW end there are some very good TCP/IP server and client examples that ship with LabVIEW.
    Another option that you may want to consider, and the reason I'm answering this is that I've recently done a project whereby we took some legacy Matlab code which we wanted to transpose into LabVIEW so that we could then fully automate a test system we have using TestStand. Much of it we were able to derive LabVIEW equivalent functions, but for some functions where LabVIEW didn't appear to have a suitable equivalent, or where it was simply more efficient, we simply copy and pasted the Matlab code into either in the first instance MathScript nodes (not dependant on Matlab) or Matlab script nodes (which will hopefully return to at a future date to fully transpose over to LabVIEW so that we are no longer dependant on a Matlab licence).
    In both instances the relative ease of doing this was very impressive, and we were able to wrap huge amounts of Matlab code within LabVIEW with very few issues. As an idea, have you considered wrapping your Matlab functionality in this way and then keeping all the TCP/IP client and server comms within LabVIEW?
    N.B. if you haven't found it search the palette for 'Matlab Script'
    Best of luck,
    David
    David Clark
    CLA | CTA
    CLA Design Ltd
    Hampshire, England

  • Integation of Unity Express with CME

    When  i integate unity express with CME,on the unity express Admin page when configuring CME
    what is
    1.hostname
    2.Web User Name
    3.Password.
    should I enter these parameters to integate?
    thanks
    kavi

    Following are the commands I used on CME for the integration
    interface Integrated-Service-Engine0/0
    ip unnumbered Loopback1
    service-module ip address 10.1.9.1 255.255.255.252
    service-module ip default-gateway 10.1.9.2
    ip route 10.1.9.1 255.255.255.255 Integrated-Service-Engine0/0
    interface Loopback1
    ip address 10.1.9.2 255.255.255.252
    telephony-service
    srst mode auto-provision all
    srst ephone template 1
    srst dn template 1
    srst dn line-mode octo
    max-ephones 10
    max-dn 10
    ip source-address 10.1.4.1 port 2000
    system message CME1861E
    voicemail 2000
    max-conferences 4 gain -6
    web admin system name cisco password cisco
    transfer-system full-consult
    create cnf-files version-stamp 7960 Jan 02 2013 17:50:08
    transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
    dial-peer voice 300 voip
    destination-pattern 2000
    b2bua
    session protocol sipv2
    session target ipv4:10.1.9.1
    dtmf-relay rtp-nte
    Following are the commands used on unity express
    ccn application voicemail aa
    description "voicemail"
    enabled
    maxsessions 6
    script "voicebrowser.aef"
    parameter "uri" "http://localhost/voicemail/vxmlscripts/login.vxml"
    parameter "logoutUri" "http://localhost/voicemail/vxmlscripts/mbxLogout.jsp"
    end application
    ccn trigger sip phonenumber 2000
    application "voicemail"
    enabled
    locale "en_US"
    maxsessions 6
    end trigger
    When Pressing the message button on the phone,its not routing to voicemail.instead there is a reorder tone.what could be the issu?

Maybe you are looking for