Read/write of console application programmatically

Hi all

I develop a VI who would write a string to a third party (current running on the BACK) console application and then read that data of this console new in LabVIEW. I think that this is possible by using the Windows API, but I would like to know which would be the best method to implement this.

Thank you

FraggerFox

BACK is an operating system. It is not Windows (even if there are leftovers BACK in the Windows source code). So say that something is running on BACK means it runs on another computer. Is this the case? There is the command window in Windows. -What are you talking about? So, is this a command line app? If Yes, it is a way to use the Windows API to capture the contents of the command line window and paste the content in there. I showed an example in this thread: Re: URGENT! How we read stdout directly?

Tags: NI Software

Similar Questions

  • Can we read/write in native application of contact?

    Is it possible to read/write the native application of contact using the android runtime? The api says it succeeds, and if I dump the db slider in a newspaper, it shows the recording, but the native application of contact does not show recording.

    If I make a new record using the native application of contact and then launch the android application and empty the db again, it does not show the contact, I added, which makes me think that they are separated.

    Is it possible to read/write in the native application of contact? The Simulator says it of an Alpha, is this something that will work on a real device of BB 10?

    Hello

    Currently, we do not support the read/write in the Native contacts database. For android, you can add the phone number and e-mail to existiing contacts, but not create new ones.

    It is something we are looking to support in versions of features.

    Thank you

  • Read/write port DAQmx questions

    Environment

    Windows XP SP3

    LabView 7.1

    NOR-DAQmx 8.7.1

    (2) PCI-DIO-96 cards

    I'm trying to move from the level of registry TDAQ programming DAQmx and give me an "intensive" in mx.  I'm not sure about a few things.

    I need to put in place 20 channels/tasks that will run a mix of single, large port (8-bit) bed and written.  Some will be handshaking (82 c 55 mode 1) and some no handshake (82 c 55 mode 0).

    The plan is to create all tasks during an initialization routine and save the names of global tasks.  I open the task after creation and use the globals during the main part of the program execution, when I make the reads/writes on the port.  The body can run for hours at a time.  When the main is closed, the stop routiine close all tasks to exit ahead.

    Regarding the task creation/destruction - is it safe to create tasks and leave them open, or should they be created and destroyed every time that a write is performed?

    Regarding the port reads/writes, I suppose that when a port single read/write is made, there is no established buffer.  Is this correct?  Specifically, if I use the method above and leave task open, is it possible saturation of buffer or something similar to happen?

    TIA

    Charlie

    Regret - Yes, you said 7.1 - I can't keep back away, but here is a screenshot

    And - the task is saved outside of LabVIEW, so it's not really 'Open' or 'Closed', even when programmatically, create and destroy jobs.  Tasks exist or do not exist.  If they exist and have no errors, they can be run.

    Tampons are to move data to and from the device.  For static DIO, this isn't a problem.  You CAN run into problems with a task of acquiring buttons if it acquires data as soon as you read the data, but you can work around this by starting and stopping the task properly.

  • FPGA read/write eeprom I2C

    Someone at - it an example of LabVIEW for I2C communication to read/write an eeprom?

    I use sbRIO-9636 with FPGA.

    I already tried with the "Advanced I2C" example, but it works...

    Can someone help me?

    Another suggestion:

    You know about the VI package manager? There, you can install an application open source I2C & SPI API (worms. 3.0.0.22). It is an easy way to implement a system of Bus I2C on an FPGA target.

    In this way is a little bit smarter.

    Maybe you like it.

  • under condition of read/write terminals on the side of the connector (basic training 3)

    Hello

    During my practice towards the review of the CLD, I examine the Core 3 online training material too. I just read a few tips of 'best practices' on the forum, for example this post:

    http://forums.NI.com/T5/LabVIEW/Community-Nugget-wired-terminals-in-subdiagrams-clearing-up-the/m-p/...

    It should be noted, that we should not use terminals (which are on the connector pane) to the inside of while loop or condition of the structure. Neither control, nor indicators (read/write terminals): "terminals conditionally read or written on the side of the connector are BAD!"

    I can find many examples in the online training materials, when the indicators and controls are placed inside while loop and the case of structures in a Subvi.

    I guess I should not do this during my review of the CLD, as they will run benchmark on my project? Should not be the core training materials updated some time? Or it's just not too important to have terminals on the outside? I would lose points during the CLD Exam my project as in the Core 3 screws?

    example 1: Core 3, exercise 4-6 design of an error-handling strategy:

    EDIT:

    What's even more ugly in this project, is that, in the case of 'Get empty Cue', the Cue output indicator is updated via a local variable, because the indicator is not accessible via 'outside ': wire

    Nice catch on the training material.  that the application would take an if subject to a review of the CLD test graders.

    As noted in the nugget: sentencing of perfomance for conditionally reached terminals is a function of the size of the data.  So, it is sometimes acceptable for simple data.  The larger point being to learn about compromise and make the right choice for your code.

    Preping for the CLD on other means of hand knowing that VI Analyzer will run on your project.  Like any other code review you walk in - know the guidelines for the review and code to ' review ' as well as 'reply spec.'

    I've not seen an instance where an example of shipping (2013 and later versions) would fail this test VIA (there are a few screws deep inside the vi.lib which can date back to before the adoption of this recommendation from style)

  • Frequency of calls to control for the FPGA read/write

    Hello

    I use a cRIO-9076 with a module NI 9476 DO spend some faucets. It is sometimes necessary for faucets with a pulse time down to a few ms of impulse.

    The FPGA VI Gets the power tap queries, executes a logic of security, and routes the numerical results for the exits. It gets applications power of the VI on RT target that uses the function ' Read/write FPGA control' interaction programming of the FPGA VI front. The loop on the RT runs with 1 kHz, no iteration is missed. That means, it should be possible to switch the valves with a resolution of 1 ms.

    What I see on an oscilloscope, is that the output digital are high for multiples of 50 ms, the system does not reach the valve for example 80 ms pulse or pulses shorter than Ms. 50 is a kind of limitation for calls of "FPGA read/write control"? I tried both options for arbitration, but it does not help.

    The best knowledge of the limiting cRIO/module/features or ideas? Thank you in advance.

    Karsten

    Hi Karsten

    You use any time in your FPGA VI?

    It is useful to your code by sending as an attachment so that I can have a look.

    Kind regards

  • Effective use of the FPGA read/write

    I am writing an application for a CompactRIO real-time and I am looking for ways to simplify my code and reduce the CPU usage. I use FPGA to do much CAN e-mail and signal processing, then I have a VI running on the real-time processor that reads values in the FPGA, does some processing and outputs data in the FPGA. My code running on real-time parallel uses several loops running in a master/slave architecture. A single loop reads all necessary information in the FPGA in indicators and writes the values of the controls in the FPGA. The other loops read entries and manipulate the outputs via local variables.

    My question if it would be more effective to get rid of the loop which is dedicated to the communication of FPGA and has of each loop to read and write directly on the FPGA. If I use a reference block FPGA open and use the reference of the output in several loops, each read/write operation block others until it's over? Each output is changed only in one place in the code, but there are several entries that are used by multiple loops. It is even more effective for each loop of read/write for the FPGA on request? How will this affect determinism?

    Thank you

    Jon

    Jon,

    Read/write controls is not deterministic, but I think that your previous method should work just fine, as long as you have that unique writers. If you have multiple writers, you start affected by race conditions.

    I don't think you will see a significant improvement in the performance/CPU in the alternative method. You would see big performance gains if your master loop reads more slowly indeed, but it's always a compromise.

  • Difficulty using the binary read/write

    Hello

    The binary read/write function somehow not working properly in my application.

    I have one store a 2D strign binary array. When the user closes the application, the application stores the values in table in the Bin file.

    N when the application starts, it reads the file and displays its contents on the table.

    The system works well if the total size of the content is 3 bytes. But if the size of the content is greater than 3 bytes, the program simply returns a NULL value at first when I read the Bin file.

    How to save:

    Convert 2D in String table using "Flatten the string" fn and to save in a binary file.

    Procedure to read:

    read a binary file. convert the output string table 2D using 'string Unflatten ".

    I enclose my code here. PLS, have a look at it and let me know the cause of the problem.

    Ritesh

    I don't understand why you're flattening of a string, a 2D channels table. It's redundant. You seem to be also the substitution of the default big-endian to little endian byte order. You try to save it in a format suitable for other programs on other platforms?

    If this is not the case, all you have to do is:

  • Sony ILÇE-7R - what is the speed of read/write in the camera

    I have several Sony ILÇE-7R cameras used for a given application where more than 80 panes in a row with 1 second interval occur.

    When you are taking pictures on a 1 sec shutter time / 1.2 s, then the camera tends to slow when writing the buffer on the SD card. (A suitable high-speed sdcard has been used).  When the buffer is disabled on the SD card, then the camera accepts no any command of the shutter (IR Led or cable gives the same question), so I'm missing components/images.

    What is the read/write speed in the camera?

    What are the compensation of buffer time?

    Are there settings that can improve the buffer time on the SD card, while taking still pictures of compensation?

    Is there firmware settings that have been implemented to improve the write speed camera?

    Thank you very much

    Kind regards


  • How do you know the speed of read/write of a flash drive?

    Who knows a program to read/write speed?

    Hi Cristi,

    Thanks for posting in the Microsoft Community.

    An indication of the standard flash drives read/write speeds is the following:

    USB 2.0:

    Sequential write speed range = 4-10 MB/S

    Sequential read speed range = 15 to 25 MB/S

    USB 3.0:

    Sequential write speed range = upto20 MB/S

    Sequential read speed range = upto45 MB/S

    These reading and writing speeds offer a guide to the read/write Flash Drive performance and have been identified in recent tests. Please note that we are changing the components USB Flash Drive at any time based on the availability and cost. This means that the read/write speeds above cannot be guaranteed.

    You can use your favorite search engine to search for this application that measures the speed of read/write of flash drives.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information helps. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • Problem of development Visual Studio Console applications

    I have a doubt regarding the software.Coming of visual studio 2010 at the point, I always write in visual studio visual c ++ console application programs. At the final output in the console, I didn't see all the reports as the execution TIME, etc... Nor in the gcc compiler is to show the time etc... I need to know that, the feature is not available with visual studio? or there are changes to make to get the execution TIME, etc... in the console... ??? Please help me clarify my doubts. Thank you

    Hi Mary,

    I suggest you send the query on the MSDN Microsoft forum for better support. Check out the link to do so:
    http://social.msdn.Microsoft.com/forums/vstudio/en-us/home?category=VisualStudio

    Please do not hesitate to ask if you have any other questions about Windows.

  • Read access to planning applications.

    Hi gurus

    Is it possible to give read access for planning through HSS applications? similar to 'Read' access to essbase applications? I m in 11.1.2.1 and commissioning Options, we are Analytic Services write, Cube creator, Director, interactive user access, manage models, distribution of mass, Planner, Provisioning Manager, user of the view. Single user view sounds just for read access I need. If I select a read access, it seems that I need to give access to all forms, dimensions (members) access in reading in every app plannign etc... Is there a default role for all the read access for planning applications?

    Thank you

    rrK

    Planning security is different from security Essbase. You must provide a read access to your secured dimensions to him visualize the dimensions. same thing applies to forms.

    Concerning

    Celvin

    http://www.orahyplabs.com

  • Open physical standby mode read/write to test without return of flame

    I have successfully installed a physical database standby 10 gr 2 (10.2.0.3 EA). Now I have to test my application with the database pending, so I have to
    Open (enable) in read/write mode (don't want to use FLASHBACK DATABASE), I know that I have to recreate the database pending scracth after completing the test.

    So far, I did these steps:

    1. on the PRIMARY database, I disabled the log destination archive:
    ALTER system set log_archive_dest_state_2 = 'reporter ';
    2. on the day before, I cancel managed recovery
    ALTER database recover managed standby database cancel;


    Can anyone provide the remaining steps to open the write standby database? I searched the oracle documentation and all the steps require the flashbak database.

    Thanks in advance.

    S.H.

    Ok

    You could do a failover on the eve (without doing anything at the elementary level)

    So to run these on your watch.

    SQL > alter database recover managed standby database cancel;
    Database altered.
    SQL > alter database recover managed standby database finish;
    Database altered.
    SQL > alter database validation at the transition to the primary with the stop of the session;
    Database altered.
    SQL > alter database open;
    Database altered.

    Then simply stop the day before (not primary) and rebuild as the standby again. Delete and re-create.

    Make sure that your Data Guard alter system set log_archive_dest_state_2 = delay; Are fixed on both sides.

    This can help:

    http://www.Oracle.com/technetwork/database/features/availability/MAA-WP-10gR2-faststartfailoverbestp-131997.PDF

    You want to split the day before with really nothing do in elementary school except reporter.

    Best regards

    mseberg

    Edited by: mseberg May 14, 2012 14:39

  • Read/write rules: generics & Tags FM identifiers

    I've seen this question answered in one of the guides dev but I can't find him.

    My question is if it's legal in read/write rules to designate different generic identifiers on the same FM/element tag.

    For example:

    "body' element is fm"paragraph. "

    element 'preface' is fm "paragraph."

    Thank you!

    [transferred to the structured forum FM]

    Each structured document fm does need an earlier XML document?

    N ° it depends on the application. In my case, I create the user using FrameMaker structured manuals. Our editorial team created a DSP that does what we want and need to do. We do not export or save FrameMaker files structured in XML. However, we could if necessary, for example, to create versions in HTML for display in a browser. This application works for our needs.

    I have only one application in which I start with XML. When I create a spare parts catalog, the information in the part are exported from a database in XML format. The structure of this XML file is determined by the database; It does not match the structure design in my EDD. But I use an XSL transformation to convert the XML elements in a structure that is valid with respect to my EDD. Again, this depends on your application.

    Some people export their FrameMaker files structured to XML. Maybe they want to do something else with the content that requires it to be in XML format. Or they can use XML for storage, because the XML files are smaller than the FrameMaker files. Then, when they open the XML files in FrameMaker, they are imported into its own model, which cleans the substitutions and no junk which may have accumulated in the FrameMaker files.

    If your goal is to convert the unstructured files structured FrameMaker files, then I suggest focusing on the development of ESD that works for your needs. Export to XML may come later if you need it.

    Van

  • NFC tags low level read/write operations

    Hello

    I know it's little bit offtopic question - but since you are experts in the field I will try you may ask a simple question:

    1 / I want to know what protocol is used to read/write for the NFC operations, tags are used. According to my understanding after that the label is placed on the NFC (NFC, USB drive phone) reader, it is powered and set to the ready state. The application protocol for read-write operation is used. As I think that the format and content of the commands used to read/write is not specified in the ISO 14443 and it is based on a material/manufacturer and will be different for FeliCa, Mifare, Innovision, etc tags, so there is no way how to handle read/write NFC tags with unique implementation operations. This hypothesis is correct?

    2 / are there tags, that supports the 4 7816 APDU commands for read/write operations?


    Thanks for the reply
    Kind regards
    STeN

    Hello

    To read the NFC forum specifications. It will be better explained than by me.

    several protocols are used according to the contactless front-end configuration and capabilities. It includes ISO14443-A, ISO14443-B and Felica. Sometimes the other protocols are also available, for example Innovatron (not Innovision lol)

    Mifare is not a Protocol, it is a line of NXP products. These products use the lower layers of the ISO14443-A protocol specification.

    There are 4 types of tags

    (1) using the lower layers of the ISO14443-A
    (2) using the lower layers of the ISO14443-B
    (3) something related to felica?
    don't know exactly on these 3, you should read the specs. Everything is clearly understandable, not like ETSI.

    (4) something using commands ISO7816-4 on top A ISO14443 or B or others. You must SELECT, BINARY, BINARY update READ. You can implement using javacard, I did it and it works. You need two binary files, which can be hard-coded.

    Concerning
    Sébastien

Maybe you are looking for

  • Safari 10 with Sierra,

    With Sierra Safari 10 is very slow in the keyboard entry. Chrome with Sierra in the same web sites works well. Any suggestions?

  • Connect you repeatedly fails

    I tried to log into my account via Apple TV. Once I entered my (correct) id, the screen goes briefly to the General Page, and then goes directly back to the login page. There is nothing wrong with my wi - fi, as I can connect to other devices. Can so

  • Make a new partition on the HDD of the Satellite a series

    Hi friendsI tried to divide my hard drive since the Panel---> computer---> storage management, but I found this:My HARD drive divided 1-EISA configration 1.46 GB! (what is drive?)2 - my C drive (which I want to divide) When you try to shrink my C siz

  • Time Stamp Offset end playback TDMS

    I am having a problem with a PDM file playback and display a graphic in the shape of wave in LabVIEW.  My table of waveform display always the time with a negative offset of 18 000 samples. Who make it simple, let's say I'm sampling to 1000 samples p

  • Can I call 32 - bit 64 - bit VI subVIs (or vica versa) in LV 2011?

    Howdy- I know that my question probably stems from my limited understanding of the underlying architecture of the LV, but it arises as I plan for the following in my lab scenario: (1) the system will include a 64-bit running Windows 64 - bit 7 (Profe