little binary string in array (of TCP read) to the table of Boolean LV (and back)

I would like to ask what is the easiest way for the next conversion? We use aTCP Read function to read an incoming binary string to a S7 API using LabVIEW. We know that LabVIEW stores a Boolean value to 8 bits. The incoming binary string contains 14 bits (representing 14 indicators of status). What is the best way to convert these values of 14-bit LabVIEW Boolean table?

In addition, we send a LAbVIEW Boolean table in the PLC data (to write a TCP) string containing status bits.

Thank you very much!

Martins wrote:

This 30 bytes contains some data more, including 14 bit flags (size is 14 bits). Since the PLC cannot put 'together' (16-bit) words at his side before sending data TCP, 14 bits is padded with 2 bits holding no valueable info.

Then the solution is simple.  Take your 2 bytes and unflatten in a U16.  Then use Boolean table number.

Tags: NI Software

Similar Questions

  • How to convert the string with numbers in the table of Boolean 2D

    Hello

    I have input a string with comma separated numbers 1,192 (starting at 1).

    This string must be converted to a table 2D-boolean. Each number that appears should be true, not true rest.

    The 2D table consists of 4 times of 0.47 Boolean values.

    1.48--> [0.47] numbers [0]
    49.96--> [0.47] numbers [1]
    Numbers 97.144--> [0.47] [2]
    145.192--> [0.47] numbers [3]

    If a '1, 49, 97 145' input string put all [0] [0.3] true.

    How can it be easy/fast resolved?

    Thanks for help

    Break the string of numbers in a table of numbers.  (Spreasheet String to Array).

    In a loop For, index with each issue of this table.  Use in the range and Coerce to see if it is in the range of numbers.  (You can put this in a loop For as auto good indexing through the ranges).  If it's in the range, then use subset replace table to activate the corresponding item in a real.  If this is not the case, do nothing.  Maintain the table of Boolean in a shift register.

    Repeat this step for each number in your table.

    (What is a class assignment?)

  • How can I launch Adobe Reader, accept the end-user agreement, quit and re-launch the browser?

    How can I launch Adobe Reader.accept the end user agreement, quit and re-launch the browser?

    Go to Launchpad, find Adobe Reader, double-click it.

  • Read about the table of peoplesoft

    Hello
    on FSCM91, 8.52 tools, Oracle 11 g R2 DB,.
    I want to create a user to be able to read all the tables in the peoplesoft owner SYSADM.

    I gave him:
    Grant select on a table;

    But when he select in psoprdefn (for example) oracle said: there is no table. Because the user should issue:
    Select * from sysadm.psoprdefn;

    Is other than to create synonyms for all tables sysadm, possible (to avoid creating 65000 synonyms)?
    We don't want to alter session statement to each connection.
    Thank you.

    No, I mean really myuser[sysadm]@mydb
    You don't have to know the password of sysadm, connect you with your user as sysadm habe. Then you become sysadm queries on the tables of the sysadm as you were sysadm.
    To learn more:
    http://docs.Oracle.com/CD/E11882_01/network.112/e10744/concepts.htm#DBIMI223

    Nicolas.

  • read the values of an array element and by sending a digital output to a designated channel according to the value read from the table

    Hello world

    could someone help me before I get out of my hair. Here's my problem.

    I read 3 values of an array of 3 elements i.e. 1,2,3. These values are then compared to a constant value, example if the first element of the array is 1 and it meets the comparison condition can send a digital camera of output for that channel on data acquisition

    I want to be able to send a value from a table to its corresponding comparison and then on its designated channel on the acquisition of data, the whole point of this is due to the fact the table element will not always read the value 1,2,3 for example could be 2,3,1

    Here's one the vi I have so far

    If someone could help it would be much appreciated

    all the best

    brand

    Take time to explore the many examples included with LabVIEW that cover the basics.

    -Indexing table

    -reading a spreadsheet file

  • How can I know my product key if I can't read it the sticker on my laptop and can't find it in any document supplied with the laptop?

    I have windows Vista Home Basic and I had a virus my laptop so had to wipe it and re install windows, but now he asks me my product key that I can't read the sticker as he had ripped a little...

    If you reinstall of the manufacturer's recovery disc then it should not ask for a product key.  That said, it is there no trace of the product key printed on the COA sticker on your computer.  Stickers are applied in batches at the factory and no record is made of what product key is associated with a specific machine.  I'm sorry.

    Check with the manufacturer if your computer has a recovery partition.  Who restores Windows to its factory condition.

    What kind ot disk you install from and entered with your computer?

  • DB file sequential reads on the table scan complete and LRU (new)

    I would like to add a question on the subject

    scan of full table and LRU

    According to MOS doc ument 1457693.1

    «.. signs diluvium readings of the caching blocks can be divided into a number of small multiblock and self-contained bed. »

    The question is if sequential readings of db file submitted by a FULL SCAN operation will be cached on LRU or MRU list?

    I'm afraid the flushes of heat/floods the buffer cache with a lot of FULL SCAN db file sequential reads.

    For which direct path series reason readings will be inapplicable, so using this new feature of 11g is out of scope for this question.

    Thank you for your interest,

    Rainer Stenzel

    There are a few different patterns of behavior depends on the size of the table (relative to the size of the buffer cache), but the key question is probably "readings will increment the counter of touch" - because if they are not the blocks will fall the LRU list fairly quickly, if they do then the blocks could (after a few tablescans) eventually be promoted in half hot from the cache.

    I did some quick tests (that requires a little care in the Installer) which suggest the number touch was not incremented has therefore not had any effect on the question of if the block would get preferential treatment when they have reached the end of the LRU.

    I'm a little puzzled by your expression: "cached on LRU or MRU list" - it's not two different lists; but people talk about "the end of the MRU of the LRU list.

    Concerning

    Jonathan Lewis

  • Writing TCP TCP read of the same VI.

    Hello

    I want to write data to a c program and also read data from it just after grace to a TCP connection. How can I implement both options in a single VI.

    I send you pictures of pixels values - program, then technology will send the berries to me. I made a suggestion, but I don't know if it is correct or not.

    The VI is downloaded and shown in the image below

    Yes, you can read and write to the same connection. Why would it be possible? I do not understand why you ask the question. Did you try and have a problem? If you don't try it, you might at least have opened one of the many TCP examples delivered with LabVIEW and illustrate this, you have not even need to write new code to see. If you have a problem, then ask for it specifically on this issue.

  • ORA-19102: literal string XQuery waited while xmltable reading using the clause of passage

    Hello

    I have the following XML in the column tmp_xml in the tmp_medimail_accounts table:

    " < = xmlns:env env:Envelope ' http://schemas.xmlsoap.org/SOAP/envelope/ ">

    < env:Header / >

    < env:Body >

    " < its: findAccountByCriteriaResponse xmlns: its = ' http://session.kernel.CMP.com/ ">

    < return >

    < detailedInfo > accounts found: 1 < / detailedInfo >

    < operationResult > MPROXY_RESULT_OK < / operationResult >

    < value >

    < authCertificate / >

    < autocertificationActive / >

    < boolAck > true < / boolAck >

    < caDomain > BE_AUTO < / caDomain >

    < certified > false < / certified >

    < City > BELSELE < / City >

    < commercialAction / >

    < country / >

    < description > MediMail 3.7.4 < / description >

    other < dmi > < / dmi >

    < emailForward > false < / emailForward >

    < enabled > true < / enabled >

    < encCertificate / >

    medidoc < encodingType > < / encodingType >

    < etk / >

    < fax > LDAP this field is masked by the SECURITYFILTER < / fax >

    PC < firstName > < / name >

    < inami > 72091883000 < / inami >

    < institution > pc sint hieronymus < / institution >

    < language > NL < / language >

    < name > sint-hieronymus < / lastName >

    < lastconnectiondate > 20140115090051Z < / lastconnectiondate >

    < localeStr / >

    PC.Sint - hieronymus of < connection > < / login >

    < mail > [email protected] < / mail >

    < mexiAddress > pc.sint-hieronymus.72091883@BE_AUTO < / mexiAddress >

    < mexiBackup / >

    < mobilephone > LDAP this field is masked by the SECURITYFILTER < / mobilephone >

    < niss / >

    < oldIP / >

    < oldSystemId > 720918 < / oldSystemId >

    < packageName > M < / packageName >

    This LDAP is hidden by the SECURITYFILTER field < password > < / password >

    < pin / >

    < pkey / >

    < pkeyehealth / >

    < main > false < / main >

    < principalUserName / >

    the province <>FLANDRE_ORIENTALE < / province >

    < registrationDate > 20101213093341Z < / registrationDate >

    < role > HOSPITAL < / role >

    < sender > true < / sender >

    < senderInvisible > true < / senderInvisible >

    < subscriptiondocs > false < / subscriptiondocs >

    This LDAP is hidden by the SECURITYFILTER field < phone > < / phone >

    < improved / >

    < userpublic / >

    < usetranscodor > true < / usetranscodor >

    < version / >

    < / value >

    < / return >

    < / its: findAccountByCriteriaResponse >

    < / env:Body >

    < / env:Envelope >

    I want to read the XML column and display it as a relational table.  I have the following SQL code:

    Select x.*

    of tmp_medimail_accounts t

    xmltable)

    xmlnamespaces ('http://schemas.xmlsoap.org/soap/envelope/"as" env" )

      , ' http://session.kernel.CMP.com/ ' as 'his'

    )

    , ' env:Envelope / env:Body / its: findAccountByCriteriaResponse return value '

    in passing t.tmp_xml

    path of varchar2 (30) columns "firstName", firstName

    path varchar2 (30) LastName "lastName."

    rizivnr varchar2 (11) path 'inami ',.

    path of varchar2 (50) address "mexiAddress."

    path of varchar2 (100) email "mail."

    Gemeente varchar2 (50) path 'city') x;

    But I have error: ORA-19102: literal string XQuery WAITED

    Can someone help me?

    Best regards, Hans

    Hello

    What is your version of the database?

    It looks like an old problem related to the CURSOR_SHARING parameter.

    See if the solution given here helps: How to use a web service xml document

  • Is it possible to an array of Boolean function number in a case without the table of Boolean structure?

    Hi guys! In my program, my "robot" (lego mindstorms EV3) has essentially read a code bar and do different things according to the codes bar, he reads and so I have an array of Boolean, and basically I need compare to the other Boolean tables. First of all, I used the "Boolean chart at number" function and then just put it in a structure of the case, but it turns out that the Boolean value to number function is not compatible with my Lego EV3 brick, so I have to find another way to do this. Any ideas?

    Help is appreciated! If you have any questions or if my question is confusing, just ask!

    Thank you.


  • Weird reading during the use of Stream.play ("mp3:file")

    Hello!

    I am trying to set up a selection side server for playback of mp3 files, if I fall into a weird behavior of the FMS.

    I use the last FMS 4.0.2

    Here's how I try to publish the stream (ActionScript on the server side):

    var s = Stream.get ("boo");

    If (s) {s.play ("mp3:rhcp", 0) ;}}

    Client side, I try to play using NetStream.play ("boo"). However, the sound quality that I get is really weird. The sound goes slower and faster and stops for a split second. He can play properly for a few seconds, but that's all. Sounds like a problem of decoder for me, or a bitrate conversion problem.

    When I play the stream with NetStream.play ("mp3:rhcp"), the reading goes well.

    I tried several MP3s with different flow rates, but they all have the same problem.

    It looks like a bug to me, so I'm expecting Adobe to comment on this one.

    Hello

    Please try the FMS 4.0.2

    It is a little strange to see the problem, but I would like to know your settings on the client side. What player flash you use (although I doubt that it is a question that your reading of the original file is ok), and what is the length of the buffer that you used? There are known issues with the length of the buffer to 0. Can you try and change the length of the buffer in some other values and see if that helped to get the best quality?

    Thank you!

  • Acrobat Reader Dc e-mail outlook by default, and it is not installed

    I use Windows 10 and when I install Adobe Reader Dc version 2015.009.20079 it is always default in Outlook as my email client. Before installing Adobe Reader, I have Outlook, but I uninstalled and installed Thunderbird before installing Adobe Reader. I checked all the settings of mail program electronic windows default 10 and all the file associations Windows 10 and they all seem fine. I tried to uninstall Acrobat Reader and reinstall, but it is always default to Outlook which is not yet on the machine...

    I'm including dome screenshots. I read on the forums for similar problems and the given solution is to use the webmail, I prefer not to do so. Is there some registry setting or profile of the file I may have chan change to fix this?

    candi1.png

    Hi klmaway,

    Acrobat/Reader is not compatible with the compatible web browsers and applications, Adobe Acrobat PDFMakerThunderbird e-mail client.  The workaround is webmail.

    Kind regards
    Nicos

  • READ the TABLE of another schema

    Hello
    pls help me.

    I want to read the table of another schema that is declared in the application of the apex.

    SELECT * FROM DBA_ROLE_PRIVS;
    (SELECT * FROM sys.) DBA_ROLE_PRIVS: auch bad)

    The owner of this table is SYS.

    Error: The Table is unknown or cannot be found.

    my real schema is GCs.

    How is the select statement for this case for reading in the table (or tableview) of another schema?
    many and many thanks for your help.
    TL

    The SYS schema is a special schema in Oracle. You must explicitly grant the user rights by selecting tables and views sys.

  • Removes the table causing a lot of disk reads

    Until recently that we hadn't made many deletions on one of our large tables in the comic book. After a recent project has been implemented, system performance has gone downhill a bit. Research in one of the top offenders through v$ sql, we find this:

    REMOVE IRQ INSPECTION_REQUEST WHERE WORK_ORDER_SEQ =: B1 AND SEQUENCE_ID IN (SELECT SEQUENCE_ID FROM (SELECT SEQUENCE_ID, CHAR_VALUE FROM INSPECTION_REQUEST_CHAR WHERE WORK_ORDER_SEQ =: B1) X WHERE THE CHAR_VALUE IS NULL).

    Here are some stats I see in table v$ sql:

    Performances: 4
    Analyze the calls: 4
    Disk reads: 565457
    Gets the buffer: 634626
    Time CPU: 69280000
    Elapsed time: 290015297

    If I read this correctly 100 000 disk reads are performed on average whenever this statement is executed. The situation that I am is that the table we are trying to remove from has not been analyzed in almost 2 years and many of the indexes on the table have not been analysed in more than a year. Is my problem here something to do with the fact that this analysis has not been done or is there something else, I'm missing?

    We checked the SQL to use the correct index and it is set to perform at its best. We have also tried to run this in our dev environment, and we have the same problem with the slow delete. We even watched the rowid for a row we try to delete and tried to delete by the rowid and the DB is still thousands of readings of the disk to perform this deletion. Our dev table and all the clues have been analyzed recently (last month or almost).

    So maybe it takes away the possibility that the absence of analysis of the tables and indices of production contributing to the issue. At this point, I am at a loss. Here is the statistical information for this table in the production.

    Parameter, value
    Size in MB, 20464.00
    Numbers Extents, 1279
    Size in bytes, 21458059264

    TABLE_NAME, INSPECTION_REQUEST
    NOM_TABLESPACE, DATA_LARGE_2
    CLUSTER_NAME,
    IOT_NAME,
    PCT_FREE, 10
    PCT_USED,
    INI_TRANS, 1
    MAX_TRANS, 255
    INITIAL_EXTENT, 1048576000
    NEXT_EXTENT, 16777216
    MIN_EXTENTS, 1
    MAX_EXTENTS, 2147483645
    PCT_INCREASE, 0
    FREELISTS,
    FREELIST_GROUPS,
    LOGGING, YES
    BACKED_UP, N
    NUM_ROWS, 18095357
    BLOCKS, 1196456
    EMPTY_BLOCKS, 0
    AVG_SPACE, 0
    CHAIN_CNT, 0
    AVG_ROW_LEN, 485
    AVG_SPACE_FREELIST_BLOCKS, 0
    NUM_FREELIST_BLOCKS, 0
    DEGREE, 1
    CASE 1
    MEMORY CACHE, N
    TABLE_LOCK, ENABLED
    SAMPLE_SIZE, 18095357
    LAST_ANALYZED, 2007-04-01 06:41:24
    PARTITIONED, NO.
    IOT_TYPE,
    TEMPORARY, N
    SECONDARY, N
    NESTED, DON'T
    USER_TABLES, DEFAULT
    ROW_MOVEMENT, DISABLED
    GLOBAL_STATS, YES
    USER_STATS, NO.
    DURATION,
    SKIP_CORRUPT, DISABLED
    SURVEILLANCE, NO.
    CLUSTER_OWNER,
    ADDICTIONS, DISABILITIES
    COMPRESSION DISABLED

    user9539428 wrote:

    delete from inspection_request where sequence_id = 9911147198;

    SEQUENCE_ID is the primary key on the table INSPECTION_REQUEST. This only delete statement performs 7 000 disk reads. Is this normal? We have this problem even if it is disable triggers that would fire following this statement.

    To everyone who looks at the thread, the version of db, on that we are is 9.2.0.8.

    If you have verified that all triggers are actually disabled on the table, there are a few potential candidates that could cause this large amount of activity during the removal of a single line:

    * Enabled foreign keys referencing this table
    * Maintenance of Index, your index finger on the table could be degenerate and could benefit from an operation of "merge".
    * Bugs in SAMS if you use a tablespace locally managed with automatic management of the space for indexes

    You can follow this thread that might have similar problems:

    Ellapsed time too tkprof output

    Try to run the simple removal using SQL trace enabled (Event 10046) scopes as described in the above thread. After the release of "tkprof" of the trace file generated here, as described in the following thread: [when your query takes too long | http://forums.oracle.com/forums/thread.jspa?threadID=501834]

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676 /.
    http://sourceforge.NET/projects/SQLT-pp/

  • interpretation of TCP read the output string

    What is the right method to interpret the data from the TCP Read function? The output is a string of characters, which are obviously not hexadecimal values. How can I convert the string to a binary table or bytes?

    OK, time wild guess...

    The first four bytes are an indication for SYNCHRONIZATION

    The four bytes 0 4 0 0 is a 32-bit integer, GIS bytes less first. 1024

    Then you have 6 0 0 0, which could be another 32-bit integer, lsb first. 6

    Then your random data

    Rod.

Maybe you are looking for

  • Personal Media Drive

    I have a HP Media Center with window7 64 bit m7767c CN.  The case has a slot for a personal media player. The PMD is a HP 300Gk. The computer will not recognize the PMD the power light is on and the indicator light flashes sometimes.  I can remove th

  • call sub vi &amp; using the image overlay

    Hello I'm doing a simple VI for an NTSC video camera using NOR Vision & the framegrabber PCI-1411. With success, I was able to view the live video with the attached VI. Two questions: * my camera to field VI called another VI, precise timestamp runni

  • PowerEdge T610 maximum RAM with single processor

    Hello I would like to know is Server PowerEdge T610 capable of supporting some 196 (12x16Go) GB of RAM with Intel Single Xeon E5645 2.40 GHz processor? Thank you. Kind regards Stanley

  • BlackBerry Smartphones unable to synchronize using the Desktop Manager - 8310

    I synchronize my organizing data from outlook.  Lately, I've noticed that some of the data that I add on the device are not sync to outlook and vice versa. I checked options on Desktop Manager and opted for two-way synchronization. For example,. I ha

  • How can I fix Microsoft Visual C++ Runtime Library

    When I try to update my NVidia driver when I get this Microsoft Visual C++ Runtime Library that says: the application requested execution to terminate in an unusual way... How can I fix it?