Formatting of RS-422 data display / handling

I hope someone here can point me in the right direction.

I am developing an alternative to COTS Accessport program (http://www.sudt.com/en/ap/) in Labview.    I found a basic example of serial communication I could manipulate and display my data stream (32octets HEX, 69 being the starting byte):

Where my problem is in the data stream.    This example displays the data as a string type in this text box 'read the string '.    I need to handle data type string and break-out/display individual bytes, and I don't really know where to start.   I tried to add a table... but I'm a data type mismatch in the block diagram.

Block diagram error

Finally, I would like to be able to select / monitor only specific bits and leave the LabView to manage the processing of the data... but I'm me.   Thoughts?

1 remodel table is wrong.  And through the shift register stages do nothing for you other than to delay all these manipulations.

You want to add all the 36 bytes, integrate in a table.  Delete the oldest lines using delete in the table.

2 and 3.  You use bytes to the Port which I have told you is the wrong thing to use.  I described a method for how to find the starting byte.  See my attached VI where I implementd that.

4. you can create an object of front panel, perhaps an indicator of the photo or the color block you the size to cover a column.  You can use the events to slide the mouse on this control to detect where to go to.  It's really a question own right beyond the analysis of the series.

In addition, you have your string to write together as * IDN?  (It has been converted into hexadecimal display so it was not so obvious).  Are you sure that's what you want to write?  That works for instruments such as spectrum analyzers, power supplies, DMM.  It is built in examples of series, but often that order means nothing to most of the devices series that speak to you.

You also had the active stop character.  This means that any time you get the stop character (newline hex10), the reading series will shorten.  That's why you think you're getting asymmetrical data.  When you work with binary data, you must disable the stop character and other methods (such as a defined 36 byte packet size) to determine how to read.

Tags: NI Software

Similar Questions

  • Looking for model/data format to import survey data in the survey on demand in the apex 4.2.5

    Hello

    Looking for a model/data format to import survey data in the survey on demand in the apex 4.2.5.

    Thank you

    hayatms wrote:

    Where I can get this CSV format, so I have to add in the file accordingly. Thank you

    Click on the button create poll on the surveys page, then select the option to create a survey from a text file. An example of the required format is displayed. It is not a CSV format.

  • Date display

    Hi, I have a small display problem my date in the format that I have chosen. In access, I chose for my type of date is "Long Date" that could be, for example:

    May 29, 2006 (something more or less like that)

    but when I view it, its be shown like this:

    2006-05-29 23:01:03.0

    as a test I tried to change the date format "Short Date" access which should look something like this:

    29/05/2006

    but when I went to see on the Web page again, it looked like:

    2006-05-29 23:01:03.0

    I don't know why this is happening, is does anyone know how I can fix this problem that the date could be demonstrated how I view in access? I appreciate any help anyone could give, thank you!

    WOLFcfm wrote:
    > I don't know why this is happening, is does anyone know how I can fix this problem if the
    > date could be shown how I displayed it in access? I appreciate any help that
    > could someone give, thank you!

    for the purposes of the display date


    #dateFormat (dateValue, dateMask) #.

    where dateMask controls the shape, LONG, FULL, MEDIUM, SHORT or something
    custom (for example "dd-mmm-yyyy").

    If you need localized date display, use lsDateFormat & recommend your stay with
    the standard LONG, FULL, MEDIUM, SHORT date masks.

  • Create a button to erase/reset the data displayed in the graph

    Hello

    I'm new here and to work with labview. I searched the Forum but have not found an answer that would help me (or at least I think I thank)

    I'm working on a project to acquire process an ECG signal with an acquisition of data. In the front panel, I am trying to display 2 graphics, part of the real-time data display and the other showing all the data acquired up to now. I wanted to add a button to this second graph that, when the user wanted, deleted the data shown in the graph, but immediately continued to display the data.

    (trying to make me more clear)

    ' display all the data acquired--> X--> cleans graphic display--> press the button display all acquired data.

    If someone could help, I would be very grateful!

    Thank you very much

    FM

    Hi fred,.

    Open the finder example in LabVIEW and locate the example of 'how clear diagrams & graphics '.

    Pretty easy, don't you think?

  • Format without losing any data?

    I removed the hd to my external hard drive enclosure because the usb connection broke.

    I put the hd in my pc and I format. Is it possible to do that without losing data?

    Hello

    1. what operating system is installed on the computer?

    I suggest you connect the hard disk to another computer and try to save the data, then perform Format.

    The format will result in the loss of data; It is not possible to format without losing any data. You must back up the data before performing format.

  • the process know my location/time zone, how is this possible since I formatted to remove all data.

    Original title: information on a formatted drive

    Hello

    I do a clean install of Vista on a drive formatted during the installation dialog, the PC is not connected to the internet.

    I note that the process knew my location/time zone, how is that possible because I formatted to delete all data (malware)

    Thank you

    Daniel

    Because your computer installation has been changed by a manufacturer (assuming you used the recovery disc/partition), it is likely that they localize it to their own local headquarters.

  • My wallpaper appears only in the extended format. I want to display a .jpeg file into the center channel mode. I click on center and save the changes, but he remains in stretch mode...

    My wallpaper appears only in the extended format.  I want to display a .jpeg file into the center channel mode.  I click on center and save the changes, but he remains in stretch mode...

    HP technical support solves the problem for me with a patch: I'm sorry that I don't remember all the steps they walked me through but the patch was SP45575. EXE.   It was working fine.  Good luck

  • My cc of dreamweaver does not link, server behaviors and data display

    My cc of dreamweaver does not link, server behaviors and data display

    Hello

    Please read this thread-

    https://forums.Adobe.com/thread/2139846

  • The MTS file date display information on screen time in CC PP

    I need to display the timestamp from date of the MTS files so I can see them in PP CC15. Is it possible to get rid of it within the program? Now, I have to do it in another program and then import the file. Takes too much time this way.

    Premiere Pro does not have this feature.  The closest you can get is display the timecode for clips that have it.  If these clips were recorded using Free Run, that would give you a time, but there is no way to see the date displayed in an overlay.

  • How to find / search the text in a table of data displayed in adobe flash player?

    I have a table of data displayed on the browser, but with Adobe Flash Player UI technology. CTRL + f does not work on the table to find a specific word in the table.


    What are alternates, you ask? or all the other shortcuts are available to search or search the text in such a case?

    Thank you.

    There is no good workaround solution.  The developer would have needed to implement a similar feature in their Flash application, or they would have needed to use StageText (which essentially exposes the native textfields), but it seems that they have neither.  The HTML TextField is certainly more robust and functional of the Flash, and honestly, HTML is probably a better choice of technology for what you describe.

  • date display format

    Hello


    How to display the 01/01/2013 as jan-13

    01/02/2013 as feb-13

    This format is not available under the column properties. Can someone tell me the solution?

    MONTHNAME ("Date". "Date of shipment") | " CAST ('-' as char). SUBSTRING (CAST (YEAR ('Date'.) "Date of shipment") (as char)(, 3, 4) worked for me... "

  • QUESTION: SE 2012 data display returns to the time graph each time

    Hello

    I have SigExp 2012.

    If I try to add a data view and make a pledge of graphic style, thermometer, etc., as soon as I have the right up until it clicks, add my TC chain, the data view returns immediately to a graph time.

    In addition, even if I use the graph of time, once I added the signal, it only let me see the string in a table, a chart of time or a waveform graph.  Those are the only choices.

    If I use a graph of time or a band of waveform graph, it does not read the signal correctly, but I can not configure the data view, the way I want it.

    Is this a bug or I do something wrong?

    Thank you!

    This occurs when you try to change the display of a signal in its raw format "waveform".
    You must convert your signals in scalar format. To do this simply add an amplitude and levels step (under: analysis > measures Time-Domain). Drag this DC signal newly converted to a new chart and right click on the graph to change the display.

    Honestly, I'm not sure why raw waveform signals are inherently limiting viewing functionality, but in such cases, it is.

    You can also; According to the devices on which you use and the order in which you add to your DAQmx Acquire, some default signals step to scalar signals without having to convert.

    See the attached screenshot and you'll see how the icons are different between the waveforms and scalar signals.

    Hope that helps

  • Timestamp date displays year as 0015 or 0014

    Greetings,

    I have an oracle table with a timestamp column that stores the date as follows:

    BadDate2.jpg

    However, when I discovered this date through the front-end server Java I see this:

    BadDate.jpg

    I know that the year shows that 2014 but it is just one example of another date that is in the same format as above, but the same question.

    What would be the best way to solve this problem?

    Thanks in advance.

    Abu Dina wrote:

    Greetings,

    I have an oracle table with a timestamp column that stores the date as follows:

    No, he does not "store data as follows.

    Your tool front end displays the data 'as follows.

    If the column is, as you say, a TIMESTAMP, then it is stored in an internal binary format is quite regardless of how any program specific application (like sqlplus SQL Developer or any other application that queries the database) chooses to display everything.  And the front-end server chooses how he view by applying a rule NLS_DATE_FORMAT at various levels.

    For a more in-depth explanation, see but I want to keep my date under...

  • Date format for the field date

    Hello

    I'm stuck with formatting issues after that try to various forums, but none of them worked so far...

    Now, the question is I have two fields on the form date both are of date data type and I checked the type of attribute VO also data...

    Among the parameters fields like messagestyledtext are messageinputtext...

    It's weird when I checked the dates with system.out.println, it displays in the format as follows:

    Value LevelIIAppeal before 2015-08-20

    LevelIIAppeal value before August 20, 2015

    I tried below is the code in LICs both methods but none of them: alert

    java.sql.Date date1;

    SimpleDateFormat sformat = new SimpleDateFormat("dd-MMM-yyyy");        

    If (UVO.getCurrentRow () .getAttribute ("LevelIiAppealDeadline")! = null) {}

    String LevelIIAppeal = (String) UVO.getCurrentRow ().getAttribute("LevelIiAppealDeadline").toString ();

    String str_newDate = sformat.format (LevelIIAppeal);

    System.out.println ("value entered LevelIIAppeal" + str_newDate);

    2nd method

    Try

    {

    Date1 = new java.sql.Date (sformat.parse (LevelIIAppeal) .getTime ());

    }

    catch (System.Exception e)

    {

    Date1 = null;

    }

    System.out.println ("value entered LevelIIAppeal" + str_newDate);

    Help, please.

    Thank you.

    MK

    MK,

    As I've said several times, the format of an object of type 'Date' have no significance. You can just skip the date object to the PL/SQL (format are not important, if passing as Date).

    You can refer to the blog below if you want to see how to move Date of page to PL/SQL. : Oracle tips of Johny: OAF: sample code to call the PL/SQL of OA Framework procedure

    Also to check format specifc #2 and #3 format (not not mandatory in this case, I guess): Oracle advice of Johny: OFA/ADF/Java: playing with Dates in Oracle Application Framework

    Close the message if you got this job.

    See you soon

    AJ

  • Data display

    Hello

    I have a table of Bank Transaction table. I want to display the data account no. rates wise sages Date and withdrawals and the closing balance.

    CREATE TABLE bank_transaction

    (acc_no VARCHAR2 (20 BYTE),

    trn_dt DATE,

    trn_type CHAR (1 BYTE),

    sale NUMBER (10.2)

    );

    I want to display data like that.

    Account no.: 100

    Trn_dt flow Withdrawl closed ball

    01-apr-2014 5000 5000

    02-Apr-2014 1000-4000

    03 Apr-2014 2000-7000

    Account no.: 101

    Trn_dt flow Withdrawl closed ball

    01-apr-2014 10000 10000

    02-Apr-2014 1000-9000

    03 Apr-2014 2000-11000.

    I tried like this.

    DECLARE

    CURSOR c1 IS

    SELECT DISTINCT trn_dt FROM b_trn_t ORDER BY acc_no, acc_no, trn_dt;

    CURSOR c2 (VARCHAR, p_trn_dt DATE p_acc_no) IS SELECT acc_no, TRUNC (trn_dt) trn_dt, trn_type, balance OF the b_trn_t

    WHERE acc_no = p_acc_no AND trn_dt = p_trn_dt ORDER BY acc_no, trn_dt;

    v_cr_amt NUMBER: = 0;

    v_db_amt NUMBER: = 0;

    v_clos_bal NUMBER: = 0;

    v_acc_no varchar (12);

    v_trn_dt DATE;

    BEGIN

    I'm IN c1 LOOP

    IF v_acc_no IS NULL THEN

    Dbms_output.put_line (i.acc_no);

    v_acc_no: = i.acc_no;

    ELSIF v_acc_no <>i.acc_no THEN

    v_acc_no: = i.acc_no;

    v_cr_amt: = 0;

    v_db_amt: = 0;

    v_clos_bal: = 0;

    Dbms_output.put_line (i.acc_no);

    END IF;

    FOR j IN c2 (i.acc_no, i.trn_dt) LOOP

    IF j.trn_type = 'C' THEN

    v_cr_amt: = v_cr_amt + j.balance;

    ON THE OTHER

    v_db_amt: = j.balance - v_db_amt;

    END IF;

    END LOOP;

    v_clos_bal: = v_cr_amt-v_db_amt;

    Dbms_output.put_line(i.trn_dt ||) ' D ' || v_cr_amt | ' C ' || v_db_amt | "CLOS BALL | v_clos_bal);

    END LOOP;

    END;

    Hello

    This request obtains all of the information you want:

    SELECT acc_no

    TRUNC (trn_dt) AS trn_dt

    , SUM (CASE WHEN trn_type = ' THEN trn_amt END) filing form

    SUM (CASE WHEN trn_type = 'W' THEN trn_amt END) AS witthdrawal

    SUM (SUM (CASE

    WHEN trn_type = ' THEN trn_amt

    WHEN trn_type = 'W' THEN - trn_amt

    END

    )

    ) OVER (PARTITION BY acc_no

    ORDER BY TRUNC (trn_dt)

    ) AS closing_bal

    OF bank_transaction

    GROUP BY acc_no, TRUNC (trn_dt)

    ORDER BY acc_no, TRUNC (trn_dt)

    ;

    The format is not quite what you asked:

    ACC_NO TRN_DT DEPOSIT WITTHDRAWAL CLOSING_BAL

    -------------------- ----------- ------- ----------- -----------

    100 17 March 2015 6000 6000

    100 24 March 2015 5000 1000

    100 March 25, 2015 10000 5000-6000

    101 17 March 2015 10000 10000

    101 24 March 2015 5000 5000

    101 25 March 2015 5000 1500 8500

    If you are using PL/SQL, to get the results in the exact format you need should be easy.

    Using only SQL, you can get the acc_no on a separate line using GROUP BY GROUPING SETS.  You can use CASES and the GROUPING function to show only the acc_no on some lines and all, but acc_no on others.  May also get the acc_no and the trn_dt in the same column.  (You will need to explicitly call TO_CHAR for this).

    GROUP BY GROUPING SETS can also get a header line after the first acc_no.  If the VARCHAR2 headers are part of the result set, you will need to convert to strings, the total NUMBER of columns using TO_CHAR.

    Maybe some of you have done proof of formatting is not important to you.

Maybe you are looking for

  • How to restore the main sites visited when opening a new tab

    I was mucking around with themes today and now when I open a new tab, it does not show my most visited sites, it shows just a blank page. I had this problem before and somewhere managed to solve this problem, but now, I went through everything & I ju

  • Windows 7 drivers for Bluetooth adapter

    Good evening I have a HP Envy M6 1150sa on thich I installed Windows 7 (shipped with Windows 8). I have trouble getting the bluetooth device to maintain a connection with any device at all.  I can scan for devices, connect to the device, but as soon

  • DAQ Assistant to create separate signals

    Hello I have a PCI-6229 I would create 5 separate signals in a diagram, but I don't know how I could do. I entered signals between 1V and 5V and I would re-scale these signals from 0V to 5V and then I want to represent them in a histogram. Could you

  • XP laptop with 1 GB of ram

    I have a Dell laptop with 1 GB of ram under XP. I get a message that it doesn't have enough memory. How can I fix or solve this problem?

  • NVIDIA no longer works

    Hey, I have an Acer Aspire V3 - 571 G-53216G50Makk (BE), and today I downloaded the new drivers for my Nvidia Geforce GT630M 2 GB and the new driver (for Nvidia) said my 630M 2 GB was not compatible and now my 630 M 2 GB no longer works (I tried with