Comms unreliable series

Guys,

I was wrong with that for a while and can't seem to make it work properly, so I thought I would ask for help.

I have written an interface for a PIC and can't get to send commands and receive them reliably.  Sometimes, they will go through, and other times they don't.  While "loop" the PEAK of output by another reading repeat every 10 ms, while the user commands are sent in an another 'while' loop that runs only on the activity of the façade.  I don't know if the other two run times have nothing to do with it.  The part 'reading' is much slower that it should be compared with hyperterminal and he often reads at all.

I know part of the problem has to do with RF leaking in the serial cable because the program works best in my office and at the test configuration, where our device transmits RF.  Other than that, however, I don't know what the problem is.  HyperTerminal seems to connect with the much more reliable PEAK.  Does anyone have any suggestions? I send commands several times?  Why is the "read" so unreliable?  I know that all orders are shipped correctly and in the correct format, BTW.

The first 2 attachments are secondary and the last is the main program.

Thanks in advance.


Tags: NI Software

Similar Questions

  • examples of LabVIEW ARM code

    Hello

    I am new to Labview ARM I used an ek-lm3s8962 Keil Committee.

    I would like to know if there are a few tutorials and code examples on communications with devices:

    How to write you SD card?

    How to use CAN, SPI, I2C and UART?

    How to use the OLED?

    Is it possible to use the FIFO memory with labview ARM and how?

    Is it possible to target the daughterboard with Labview, this Board includes a processor LM3S2110?

    How communicate between a time critical Vi which runs on the ARM processor and not time critical Vi host that runs on the PC?

    Thank you very much.

    Your Neil

    Hi Neil,

    How to write you SD card?

    The SD card slot only is not currently supported in point 1.1 of the ARM.  The next version of the ARM should support this device.  Once this is the case, you can access the SD card using the primitives of e/s files.

    How to use CAN, SPI, I2C and UART?

    I found an example of UART in the Finder for example OR in Modules and Toolkits > ARM > Luminary Micro > protocol drivers > Comm.lvproj series.  I will attach also a project that uses CAN communicate with the LMS2110.  As for I2C/SPI, I suggest experimenting with the screws for this (located on the ARM > palette SPI and I2C) and consultation of the other threads on the use of these screws or create another thread.

    How to use the OLED?

    There is an example of this in the Finder for example OR in Modules and Toolkits > ARM > Luminary Micro > Device Drivers > OLED.lvproj.

    Is it possible to use the FIFO memory with labview ARM and how?

    FIFO on ARM is very similar to the desktop.  These screws are located in the data Communication > synchronization > FIFO pallet in real time.  There are several examples on how to use these FIFO on ni.com.

    Is it possible to target the daughterboard with Labview, this Board includes a processor LM3S2110?

    You can provide this Commission with CAN, as shown in the attached draft.

    How communicate between a time critical Vi which runs on the ARM processor and not time critical Vi host that runs on the PC?

    See the related example. RT FIFO If you use the FIFO screws I mentioned above, you should be able to do something similar.  I suspect that the FIFO is used to communicate between a critical time timed loop and while loop a criticism.  The while loop would then use TCP/series (or even shared network variables) to communicate to the host.

    Good luck

  • Flash chart legend

    I built a graphic 2D online Flash with 6 series. My problem is that the legend indicates the word 'value '. Does anyone know how to display the name of the series in place of the legend.

    The f

    Jeff:

    Provide aliases for the series values in the query in the chart as below

    SELECT NULL LINK,
           ENAME LABEL,
           SAL "Salary",                     ---- Series 1
           COMM "Commission"          ----  Series 2
    FROM   EMP
    

    CITY

  • Faced with the simple series comms

    Hi all - summer tweak something that should be simple for hours now, so I'll ask for help...

    I have a RS485 device connected to COM5 via a USB adapter, work at 9600 baud, 0,8,1, no - fundamentals of series. I can talk to the device using the terminal software native and even using hyperterminal with the above parameters. It seems obvious, and so I thought that LabVIEW and VISA would connect without too much effort.

    So I use the following simple sequence into LabVIEW:

    -VISA set up the serial port, 9600,0,8,1, none (no error)

    -VISA defined the size of buffer, 4096 with a mask of 48 (no error)

    -Stamps of Ras VISA, the two buffers (no error)

    -VISA write, chain of command is 'PR C2\r\n", which should be echoed and return a numeric value (normally 0)

    -check the bytes to the port property; returns 12

    -VISA read, returns the string of command only, 7 bytes

    why I can't read the full buffer?

    To be honest, I thought that it will work only with a trivial series program: set-read-write. But which still generates an error. I added the size of the buffer since then do a little research and makes without error at least, if not in one of the published examples.

    I don't think it's a matter of time, since I add a lot of late, when I'm debugging, and I tried to put delays read before. The fact that the number of bytes in the buffer is 12 seems to indicate that my answer is here somewhere...

    I also tried a second reading, but it returns nothing.

    Kind regards

    Lamb

    Just disable the tank of the termination.

    This is the reason why you get only one line.

    Or do a second reading at the end.

  • My CPU has been replaced on the satellite P series

    Hello

    I'm new to the Forum and registered once more to the entire page to Toshiba, because I have problems with my laptop.

    A month ago, my laptop just stop while I was working on this subject, as usual, nothing special. He replied, I have been particularly concerned since the battery is not showing there was either. So, send us it to the official service of Toshiba in my country. I was told that the problem was in the graphics card, and they replace.

    But when they came back to her, I saw that my laptop was very slow, and that the fans were not working as they did. A fan was defective (CPU was about 100% even if nothing has been selected), we have them sent back immediately, thinking he was just damaged during the service.

    Now, I'm back, that there is nothing wrong with any part of it, except that my avast! free version of House (which I use for about 3-4 years on my old computer now) drains the power of the processor. When nothing is on, only avast!, it takes 60 MB of RAM and 9-10% CPU. But when I commit a game (minimum requirements for it are 256MB, my laptop has 2 GB of RAM) and Windows Live Messenger with avast! and the windows firewall, of course, CPU goes to 100%, while the RAM usage is about 1 GB.

    I disable avast! still 100%. I used two windows of this game, Winamp, Windows Live Messenger and avast! / Firewall windows and nothing seemed slower or lag. The game is a bit now, I have all first only need a cleaning/Defrag, but even after the result is the same.

    They say on the box/sticker Dual - Core AMD TURION 63 X 2 TL-60, while on my system properties, he says only AMD Turion 64 X 2 Mobile Technology TL-60 2.00 GHz. My logic tells me that there is a difference between these two, right? Or they are both part of the same series, just minor differences?

    I'm not a computer genius, have amateur on computer knowledge, please bare with me.

    Thank you for your help and I appreciate any advice at all.
    Luka.

    Hello

    Could you please put your laptop model, it would be possible to say what CPU was built into your laptop.

    As I m not wrong the Avast scans (anti-virus software) files together and transfer of data in the background of the OS. This could emphasise the CPU a bit.
    If you use games and other programs do a CPU stress a little bit more. So, in my opinion, it is a common behavior of portable and usually you should t be worried.

    A hint; I use an application of Antivir. Its freeware Antivirus software and it makes a not to stress the CPU and doesn't need a lot of material resources like other antivirus software.
    Try it out and check how it works on your laptop.

    Welcome them

  • Visa series parallel read with arduinos, data are delayed

    Hello

    Currently I use two arduinos asynchronous data read from sensors of temperature and humidity. Each arduino send back 4 floats, separated by commas, with a stop of "\n" character In labview, data gets broken upward and then pushed to live plots. In addition, the data gets written to a file - arduino #1 and #2 Arduino have their data sent to different files. It is important to note that the arduinos have different rates by which they send data on the comms series. Ideally, we would like that the data of every arduino to enter and update locations independent real-time each other.

    I'm having a problem where data do not seem to be displayed in real time. I can touch a thermocouple and then ten seconds later, the temperature will change. This delay seems to grow over the short program, which is a problem since we use a direct result of the plots to determine when to start various processes of cooling.

    I wonder if due to different data rates the thrust arudiunos, if there is some kind of buffer somewhere that has a "backlog" of the fastest arrduino data and must wait for the slower arduino data until it does nothing. It is obviously a problem of data flow, but I'm pretty green with LabView and was looking for some advice or pointers. I want to mention that the arduinos send data quickly; they send every two seconds or more.

    Hello MrScientist,

    can you please try to use two separate while loops, one for each COM port, because if they're in the same loop, it can happen that they block each other.

    A second option is always read all the information on the COM port and made a ring buffer and filter information of these buffers.

  • Receive series MB

    The Modbus LabVIEW library includes MB series Receive.vi. The first structure to sequence in this vi includes the comment "the next Subvi dealing with basically the whole string ignores the address for some reason serial any.» I guess he assumes that you talk only to 1 devices at one time"

    I use Modbus RTU RS485 on to communicate to two engine controllers. Either a single device at a time works perfectly. The two devices together reads the first and then fails with an error in time-out 6101 to receive MB series during the second. This seems to be a known issue, but I can't find any solution among the many positions dealing with this general failure.

    Last post. The problem seems not to be with my coding LV. When I request information from disc 1, all devices on the bus to receive the response. My PC can handle the response, compile the application disc 2 and transmit, before disc 2 has acknowledged that the message of disc 1 is without interest and delete. So, my request disc 2 never gets 'heard' because player 2 is always busy to withdraw its buffer for reading of unwanted things. I intend to control and monitor the two drives together, but have now rewritten the code for them separately. The cause is that readers have a processor much smaller and slower than the control PC and do not treat comms a high priority.

    Thanks for being there to bounce ideas.

  • configuration error Windows series 7/labview 9

    I just upgraded to labview 9 and updated upgraded to windows 7 64 bit.

    VI which was working fine, now no longer works, the culprit is to configure the resource name of the series.

    Normally, you click Refresh in the menu dropdown and a list of com ports, but is happening is no longer after updates.

    Even when I manually type in the correct Comm. port, the visa is not capture of data from this port.  Using a terminal like siow program or hyperterminal I can still connect and communicate with my hardware, there seems to be a problem of labview/windows.

    Hello eximo.

    You can see the COM ports in MAX as resource VISA IO question up to check com ports after knowledge bases

    Link1, link2 , and link3 also, I was wondering after the upgrade you re-install all the drivers, otherwise here is the last driverwhich VISA is compatible with Windows 7.

    Thank you and have a great holiday!

    NOR-khil

  • communication series with VISA

    I'm trying to communcate with a power supply via a serial connection.  Communication works very well in Hyperterminal and putty, but I can't seem to run in labview.  It times out when trying to read the data.

    Hyperterminal parameters are the basis of everything and it works fine

    9600 baud

    8 data bits

    no parity

    1 stop bit

    no flow control

    Send "VOLT?" with CTRL + J for line break

    Returns under the voltage at the output of the UUT.

    I wonder if I send you the incorrect order in labview.  Any help would be great.  I have attached the VI, it's my first try at comms series so it's pretty baisc and I do not know I'm missing something

    You are not sending the line break.  You send only "Volt"?

    Make a right click on the string constant, visible display style and make \codes show.  Then enter \n at the end.  Now you send VOLT? with the line break.

    In addition, remove the shift regsiters on the son of reference and error.  (A single time-out error will keep your VI to run again until you stop and restart the VI)

    And put a close VISA outside the loop.

  • Series read returns the string with excess-need information to extract data from the middle of the string

    I read data from a STI flow meter using the base series writing and reading which used the VISA.  The read string begins with 'OK' or an error code, then a carriage return, then the data follows streaming rate temp pressure flow rate comma comma comma comma Temp... and so on. The string ends with a CR LF.  I need to pull the flow, temperature and pressure data out of the string and write it to a file.  I have difficulties to find a function that will retrieve the data for the string.  Any suggestions?  Thank you.

    Try the subset of string in the palette of the chain.

    Or match the model if you want a more direct control.

    Also a good way is the string analysis, but you must be willing to read oexactly, what happens or an error, pass the entrance.

  • Parallel DML may be downgraded to the DML series?

    Oracle Database Enterprise Edition 11.2.0.3.0

    When you run a parallel query (e.g. SELECT * FROM parallel_table WHERE a <?), the optimizer may choose a parallel or series, the selectivity of the predicate function plan and availability different access roads - usually a scan interval series index for highly selective queries (a small number of return lines), and a parallel table full scan for less selective queries (returning a large number of lines).

    However, with parallel DML enabled, no such optimization seems to happen. There may be a very effective for a query as series plan "DELETE FROM parallel_table WHERE a <? ', but once parallel DML is activated, the optimizer based on CSSTidy always seems to choose a parallel plan.

    Is there a way to allow the optimizer to choose between series and parallel DML according to predicates in the query? I wish I could enable parallel DML, but knowing that, in the case of a very selective, query optimizer will not parallel DML use but will use a series DML.

    Note that I'm allowing to the DML, not no force in parallel it (although it seems more to do with the fact that a table series is considered parallel, without having to refer to the query).

    Here is an example of this behavior, deleted 18 m rows in a table of rows of 300 m:

    First, the cost of a DML series operation is 59,000, using an index to access the lines:

    COMMIT;

    ALTER SESSION DISABLE PARALLEL DML.

    DELETE

    OF parallel_table

    WHERE the DATETIME_a < sysdate - 650;

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

    | ID | Operation | Name                    | Lines | Bytes | Cost (% CPU). Time |

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

    |   0 | DELETE STATEMENT.                         |    18 M |  2037M | 58723 (1) | 00:11:45 |

    |   1.  REMOVE | PARALLEL_TABLE |       |       |            |          |

    |*  2 |   INDEX RANGE SCAN | IDX_PT_DATETIME_A |    18 M |  2037M | 58723 (1) | 00:11:45 |

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

    Now, by allowing parallel DML, the optimizer chooses a parallel full table much more expensive for the same request, cost 926 000 scan. Why he won't come back in terms of the series?

    COMMIT;

    ALTER SESSION ENABLE PARALLEL DML.

    DELETE

    OF parallel_table

    WHERE the DATETIME_a < sysdate - 650;

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

    | ID | Operation | Name               | Lines | Bytes | Cost (% CPU). Time |    TQ | IN-OUT | PQ Distrib.

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

    |   0 | DELETE STATEMENT.                    |    18 M |  2037M |   926K (1) | 03:05:22 |        |      |            |

    |   1.  COORDINATOR OF PX |                    |       |       |            |          |        |      |            |

    |   2.   PX SEND QC (RANDOM). : TQ10001 |    18 M |  2037M |   926K (1) | 03:05:22 |  Q1, 01 | P > S | QC (RAND) |

    |   3.    INDEX MAINTENANCE | PARALLEL_TABLE |       |       |            |          |  Q1, 01 | SVCP |            |

    |   4.     RECEIVE PX |                    |    18 M |  2037M |   926K (1) | 03:05:22 |  Q1, 01 | SVCP |            |

    |   5.      RANGE OF SEND PX | : TQ10000 |    18 M |  2037M |   926K (1) | 03:05:22 |  Q1 00 | P > P | RANGE |

    |   6.       REMOVE | PARALLEL_TABLE |       |       |            |          |  Q1 00 | SVCP |            |

    |   7.        ITERATOR BLOCK PX |                    |    18 M |  2037M |   926K (1) | 03:05:22 |  Q1 00 | ISSUE |            |

    |*  8 |         TABLE ACCESS FULL | PARALLEL_TABLE |    18 M |  2037M |   926K (1) | 03:05:22 |  Q1 00 | SVCP |            |

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

    Dan.Jan wrote:

    So in summary, by adding a second index to the table, the optimizer computes a much higher estimate of the costs for the use of a scan of the index systematic range. As a result, he opts for the full table scan, which is not necessarily the most efficient plan. I am inclined to think that it is a bug with optimizer, as much as it manifests itself only in the line superior (0) plan.

    It's a pretty good reason to be suspicious - and I think you are right that it is a bug.

    The cost of a removal is the cost of the selection the ROWID of the lines to remove, which is in this very simple case: ' selectivity * leaf_blocks ' for the index. However, when you create the second FINAL cost index seems to change to "selectivity * (leaf_blocks + clustering_factor) ' (I ran your test case, tried a few simple variations and looked 10053 files trace - so my conclusion is not a complete analysis of the question.)

    Since you have a test case, raise a SR with Oracle.

    Concerning

    Jonathan Lewis

    (Update: added missing 'leaf_blocks' to the 2nd expression)

  • extraction of data in a comma-deliniated in a Mysql database list

    I have a database table called meetings. In the table of meetings, it has columns named 'meeid', 'meedate' and 'meememberIDs '. using ColdFusion 9, I am able to present a date Standard in the "meedate" and a comma-delimited list in memberID that was present from a series of checkboxes in a form. It looks like this:

    meeid = 2

    "meedate = '" 2014-06-15

    meememberIDs = '3,5,67,78,354, 2345'

    Now that I have a record of the date and a is list of comma-delineate of membersID who came to a meeting, possible using SQL support to extract the Member ID and numbers match the primary key of another table called 'personal' in which each column meememberIDs comma-delimited number would return the name and the email to the Member of the staff?

    example:

    3 = michael jones- [email protected]

    5 = ebinger chris- [email protected]

    67 = alfred Fox- [email protected]

    College Kid,

    Storage of lists separated by commas in a single database column is generally considered to be "a bad idea".  Why? Mainly, for the simple reason you're struggling with - these data to other tables.  A junction table or a relationship is the best way to store multiple values.  Here's how this might work (there might be some subtle problems with the structure/query of the table syntax below that I have no experience with MySQL, only Microsoft SQL Server):

    Table of assemblies:

    meeid (integer)

    meedate (date or time)

    Table of personnel:

    personnelID (or whatever it is called in your table) (integer)

    FullName (varchar())

    email (varchar())

    ... the rest columns in existing table

    Table MeetingsPersonnel:

    meeid (integer)

    personnelID (integer)

    Instead of storing a list separated by commas on identifying personal in the meetings table meememberIDs column, you would insert a record in the MeetingsPersonnel table for each combination of staff and the meeting.  Thus in the example above, the three topics that you have demonstrated would be stored in the MeetingsPersonnel table like this:

    meeid personnelID

    2         3

    2         5

    2 67

    Now if you want to generate a list of people who attend meetings, join meetings to staff through the MeetingsPersonnel table:

    SELECT p.fullname,
           p.email
    FROM meetings m
         INNER JOIN meetingspersonnel mp on m.meeid = mp.meeid
         INNER JOIN personnel p on mp.personnelID = p.personnelID
    WHERE m.meedate = '2014-06-15'
    

    If you create indexes on these tables, this arrangement will happen very, very quickly.

    The alternative is to write your own function to parse the list separated by commas into a temporary table and then use the temporary table to be the intermediate join.  It will be very inefficient, especially as the number of employees who attend a specific meeting increases.

    -Carl V.

  • out of space on a data store, have great cliché to commit

    Through a series of automated tasks and bad luck, here's where I'm stuck.  looking for advice on the best way to fix it.

    ESXi server with the local data store

    A server (Blackberry server, not quite important and have a good backup, worst case I could rebuild without too much pain)

    • Slim 30 GB put in service

    Server B (Production and Production Exchange server file server):

    • 2 virtual drives

      • Drive hard 1: 80 GB thin provisioned

      • Hard drive: 500 GB 2 thick put into service

        • There is somehow a snapshot on this disk which is 196GB (which has a few things needed for this topic)

        • VSphere client does not show that there is a snapshot, but the navigation data store, it's there

    I am running very low on space (30GB free) on the data store.  I have a 1 TB NAS device (it is the NFS case) but it's mostly full with other backups of VMs whose only good backup from Server B that I would prefer not wipe.

    This snapshot will commit with what little free space?  If so, how given that vsphere client shows that there is no snapshot?

    Looking for pros for a good solution/order issues in.  I am of course headed out of town for a week and I hope the 30 GB I have free will last while I went, but will keep you informed along the way.

    In my opinion, there should not be any need a lot of additional disk space for deleting a snapshot on a thick disc put into service. To remove the snapshot, create another cliché on the virtual machine, and then open the Snapshot Manager and select "clear all". This will engage all snapshots on the basic disk, no matter whether they are displayed in the Snapshot Manager. Due to the size of the deletion my take several hours (depending on your speed of storage)

    With one snapshot, you have, it's no problem, but if there were several snapshots, you need to be careful, depending on the version/version of ESX (i) installed. Make sure you don't miss disk space during the validation process of the snapshot, because for example many changes to a thin provisioned VM. To be on save her side, you should do the deletion either while the virtual machine is not used much or - even better - while the virtual machine is turned off.

    André

  • Custom values Format delimited by commas in the text as a bulleted list field?

    Hi all

    I have a text field in a Professional Acrobat 9.0 form, when the user enters a series of values separated by commas:

    A value of 1, the value 2, value 3...

    Is there a way to take these values and after the user has finished typing in the text field and deselected the text field, have the values to be displayed in a bulleted list, i.e.:

    < ul >

    < li > value 1 < /li >

    < li > value 2 < /li >

    < li > value 3 < /li >

    < /ul >

    I know it's pretty easy to do in other languages I know, but I do not know the JavaScript syntax. I guess I would need to put a script in the 'Script of custom Format"text field.

    Thank you!

    PS. In addition, it is important that when the user "re - selects" modifies the field to, who they see values as a string delimited by comma, instead of the updated list in shape. Just as the default behavior of a currency in the format of text... field when the user selects a currency field, Acrobat removes the dollar sign, etc., so that the user enters just the number without formatting and when they are done, Acrobat adds the name and commas, decimals, etc..

    You can do this by creating a script that launches after the new value is validated, and then you do the following (assume that the name of the field where you want the list is "txtfield"):

    MYLIST = "";
    myValue = event.value;
    mySplitValue = myValue.split(",");
    for (i = 0; i
    myList += ">"+ mySplitValue [i] + "\n"; '.
    }
    this.getField("txtfield").value = myList;

    (Note: this script is NOT tested)

  • Boxes &amp; amp; commas

    My form has a list of options, and then save those recorded a string of a given field (for example, "1,2,4,6"). I can loop through them very well to display when I remember the record - my problem is getting them to record in the table in the first place.

    I dumped the results, and I am indeed passing the string as I would that he saved. When I try to save, I get an invalid data type error, I think that this is the case because he interprets commas as field separators.

    I enclose the code of the CF in the entry page, then the action page, which then activates a series of stored procedures. I suspect that it is something that will get fixed on the side of the page, rather than procedurally, but I can post this info if necessary.

    Treat it as a blessing in disguise. You try to create unusable data. Normalize your database (that part could already do) and insert individual records for each item in your list.

Maybe you are looking for

  • Why is - this other takes so much space?

    I went to optimize my storage in settings to see others take up to 27 gigabytes! Since my mac can contain in total only 57 gigabytes, I really need to find some kind of app that can remove other junk my computer! any suggestions? Data sheet: MacBook

  • WSN NI 9792 safety 1.2: initial configuration? By default the username and password?

    Hello With NI WSN 1.1, using a 9792, I can click on the button set the permissions, and if none had been defined would simply ask me a new administrator password.  Now with NI WSN 1.2, when I click on the button set the permissions he takes me to the

  • SP2 file size issue.

    Hi guys,. A small question if you let it. (HP Vista 32-bit SP1) With SP1 standalone installer was about 400 MB and SP1 is subsequently offered through Windows Update, the size was reduced to about 75 MB . How is it with SP2 , the standalone installer

  • HP Mini 210-2002sa laptop: System Recovery

    Product name: HP Mini 210-2002sa laptop computer model #: XD396EA OS: Windows 7 starter edition   Should I for Microsoft Windows 7 starter product key to perform a system recovery? If Yes, where can I get it? The only thing I have is the OEM product

  • How to select the contact of a subset of the list of contacts?

    Hi all I had a problem with the call from address book and select the contact. I need to invoke the myapplication Blackberry address book and view the list of contacts. However, instead of a list of wholecontact, I need to show to those who have at l