Post-processing of the data received from series

Hello

I want to process the data received by Compote in labview where the transmitter unit will send 22 bytes of data in this format 0 x 01 02 <18 bytes="" of="" information="" data="" with="" lsb="" first="">0 x 0 x 03 0x0D by the Compote which must be read using Labview. I want to treat the bytes received 22 in labview as below

(1) let the first 2 bytes and last two bytes

(2) from the left 18 bytes each consecutive game 3 bytes should be reversed (because the transmitter sends the first LSB) and stored in a text file.

Can anyone suggest me the steps to implement this.

Thank you.

You should probably disable the stop character actually because you receive binary data.  So to configure a Serial Port, you must connect in a FALSE way to enable the termination character.  Then you must read your VISA, just try to read 22 bytes.  This should keep you in sync since it is a response control facility.

Tags: NI Software

Similar Questions

  • How to detect the data received in the com port?

    I used NI-VISA, read to read function and tried to write and read the same data through back loop. I have read from the port, but I need to read only when all the data is in the port.how series I detects all data received in the com port? Based on the data received to write the data to the port only i need.

    Please help me

    Better it should work... just create your own port number, I used 20 com

  • Error Protocol in the package received from the initiator

    I have a Windows 2008 R2 virtual machine connected to a PS of the Group (6210xs and 6000). I have 4 volumes iscsi LUNS for Windows data, two on the 6210 and two on the 6000. The vm is on the 6210. We have implemented the 6210 back towards the beginning of the year, and all volumes of data have been implemented with MPIO 5 or 6 months ago.

    This morning, one of the 2 data on the 6210 disappeared. Windows Disk Mgmt did not show it online or offline, but the windows iscsi initiator showed as connected LUNs. I disconnected the lun and reconnected and immediately handed volume online and has been fully accessible. The monitor EQ had a message to info about the disconnect with "error Protocol in the package received from the initiator" at the end of the message. 2 seconds later, the logical unit number reconnected.

    It sounds like a problem with the initiator of windows rather than a problem of EQ, but I thought I'd check here in any case. It is interesting that it happened only to 1 volume of 4. This volume has been connected since May with no problems until today, and I do not have no changes to configuration since May. Are both the vNIC multichannel vmxnet3 with all the same settings (jumbo frames enabled, unloading of the disabled, numbers for Rx rings, etc.)

    Any ideas on all the settings should I check or change, especially with the network cards for?  I'll probably post this on technet, too.

    Thank you.

    Tim

    Hello

    The problem with iSCSI optimization is that it keeps track of connections.  However, the table moves periodically as you have noticed, the connections.  The switch fw does not understand that.  With each stroke he follows the new session and retains the old.   The buffer allocated for it is rather low.  According to FW versions on the switches, this could be as little as 256 connections.  Over time, this buffer is overrun.  The older of the switch that made to block any new connection iSCSI on port 3260.   So turn it off is the best option.

    Re: trunk. In general the ISCSI traffic is burst, so when you look at the history of the traffic it appears wrong, because he gets on average over time.  So, I would add at least two additional ports to be sure.

    Kind regards

    Don

  • Disable "start a new process with the data of this task.

    Hi all

    As the title says, I would like to disable "start a new process with the data of this task.

    Because I find that it will not work with form preparation process has data, I understand that you can fix by some changes to the procedure of data preparation, but I don't have time at the moment.

    Here is the screenshot to show what is a function 'Start a new process with this task data' in the workspace.

    new_process.JPG

    Concerning

    Bill

    I think your only option is to customize the Worksapce interface.

    I'm sorry.

    Jasmine

  • accelerate the backup of data received through series

    Hello

    I hope you can give me some advice. So far, I have not found a solution.

    I have a sensor connected by USB-serial converter to the computer (COM 2). After the beginning of the measure, the sensor sends continuously data as a string. The sensor is able to operate at different speeds and it is controlled through strings sent to the device.

    Now, I have programmed a small piece of code to read and evaluate the data from the sensor. There is no problem while looking at live data in several locations. But as soon as I try to save the data, I have speed issues. The loop is not fast enough to receive the data, because it is provided by the sensor. Temporarily remove the plots and so on, don't help not, therefore the problem is data backup. As far as I know, I should use the tables that I did and I don't think that editing bays should be the bottleneck, because they should be able to manage data in general much faster.

    In the Hyperterminal with windows, the unit works fine.

    I use VISA series with a timeout of 2 s and a buffer of 128. Baud rate is set to 460800.
    The real VISA read command is set to read 50 bytes max or stop a tank of termination (line break).
    After initialization, and sending the command start for the sensor, the device starts to send its data...
    The different speeds are:
    1 - 4 strings per second
    2 - 10 per second
    3 - 100 per second
    4 - 500 per second

    Each line gets cut, evaluated and plotted. Each value is also stored in a table (which could be saved after the program stops).

    In the photo, I deleted several commands sent to the probe, because they are not relevant and it doesn't matter (of failure) if I remove them in the program or not. It goes the same for plots. After setting the device at the higher speed, the program fails, because there is more data than labview bed. (I have already said, that without the tables it works very well, I do not have it?).

    So, what can I do? I'm doing something completely stupid? Is there a faster way to collect data with labview? I mean, 500 HZ, which must be nothing.

    Thanks for your help.

    Kind regards

    HD

    PS I'm continues LabVIEW 8.6

    Computer: Intel Core2 Duo E8500 3.16 GHz with 3 GB of RAM

    SW: Windows XP SP3

    You use insert into table with each iteration and forcing LabVIEW to keep reallocation memory for the berries. It is not very effective. Instead, I advise you to use the architecture of producer/consumer and transmit data back to the consumer loop where you write the data. Shift registers and who would skip all the functions to insert it in the table. You also use local variables and property nodes. Neither one of those who are very fast either. Can't tell from the picture why those are used. Also, consider using a structure of the event for these Booleans wired for the structures of the case. Do you really need those who questioned all the time and run the code with each iteration, or do you just need them to run once when the Boolean value changes?

  • Comparison of the data with froms and database data

    Hi all


    I have data in my table like this
    SQL> /
    
    SALE_ORDER_NO                                             QTY
    -------------------------------------------------- ----------
    TEST JOGI                                                  16
    TEST JOGI                                                  17
    TEST JOGI                                                  18
    12205                                                       2
    and question like that

    DECLARE
    Num_Stock NUMBER;
    BEGIN
    GO_block ('gin_detail1');
    Premier_enregistrement;
    LOOP
    SELECT quantity INTO num_stock from sale_order_barcode
    WHERE the barcode =: gin_detail1. BAR CODE;

    IF num_stock <: gin_detail1.xs then
    message ("' first already issued please receive" ");
    message ("' first already issued please receive" ");
    RAISE FORM_TRIGGER_FAILURE;
    GO_ITEM('GIN_DETAIL1.) BARCODE ");"
    END IF;
    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";
    NEXT_RECORD;
    END LOOP;
    end;


    If the data Enter twice then he saved twice, but I need when I run it will calculate the amount according to the sale_order_no

    example of

    sale_order_no
    12205 2
    12205 2

    It will save on the form and the vale is higher then 2 I need when it is large then 2 it will display the message

    validation on the other;


    Please guide

    Thanks and greetings
    Vikas Singhal

    Published by: vikas singhal on January 13, 2011 19:17

    Rather than check it in a loop, you could put your check in a before INSERT. If you do so, in the first record, the audit will be ok and the associated record will be inserted into the database. the second insert the alread can 'read' the inserted record previously and therefore properly check and will raise an error. If you raise an error, all insertions in the transaction (and therefore also the first) will be rollbacked.

  • Two synchronized USRPs receive the same sine wave emitted by an another USRP, there is a phase shift random and obvious between the signals received from the 2 receivers

    Hello world!

    First of all, I use a USRP as a transmitter to emit a sine wave (the signal is exp(j2*pi*f*t)), and then I use the external clock to synchronize the two USRPs (Ref as PPS in are connected to the clock) as receivers. Receivers are in sync, and they are at the same distance from the transmitter, I thought that the signal they receive should have a nearly the same phase. However, in practice, the phase shift is big enough, and this problem really confuses me.

    It's the received signals of 2 receivers.

    Yes. What you observe is expected.

    Near the bottof of this document read the area 'alignment Phase vs Phase coherence '.

    http://www.NI.com/white-paper/14311/en/

    And also, for the alignment phase, see the following 'Angle of arrival detection with NI USRP '.

    https://decibel.NI.com/content/docs/doc-25716

    Erik

  • New Mac, the data transferred from old Mac with Photoshop, but do not use the app. Do I have to rebuy Photoshop Elements?

    I bought a new MacBook Pro and Apple moved the data from my old MacBook Pro to my new. But Photoshop Elements said "among the components applications are missing in the Applications directory. Please reinstall the application. " But to reinstall, do I have to rebuy Photoshop Elements?

    Hello

    You need to reinstall Adobe Photoshop Elements.

    Download Adobe Photoshop Elements, please see - https://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-downloads.html

    If you have already purchased the serial number from adobe, you can refer to quickly find your serial number.

    I hope this helps.

    Kind regards

    Vivet

  • Tricks based post-processing for the pictures of the milky way?

    Hello everyone.

    While I had reasonable success to take pix of night sky, I still need to "master" the art of post-processing even to highlight otherwise invisible details/areas. Any suggestions would be most appreciated.

    Thank you in advance.

    There is some good advice here towards the end: https://luminous-landscape.com/introduction-to-landscape-astrophotography/

    That's basically what I do and you can often get for yourself the milky way even near urban areas or when dawn breaks when you do this right: for example: Star photography - lagemaatphoto

  • Change the meta data to shift the date of a series of photos of a year

    I have an external HD full of photos of a 14-month trip RV 3-4 cameras.  I started with my primary camera set date of one year behind the effective date and now I'm wondering as I import into lightroom 5. can I make a global change for photos taken by this camera that will update of the year by one (the rest of the date is fine).  By doing this I can interleave the four cameras per sort by date.  Since I am a newbie in lightroom I thougt I ask for more because it would allow me to save a lot of work.

    Thank you

    Jim

    In the library under menu metadata/Edit Capture time the following dialog box is displayed.  You can change the year in the photo more and it will update the rest of the photos selected by the same amount. Before using it on ALL of your photos, you should try a few pictures and see how it works.  Highlight the year that I have and use the up/down arrows on the right to change the value.  Also note that this cannot be undone so you can make backups of your original files.

  • Day after posting today on the Date/time field

    I have a field on a form such as date. I try to validate the entry date, must in fact be a date AND equal or after today, otherwise stay on the ground until it is corrected.

    Use FormCalc for this, it is easier to do date arithmetic in this language. Follow these steps on the exit event of the field (i.e. the way the user has already chosen a date). There is a function called (Date2Num) which will be the date that went and convert the number of days since a specific time (called at the time). So you would have to number of todays het can get the number of the date, the user chose, and do a simple test to see if today's number is higher than the current one. Something like this:

    get the number for the selected date

    var selectedNum = Date2Num ($.rawValue "YYYY-MM-DD")

    the Date() function returns the number of days in the time to the current date (date system)

    If (selectedNum<= date())="">

    his previous... Inform the user

    xfa.host.messageBox ("Please enter a date later than today's date!")

    Place the cursor in the Date selection field

    xfa.host.setFocus ("DateTimeField1")

    endif

    This assumes that your Date selection field is called DateTimeField1

    Paul

  • Media Center does not download information Guide - error during the processing of the data

    Media Center displays an error saying I need to look at the log of update, but I can't find the update log. Try to download the Information Guide to hand does nothing.

    Of your last log its connection and download the guide, so there is no connectivity problem as stated above.

    Try clearing the guide and the tuner configuration data and set up once again and then check if the guide updates correctly:

    1. close Windows Media Center if it is open.

    2. go to Start , type services.msc in the search box and press ENTER.

    3. look for the following services and check the status field, if they are started and then right click on them and chose to Stop:

    ·         Windows Media Center Receiver Service

    ·         The Windows Media Center Scheduler service

    4 open tasks now CTRL and SHIFT Manager, and then press the ESC key.

    5. click on the processes tab, then click on Show processes from all users .

    6. in the list, click the name of the Image to sort by name, and then look for the following:

    ·         ehmsas.exe

    ·         ehrecvr.exe

    ·         ehsched.exe

    ·         Ehshell.exe

    ·         ehtray.exe

    ·         mcGlidHost.exe

    7. in the case of imperfections, right click and choose end process.

    8. go to start, in the search box, type the following path: C:\ProgramData\Microsoft\eHome

    9. find and delete the file mcepgX-X - X.db and X-mcepgX-X file

    After that it's over, go through the configuration of the original tuner once again and check if the guide updates correctly.

    David
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • The updates received from Mircrosoft, the old ones that must be deleted some go back to 2005

    Received 86 updates from Microsoft.  Should I remove those of previous years, some date back to 2005.  Please notify.

    N ° keep it.

    There is no such thing as 'old' updates. They are there to protect against a vulnerability or provide updates of the o/s. withdrawal defeats the purpose of them being there.

    If you need more space, you must put in a bigger hard drive. Or get an external hard drive and put your data on it.

    See this thread:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-windows_update/can-i-safely-delete-old-Windows-security-updates/c63db7fd-bf2a-4179-9d83-981fb41ca823>

    UTC/GMT is 10:19 on Sunday, February 19, 2012

  • Can we copy the folder and the name of the data file from Windows Explorer and paste as text in Word or Excel?

    I have two records with a similar file; some of them are duplicates, and some may have the same name, but contain different data.

    I would like to compare files from both folders by name and size of the file.  In this way, I could say if I duplicate files, or files with the same name with different data.

    I would copy and paste this information (as text or values) in Word or Excel.  Any way to do it?  Any other suggestions re: comparing these files?

    Just take the b out of my order and you will get info from size.

  • When I print to my HP Laserjet 4000, the display shows the data received, but nothing happens

    I have an old printer, HP Laserjet 4000 and a new computer with Windows 7. Printer is connected locally.  When I try to print to it, the screen reads the received data, but nothing happens. Help?

    Hello

    Try the methods provided and check whether the problem is resolved.
    Method 1:
    Check out the link and follow the steps.
    Method 2:
    See the link, run the Fixit and check if the problem is resolved.

    Diagnose and automatically fix problems printing and printer
    http://support.Microsoft.com/mats/printing_problems/
    Method 3:
    Check the link and try the steps of troubleshooting described in the article.

Maybe you are looking for

  • NEED TO DO A FRESH INSTALL OF YOSEMITE

    Where can I find an installer for Yosemite? He is not on the app store and need to do a new installation. R

  • Re: reset password bios compaq mini cq10

    I have My netbook is locked and I can ' remember the password I get the error code following the CNU9512LPW bios password PLS CAN ANYONE HELP, I TRIED OUT THE CMOS BATTERY BUT HASN'T HELPED thks a lot

  • bike profiles... which?

    Try to understand what bike profile to use for the spin bikes.

  • Reinstalling windows and file recovery

    I had to reinstall windows. The menu said my programs would be deleted, but my files would be saved. I can not find them. Where can be found? the search function no longer works.

  • Windows xp sp2 or sp3

    Can someone tell me it is better what windows, xp sp2 or sp3 of xp, which is faster?