Real-time using RS232 communication

Hi all

I want to read a serial port at all times. Transmission speed is 2400. All the 1 sec 5 data packets are sent by the transmitter (hardware). Data package consists of 4-byte ASCII character as-A, d1, d2, d3. . Where A is used for synchronization of the data set, because d1, d2, and d3 are random and should be isolated for furthur v.f.. Here I am attachng my VI.

Problem:-instead of get 5 packs in 1 second I'm receiving only 2 packages in a second.

Questions:-ground for above problem? Y at - it another way to do it in real time. ? improvements to the VI Suggetions.

Please answer for above post your answers will be a great help for me. Please do not hesitate to ask any necessary clarification.

Thank you!

@smercurio: Thnak you for your response. You are correct that globle variables were used to transmit the data received from other loops. As you say I will use local variables instead of globle variable.

In addition, I would like to indicate more clearly that I forgot to mention that each byte 4 data are transmitted in the interval of 200ms. This 200ms includes the time required to transmit also the 4 bytes.

Earlier, my second loop has been integrated into the 1st loop itself. But since I was getting only 2 packages instead of 5 in one second, I removed this reflection to loop 1st form it might take time for the loop iteration. But stil problem is not solved.

Do you not assign data received by globle variable is taken on time?

Note * I have varified 5 packet rate / sec using Terminal Server.

Tags: NI Software

Similar Questions

  • Real-time TCP/IP communication

    Hello

    I use the following materials:

    SMU-1062 q

    SMU-8108

    OR PXI-5600 (02 card for 40 MHz of bandwidth)

    SMU-5641R (two entries are used; one for each NI PXI-5600)

    PMA-1115

    LabVIEW 2009

    I use the mode of the instrument to detect the signal to jump and write in a spreadsheet in real time.

    My question is that how can I transfer data on LAN in real-time to create a waveform in software on a remote computer before writing it to the worksheet.  I'm looking for something like the time communication real TCP/IP. I enclose my VI. Kindly guide me that how can I do this?

    Thank you and best regards,

    Rashid

    Hey Rashid,.

    Check out this tutorial with examples and let me know if it helps.

  • Simple serial using RS232 communication

    Hello

    I did some research on how to read and write with the serial RS232 port. The only example I found was a test program that is really involved. All I do is pass 7 bits of information that are going through a digital communication kit then read the same 7 bits of information after the kit Comm. (bits, parity of 7 bit stop bits not included... ect).

    So I just need to

    -Desired TX 7 bits of information comm kit (in addition to the necessary stop bits)

    -Information cross kit comm (short delay)

    -PC receives the same bits of return.

    Any help would be appreciated!

    IM using CVI version 9

    The byte field should be the data you want to send the kit of comm.

    It's something you need to know.

    Status fields give you information on the question of if the function call completed successfully.

    Most of the time 0 means success and error average of negative values. But you should read the function for each function to be sure about this.

    When you receive an error code you can use the GetRS232ErrorString function to get a verbal description of the error.

    number of bytes written, as its name implies, represents the number of bytes transferred to the COM port. You wait for the value to be equal to the number of bytes to send to your application.

    Hope this helps,

  • data acquisition in real time using the module sim900d (not arduino0

    Hello

    I'm doing my final year project. I'll send the data from a remote location using sim900d for the other module (sim900d) connected to my laptop. Now, I need to import data acquired through sim900d connected to my laptop in Labview. But I don't know how. Kindly guide me

    I looked for it and thus to find a link that uses the serial port to send to commnads

    http://www.codeproject.com/tips/583315/using-SerialPort-and-at-commands-for-querying-cell

    so now send orders AT serial number is easy. first of all examine the emitting part. for this you need VI config series VISA and VISA series write VI. You can serach these VI by right click I your new VI block diagram and press search on the top left corner. Here you type the serial port and you will get a list of the VISA series live.

    Here is also a link to or

  • Register the event on the target in real time using LabVIEW 2012

    Hi all,

    It seems that LabVIEW 2012 RT does not support user events. Screws are not in the range of function and the help of LabVIEW says that it is not supported. In LabVIEW 2010, everything seems fine.

    That's happened? We need this feature.

    Thanks in advance.

    Hello

    Thank you very much. We will use this workaround, which is not a lot of work if you know what to do. Develop a VI on workstation and the execution of switching left target to the low edge also implements the correct block as well as feature diagram objects.

    This can be fixed in the next patch-Patch because a lot of users could by irritated by this behavior?

    Thank you

    Tyler

  • [fpga] Faster communication between FPGA and host in real-time

    Hi all

    I received a card FPGA NI FlexRIO (SMU-7965R) installed on a chassis PXI (SMU-8135 embedded controller). I have an FPGA program to 40 MHz, and I use a real-time program to read a particular variable of FPGA on a regular basis. I do not stream. All I need is to get the most recent value during each execution of the loop of the program in real time (hence, DMA FIFO is not a good option). I am aware that you can read the FPGA indicators in the host program (real time) using the FPGA read/write control function. I used this feature to read a certain variable of indicator FPGA, as shown in the screenshot. The RT program takes 100 micro-seconds (10 kHz), which is not fast enough for my application.

    Is there a faster method to read the latest FPGA data, or the program shown in the screenshot can be modified to reduce the time of loop RT? Any help would be greatly appreciated.

    You're talking about an RT target a sitting in the RT himself FPGA card? If so, have you tried without the IP address of the target. See this thread to see why that would make a difference.

  • Chroma DC power supply RS232 communication (read problem of over-voltage and current)

    Dear all.

    I chroma programmable DC power. Based on the programming of the Instrument manual I develop using RS232 communication. Based on the program I can set the voltage, current, over-current protection, protection against overvoltages and make IT / OFF out put supply perfectly.

    But I have to read the measured values of the output power as current and voltage. Measured applications are the voltage and current of the output of the power supply. My problem is two of them read at the same time. Currently, the reading is only voaltge or current (if the first request is v? it is voltage read out but no reading for the current) and if the first request is CURR? the reading for the current, but not for VOLT? The status message is OK, even if it is to read values.

    Thanks in advance

    What I see in your program, it's that you do not use the stop for reading character. For your writing, you do the hard with all these concantanate string functions. You can set the stop character for all entries with a node unique propert - "ASRL end Out.

  • problem while conspiring waveform of the signal in real-time

    Dear Sir

    I use LabVIEW8.2 and USB1208FS for data acquisition. I have configured hardware with LabVIEW and data in real time using the Universal Library VI AInScBg.vi. When I draw my signal on the waveform (amplitude vs. frequency) then on axis x frequency ranges from 0 ~ 0.49 hz. I have change the sampling rate of 1000 Hz to 4000 Hz, but on the x-axis without frequency change occurs and it is set at 0.49 hz. Can you please guide me how can I get the frequency of my own interest on the x-axis.

    I enclose you daughter of LabVIEW for reference.

    Kind regards

    Muhammad Irfan

    Student

    UTP Malaysia

    0060149087570

    Simply change the text label of the x-axis of frequency does not automatically the correct calculation. You do not pass in the sample information in the service spectrum, so you get no frequency information. You can see the strain on the entry point. The function expects a data type of waveform as input. Without it, the dt will default to 1. Then, use the function create a waveform and add information from dt to it as well as your table of Y.

  • How can I check if a file exists in the CVI real-time?

    Also, it would be nice if designated so help file functions have been supported in real time or now.

    I tried this:

    If (GetFileAttrs (DataFileName, NULL, NULL, NULL, NULL) == - 1).

    You can check if a file exists in the CVI real-time using GetFileInfo.

    CVI provides a list of the available functions in the CVI real-time here: CVI real-time functions

  • RAM Preview plays is not in real time on the new Macbook Pro

    Hello world

    I have problems getting after effects to play the video in real time in AE CS6. I use a brand-new Macbook 2015 Pro 13 "retina with a dual core 3.1 GHz processor Intel Core i7 and 16 GB of RAM. I just made sure my copy of AE CS6 is up-to-date with the latest updates (11.0.4.2), and yet I am unable to read the video or animation in real time using the RAM Preview to any size greater than 25% in the Viewer.  If I try to play a video clip of 29,976 fps, the framerate tops out at about 17-18 frames per second. When I press 0 for the RAM Preview, it starts caching the images such as normal, but even after a loop continuous cadence comes not near real-time. The audio plays fine, but the video starts immediately behind. I can't even a scene of simple great test of a form of retouching layer move on the playback screen in the real time RAM Preview.

    That said, I can get it to play in real time if I reduce the viewer up to 25%. But obviously, I won't be limited to work in quarter resolution on a new laptop. My last Macbook pro from 2008 and completely across the well treated RAM previews, being able to cache images and play them back in real time without problem.  I have to assume that there may be a function that I'm missing or something goes wrong, unless I just grossly overestimated the capabilities of my new laptop.  But surely, it should be able to manage simple video playback. I had no problem using first on this computer, then it can of course deal with the video.  Any help you can offer would be much appreciated, because this problem becomes really frustrating!

    Just for fun, try the trial of CC 2015 and see if it behaves correctly.

  • Problem using USB-6356 on target in real time

    I try to use the NI USB-6356 on a SBC I converted to a target for LabVIEW RT. I created a LabVIEW RT project with the Architecture of Communication continuous model. However, when I select target RT > New > NOR-DAQmx channel, the wizard says "no device found support.

    Here's what I've done so far:

    1. Installed Support in real time on the host computer.
    2. Installed OR-DAQmx 15.5.1 on RT target (it is visible when I develop the 'software' under the lens of RT in MAX). See Fig1.png and Fig2.png.
    3. Verified that the NI USB-6356 appears in max under target RT > devices and Interfaces. See Fig3.png.

    Even if the NI USB-6356 appears in MAX, it seems suspicious that it appears as a USB device generic (like the keyboard and mouse that are connected to the target RT). Maybe it appears that way because it is connected to a goal of RT, but it seems that it is not recognized as a DAQmx device. I don't know how get the target RT to recognize as a device DAQmx, given that the appropriate drivers, etc are installed on the computer host and target RT.

    Thanks in advance for any help!

    Sorry to be the bearer of bad news, but the devices USB DAQ (other than the USB cDAQs) are not supported on PharLap targets at the moment. The documentation could certainly be clearer, so I'll update soon to reduce the confusion on this topic.  This white paper, last updated in 2014 is clearer than we currently have.  It is also explained in this KBQ5, but the wording is certainly a little bit clear here.

    I'm not sure of any other solution that exchanging your 6356 for cDAQ USB system, or the displacement of a BONE no - RT.

  • using NI USB 9201 with LabVIEW Real-time

    Hello

    I try to use a USB of NI 9201 on a remote real-time target. Here's what I did: 1) tricked out of a desktop PC to serve as target RT using the instructions provided on the Web site of NOR. He now starts in an RTOS with LabView RTOS 9.0. (2) I communicated successfully with the help of a host computer that has a windows with LabView 2009 BONE and I installed the software from the computer remote RT target host using ethernet. However, my problem is when I plug NI 9201 USB on the target RT that I do not see the material listed on the devices tab in MAX and interfaces on remote systems. I tried to get the manuals for the HW 9201, but it seems not much explained here, or maybe I'm looking in the wrong places. Any help is greatly appreciated.

    PS: I am attaching 2 JPEGs for additional explanations (tab network settings and the settings of the system).

    Thanks in advance,

    Benoit.

    AVS,

    9201 USB is not supported on RTPCs please visit this link. Currently no usb-DAQ devices do not support an environment CRPC. Only the PCI DAQ devices are supported.

    http://zone.NI.com/DevZone/CDA/tut/p/ID/6913

  • My daughter has an air of ipad and iphone 6 mounted on a tripod. She would like to use his phone to photograph/video while you watch on his ipad (in real time)... is it possible? If so, what adapter or cable is needed?

    My daughter has an air of ipad and iphone 6 mounted on a tripod. She would like to use his phone to photograph/video while you watch on his ipad (in real time)... is it possible? If so, what adapters or cables are needed?

    Hello!

    Unfortunately, this feature is only available with the GoPro cameras.

    And Yes, if all cables already existing for these purposes, it would be kind of a pain to take pictures and do not shake the camera accidentally. Maybe, VSCO camera makers will make such feature in some time in the future. This idea is excellent and innovative. Maybe even Apple will listen to users and make their new iOS 10.

  • Simulate the sine wave using LabVIEW FPGA with NOR-myRIO and display in real time

    Hello

    I'm relatively new to LabVIEW FPGA. I am trying to test (and later apply) controllers high speed on myRIO.

    At this point, I'm trying to simulate the sine wave from 1 to 10 kHz using Sinewave generator VI express. I also intend to display the sine wave on the time real (RT) using FIFO. However, I had a bit of trouble to understaing various synchronization parameters.

    1. how to encode information about the sampling frequency generating sine wave? (The side FPGA vi requires only the frequency of the signal and possibly phase and does not rate update lines)

    2. how to estimate the number of items in a FIFO? (that is, the relationship between the rate of updates to loop (RT), the signal frequency, sampling frequency and the number of items in the FIFO)

    It would be great if we could share a very simple program (side host and target) that did something similar.

    Thank you

    MILIN

    Milot,

    I think the problem is the type of data in your FIFO. Your FIFO is configured to use a data type of I16. The problem is the number, it displays only ever will be-1, 0 or 1. To resolve this problem, you must send the sine wave as a fixed point data and convert it to a double on the side of the RT. This should significantly improve your resolution.

  • Control of data using multiple thermocouples via indicators and the waveform in real-time

    I apologize in advance for this question is probably a bit simple but I'm all new to labview and the forum and could use some advice. I have a CompaqDAQ with two 9213 16 modules of track and I'm trying to read in 30 thermocouples in a waveform, but also display 30 indicators so I can mark each indicator with the thermocouple for real-time tracking. Each thermocouple corresponds to a specific location and it is essential that the interface has an accurate indication or a label for each of them. I wonder if there is an easy way to do this in addition to split the signal and have 30 thermometers on my diagram? Perhaps a table any? If I use a table to create 30 thermometers, the DAQ assistant automatically sorts the thermocouples according to ascending numerical order. For example, would be the indicators of first and second on my interface automatically assigned to channels a0 and a1 of the first module, or should I do it manually? Even for the waveform?  Thank you very much!

    PS - Do not know if this message had need of more details, but let me know if more information is needed, and I'll give you!

    I see that you use the DAQ Assistant to create your task.  Now I understand why you may have about labelling.  It is easy of the seller NOR spiel booting...  But in any case, you already have a task to the MAX instead of use the DAQ Assistant?  The interface is similar and there may be a step or two, but your end application will be more effective and you will have more options with your data and properties.  For example, I tried to update the names of physical channel in the DAQ Assistant installation program, that it let you do, but it propagates that change forward to waveform chart legend.  Also, I don't know any property for this dynamic data type node, although I never use it either.  I suggest the setting up of your task and channels, Max if you'd give it a go.

    Since I thought I didn't really takes you all the way with you help, I wrote another one.  It uses a cluster, even if it's a bit barbaric.  I thought that there was a more eloquent way to do by changing labels, but I could not it works as I had expected.

Maybe you are looking for

  • How can I stop weDownload reinstall, despite me removing.

    I get ad links when I start Firefox. I remove weDownload, reboot and it works. The next day, I restart Firefox and there is weDownload, complete with advertising links. Very annoying. Any suggestions gratefully received. Thank you Russ Kent

  • All media moved to iCloud after upgrade

    Updated to iTunes v12.3.3.17 and start the media points to the iCloud although my brackets are always local.  How the database to point to my local media?

  • How to disable the timeout of the wizard of the instrument

    I don't want the instrument Wizard to expire if there is no entry series. The only way I know how to do it is to open the front panel of the wizard of the instrument and remove constant numeric keypad to timeout the timeout of the node of the propert

  • HP Mini 1000 Bios password check failed

    I have recently made me a mini hp for the school as a hand down from my father, I have never set a password of BIOS for this laptop, and after a few weeks of use, it suddenly locked up on me and gave me the error code: CNU92937S4 If there is somethin

  • Smartphone blackBerry, removing contacts and email accounts

    Hello I just got a Blackberry 8300 from a colleague who has left the company. Is there a quick way to remove their phone contacts & address SIM on mass books? It's excruciating duty doing one by one! I also have the same problem with having to remove