Incompatibility of rate baud Serial VISA

Hi guys,.

I have a vi to read the GPS settings via a serial port. I first set up the serial port, then I write some settings through the series and then I begin to receive messages with the position, speed, time, etc.

The producer is a timed loop. It reads everything on the serial port every 100ms and sends to the queue. GPS generates messages to 100 Hz, so each loop I 10 values of data for each iteration.

The consumer gets the messages and converts the strings in final values.

This works well at 115200 baud, but when I change to higher values such as 460800 (the serial port and the receiver can take higher values...), I start getting messages grouped each 4 loops (in the example 460800). I mean, I get 40 data values an iteration (it takes 10), then 3 iterations with no data, then 1 iteration with 40 values and so on.

460800 is 115200 four times, so I must be doing something wrong, but I don't know what. Both the serial port and the receiver are correctly configured to 460800, am I missing something else that needs to be configured?

Thank you!

OK, I have the solution. I had to reduce the latency in the advanced configuration of the serial port from 16 to 4 ms.

Hard to find!

Tags: NI Hardware

Similar Questions

  • Get information about the physical location (serial) Visa (slot) in PXI time real (Pharlab)

    Hello

    I PXI system with controller time real (OS Pharlab) and many maps series (about 6 cards).

    The maps in the series are two different models, which each contain several (8431/8 and 8421/8) serial ports.

    And the COM Port enumeration mix and I would like to know the link between COM numbering where it is linked.

    I have already dealt with a few methods:

    1. I've tried using the node property of Visa but he cannot know which card port COM belong

    2. I tried to use the Configuration Library system and don't manage to get general information of the card and not what ports have this card.

    3 try to fill you with the VisaConf.ini, but discovers that ASRL and COM Auto-enumeration is the same.

    4. I tried to look in NISerial.ini, NISerial.dbs and NOR - RT.ini and did not find any help here.

    Application engineer or support suggest to look in the registry of the operating system Pharlab because it is windows based and material information must be stored in the registry

    Further explanation on the problem of PXI enumeration:

    PXI produce enumeration auto for the ports series (COM3, COM4, COM5...) according to the card slot, but when there is a mix of the two models of the system would then list a model (8431) from 3 to 50 (6 cards and 8 ports) and the other model (8421) 51 to 98. so if I have 8421 in 2 and 8431 slot number in the slot number 3 it would list 2nd slot COM59 to COM68 and 3rd slot COM11 to COM19.

    Why not just use NOR-MAX to manually configure the ports?

    The system is essential and can not be stopped for a long time and he operated by people who are not very technical, so the customer who wishes to be able to exchange business cards without futher configuration.

    Thank you

    Or Hirschfeld

    Application engineer

    SK-Electronika, Israel

    www.LinkedIn.com/in/orhirshfeld

    Solved and download the example of solution of community

    Get the location COM (Serial Port) and Port physical location in the chassis

  • USB-to-serial VISA read problems

    Hello

    I'm trying to control several mass flow controllers attached to a hub series Alicat BB9. The hub is then connected to the computer via RS-232 series. The computer on that what is done is not a serial port, so an adapter series / usb is used. When it is plugged in, the computer (XP) recognizes the series / usb and requires a driver. I installed a driver from the manufacturer of the adapter, downloaded from the internet. The same driver is used on another computer (Vista) without any problem.

    I am able to verify that the device is installed and operating correctly via the Device Manager. I am also able to see what the device COM port is turned on. Opening OR measurement and Automation Explorer (MAX), I am able to see the COM port listed under serial devices. I am able to validate the port settings and open a VISA session with the device. However, any time I try to read from the device, what happens to expired. I get the error xBFFF0015. I have for the parameter timeout at 5000 and 10,000 without change.

    When you run a VI that is used in the laboratory to control the same configuration, I can trace the error to a VISA read Subvi. The returned 'buffer' is not a value and will raise an error. I can plug the USB key into a laptop that has the same VI and it will run without problem. The Subvi "VISA read" return a value when running on the laptop.

    I'm under LabView 8.5 and 4.4 of VISA.

    If anyone has a suggestion that could get this to work I would appreciate it a lot. Also, I am a graduate. student who is working on this issue and my understanding of LabView is not terribly large, so dumbed-down responses would be nice

    Thank you for your help.

    Connor

    Thank you for the follow-up. However, I was able to solve the problem already... It was simply a driver update that solved my problem. The driver being used is "Prolific usb-to-serial" and version 1.. I upgraded 2.0.2.1 and it works fine now. I thought I had updated to the most recent before and apparently I had not... kind of delay. But thanks anyway!

  • setting the parameters of serial port VISA does not persist

    When I set the baud rate using the VISA's Interactive Control Panel for a serial port specific (ASRL) and then close the window for ASRL, baud rate goes back to the default value.  Why doesn't baud rate?

    Also when I change the port settings for a particular serial port (COM) on the side of Windows, why can't I see these same port settings when I look at them from the interactive panel of VISA?

    Also, when I set by programming the output baud rate for a particular ASRL (code C), why is it reset by default when I re - run my program and do a get on baud rate?

    Some information:

    My C program works on an industrial PC which has a PXI MXI connected to it expansion chassis.  Series 3 cards in the expansion chassis.

    When you close the VISA session and/or close your application, port settings in the system default values.  It is a very normal behavior.  As long as you keep your open VISA session, the port will behave how you already told (set Baud Rate, etc.).

  • Serial communication error VISA with LUDL stage controller

    Hello

    I'm trying to control a micro-positionnement made by Ludl stage. The model is Ludl MAC2000. It seems that the RS232 comunnication is implemented because I can talk to the controller using HyperTerminal. However, when I want to do the same thing through Labview, I can't answer the controller at all. The vi is roughly the same as the visa basic read/write in the example. Looks like a very similar problem in this post:

    http://forums.NI.com/T5/instrument-control-GPIB-serial/visa-serial-communication-problem/m-p/567065#...

    But the trick of nature of endpoint does not help in my case: I tried to toggle the termination character setting in the property node and different combinations of '\r', '\n' as termination characters, but nothing has worked so far.

    Seems to me there is some difference between the interpretations of the same order to Hyper Terminal in Labview. But I just can't understand what it could be.

    Anyone with a similar experience could give me some comments/suggestions? Thank you very much!

    Another difference between hyperterminal and labview is the speed of sending characters.

    LabVIEW breaks out the whole string to the controller

    HyperTerminal is this character by character. So much slower and slow the controller can be affected by this.

    You could add a loop around the writing of visa (to make it easy convert the string into a byte array outside of the loop and convert it to a string inside and you have a shipment char by char in LabVIEW

  • Clear VISA with event structure

    Hello

    I have a number of virtual serial ports of bluetooth as stream very quickly as soon as you open them with VISA configures port. I have set up/open these ports one after the other and it takes a lot of time (2 min), I think it's because they are com ports virtual bluetooth.  However, as soon as a single port is open, the data streams in and fills the buffer (eventually crashing the program), while I open other ports. I was invisioning something similar to an interrupt driven microprocessor to erase the buffer whenver it exceeds 2000 bytes to the port, my friend told me about event structures is similar to interrrupts. So, ideally, I would like to create a user event customized, defined by the property (bytes to the port) of a VISA com port node when it exceeds 2000 bytes. I would like just to run code that was going to free the buffer when occurs the same. Seems like a simple idea, I searched and did not find what I wanted to do.  Any help would be appreciated

    Thank you

    Chris

    Its delicate, but I think it would work.

    LV allows multithreading, so you can certainly run screws in parallel which are completely independent of each other.  But the challenge is that your code cannot access the same COM port simultaneously.  But the way you described the problem, which could be circumvented.  I think your 'COMPortMonitor' could sit and wait for each port to open before their follow-up... so that your main loop before opening the following COM port.

    Here's what the flow would look like:

    VI of HAND PORTMONITOR.VI                                      

    0 Begin execution of this

    1 separate launch PORTMONITOR.VI

    2 open COM1 begin implementation of this loop

    3 tell PORTMONITOR COM1 is open

    4 begin to monitor COM1

    5 open COM1 empty COM2 buffer when it becomes large

    7 tell PORTMONITOR COM2 is open

    8. start monitoring COM2

    9 empty COM1 & COM2 when they become large

    10 stop this loop when last COM is open

    11 more...

    In step 5, your parallel loop will work with COM1... so that your main loop is busy opening COM2.  In theory, I expect to run independently.  And you can try to put them in separate threads, too.  This links talking about parallel loops in series:

    http://forums.NI.com/T5/LabVIEW/multiple-parallel-asynchronous-continuous-serial-visa-reads/m-p/8090...

    BTW: I think that you must ensure that your VISA application is asynchronous to operate (right-click on them).

  • Series-1073807298 error

    Hello

    I have a serial rs232 interface configuration base to send and receive commands to a microcontroller.  Vi simply sends a command for formatting when the button is pressed and data are received port data will be read in variable entry stack sizes.

    When I run the VI, it works fine when I use a terminal window to send commands.  When I send data to the the following error occurs

    «Error 1073807298 occurred to read in data.vi receipt deubg VISA»

    Possible reasons:

    "VISA: (Hex 0xBFFF003E) failed to perform operation due to IO error.

    Is attached a simple VI that the problem occurs when on.  Any ideas of what I can do to fix the problem?

    Double check your flow rate baud rate, parity, data and stop bits settings to ensure they match the settings of your microcontroller.

    I would recommend that associate you your son of error between VISA functions.  At the moment you do certain things in parallel which could be a race about what is happening.  For example, configure the port series, THEN empty the buffer.  Write to the port VISA, and THEN read the data.

    Although it will not resolve your error, CMD1, CMD2, and byte to read must be set on I32, I32 and U32 (respectively) to avoid the stress points on the functions that they are wired to.

  • LABVIEW USART synchronization and one of the stm32

    Hi all!

    I try to control stm32 usart using labview to send the USART for example the baud rate settings. so to make things clear, I will give an example:

    at the beginning of the stm32 and labview two baudrate 9600, the user chose 115200 (on the labview interface) to communicate with the baudrate for the next operation. the problem is that I can't change baud rate to 115200 visa because stm32 still set to 9600.

    so I had an idea:

    -J' I send information 115200 without changing baud rate of visa (yet to 9600)

    -stm32 receive 115200 information but do not change the configuration of the usart (always 9600) because labview that he will solve his USART

    -stm32 send (with 9600 baud) to labview that he will solve his USART

    -labview already becomes his baudrate 115200 (then stm32 changed his USART at 115 200 baud)

    ==> now both of them are set up to 115200 baud

    my problems are:

    -is the right solution?

    -If yes how labview change baud rate and making him choose between the former baudrate (9600) and the new one (115200)?

    I'll be greatfull if someone helpe me and make me some tips?

    Best regards

    What you're basically describing is a method of exchanging simple confirmation. LabVIEW tells the micro to change its transmission speed. The microphone responds by saying "OK, I'll change." Your LabVIEW application assumes while the microphone has changed its flow baud rate, so he goes ahead and alters its baud rate to match. Without doubt, you have a simple "are you is order" who can be sent to the microphone to check the baud rate change. If this isn't the case, it is probably worth investigating.

    As to your question concerning the change of rate of baud in LabVIEW, a simple solution is to close the existing session of VISA and call the VISA VI set up the Serial Port with the new baud rate.

  • No response error and timeout device

    Hi guys,.

    I'm quite desperate I'm trying to control a pump scaler, but this does not and gets the time-out expired before the operation is complete.

    (1) I checked that rate baud, bit, parity... are as indicated in the manual of the device.

    (2) the simplest command is /1ZR (to Prime the pump) and as a character of endpoint requires a carriage return.

    (3) cable and pump are working as I have no problem to control with a simple software, made by Cavro (not in labview)

    According to this threat ( https://forums.ni.com/t5/LabVIEW/Changing-termination-character-doesn-t-seem-to-work/m-p/1898261#M63... ) there could be a problem of ending character, I tried to do the same thing but nothing. What I've done so far:

    -J' have helped stop character and change A through D on the front. I wrote /1ZR as a command (visa series configure serial port icon)

    -J' wrote directly /1ZR\r in the write buffer, (display "-")

    -J' also tried the last choice with the addition of a line break at the end /1ZR\r\n

    In all these cases, I get a time-out expired before the operation is complete. Someone has an idea of what's going on?

    I've attached a picture to clarify.

    Thank you very much in advance

    The problem may be with your /1Z\r of the chain. If you change the constant display of the display of the code string (by right-clicking on it), you get the following string /1ZR\\r which is not recognized by the hardware so that you get a timeout on VISA Read.

    Change to view the code and write the appropriate command or use the string concatenation function.

    Ben64

  • USB-problem of communication series

    Hello.

    I am trying to contact a module of mscf-16 mesytec via usb (usb smart series converter of fdti). Using hyper terminal I can connect and send commands to the module and labview, I can't use commands. It's like the same sense of module to return a string that I write.

    Y at - it any incompatibility between the fdti and visa vcp driver?

    HyperTerminal sends a CR and LF with every order. You ship only LF - the \n. In MAX, try adding \r\n. The \r is carriage return. In LabVIEW, you need to right-click on the control of the chain and select '-' code display or use the palette of the string constants.

  • [HELP] NOR error of MAX and locking of the...

    I have a NI SMU 1062 q and NI SMU 8135.  Windows 7 Professional 64 bit installed.

    I removed all the software OR using the control panel and then installed NI Developer Suite 2012. As part of the installation, the following has been installed:

    NEITHER Developer Suite Core

    Option deployment on FPGA (excluding the Compilation of Xilinx 10.1 Tools)

    Automated Test option

    I2C & SPI

    NOR Serial + VISA

    When I start OR it MAX errors with an exception. If I keep it then crashes. All menus are gray! He worked (with error), but now it crashes completely.

    I have attached the dump file and log.

    Also in the basket are:

    PXI-6509 DIO card

    PXI-7953R + 5734R DAQ + FPGA

    Controller USB CB2-1-PIPE

    PXI-2503 switch

    PXI-4070 DMM

    OR PXI-8430/4 RS - 232 card

    It worked in the end.

    The PXI chassis came pre-installed with a few cards that we had ordered. I think that NEITHER installed the drivers for these cards (probably more by 2012). Then, I removed all the software OR in the Panel and installed NI Developer Suite 2012. I think the drivers clashed. I did a restore complete system image to disk and re-installed NI Developer Suite 2012 and it was fine.

  • Problem with USB-232

    OK - this is probably a simple question, but it is at the origin of the questions that I do not know how to solve.  I am running LV 2013 on a 64-bit Windows 8 machine and I can't get the computer to identify a device USB-232 of NOR.  I'm under 4.0 Serial, VISA 5.4.  When I connect the USB-232 cable, a new entry in MAX peripheral slot and Interfaces called 'NOR USB' peripheral initialization.  I have no idea what it is or if there is something that I'm supposed to do with it.  Anyone have any ideas.  Everything would be welcome.

    Thanks, Matt

    As I said, I would recommend a reinstall of the NOR-Serial. I think this is the real driver that makes appears as a com port in windows.

  • NI-CAN Bus Monitor still works, but no examples of LabVIEW

    I have a USB-8473 on a PC running Windows XP I'm trying to monitor transmissions CAN go to an external device. No matter what settings I select in the Measurent Explorer & Automation, the bus monitor never miss a message and is completely error-free. Using the example "CAN receive error Frames.vi" included with NI-CAN 2.6.2 I get almost 100% error for all settings. I use 125000 baud in MAX and in the VI.

    Configuration:

    USB-8473

    NI-CAN 2.6.2

    MAX 4.5.1

    LabVIEW 8.6

    Any Suggestions?

    Thank you

    Jim

    Do you know what your baud rate? You can use the BTR values to program the SJA1000 with the settings real bit rate baud. The current formula should be the online help.

  • Series VI of operation to help on Windows VISTA

    Hello world

    Series VI Labview 6.1 use on Windows XP is fine, but their use on the Windows VISTA operating system is a problem. LV6.1 rest features are very good.

    I used USB-RS232 converter to connect to external device where LV6.1 has been loaded on XP. I select the COM port assigned number on behalf of VISA resource for the Serial VISA block function. The number of COM Port has been selected since the device manager that recognizes my USB-RS232 converter once I connect to one of the PC's USB port that has been loaded with XP. The feature COM & LPT Port in Device Manager provides example COM7 or COM9 etc. COM port number. Select the COM port number and Labview communicates as a regular RS232 Serial Port.

    Above the feature works very well with Windows XP and windows VISTA Home Premium does not work. I can't select the COM port number to VISA VISA's Serial function block name resource. This selection of resource VISA name gets freezes and gets stuck at ASRL2::INSTR. How to make the VISA series to work? Is this a problem with VISTA operating system?

    In addition, this version of NI-VISA does not support LabVIEW 6.1. The first version of NI-VISA which supports Vista is 4.1, but that version of NI-VISA does not support the LabVIEW 6.1. You need to upgrade from LabVIEW, or use XP.

  • Why is it I can't upgrade my adobe DC in DC pro adobe?

    Warum kann ich meinb Adobe DC nicht upgraden?

    Hi monikak44789968,

    Here to inform you that their no upgrade to export it to PDF Adobe Acrobat format pro DC.

    Acrobat Pro DC is a different full subscription.

    You can check this link for FAQ on acrobat DC mentioned: answers to some of the frequently asked questions Acrobat DC.

    As for Acrobat DC plans and rates you can visit this link: Plans and prices: compare plans | Adobe Acrobat DC

    Let us know if you need additional assistance.

    Concerning

    Sarojini

Maybe you are looking for