TCP Read and Write at the same time

Hello everyone,

I have a question about parallelism in TCP connections.

I know that it is possible to read and write on the same connection ID.

So, if you ReadTCP and WriteTCP block each other, if you use the same TCP connection ID?

Or to request more precise if I run two while loops, in parallel, with one end by calling WriteTCP and the other called ReadTCP.

one of the delay of loops (or block) will be the other if both loops call their VI TCP at the same time right?

The system is Windows 7 and Labview 2012.

Kind regards

Sebastian

They are perfectly parallel.  Just write in one and read it from the other.  There is no conflict.

See My TCP articles for more details.

Tags: NI Software

Similar Questions

  • Questions about serial port read and write at the same time

    Hi I create a user interface for the communication serial port, where there are essentially 2 front panels, where the user enters commands one and the other where the prints of UART is delivered. I thought initially using a state machine but the reading and writing may be independent sometimes and so I can't rely on States. I searched a bit on the forum and he left me even more confused. Help, please.

    (1) in a thread that sessions visa duplicated has been used for writing and reading at the same time, is it recommendable? How will this affect performance?

    (2) essentially when the vi is reading data are it must constantly view as well, however, someone said that it takes too much memory to use shift registers, so how do I go about this? If using a State in queue after the loop of reading it affects the playback loop and be sequential?

    In addition anyway is to move the cursor to the latest data from the indicator

    (3) for the control of the user input, assumes that the user has entered an order in the control and press ENTER, then writing visa is launched, but if it comes in another string and press enter then write must be called again... is - it possible? will detect the previous commands in the control of compensation?

    (4) according to my understand the expectation for the event do not monopolize resources and writing can go in parallel, am I right?

    Thank you. I have attached a very basic vi which took me to the point, but I want to make it more robust. Please help especially in the part of the user interface.

    su_a,

    (1) you can have only one session to a port. Several UART can handle full duplex so performance is not affected.  At flow rates of high data and large amounts of data, buffering and latencies of BONE can become a problem.

    (2) who told you that shift registers using too much memory? Shift registers are usually the best way to transfer data from one iteration to another. String concatenation inside a loop (registry to offset or not) causes the chain to develop and may require re-allocation of memory.  Your VI never clears the string so its cold length become very large.

    Generally, you do not have an active cursor on an indicator.  If you want to always display the most recently received characters and turn on the vertical scroll bar use a property node to keep scrolls to the bottom.  This can be annoying for users if they attempt to manually move the scroll bar and find that the program continues to move it back automatically.

    (3) if the user has changed the value in the chain of command, when he hits enter the modified value event fires.  Simply strike brace does not change the value and does not trigger the event.  Not control need to be erased, but the value that he has to change.  If you want to send the same command again, have a button send a command may be a better choice.

    (4) write is a case of the event.  It is not in parallel with anything.  The structure of the event do not monopolize resources.  The other loop will run while it waits.

    The event loop will not stop when you press the STOP button. Probably it wll take two command: change events of value after JUDGMENT before any loop stops.  Replace the Timeout event (which never expires) with a STOP: value change event and a real wire of this judgment to the Terminal endpoint.  Remove the local variable.  Make mechanical locking when released.

    Lynn

  • How to use the two counters to PXI-6280, to read and write at the same time?

    Hi all

    I try to use PXI-6280 counter to generate a command of step motor pulse train.  The idea is to send a number done and known pulse for the engine, which belongs to a system XYZ. The point is, if, at some point, the user or the security system can interrupt the movement. If this happens (and will be... a lot), I will lose the real position, because I don't know how many pulses were actually sent to the engine. That is why I want to use the other cost to count impulses how were actually sent to the engine. I can start any tasks (generating or account), but only the first started task will operate. I met a couple of mistakes and I'm not able to find a solution.

    Is it really possible to use the two counters? I've already done this in a pci system and worked without problems.

    Thanks in advance,

    Giavonna

    Electrical engineer

    I'm afraid that I don't understand your idea. Could explain you better?

    Material of the series M support pointing to an arbitrary digital signals at rates (the clock must be provided from another source, for example a counter).  If you want a digital pulse train finished output and have access to a counter (the two counters if find you another source for your clock, for example the subsystem "output frequency"), you must use this subsystem 'digital output' rather than the output of the counter.  There should be examples in the finder of the example shows how to configure a finished task of digital output.

    Now I'm generating sample clock having a single Timed material Point (the only mode accepts this mode), and configure the counter with finite samples.

    I don't think not just single point NI the hardware, that's what you want.  More commonly, output meter tasks use timing 'Implied', where the release date is implicitly determined by the characteristics of the pulse user-defined.

    Is there a way to stop the production of only one meter when a finite number of pulses has been played in another counter?

    Yes, but it's a little tricky.  You can set a trigger 'Pause' on the output task, with the soruce the break being the internal release of the counter used for the task of entry.  Set the initial value of the counter of entry to 2 ^ 32-N (or maybe 2 ^ 32-1-N, I don't have a system right now to check) where N is the desired number of pulse output.  Together the counter event behavior for the counter edges of County switch output (this is a property of DAQmx export Signal).  When the counter of entry reaches terminal, its in-house production switches, causing thus the task of output to pause.  You can then stop the task in the software (you should be able to use the output of the task of entry counter event to signal to the software when the output is paused).

    Now that I've written that the whole paragraph, I remember something * similar * to work around a limitation of the driver here .  It is not quite the same implementation I described above, but really, you can use a meter output or a counter entry to get the same effect (it could be a good place to start anyway if you want to try this).

    Is there a way to read pulses them how have been generated, without the other counter, counting impulses?

    N °

    Best regards

  • USBOTG and Charge at the same time on Stream 8

    To keep this thread as productive as possible and efficient for those who find it useful to:

    Unless you have under your eyes

    1. a schematic representation of the 8 Stream USB port (USB port and battery electric circuit etc.)

    2 source code for the firmware BIOS and kernel that controls the material

    Please DO NOT respond or say "is not possible".  In view of the above is true, you do not have enough information to say '' not possible. ''

    If no one replys with a solution, what he calls not possible by default.

    Also please do not answer to say ' I don't know how "or" but I know how to do anything else that ' is also not that useful.

    An update of the BIOS or other software update may be required by HP, Microsoft or both to offer this feature really intuitive and quite possible.

    And I hope that this thread can be an effort consolidated by all who have the 8 flow to make the necessary changes.  The majority of the other tablet PCs are capable of it.  It seems that only the 8 Stream and a few others have trouble with her.

    ~~~~

    I want the ability to use a simple, inexpensive cable and perhaps standard (with electronic active minimum inside) which allows me to host and to use one or more USB devices on the Stream via its USB port B microphone 8 while this cable can also be connected to a charger standard and charge 8 flow simultaneously.  This means that the cable has a minimum of three connectors.  One of the possible configurations are as follows (apart from the normal charging cable):

    1 cable Micro USB B Male - connect to the stream 8

    2 USB male A - connect to the AC charger (IE one that came with the 8 Stream)

    3. USB A female - one or several connectors to plug into the key of USB data, keyboard, mouse or even a hub.

    Connector # 2. above shall provide a power supply to recharge the 8 Stream via conn. #1 and the power supply for external USB devices via conn. #3 so that they are in use - all at the same time.

    A and if the same cable can act as a normal OTG no charger for when no external power supply is available.  This may necessitate a switch or an electrontics active inside.

    The last part of this goal is unimportant for various reasons.  I wish that HP, the manufacturer of 8 flow, to State in writing good mode necessary to do this, so that other manufacturers or even-it yourself can make maximum use of their tablet HP equipment.

    ~~~~

    The neat thing it will alow a person to do with their tablet, it is to work at home using the Tablet as a desktop PC by connecting a keyboard, mouse, perhaps external screen (with USB to the display adapter) and knit for a long time without time limit prescribed by the battery life because the charger provides energy to all involved.

    If there is only a single connector on the cable #3, then an additional node of coarse had to provide support for these multiple USB devices at the same time.  However, it would be better if there were several #3 connectors integrated in the cable itself.  This would be better as a suitable USB hub also requires its own power.  That an adapter is necessary if the whole thing were integrated into one.

    ~~~~

    I really want answers from anyone who has already accomplished USB OTG delivered with simultaneous load with flow 8. (independent of any published 'proper' way is also welcome)

    Today's date is 2015-01-16.  If in 2015-02-16 (one month), nobody has posted a solution and then starts to bug HP and Microsoft on it's us?

    ~~~~

    Technical training:

    I understand the possibility the tablet software and firmware must take a decision on the manner in which power flows on the power port USB microphone B pins.

    I know that with a proper design of the electronic circuit carring these signals of power inside the Tablet could be sensitive to what is connected and without risk to decide for himself what to do without needing to control software.  For example by testing/detecting periodically differential voltage or current management to see what sides of the connector can supply.

    But this is only one of the many "could bes".

    In addition, this can be no standard regarding the standard USB.  What seems to be actually the case with a lot of cables OTG + fresh, is that physical clues embedded in the cable or charger are used to signal to the Tablet what the situation is.  Then the signal of software/firmware of the Tablet, interprets what the situation is intelligently and responds by flipping the bits of correct hardware control to activate, or deactivate the power flow in the port and also control its direction in or out.

    I'm not familiar with the standard USB.  Maybe I could do more research, if I believed that HP followed with 8 Stream or even the standard covered this situation explicitly.

    But to a certain extent, it seems I'll have to invent something that should be intuitively just like it does with other tablets. Isn't it?  Maybe I'm overthinking, but I can't find any USB OTG + cables load that specify compatibility with 8 HP flow.

    In any case, I was familiar with both methods other use of tablets to send the highest mentioned signal to the hardware/firmware/software of the tablet to the idea that it's time to load / time of OTG or both.

    The first method is a 0 Ohm to 200 ohms short between pin USB A 2 and 3.  This is the bidirectional data differential lines D - and D + respectively.  In data mode, all the data passes back and forth on those lines.  When you load with a cable, it's the charger module that puts this short, not on the cable.  I measured the short on three different Chargers.  It is 0 Ohms on two of them, one of those who are the charger that came with the 8 HP flow.  The others 0 ohms was generic.  The third was for an apple iPad and it measured on 53KOhms.  It's probably not the resistance ohms 0-200, but probably it is impedance termination indicating that there is some intelligent serial port communication in the charger itself.  Leave it to Apple to be different.

    This method is somewhat questionable, as this signaling mode would prevent OTG + fee because it seems unlikely that you will be able to OTG when the data lines are shorted each and overloaded with such low impedance.  I could be wrong on this subject...

    The other method I have seen suggested to work with some tablets and phones other than the 8 stream is too short the USB microphone B pin 5 to Terminal 4 with 0 Ohms to 100 000 Ohms.

    USB B has 5 pins.  USB has only 4.  The extra pin on B moves the GND pin 4 pin 5 pin to and makes pin 4 PIN ID.

    If this signal applies to a drop in the ID pin (4) or in some cases, I saw that she proposed, he runs down with 0 Ohms.

    Dead shorting things always makes me nervous.  If ID is a simple normally high impedance high input, resistance could be used to make voltage well below the low or zero threshold while also preventing the risk of damage when cheat on him with a device that you do not have the diagram for.

    Yet, 100K is a bit high for a 'pull down' in most of the situations that I'm used to.  Even a 10K would be uncertain. A 1 K or 2 K seems reliable enough, but then things are weaker and in know more nowadays low...   All but a dead short but if possible.

    So, it seems possible that the device might be able to "indicate" by the specific value of the resistance, which can be found here.  In other words the resistance is not a pull down but in fact a signature analog ID, in which case the exact value will be crucial. So if this is the case, a guess is not going to work.

    Obviously in such a system as described above, a chip inside the Stream 8 should be responsible to support this information. I hope the 8 Stream has such a chip.

    Probably a register inside this chip would be at all times what the State of the pin ID is a binary number.  All that is needed is for the BIOS to the chip and the registry in it and read this number via the bus to determine what happens to the port. Finally, he would use that signals of info to send the order of material to the electrontics of power set the appropriate direction to take etc.  (and change the State of the icon on the screen of the rude)

    I don't know if the PIN ID method described is a standard USB or not either.

    Eventually, there may be a third way. But I do not suspect that it would be possible with a non-active external device. In any case too complicated for the novice DIY for sure.

    The device would need to act is a kind of extension of bus.  As an active hub.  But she would use the negotiation of data USB serial lines and in addition to reproduce one or more additional USB ports, intelligently inform the tablet to get with the program which is "now we're going to otg and recharge at the same time."

    This requires a smart external device with a processor Inside, no doubt.

    It seems to me that many other tablets have been able achieve avecjoint here the need for a smart external device and thus the flow must also be able to do.

    There is a device that claims to be able to work with the HP Jet 7 and 8 and provides same ethernet and USB and big DVI ports so loads the data stream.  But its expensive because it is active.  Se here:

    http://AMZN.com/B00OVDE0GC

    It's called a "Docking Station".

    A reference to a product that does exactly what I want (possibly without active electronic components) is here:

    http://AMZN.com/B00LTHBCNM

    It's by Kirin and it is a device of type squid with four USB ports.  Precisely, which is my goal.  But read in the comments stream 7 user indicated that he would not be OTG and load, not really clear if it worked as a hub USB OTG or not.  Another evaluator stated that she would not support even a single USB device much less fees of 8 Stream.  This device has a switch.

    I forgot to mention that some 'hackers' have claimed success with other tablets to deceive their devices by using a multi-step process to plug things in.  Usually in general they would get connected Tablet and load first, then they would return a switch or something remove some resistance or the signal was introduced by the first position of the switch. For some reason any Tablet would continue to require. Then the data lines would be free and they would plug in a usb key and it mounts correctly even if the tablet was always in charge.

    It's like the power circuit has a lock which does not allow it to return to the mode "power flow" as long as he still feels the power flows inward regardless of what software it is telling.  Full proposal here.

    These tips seem dubious to me.  Changes in the BIOS could change the way it works.  Also you can not be sure what actually happens if you do not have a schematic representation.  You could damage your tablet.  Many people will support icon in the operating system whether the Tablet is in charge.  But I'm sort of a low-risk guy and my policy is generally indicators of intereperet not to have meaning at all once a device is functioning in a non-standard setting.  Especially when it's something that I did not built and could not fix if I FRY.

    Hypothetical reasoning: tell me what data sensory discs really the State of the charging light screen?  This reflect the bit of hardware control programs actually feeding management and status on the port?  Or does it measure the direction of the flow of power, said in the section of the circuit battery monitoring?  Point - none of us have a schema because it's owner. To really be sure according to the smart electronic hardware, the port must be mode flow under advisement "of power. If it's in a "power flow out" mode and power will be delivered externally as well you wind upward with both power supplies the same power at the wheel nets.  In this case, the two opposing regulators attempting both to drive 5 V can have slightly different voltage calibrations.  That could lead to fighting between them, with more than 100% of their capacity.  For example if you try to regulate 4.95 real V and the other and other attempts to regulate 5.05 V.  Current then flows to the tune of 100 mV / a few milliohms in the cables linking the two.  This may be several amperes. (many)  In other words, like I said: you want the tablet to know that power is coming in don't go out and automatically hitting the internal switches needed for that to happen. Probably the icon should indicate this with precision, but in some wacky situation, he could not. There may be a chance that the icon could indicate the load and still be burning or focusing on some circuits of the tablet or the charger.

    Another thing, I could see that happening is if you play with these reported resistance types enough you might find a resistance value that winds up place the device in an intermittent condition.  In other words it keeps flipping back and forth quickly between OTG and fresh.  It can give the illusion that it works.  You can have marginal communication with your USB devices and battery could even load.  But will still be a lot of stress on the power circuit.

    It is difficult for me to risk a Tablet perfectly well if I don't know exactly what I'm doing.

    If a brave individual makes their own experimentation and verifies that it charges and OTGs and you tell the rest of us, you're a hero.

    Maybe one of you has a good knowledge on the USB standard to have more confidence in such an experience... like what the ID pin 4 REALLY supposed to work for example?

    That's what I know so far.  If you think you can help, thanks in advance, or if this helped you, then your quite welcome.

    It works

    http://Accessories.us.Dell.com/SNA/ProductDetail.aspx?c=us & l = to & CS = 19 & SKU = 470-abes & baynote_bnrank = 0 & baynote_irrank = 0 & ~ CK = baynoteSearch & dgc = CJ & cid = 47997 & lid = 4279734 & acd = 10550055-4485850-eb75dcb47e53437680ed323a1f4885fe

    Evidence

    http://targusblog.com/2014/11/25/how-to-turn-a-99-Tablet-into-a-workstation/

    But it's 4 x the price in Europe

    Have fun

  • How to play music and narration at the same time on windows movie maker?

    I'm working on a project and successfully, I could put my videos for a song. to get all the points for the project I need to explain what is happening in videos. I have now that I need to tell and I was able to do it too. I don't know how to play the narration without stopping the music, I need narration and music at the same time. I know this is possible because I found...

    You can add music and narration Audio / Music track in Windows Movie Maker. The two can play at the same time in your published movie. You can then adjust the audio levels to determine which audio will play louder than the other in your movie.

    Please write again (:)

    I'm working on a project and successfully, I could put my videos for a song. to get all the points for the project I need to explain what is happening in videos. I have now that I need to tell and I was able to do it too. I don't know how to play the narration without stopping the music, I need narration and music at the same time. I know this is possible because I found...

    You can add music and narration Audio / Music track in Windows Movie Maker. The two can play at the same time in your published movie. You can then adjust the audio levels to determine which audio will play louder than the other in your movie.

    Please write again (:)

    =================================
    Simple solution... Publish (save) your project in the
    film format .wmv to a folder on your hard drive.

    Re-import the file .wmv (as a new project) and now
    audio / music will be clear and you can add
    the narration.

    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How to use headphones and speakers at the same time

    I want to use headphones at the same time that I use the speakers.

    I am hard of hearing and need the LOUD volume. When others are watching a film, projected on HDTV, they won't let me turn the volume up to where I need it, which is why, headphones and speakers at the same time.

    I use Windows 7, I want to stick with Windows 7, so I want a Windows 7 solution.

    If there is no solution for Windows 7 and there is a solution using Windows 10, then and then only, I will be upgrading to Windows 10.

    Using headphones and speakers was possible under Windows XP. I think that a kid at Microsoft, with a regular audience, thought this feature was redundant and removed. Large.

    Macs will play through the headphones and speakers, so maybe it's time to buy a Mac!

    Hi Bob,

    Thanks for posting your query on the Microsoft Community.

    With the description, I understand that you want to use headphones and speakers at the same time on your Windows 7 computer. I will certainly help you get this fixed number.

    I suggest you check the suggestions contained in below mentioned thread and check if this is useful:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/headphones-speakers-at-the-same-time/7ed31bcf-3762-430D-9c9f-e6967d670d0e

    Hope this information is useful. Please come back to write to us if you need more help, we will be happy to help you.

  • To scale an imported graphic (framework and content at the same time)

    I read the help files, the knowledge base, even watched instructional videos but can ' t find a way to scale a placed graphic. I understand the difference between a frame and the content. I can put the scale either by using the mouse or digital controls. But to measure these things, what I owe to scale each seseparately?

    For example, I want the picture size to 2.0 inches wide. I don't see a way to do this in a single operation.

    I see that you CAN do in %. Select the image of the object and if you the size to 50%, it works - framework and content go to half size. But if I size dimension (width = 1.5 "), I have the frame, then the content.

    Is there a way to act on the structure and content at the same time?

    It is InDesign CS3 on Mac.

    It is not really intuitive. Select the image, and then look in the control panel for the horizontal and vertical scale fields, which should all two say 100% when you first select an object. The unit of measure in these areas by default is %, but as any of the numeric fields of ID, you can use any unit you want, as long as tell InDesign what units you are using. If you want to 2.0 ", enter 2.0i (you need not nitrogen) in the width field and press ENTER. Your frame and content will scale to 2 ".

  • on the Iphone 7. How to listen to music, if we have a normal headset and charge at the same time?

    How to listen to music, if we have a normal headset and charge at the same time?

    < re-titled by host >

    It sopposed must be a wireless charging dock to be launched shortly if the dock does not so it is a disappointment

  • My iphone 6 does not light, I held the home button and power at the same time and no vibration or no sign of life, any suggestions as to what it could be would be appreciated

    Phone bought 3 days ago and I fight to turn it on, it's just a black screen, the phone records into iTunes but does not turn, I tried holding down the home button and power at the same time and still nothing, I presume that it's a battery problem as if it was the backlight then the phone vibrated when you press the power button help Please!

    Marley6921 wrote:

    Phone bought 3 days ago and I fight to turn it on, it's just a black screen, the phone records into iTunes but does not turn, I tried holding down the home button and power at the same time and still nothing, I presume that it's a battery problem as if it was the backlight then the phone vibrated when you press the power button help Please!

    Put it on wait ten minutes if the phone did not come one, then hold down the sleep/Home button until you see the apple logo and then release, make sure that the phone is still connected to the charger.

  • Satellite M30X-122: how to use the headphones and speaker at the same time?

    Hello

    y at - it a possiblity to use headphones and speaker at the same time?
    When I plug the headphones into the Jack, the speaker is created off the coast of the moment.

    Thank you
    Peter

    Hi Peter,.

    There is unfortunately no way to use both headphones and speakers at the same time. This is because tghere's a disconnection physical power for the internal speakers when you plug in the headphones. It is not by software. The only way around this would be to dismantle the headphones Jack and solder connections that are broken when you insert the headphone permanently.

    Kind regards

  • Satellite Pro L770 - 14 H - the use of WLan and Bluetooth at the same time

    I have a Satellite Pro L770 - 14H and you want to use a Bluetooth mouse.
    With the 'FN' and F8 key I am capable of coding between WLAN and Bluetooth, but it is not possibel to have both at the same time.

    My question is: How can I have WLAN and Bluetooth at the same time?
    To use a Bluetooth mouse with WLAN connection.

    Thank you very much
    Helmut

    Hello

    Using Win 8.1?

    Usually you could turn on and off Bluetooth in Win 8.1
    Settings PC-> PC &-> of Bluetooth devices

    There, you can move the cursor to BT for THE position.

  • Is it possible to use iCloud shares photos with the two opening and Photos at the same time?

    Is it possible to use iCloud shares photos with the two opening and Photos at the same time?

    Non - PEAK is not a feature of iPhoto or Aperture - this is new with Photos

    LN

  • I want to delete email messages on iphone and mac at the same time

    How can I delete email messages on iphone and mac at the same time?

    Use an e-mail provider that uses the IMAP protocol.

  • Unable to connect WiFi and Bluetooth at the same time

    : After that I updated to KitKat 4.4.2 cannot use WiFi and Bluetooth at the same time. Must turn off Bluetooth to use WiFi.can you help with this problem. I have the Motorola droid RAZR maxx hd

  • Lenovo L450 Dock Pro video output DVI and DP at the same time

    Hello

    I have L450 NB and Pro Dock station.

    I have question. Can I connect and use two monitors (1 - DVI, 2 - displayport)?

    In this link (https://support.lenovo.com/cz/cs/documents/pd029622) is writable:

    3 - any combination

    What it means?

    If I connect DP and DVI at the same time came out video only on DP.

    Is possible to use two screens on the digital output?

    Tomas

    maniakum wrote:
    Is possible to use two screens on the digital output?

    No, the DisplayPort and DVI Pro docking station port can be used at the same time. So, you need the Dock Ultra.

Maybe you are looking for

  • Error exporting iMOvie

    In the case of iMovie on iPad mini gig 3 16 I try to save the project with video to Photo app, pops up a message "unknown error." This could be the cause? I have 3 GB of available space on my camera and have already been able to record a 700 20 min t

  • PlayStation Store

    How can I access the Playstation Store from my Tablet S?

  • Is it possible to use a 300 GB vraptor in a WF606PA

    Hey guys, I know that the laptop uses of 2.5 in hard drives, but I was wondering what size like trying to put in a VRAPTOR GLSF MODEL 2008 as the 2nd drive 300 GB WD that the icepack is 15 inches? Wikipedia " The fourth generation Raptor was announce

  • trying to get my desktop to the way it was

    screen was shortened to the top, start and small icons are all on the right side of the screen

  • DV7:fail return to suspend under linux mint 14

    I have a HP Pavilion dv7 p/n FF2OUA #ABC DV7 - 1027ca running mint14 linux 64-bit with cinnamon as the vehicle of display. If I use the option suspends the logout button, the machine indeed set itself in a sort a State suspended. Maybe a few hours la