Paralel loops and communication series

Hello

My current LabView project, I use the 'messages in queue manager' design patern. The program has Labview recover data from several devices connected to serial ports. For devices where I am for the most part, the convernd of their status in this way works as expected and good. The data in the response is passed to the rest of my program using notifications.

However, I also have a testrack to where I need to send multiple commands (from different loops) and (in most cases) need answers from the testrack in the loop that passes the initial question.

So now my question is: How can I check the answer in the loop of transmission being the other line 'not affected' (it's ok for me if they see the answer as long as the original transmission loop always get data). (L'espoir) to make it more clear, I have also attached a picture of the wat I would like to have)

I hope you can help me.

For each (serial, asynchronous,...) device write a State of the queue controlled MC who manage the device.

The control file handle init, installation, recover data, get statusXY,..., free_device and outputs are named the queues for the stream (standard) and additional information (status).

The data queue command group contains not only the order more parameters but also the name of the output of this command queue.

Like this, the State of the MC device control each request for data (and may for example cancel or update a selfcal ask for a measurement...)

(a good practice would be that data are only send existing, named queues )

Tags: NI Software

Similar Questions

  • Web interface and communication series

    I just started reading on the user Web interface. It seems useful, but I could not, how do I connect an application user Web interface with some series/USB instrument, for example. Is it possible to have VISAS screws normals and other toolkits within the user Web interface? Or maybe, it would be possible to develop a stand-alone application using LabVIEW (and all the screw and tool boxes that I am used to), and then import into the user Web interface?

    Thank you

    Marcelo

    That's basically correct - LabVIEW code cannot be imported and you can not directly interface with hardware - and is the only authorized communication with web services (LabVIEW or otherwise).

    So if you have any material you want with the Web Interface Builder interface, you will need to build a web service of LabVIEW that outlined some of the features and then consuming the Builder UI with the functionality of the Web Service to import.

  • VISA series Loopback speed and precision with double loops and a queue

    I'm working on a test of communication between 2 PCs. I test communication series RS-422 ports by using a simple loop. PC2 wrote continuous data at 38400 baud to PC1 (LabVIEW test code is here). PC1 reads the data and writes the data to the same port as soon as possible. PC2, reads the data and compares to what should be returned. I can get the highest speed is a speed of about 37300. Because it is continuous, finally that I get an error because the buffer overruns (read and write buffers are 65KO).

    It seems that VISA writing takes a lot longer than the VISA read. I do read/write asynchronous operations. I've read a fixed amount of data (1024 bytes) and then queued data to write in another loop. My timeout is set to 0.5 seconds, which is much time opf at 38400 baud (4800 bytes/second). I played a bit with these numbers, and they are the best I can get. If I increase the data read to 2 KB, the queue members increase. If I'm going too low, I start getting the data in the input buffer overrun.

    Anyone had experience with this type of test? The code is attached. Please take a look and see if I'm doing things correctly.

    Michael

    I do not know if this explains a gap between what you expect and what you found in 0.8 seconds, but you have added another level of complication in using the digiboard.  You don't have a real serial port, but a simulated serial port which is hung at the end of a USB bus.  The digiboard software creates a virtual experiences, and so its driver software and firmware on the side of the Board of Directors of the USB bus must manage some translations to go a number of compote, transfer on the bus and decode the Compote number so that it knows which 8 physical ports that it must send the message to.  You can see delays in translation at each end so something in the USB itself Protocol where it needs group information.

    If you have another, a different brand of the serial ports, you can use, you might want to try one of these to see if you get similar or different results.  But I don't think it's a good idea to try to test the limits of a serial communication device using hardware that adds the other layers of the communication protocol and therefore complicated results.

  • Communication series with Mettler Toledo 205 XS

    Hey guys,.

    I'm in the process of establishing a communication series between my PC and a microphone Mettler Toledo (XS-205) balance. The Balance is connected via an RS 232 cable to the adapter USB TU-S9, then to the PC. I do not see the port in the MAX of NOR and via the test Panel, I put the configuration of the communication according to those of my balance:

    BD rate: 9600

    Bit\Parity: 8 / no

    Stop bits: 1

    Handshake: no

    EndofLine: LF

    CharSet: Ansi\Win (only within the balance)

    Continuous mode: OFF ("");

    now, the fact is that if I try to query the command * IDN? \n I get as a response

    1: write operation (* IDN? \n)

    Back County: 6 bytes

    2: read operation
    Back County: 17 bytes
    S\sS\s\s\s-0.0006\s\sg\n

    with an error in the data returned (Hex 0xBFFF006C). I also tried to use the script provided by the site OR Mettler-Toledo scales, but I get all the data and at the end of the routine, I get error VISA: (Hex 0xBFFF0015) timeout expired before the operation is complete.

    Everyone as an indication of what's going on? Thank you much for the help

    See you soon!

    Thank you guys for the quick responses.

    my mistake. Mettler Toledo balances does not accept the SCPI standard commands, but they have their own defined standardized command.

    Thanks anyway

  • Writing of multiple orders with communication series

    Hello

    I'm quite familiar with the basics of LabVIEW, but I'm new to communication series with VISA. I had no chance of finding a solution to my problem, but it is similar: http://forums.ni.com/t5/LabVIEW/VISA-read-write-to-serial-port-Unable-to-impelement-multiple/td-p/93....

    I am able to send a command and read the response with the device, but I can't send several commands to change the settings of the device. For example, I send 'F' to the device to read the current operating frequency and read the response (22). But if I send 'f' to the device to change the operating frequency, read the answer ('send frequency... (''), then send my desired frequency (120), I get no response.

    The default frequency at the opening of the port of the unit is 22. I would like to change the frequency to 120, then read the current operating frequency to ensure that it was indeed changed.

    I'm confused about the format of data to be sent in LabVIEW. In MatLab, it works fine if I send 'f' as a character (fwrite), followed by the desired integer frequency. However, in LabVIEW, it seems that the number I want to send is not read correctly. I have tried to cast the integer to a string and read that the slash code, hexadecimal, normal code, all I could think about.

    Help, please

    This give a try. Press the button "Prepare", followed by the 'Set Freq' button. You need to configure your serial port properly first well.

  • Communication series

    Hello

    I'm using communications series VISA in my vi to communicate with the hardware. My laptop has two COM COM1 and COM2 ports. I'll be using VISA configure a serial port to set specific Com Port.

    COM port will be indicated by using the name of resource VISA. I should know the status of com before another operation takes place. IE say I chose com2 on behalf of the resource for the COM port configuration, but I connected the hardware serial cable on COM1. How can I know the difference? I tried the line of the error checking, but unfortunately his does give no error since the COM1 is present in the laptop.

    Thanking you,

    sushmith

    Hello

    The idea would be to write * IDN? (or you can select the order based on the expected answer your device connected to COM port) command individually, to the COM port

    This should return the identification of the unit (or a known response) of the device connected to the COM port when trying to read the data for the number of available bytes to the port.

    If the returned string is empty (or not the expected answer) then that would mean that no device is connected to the COM port.

  • Minimum time to wait in the loop of reading series

    Hello

    I would like to ask if it is possible to read data from a serial port loop each 17ms? If so, how to read Serial and it management loop set.

    I'm the Arduino Uno card reading that can run on up to 115200 baud rate of kbs. Arduino sends each integral 17ms (0-3). Now, I can't read them separately (each part one by one, I get numers as 123, 231, 12, instead of 1, 2, 3 etc.), but this may be due to other stuff I do in the loop. I elaborate more on my VI later - now I would like to know if it is possible using LV 2011 + VISA read serial number of each 17ms. What bothers me the most is that I saw many times on this forum that people suggest of don't not to go below 10ms timeout in the Serial reading loop (same base series Read and Write provided in examples of or). If ms waiting loop of x, where x is 17ms divider?

    You hear that you read whole and not full? Send you one byte or more? If it is a single byte, then just define it as the number of read. Do not put in any function wait and do not use the VISA to the Serial Port bytes. Playback VISA will be automatically terminated when one reads a single byte. You send a terminator after the number? Waiting in the example has nothing to do with a constant data stream reading and with a terminator is completely useless.

  • Management communication series through liaison camera card

    I have a card OR cameralink and want to handle the integration of a camera time using the controls of the camera series.  Is it possible to place orders of series using other software like MatLab (heresy I know)...

    My experience using MATLAB is absent, but if you can call the C API for IMAQ, then you should be able to do.  You can take a look at the help of the reference of the NOR-IMAQ function and specifically examine the functions of Communication series under features low level.

  • Microsoft sidewinder gamepad 2 does not work on the Combat Flight Simulator WW11 and Europe series

    Original title: I have the Combat Flight Simulator WW11 and Europe series. My microsoft sidewinder gamepad 2 does not work on my XP and my Windows 7 computer. The joystick works on CFS2 Pacific. Help, please.

    I have a HP Pavilion p6717c with a radion HD 6900 graphics card. With windows 7 home

    Hello

    1. don't you make changes to the computer until the problem occurred?

    2. you get any error message?

    I suggest you to see link below and check if it helps.

    You experience problems when you use a Sidewinder Force Feedback Pro joystick with Flight Simulator on a Windows 2000, Windows XP, or Windows Vista-based computer: http://support.microsoft.com/kb/294672

    How to fix game controllers in Microsoft games: http://support.microsoft.com/kb/831361

    Items of Combat Flight Simulator: http://support.microsoft.com/combatflightsimfaq

    Also I suggest you to send your request in the below link.

    http://www.Microsoft.com/games/en-us/community/pages/forums.aspx

    Hope this information is useful.

  • I get an error on blue screen ATI2DVAG infinite loop and am looking for a suggested solution for XP.

    get an error on blue screen ATI2DVAG infinite loop and I am looking for a suggested solution for XP.

    Hello jvecc,.

    Thank you for visiting the Microsoft answers community.

    This problem is caused by a defective unit or a device driver. Visit the website of the manufacturer of your computer or see if AMd drivers directly will work for your hardware configuration and then uninstall and reinstall your drivers.

    Hope this helps Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I fix my internet connectivity problems: entry msafd tcpip tcp provider ip could not perform looping simple communication

    WinSock diagnostic

    WinSock status
    info all base service provider entries are present in the Winsock Catalog.
    channels of information the Winsock Service provider are valid.
    error entry MSAFD Tcpip [TCP/IP] provider could not perform the looping simple communication. Error 10055.
    Info entry provider MSAFD Tcpip [UDP/IP] passed the loopback communication test.
    Info entry RSVP UDP Service Provider provider passed the loopback communication test.
    error entry RSVP TCP service provider provider could not perform the looping simple communication. Error 10055.
    connectivity error problem exists with an installed LSPS.
    repair automatic action: WinSock Reset catalog
    action completed successfully: netsh winsock reset catalog
    the information system required reboot
     
    Diagnosis of network adapter
    Network location detection
    Info to help home Internet connection
    Identification of network adapter
    Info network connection: name = Local, Device network connection = Intel(r) 82566DM Gigabit Network Connection, MediaType = LAN, type = LAN
    Info network connection: name = 1394 connection, device = 1394 Net Adapter, MediaType = LAN, type = 1394
    Info network connection: name = Sprint PCS Vision, peripheral = Palm Treo Modem, MediaType = PHONE, type = NONE
    Info Ethernet connection selected
    State of the network adapter
    Info network connection status: connected
     
    HTTP, HTTPS, FTP Diagnostic
    HTTP, HTTPS, FTP connectivity
    WARN HTTPS: error 12029 connecting to www.microsoft.com: a connection with the server could not be established
    warn HTTP: error 12017 connecting to www.microsoft.com: the operation has been cancelled
    WARN FTP (active): error 12029 connecting to FTP.Microsoft.com: a connection with the server could not be established
    WARN HTTPS: error 12029 connecting to www.passport.net: a connection with the server could not be established
    WARN FTP (passive): error 12029 connecting to FTP.Microsoft.com: a connection with the server could not be established
    warn HTTP: error 12029 connecting to www.hotmail.com: a connection with the server could not be established
    error could not make an HTTP connection.
    error could not make an HTTPS connection.
    error could not make an FTP connection.
    [/codebox]

    Hello

    You did changes to the computer before this problem?

    Try the steps and check them out below:

    a. open internet explorer.
    b. click on tools > Internet Options.
    c. click on the Connections tab.
    d. click the LAN Settings button.
    e. uncheck all options on the shortcut menu.
    f. click on the OK button.

    Similar problem: http://answers.microsoft.com/en-us/windows/forum/windows_other-windows_update/error-12029-in-ie-8/47a865dc-3237-4e07-84a9-d9fb20a766e3

  • Printing win 7 guest, the printer queue maintains a loop and increases the size of the file

    Hi all

    That are running Windows 7 enterprise and on another professional machine, same results:

    I share a "laser" on the USB printer, the printer works very well under windows prgms...  (all as administrator)

    Open CMD window:

    "net use LPT2: \\hp1\laser / persistent: Yes" command complete and looks good in "Net view \\hp1".

    Now, I open the print queue window and try printing a text file:

    "print test.txt > lpt2" command appears to complete.  (Same results for copy, etc.)

    I now see the file appear in the print queue, flashing, saying: rolling/printing, repeating & loop, and each Flash increases the size of the file!

    I tried to change the Port LPT1 and 3

    Nothing prints, because I have to stop the spooler, delete the file, start the spooler to clear.

    What happens on two different machines, I'm totally stuck!

    Help appreciated!

    Hello Stan,

    Thank you for visiting the Microsoft Community Forum.

    The question you asked is more complex than what is generally answered in the Microsoft Community Forums. We have a support forum dedicated to complex issues. I suggest you to send your query on Microsoft TechNet forum. You can get more effective suggestions and adapted by experts familiar with this topic. Your understanding is appreciated.

    Here is the link:

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itprovirt

    Hope this information is useful. Feel free to write us again to the case where you are facing in the future any other problem with Windows. We will be happy to help you.

  • Difference between the Tecra A, M and S series

    Hello
    What really is the difference between a, M and S Tecra series? Which should I choose?
    It is obvious that the Tecra is supposed to be a high-end standard in the range of the portable Toshiba, but why they do different Tecra series?

    I'm sorry if this has never asked, but can't find the answer.
    And thanks to all who responded.

    Regars,
    -nov

    Hello

    I am user Tecra M and each series has my own opinion design and hardware configuration. The availability of different series can be nice for potential buyers and costumers let them choose the preferred product.

    If you need Tecra for business, I can really recommend laptop Tecra. I use it more than two years and it works like the first day. It is very important that you know exactly what you want to do exactly, and you can choose your favorite.

    If you want to write what you expect from a laptop. It will be perhaps easier to give you a specific recommendation.

    Good bye

  • Apple Loops and tempo (distortion)

    Hi, I am really desperate to try to find a solution to this problem. But it seems that no one knows the same thing.

    I just purchased Logic Pro X. Im using a macbook mid-2014 race 13-inch pro retina El Capitan 10.11

    The problem is really weird. When using some Apple Loops loops and change the tempo of my project I get these really annoying audio distortions on the loops.

    I do a lot of original audio loops tempo change. The best example I can get is changing 128bpm (which is the tempo of the loop) at 130. Or 125 to 130. And I get this kind of flanger/distortion. Don't know how to describe it exactly.

    Some loops that I use are:

    -Jazz trance Beat 02

    -Garage atomic Beat 01

    Someone knows a solution? Or anyone having the same problem?

    Thank you very much!

    You have successfully updated to 10.2.1 LPX?

    I tested these two loops by dragging them into a new project, speeding up the tempo up to more than 150 and back again... and heard nothing unusual...

    There is always a small amount of audio artifacts as you are speeding an audio file (the process requires some audio data jump/compression...) and not a MIDI... but again, nothing, I would say, approached distortion...

  • Floppy disk drives for Satellite Pro 4200 and 4300 series

    I have four portable Satellite Pro - a 4340, a 4310, a 4270 and a 4280 and I have trouble getting the 4310 and 4270 to recognize a particular floppy drive. My understanding is that Mitsumi D353G FDDs were consistent with these laptops 4200 and 4300 series but I can't get the 4270 and the 4310 for «see» They will all be two however 'see' an FDD alternative I - a Pansonic JU-226A202FC, but I only have one of them and two laptops needing a floppy drive replacement. I tried a D353G I know (from my 4280) works in the 4310 and the 4270 but nothing helped. I'm keeping an eye on for an another Pansonic JU - 226A202FC FDD on ebay but no luck so far. It's frustrating because I don't know a FDD D353G expected to operate in the 4270 4310 and I have two spare ones that I wanted to use. I looked in TSETUP.exe and you can see no settings that I can change to make these laptops see floppy D353G so any help or insight greatly appreciated readers. Someone there a 4270 a 4310 runs successfully a floppy D353G drive or is this a quirk and these two particular models were made only to work with a Pansonic JU-226A202FC floppy drive not D353G disk drives? Clues?

    Hello

    Unfortunately, I am not a technician but I guess that there is clearly a problem with compatibility. It is possible that the assignment of pins is different and you cannot use them. If you want to have a precise explanation, you should contact technicians. I'm sure they have diagrams of the motherboard and can give you a good explanation and Tips how to handle this problem.

    Good luck!

Maybe you are looking for

  • How to add additional information to the files of the House

    Is it possible to add additional information to home video and TV shows/movies that I imported my self not that store from iTunes.

  • No connections available hp pavilion laptop

    Hi all.I bought my HP Pavilion New Notebook today and not his game well except for the internet to which it connects. Despite my phone pick up at least 10, including 2 in my own home, there are no networks.Flight mode is definitely off, and from what

  • What is the shutter speed of the camera of 1722?

    Does anyone know what is the shutter speed of the camera of 1722?  I only see the framerate in the documentation, but not the actual shutter speed range.  I know that this will depend on the lighting. I would like to know if this camera is designed t

  • I'm trying to install Adobe Flash Player on my Android phone - no luck.

    I'm trying to install Adobe Flash Player on my Android phone, but it keeps telling me that my antivirus software prevents it. I tried to uninstall my AVSW temporarily but it would not yet allow me to download. My phone is under Linux 64.Thanks for an

  • Re-use of LUNS that were part of another GM

    CRS version: 11.2operating system: AIX 6.1We have a few LUNS assigned to our DB server. These LUNS used to be MEMBER of another group of disks. Later these got LUN went from this disk group. Now, V$ ASM_DISK. HEADER_STATUS = OLD for these LUNs. selec