Visa read write on port series independently and at the same time!

Hi all!

I need to read and write data to and from a serial port (rs232) independently and simultaneously .

I'm sorry that I can not put a picture of that, but it's very simple:

I used "set up the serial port" and forwarded to two while loops, the resource reference.

a loop is reading data and the other loop is writing data to the port.

the problem is when the playback loop (function serial reading) waiting for data - it blocks the other loop to run (writing of the serial function is blocked).

I searched the forum and find this visa open function has 'duplicate session' option - that's what I need?

If true, can someone explain exactly how to wire and use it in the right direction?

Thank you very much.

Guy.

OK, I found an example that solved my problem: a VI called   serialduplicatesessions.

The file is associated.

Here is the link for all cases: http://zone.ni.com/devzone/cda/epd/p/id/1727

Tags: NI Software

Similar Questions

  • Can I change the new memory and at the same time to replace the Rams?

    Can I change the new memory and at the same time to replace the Rams?

    If a MacBook Pro RAM and drvie hard can be modified/improved depends on the submodel and we do not know yours. There are dozens of variations of the MacBook Pro issued since 2006, and you do not want guessing us!

    Please do "about this Mac" in your Apple menu to get this:

    Notice the line that I have highlighted with the red arrow. Please tell us what your computer has in the thr same place. However, do not post any serial number.

    With the exact submodel we can better advise you of any available upgrade paths.

  • I want to exchange a larger HDD (Mac Pro early 2009) and at the same time improve Cougar to El Capitan.

    I want to exchange a larger HDD (Mac Pro early 2009) and at the same time improve Cougar to El Capitan. What is the best way to do it?

    I think the best would be a new installation of El Capitan on the new HD and reinstall the applications on the new HD, and then migrate the data and setting for the previous version of OSX. In this way the least unused stuff enters the new OSX version

  • Please, I need help. Recently, I bought creative photography Cloud plan Student and Teacher Edition (one year) online from the website of adobe because my Photoshop trial has ended. And at the same time, I have 2 days left to Indesign. What I know

    Please, I need help. Recently, I bought creative photography Cloud plan Student and Teacher Edition (one year) online from the website of adobe because my Photoshop trial has ended. And at the same time, I have 2 days left to Indesign. I know, if I bought the plan creative cloud, I can use activate indesign. When I try to activate or renew indesign, they ask the serial number and code exchange and I don't have one of them. Can anyone help me please by giving steps what I need to do. Thank you

    ID is not part of the plan of the photograph, so it will not activate.

    Mylenium

  • How to create impulses cause a pulse width Variable AND at the same time

    Hi all

    I have a NI PCI-6251 that comes with 2 counters, a FREQOUT port and then some DIO, DAC and ADC.  I want to trigger a pulse of variable width (easy to do with two counters) and a frequency closed, exit at the same time.  So, I want to end up with a line that will display TOP for some variable time, while the other exits a train of pulses for a time variable.  It is easy to do if you have 4 counters but I don't have one.  Does anyone have an idea to implement these two things AND making them trigger at the same time with the PCI-6251 card?

    The line is high for as long as your pulse train controlled?

    If so, set up the first counter as output pulse, configure the 2nd as output continuous meter but with the internal of the first counter output as its trigger to pause (pause when it is low).  Start the 2nd meter before the first.

    If not, you will need to use the digital output to replace at least one of the counters (max sampling rate is 10 MHz, so this would give less resolution compared to the time base of 80 MHz counters).  So you would simply write the waveform predetermined in the buffer and he clock at the desired rate and the number of samples to give the signal that you want.  You need to generate some other subsystem as FreqOut clock.

    Best regards

  • Can PCI 6602:How I use digital lines of the Board of Directors and at the same time to generate trains of pulses by using a meter?

    Hello!

    My problem appeared when I tried to update my traditional NOR-DAQ legacy code to DAQmx.

    I use 2 meter (meter 5 and 7 meter) on PCI-6602, to generate trains of pulses, as well as the lines of e/s digital port 0 (the form lines from 0 to 7). What I do in my request, it's that I'm starting to generate the pulse train on the output of 2 meters and after that I play with the State of digital lines.

    Traditional, it was no problem to use the meters and digital lines at the same time, everything went perfectly, but in DAQmx, is not possible.

    What's happening: I start generating train of pulses on the output of counters, no errors, but when I try to change the State of a line of digital port the generation of the pulse train is stopped. What happens when I start the task associated with the digital way.

    My question is: is it possible to create a channel on digital lines without changing the channels created for meters?

    Another thing that I managed to do with the panels 'Measurement and Automation Explorer' and Test for PCI-6602, is basically the same thing, I generate trains of pulses on the output of the 7 meter and try to start a job on the digital line, but I get an error:

    "Error-200022 occurred in test Panel.
    Possible reasons:
    Measurements: Resource requested by this task has already been reserved by another task.
    Device: Dev4
    "Terminal: PFI8.

    On the contrary if I use the counter 0 or a counter 1 to generate trains of pulses I encounter the same problem.

    What resources are used by 2 to 7 of the PCI-6602 card counters and the counters to 0 and 1 do not use?

    Thanks in advance for any answer!

    Ciprian

    After doing some real tests on this device, I found that it is a normal behavior for the jury of 6602.  This is because when you start a task digital all 32 lines are configured for digital i/o, so it replaces your meter operation.  The article below the link explains a little more on this subject.  You must start the digital task before the task of counter to use the features of both in your program.

    2 meter and above will not work correctly when you perform digital i/o on NI 6601 or 6602

    http://digital.NI.com/public.nsf/allkb/43F71527765EEC3886256E93006CD00C?OpenDocument

  • Input module of data acquisition can be read by two or more LabVIEW vi at the same time % 3F

    I use the DAQ palette in LabVIEW to read the virtual channels of the input data acquisition module. I've done several VI who read many entries of three modules of simulations. The problem appears when I run two or more VI´s reading entries from the same virtual module (for example. first.VI module 1 input ai0 and second.VI bed ai0 entry module 1 bed), when this happens the next errors are shown:

    Error-50103

    Platform AND Services: The specified resource is reserved. The operation could not be performed as indicated.

    and

    Error-200022

    Resource requested by this task has already been reserved by another task.

    It's worrying because I want to get the DAQ chassis and some modules, but if this problem is present with physical equipment my application may be unnecessary. This means that entry module only can be read once at the time?

    I m using global variables in each Subvi to share data with main VI, however, I found the solution in a different way... I just changed to single channel and dbl sample playback mode, so I Don t need to clean up the task of reading in my subVI´s, the zeros isn´t problem here, and the six subVI´s work at the same time!

    Thanks for the tips!

  • How can I separate the dialogue of downloads and bookmarks in the library box so I can see each one separately and at the same time as Firefox used to allow?

    After the last update, placed Firefox download dialog box and bookmarks in the same dialog, which cannot see both at the same time. I can't find any option to separate the two. It's severely cramping my workflow. Can you tell me how I can see once more my download progress in a single window and my favorites in another?

    You can view the new download manager in a tab by opening the words: download page and you can consider opening this page in a separate window.

  • When I connect to Wi - Fi internet, and at the same time as happens?

    I have a laptop and I connect to Wired internet and wireless at the same time. What does my laptop? Connection speed to the internet both wired and wireless to the top of my internet? Or should it make any difference? I'm always looking for ways to speed up my internet.

    I agree with Alfa S - test both and see which works best for you. Theoretically there should be no difference because there is not any speed of Internet home/nonommercial to the United States that go beyond the capabilities of each network wireless "N" or wired Ethernet networking, but the details vary depending on many variables outside of the theory. For example, your router may have a good wireless signal, but a shit Ethernet switch so it can work better with wireless.  On the other hand, you can be so far from the router wireless is difficult but Wired works well. Test for yourself and see.

  • How to lock a folder and at the same time enable backup software to access?

    Hello.
    We have 10 systems in our office and an additional computer that acts as a backup server for the important files and folders. However, due to security issues, we want the whole (the inside which are backups) must be locked down and only accessible by providing authentication (e.g. a password). but the problem is that if I block the folder, the backup software may not work.
    Is there a way around this so that whenever anyone attempts to access a file/folder from the server, it will have to enter a password (remember that it is access to the its system which is connected through lan server) and the same brand of time the work of backup software?

    Hello.

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet forum.

    http://social.technet.Microsoft.com/forums/en/category/w7itpro, windowsvistaitpro, windowsxpitpro, windowsintune

  • How can I write code to serve 2 events at the same time?

    Hi all

    I want to join 2 events and run the code (ie. a function) when they the head both http data will be valid data.

    client.listener.onData = {function(event:HttpDataEvent):void}
    var stringData:String = event.readUTFBytes ();

    var data: ByteArray = event.bytes;
    Debug.Warning (StringData);
    };

    client.listener.onComplete = {function(event:HttpResponseEvent):void}
    answer: var HttpResponse = event.response;
    var cookieStr:String = response.header.getValue("Set-Cookie");
    };

    Is there a method I can use here?

    Chris

    Use two flags, one set by each of the listeners.

    Other areas of the code can check the two flags, and when they are both defined, then the other code can run.

  • How to use LR on Mac, and at the same time on a PC

    I'm new to Mac. I used LR on PC and I used a disc external hard storage my catalog and photos of work. Now I have the problem that LR on Mac says a catalog cannot be used on an external drive. So, how can we work on Mac and on my Windows laptop?

    DdeGannes wrote:

    You need to detach the disk from the computer and attach it to the Mac.

    Probably will not work because the drive of the PC is formatted in NTFS (windows) and Mac natively needs a HFS.  The Mac can READ an NTFS drive, but it cannot write to it without a special driver.  Do an internet search for "mac, write to NTFS drive" and several solution will come.

  • How I write more specific instruction of if at the same time!

    I'm trying to use an IF / formula of EELS in JavaScript for autopopulate a text field in a table, but I get a syntax error.

    Could someone please help?

    and I want to write a specific text on the cells of a table, but before I want to check if this cell was empty or not, if it's empty (this cell1.rawValue = 'text') silt must go in the cell 2 silt and piloted at the other. And so on.

    Tabel1

    1Yes
    2None

    tabel2 |

    cell1"text".
    cell2
    cell3
    cell4

    something close with that can help you understand me more: (it's not really in the code)

    If tabel1.rawValue = 1

    and if tabel2.cell1.rawValue is nothing then

    tabel2.cell1.RawValue = "text".

    on the other

    If tabel2.cell2.rawValue == null then

    tabel2.cell2.rawValue = "text".

    Silt

    If tabel2.cell3.rawValue == null then

    tabel2.cell3.rawValue = "text".

    Silt

    If tabel2.cell4.rawValue = null then

    tabel2.cell4.rawValue = "text".

    Silt

    {

    xfa.host.messageBox ("there is no space in the table!");

    }

    Thnak you! I wish you can help me!

    Hello

    before understanding in JavaScript syntax, there are databases, you need to understand with operators

    JavaScript operators:

    the use of "=" is to assign a value to the value of the left side of the operator (this operator should not be in an if statement)

    the use of "is" is to compare the 2 values

    for another explanation on operators, search for 'Operators JavaScript' on google

    JavaScript syntax:

    "then" is omitted in JavaScript and {} is used instead

    don't forget to put the end of line (semicolon) on each line (excluding statements (if, switch, otherwise ElseIf, etc...))

    If (tabel2.cell1.rawValue == null) {}

    tabel2.cell1.RawValue = 'text ';

    } Else if (tabel2.cell2.rawValue == null) {}

    tabel2.cell2.RawValue = 'text ';

    } Else if (tabel2.cell3.rawValue == null) {}

    tabel2. CELL3. RawValue = "text";

    } Else if (tabel2.cell4.rawValue == null) {}

    tabel2.cell4.RawValue = 'text ';

    } else {}

    xfa.host.messageBox ("there is no space in the table!");

    }

    To help you understand how to fix your JavaScript syntax, you can use the validator to syntax like, Esprima: validator for syntax

    More information on the syntax JavaScript can be found on google, W3Schools is a good start

    I hope this will help you!

  • "image not available" when I look at an ebay auction. I can view the auction if I go through Windows Explorer. Using Windows XP and Firefox 3.6. Please assume that I have ' t know Jack and at the same time I don't know Jack when it comes to computers

    I can't see the pictures of the auction. Be precise in paths that I must take to fix, as the LOCATION of every step of the way. Thank you

    1. Press Alt + T
    2. Click on Options
    3. Go to the content tab
    4. You will see the option of loading Images automatically. Make sure it is checked. Also check exceptions if the ebay site is specified, or any other related site you want is there or not. If its there, and then remove this site from the list.

    Look at the screenshot.

    Note: If the answer to anyone who solves your problem, then please mark this reply as 'resolved' right of this response after log you in to your account. It will help us to focus on new questions.

  • Y at - he shortcut keyboard to take a screenshot and at the same time put in the copy/paste buffer

    My question: is it keyboard shortcut to take a screenshot and simultaneously place the content in the copy/paste buffer, rather than a file?

    If not, is there a shortcut miss me.

    My current approach is Cmd-Shift-3 or Cmd + Shift + 4, take the screenshot, open in preview, select all, copy, return to remove Word, paste, the screenshot file, then repeat. There must be a more efficient way to work.

    Thank you

    Mike

    Mac keyboard shortcuts

    To save your screenshot in the Clipboard instead of a file on your desktop, use the command-Shift-Control-4.

Maybe you are looking for

  • Bookmark Backup does not work.

    I recently had to uninstall and reinstall Firefox, because I could not get rid of text improve malware. Before that, I created a backup of all my favorites. However, once the resettlement of Firefox was over and I went to restore my bookmarks I disco

  • Toshiba e-Studio 3040c continues printing from other sources

    Hello together In our society, we have a Toshiba E-Studio 3040c next to other printers. It prints and basically works well, but we have the issue that if a source document is empty, it continues printing from other sources, even if there is another p

  • Update of an indicator on the VI main while executing a under VI

    Hello I was wondering if you could help me with the following. I have a VI sub that basically reads a text file and sends it to the serial port. What I would do is update a bar (indicating how much of the file has been read/sent) progress on the VI m

  • HP Envy 13: MBR for Windows 10

    I have a new HP Envy 13 with a 256 GB SSD. I want to create an MBR disk, so I can use Vericrypt. I created a USB, converted to MBR disk recovery. However, when I restored it since USB recovery, he converted it back to TPG. How is used to install 10 W

  • detection of cells limited

    For many years around 2002, I downloaded a sample file called "culture.zip", which contained some culture.vi. Culture.VI helped the limit of a cell to be acquired from a still image. I still of the Moose culture zip coming of NOR, but it dosent seem