Interproce​ss Communicat​ion C++ - LabView

Hi,
I have a C++ *.exe file wich is grabbing images with a Matrox framegrabber. This program ist startet via "system exec" from LabView. I want to do a kind of time measurement with this program so i need the exact time when the grabbing of frame starts. At the moment I dont know how long the *.exe file needs to initialize the framegrabber (something about 500-1000ms).
My idea is to start a continous grabbing but start saving the images when another command via LabView will be send to the C++ application. But I don't know how to send this command! It should be a kind of a "wait until key pressed" controlled by LabView. Maybe a global bolean or something like that.
I hope somebody can help me!
(programming with LabView 7.0 and Visual C++ 2003.NET)

Hi,
What
you are looking for is called an “inter-application communication”.
There
are several options to realize it. LabVIEW supports TCP/IP, ActiveX or UDP to
communicate with another application.  So
it’s not as simple as using a “global Boolean”
as you mentioned.
I advise you, to use the LabVIEW
examples which shipped with the NI example finder to get some programs as
reference. Search for keywords like TCP/IP, ActiveX and UDP.
Attached
you’ll find a link to a knowledgebase.
Hope this helps.
How Do I Use LabVIEW to Communicate with Other
Applications?
http://digital.ni.com/public.nsf/allkb/B3959ED76D5​5A9E586256965004D8092?OpenDocument
Regards,
Ulrich
AE NICER

Similar Messages

  • PLC Communicat​ions with Labview

    How do I view and record data from my plc to labview, currently we are using autmation directs DL205 with the 260 processor

    If the DL 205 communicates through the Modbus protocol, you could use the Modbus library. This library consists of a bunch of VIs which can be used for Modbus communication. Think of them as advanced Serial read/write VIs. However, if you are looking into monitoring, datalogging and controlling the registers, then I would recommend the LabVIEW Datalogging and Supervisory Control Module. Using shared variables, you can then easily bind, control and talk to the registers and most of the work is taken away from you.
    If the DL 205 doesn't communicate throught the Modbus protocol, then you would need an OPC server (like the NI Industrial Automation OPC Servers) and the LabVIEW DSC Module. You can then communicate from the LabVIEW DSC Module with the OPC server.
    Message Edited by Adnan Z on 03-15-2007 10:27 AM
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Using existing c code for usb-hid communicat​ion in labview

    Hello,
    I want to write a simple temperatrue logger using labview and a external hardware which communicates over usb-hid. The external hardware uses an ATMEL 90USB162 µC and DS18B20 sensors.
    Link to the hardware:
    http://www.diamex.de/dxshop/USB-Temperatur-Sensor-​Tester-fuer-DS18B20
    The source of a a simple command line tool is available (see attachement), which reads out the temperature value of the connected sensors.
    Is it possible to include this c-code in the labview application to simplify the communication?
    Thanks a lot and best regards,
    Michael
    Solved!
    Go to Solution.
    Attachments:
    CMDLINE.zip ‏17 KB

    I'm not that experienced at this personally (in terms of compiling C code into DLLs), but I believe the process you need to go down to call your C code in LabVIEW is to compile the C code into a DLL which you can then call from LabVIEW using a Call Library Function node (or you can try to use the "Import Shared Library" wizard to automatically generate SubVIs).
    There's more information here:
    http://digital.ni.com/public.nsf/allkb/DCB90714981​A1F148625731E00797C33
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • USB RAW Control Communicat​ion in LabVIEW

    Iam trying to open the zipped file by NI "USB RAW Control Communication in LabVIEW".The VI is attached below.It recognized my raw device in VISA Resource Name.Iam using a pendrive.But while running it shows an error 'VISA:  (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.'I learned this problem from some discussion forums in labview,but can't find a solution.Plz help.Post your valuable suggestions........Also in that example how we will give the request,request type,value,index etc:-.What does it indicates?
    Thanks as kudos only
    Attachments:
    USBRawControl.vi ‏152 KB

    STOP creating multiple posts for your question!
    http://forums.ni.com/t5/LabVIEW/Requirements-to-re​ad-from-a-USB-port/td-p/1959445

  • How do I establish serial communicat​ion using LabView to two stepper motors using a motor controller​?

    I currently use an off the shelf motor controller to run my two stepper motors. It already has integrated a firmware software that sends commands to operate each motor. I would like to create an interface where I can send these commands using LabView. If someone can point me in the right direction I would appreciate it.

    Look at the examples for the serial VISA vi.  Something like Basic serial write and read.vi is a good starting point.
    Have you searched for a LabVIEW driver  at the NI LV driver network?   Asked the vendor?
    If you write your own driver with the serial VISA vis remember to open and configure the port only once at the beginning and close it at the end of your program. 
    Message Edited by Henrik Volkers on 07-13-2009 04:21 PM
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • I am new to the ethernet communicat​ion using labview. I do not have any hardware. I have two laptop i need to send and recieve the data via these 2 laptop using labview. Kindly help me on this.

    i am new to the ethernet communication using labview. I do not have any hardware. I have two laptop i need to send and recieve the data via these 2 laptop using labview. Kindly help me on this.
    Solved!
    Go to Solution.

    Hi thanks for the help.
    Actually i am trying to send 10 sine signals from server pc to client pc. So i will bundle 10 signals in server pc and send it and in client pc i am unbundling it and need to save in TDMS format.
    Till unbundling i was able to do. TDMS format it is saving only last value. I need to save all the values. Kindly help me on same. I am attaching both the VI.
    Attachments:
    Client.vi ‏62 KB
    Server.vi ‏252 KB

  • Comment créer une communicat​ion entre labview et "usb-1208l​s"

    Je viens d'installer le logiciel de "USB-1208LS" sur mon ordinateur mais j'ai envie et j'airéussi à voir des signaux mais seulement j'ai envie de communiquer entre mon logiciel et labview en gros j'ai envie de récupérer ses données sur labview je ne sais pas comment procédé mais je sais quand même qu il est compatible avec labview. Merci!

    Hello,
    You're in the english part of the forum, next time make sure your posting on the french forum.
    To acquire Data from your USB-1208LS device with LabVIEW, you'll need to install the driver API for LabVIEW here:
    ULx for NI LabVIEW
    http://www.mccdaq.com/daq-software/universal-libra​ry-extensions-lv.aspx
    And there a link to learn how to use it with LabVIEW :
    DAQ-Software-Quick-Start
    http://www.mccdaq.com/PDFs/Manuals/DAQ-Software-Qu​ick-Start.pdf (refer to p29)
    And another documentation to implement different functionnality and programming in LabVIEW
    Getting Started with NI LabVIEW Student Training
    http://zone.ni.com/devzone/cda/tut/p/id/7466
    Hope you'll find every information you need
    Best regards
    Victor F. | Application Engineer
    Certified LabVIEW Developer | Certified TestStand Architect
    National Instruments France

  • Enable the Bluetooth stack in vista for communicat​ion in LabVIEW

    hi
    i am finding problems in the detection of the Bluetooth by the LabVIEW. i have searches on it and i need to enable the bluetooth stack.
    how can i enable the bluetooth stack in Vista?
    Somil Gautam
    Think Weird

    hi
    My labVIEW version is 8.6.
    The bluetooth drivers i am using are the ones which i got along with my Bluetooth Dongle. 
    Somil Gautam
    Think Weird

  • Problème communicat​ion interface-​Labview 2012 après mise à jour

    Bonjour,
    Lors de l'installation d'une nouvelle version Labview (2012) sur un PC, la communication entre ce dernier et le logiciel a lieu mais l'interface n'est pas adapté à la nouvelle version. Par conséquent, il est impossible d'enregistrer des valeurs et d'acquérir des données pendant les essais sur l'équipement en question.
    Que dois-je faire  ?
    Pièces jointes :
    Doc1.doc ‏206 KB

    Bonjour Vergini,
    Qu'entendez-vous par l'interface n'est pas adaptée à la nouvelle version ?
    Avez-vous bien réinstallé les drivers/toolkits après avoir installer LabVIEW 2012 ?
    Dans l'attente de votre retour.
    Valentin
    Certified TestStand Architect
    Certified LabVIEW Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • Serial Communicat​ion problem in LabVIEW 7.0

    I recently upgraded my test computer from a 450 Mhz machine to a
    Del 2.8 Ghz Pentium 4processor with 512meg's of ram using Windows 2000 for the operating system running LabVIEW 7.0.
    I use the serial port to communicate with a piece of hardware,
    Rs232, 115200 baud, 8 bits, 2 stop bits. NO hardware or software handshaking
    The hardware is capable of receiving data from the computer at a full 115200 baud up to 65k transfers at a time with no extra delays.
    The problem that the serial data coming from the new Dell computer will send out 2 bytes then waits 2 to 3 milliseconds and sends 2 more bytes.
    I generated a separate serial VI that will jest shove data out the serial port.
    The VI is a VISA configure serial po
    rt, into a while loop that contains 6 VISA Write VI
    And on the backside of the wile loop a VISA close.
    The above VI will generate the serial data stream as stated above
    EXCEPT when I put a PROBE on each of the ERROR OUT of the 6 writes, then the serial port will generate a continuous serial data stream with no millisecond breaks.
    I have changed the FIFO Buffer settings (all the possible combinations) of the serial port in Windows 2000, and that has hade no effect.
    Any help would be greatly appreciated
    James Zumstein
    E-mail [email protected]
    Attachments:
    Serial_Test_1.vi ‏45 KB

    Greetings!
    Serial port commucations problems can be a real joy, can't they? Have you tried communicating with your instrument with Hyperterm? Usually Hyperterm is capable of operating with almost no overhead, so you can see if there's any strange symbols being transmitted that might be holding things up. There might be an extra CR being inserted, or something like that, which will show up as heiroglyphics in Hyperterm. See if all your symbols coming back are valid. This is where I usually start.
    Hope this helps.
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • What communicat​ions protocols does LabView support?

    A customer of mine is using LabView.  He has asked me if I can communicate to it using a PLC.  Either GE Fanuc or Allen-Bradley.  I need to know what methods of communication that LabView has available to talk to these PLC's.

    The short answer is: whatever protocol you want to talk...
    I have developed applications talking to AB stuff, modbus (which will cover most PLCs) and even TI's old proprietry PLC protocol. There are lots of tools for making the connection in lots of ways.
    What are they specifically needing--or do they know yet?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Labview data communicat​ion c borland builder ram memory

    I have data generated by labview and I want it send to borland c++ builder as variable. but I dont want use the hardrive. how can I communicate with C++. the communication must be fast.
    greeting paul

    There are two ways to do this:
    1.Pass the data value or pointer of the data that generated by LabVIEW vi to your c code using "call library function"
    2. Have your C code to call LabVIEW using LabVIEW activeX server and get the data from the vi.
    You can find examples in NI website, search for key words like "call external routine in LabViEW" or "call LabVIEW in C"
    Irene
    [email protected]
    www.hytekautomation.com

  • Communicat​ion via RS232 with a Kollmorgen Servostar 300 using LabView.

    Hello,

    Sorry I am new posting a message here and I post it before I was able to describe my problem.
    I have a Kollmorgen Servostar 300 to control an AKM24F motor and I would like to send the instructions to the controller via RS232 using LabView. I think I had achieved communication from a PC to a Servostar 300 using LabView via the serial port.
    So far I have setup in LabView the configuration of the RS232 (8 bit, no parity, baud rate 38 400), the address of the servostar (ADDR 0), the way the servostar should respond to the host (PROMPT 1) and the error flag (MSG 1), and no error had been detected when I run the program. I should mentioned that after I sent an instruction such as ADDR 0 terminated with a carriage return, I set a delay time of 150 ms, then I read the amount of bytes that are in the buffer, and then I read the buffer, as I mentioned no error message has appear and the ADDR 0 instruction is read from the buffer. Following the same procedure I sent an instruction to move the motor but nothing happens.
    So far I am not sure if the way I am trying to communicate with the servostar is the correct or if I am missing something, any guidance that anyone my give would be greatly appreciated.

  • Siemens S7 300 PLC and Labview Communicat​ion

    Hi,
    I am attempting to communicate between Labview 7 and a Siemens S7 300 (CPU 314) PLC. I would prefer the communication to be over Ethernet or RS 232. Could you help me out with this implementation and let me know what additional hardware/software I may require for doing this.
    Thanks,
    Shameek

    Shameek wrote:
    I am using a CP-343 communications processor to connect the S7 300 to industrial ethernet.
    Now can I commnicate directly from Labview to the PLC?
    I still havent figured out where the OPC server comes in and whether it is an option or a necessity.
    Using OPC is an option.
    Siemens has an the add-on ($$) library/FB  that includes code for enabling Modbus communication with S7 300 CPUs. I've never used it, but info is here.
    <snip>
    Our solution
    With its MODBUS function block (FB) and the CP343-1 and CP443-1 SIMATIC S7 communications processors, Siemens can supply a proven solution for the integration of SIMATIC automation systems into other system landscapes. This function block enables data to be exchanged easily between MODBUS-compatible devices from different manufacturers and SIMATIC S7 stations from S7-300 and S7-400 systems.
    </snip>
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

  • Labview : No USB communicat​ion with the DLN-2 adapter board.

    Hi,
    I am trying to use a Diolan DL2-N USB to I2C/SPI/GPIO adapter (https://diolan.com/dln2). This manufacturer provides Labview drivers for the board as well as example VIs. I just want to use them to access to all interfaces via Labview. After that I will design a test setup for our last product line using this adapter board.
    What i did:
    1) Fresh install of Labview 2014 (evaluaton version). System: DELL Precision M6800 (i7) , Windows 7 Professional SP1.
    2) Install NI VISA drivers and NI-488.2 drivers (14.0).
    3) Install manufacturer drivers as explained in NI website.
    4) Run Labview.  I can see instrument driver VIs under the Function Palette and run example VIs. So far, ok (I guess)
    5) Run NI MAX. No USB ports listed. Only COM1 and LPT1 (printer port).
    6) I ran some windows test apps provided by the manufacturer to access to all the interfaces of the NXP microcontroller in the DLN2. Everything works. I can read analog/digital inputs, force digital out values and use the SPI and I2C (I see the SPI/I2C frame sin a scope).
    I have spent one day going through different links in NI website (have watcheing almost every demo video on the site) and still are not able to guess why Labview can't see my USB device.
    Any hint?
    Regards,
    Jose
    Solved!
    Go to Solution.

    Hi again:
    I' m putting pressure on the manufacturer to provide support, but still I have some very basic questions that I think a Labview expert should be able to answer.
    Attached are the driver files provided by the manufacturer along with install instructions (which I do not fully understand). I assume the iinstall description is based on a standard procedure to install third party instrument drivers , but still don't know what to do with the dln.net.dll file (I just copied it in the /Labview 2014/instr folder). Any hint?
    The manufacturer website says that the driver has been developed for Labview 2012 . I' m using Labview 2014, and assuming backward compatibility. Is that correct?.
    One more question: Is there a way of seeing within Labview which third party instrument drivers do you have installed? 
    Regards
    Jose
    Attachments:
    DlnLibrary.Net.llb ‏574 KB
    readme.txt ‏2 KB
    dln2_drv.zip ‏338 KB

Maybe you are looking for

  • How do you query a collection in a Standard Tabular Form?

    I'm adding validation to a Standard Tabular form, and would like to use the values of attributes in the collection as part of the validation. To do this, I want to query the collection in the Tabular form to find the current values of the attributes.

  • Storing an array into the database using jdbc

    Hi, i�ve got a problem storing an array into a database. I want to store objects consisting of several attributes. One of these attributes is an array containing several int values. I don�t know exactly what is the best way to store these objects int

  • Software on disc will not install

    When I go to install the software for my 30 gig ipod with the disc supplied , I double click on the icon'Install iPod Software' , the navigation bar changes and displays the following..... Installer File Edit Windows Help. If i go into Installer drop

  • Plz help in Timer class

    Plz i want the timer class to start but if a packet was recieved from a client before the time is finished the timer is canceled. //e.g Datagrampacket rec=new Datagrampacket (byte[],length); Timer t=new Timer (); t.schedule(MyTimerTask,1000); socket.

  • Ideapad s6000 not working with Logitech k400 wireless keyboard

    My Logitech wireless keyboard/touchpad isn't working on my new Lenovo ideapad. Yes I am using an OTG cable but neither the cable or the keyboard are the problem as they work flawlessly with my Galaxy Note 2. Please help!