Jump to content

Grampa_of_Oliva_n_Eden

Members
  • Posts

    2,767
  • Joined

  • Last visited

  • Days Won

    17

Posts posted by Grampa_of_Oliva_n_Eden

  1. QUOTE(Justin Goeres @ Sep 25 2007, 10:12 AM)

    Sadly, no. That's due to lack of breakouts for the cable and lack of a scope. :(

    What I can tell you that the handshaking definitely seems to be working, in the sense that the transmitter and the receiver each time out if the other isn't running. But I guess if there's a noise issue then the problem would be that the handshake hiccups every so often....

    Well if you can't look then poke.

    Put a good ground between the RTN lines of both ends.

    I have seen this issue (bad grounds) affect Laptops (because they are isolated from ground via the battery) and USB-Serial adapters.

    Another point:

    You are reading ALL of the bytes at the port every time and NOT just a subset, CORRECT?

    Ben

  2. QUOTE(Justin Goeres @ Sep 25 2007, 09:54 AM)

    ...(switching to RTS/CTS handshaking seemed to help a little, but the error still occurred). ...

    Could you put a scope on the lines and make sure this is not a noise or bad ground issue?

    Hardware handshaking should flag the transmitter to spot transmitting until CTS goes high again.

    Ben

  3. QUOTE(Justin Goeres @ Sep 25 2007, 09:00 AM)

    ...Perhaps NI should remove the documentation of the Add and Multiply nodes from the LabVIEW help? They're awfully basic, and the order of the inputs doesn't even matter! :P

    When did that change? Are you sure? ( I swear I read the release notes!)

    At one time the Advanced Course used to teach that the top input of a add node would be re-used while that was not the case with the bottom. So if you had a huge array that you needed to add an offset value to every value, the result would be put back in the same buffer used for the input terminal of the add node.

    Is it any wonder why the buffer re-use rules are so hard to understand and apply.

    Ben

  4. QUOTE(Ben @ Sep 20 2007, 11:56 AM)

    I don't use them either.

    I am just guessing based on the symptoms matching what I have seen using the waveform data types.

    You are probably correct.

    Ben

    On a realted note....

    Does the LAVA Tips and tricks mention that a WF data typed chart will plot points based on the t0 values? This allows non-periodic plotting.

    And similarly, an empty Y array of the WF will be ignode, and also a "NaN" will break the plot line.

    If not, you have been un-officially informed.

    Ben

  5. QUOTE(NormKirchner @ Sep 20 2007, 11:47 AM)

    Nice find Ben. I haven't worked w/ the dynamic type much, but I have experienced the struggle w/ the waveform attributes once or twice. I suppose another option for him would be to just change the attribute rather than the property, no?

    I don't use them either.

    I am just guessing based on the symptoms matching what I have seen using the waveform data types.

    You are probably correct.

    Ben

  6. QUOTE(ecarrig @ Sep 20 2007, 11:33 AM)

    Thanks for looking. I've included a few screenshots... one of the working toy example and one of the same code (i think :wacko: ) that does not work in a flat sequence in my larger program. The function of this VI is to open an .lvm file, process it, and display the important data. Interestingly enough, I ran the program once with a bad .lvm file and the poperty node worked fine -- the graph read time [sec]. I am forced to conclude that somehow opening an .lvm file trumps redefining the property node, regardless of where the property node gets redefined.

    thanks

    Eamon

    Right-click on the graph and make sure the graph is set to "ignore attributes".

    Ben

  7. The cyle is happening again.

    We used to use mainframes with dumb terminals talking via serial ports.

    PC came into use and the mainframes became more rare serving files and DB to the app's running on the PC.

    My wife is evaluating how she will be upgrading all of the PC's used by the Library system she supports. Thin clients are looking good...

    BUT

    this means the files are now back on central machine.

    Ben

  8. QUOTE(Gary Rubin @ Sep 19 2007, 08:46 PM)

    ... you might be able to do much better by being careful with your threading ...

    Two points

    1) The scenario I reported above, we did not get full utilizatio of all CPU until we had more than enough threads configured. In LV 8.0 they fixed a bug that kept the thread count low.

    2) Artifical code sequencing ( excessive seq structures, preventing simultaneous execution) will prevent mutlithreading.

    It SEEMS the code should look like a river delta, sepearting out into multiple streams to take full advantage of multiple cores.

    Ben

  9. QUOTE(beckerg @ Sep 20 2007, 06:39 AM)

    I think that would show up in one of the VI Analyzer's tests.

    Ben

  10. QUOTE(yen @ Sep 19 2007, 03:25 PM)

    Isn't that code encapsulated in a reentrant VI?

    Or, at the very least, in 8 file copies of the same VI?

    Sorry to disapoint you YEN but no. :(

    Its 8 cut-n-pastes to the diagram.*

    Ben

    * Disclaimer: For the most part, I code by the hour. The customers dictate how their money will be spent. As soon as they tested the 8-copy version, they said "Done!" If it makes any difference, it was very pretty code :thumbup: until I asked the engineer to to do the cut-n-paste. :oops:

    Done disclaiming.

  11. QUOTE(PaulG. @ Sep 19 2007, 01:29 PM)

    Unless I'm misunderstand all the hype at NI, LV is quite capable NOW of performing as well if not better than that "other language", especially in RT applications. And in my own experience I've gotten deterministic data without RT, with most of the limitations in performance coming from limitations in the Windows environment.

    Yes good point Paul.

    The area of performance that LV is pushing now is the raw number crunching teritory.

    We hvae alrady seen this performance jump in one of our apps that did a bunch of FFT's from multiple microphones at the same time. The initial app swamped the CPU of the first machine we ran it on. I had the engineer implement parallel code for each microphone's data and the CPU was still swamped. We advised the customer that the biggest bang-for-the-buck would be to get a more powerful machine rather than pay us to try and squeeze some of the fat out of the app.

    So after deploying the app to a new machine with four hyperthreading cores and adjusting the "threadconfig" so that we were using (?) 32 threads, we observed about a 40% utilization on all of the CPU's.

    We have not anymore comments about performance from that customer.

    I have to comment on one slight draw-back. THe diagram looks a little funny with exactly the same code duplicated side by side eight times. At first glance you could say "That should be done in a loop." NOT!

    Ben

  12. QUOTE(ned @ Sep 19 2007, 12:55 PM)

    ... What other value, other than the actual value of N, could possibly be a reasonable value on that wire?

    If you wire a constant "5" to the N form outside and also wire two arrays that are auto-indexed and one of the arrays has four elements and the other has three,

    the inside N wire wire read "3" and NOT the "5" wired to the outside.

    Ben

  13. QUOTE(Jim Kring @ Sep 19 2007, 09:56 AM)

    Nice article Jim.

    What is REALLY cool about this is that sometime soon (maybe in my life-time) LabVIEW applications will be able to out perform application writtien in that other language.

    :thumbup:

    Ben

  14. QUOTE(rolfk @ Sep 19 2007, 02:19 AM)

    Well, such is life. Most things I found by accident, searching actively for something or through user groups/mouth of word/LAVA/Info-LabVIEW etc. and when then looking for them they were eventually somewhere in the printed or online docs, but it is simply to much material to read through completely.

    I have long ago resorted to work with what I know and try to learn new things by various opportunities and simply not let myself be bothered that there are still many golden eggs out there that I do not know about. If I would have a photographic memory I would simply scan all the documents in a matter of flipping through them and rely on that, but alas, I'll have to do with what I can.

    Rolf Kalbermatter

    Yes.

    Funny how things go around in circles.

    So this is where the Upgrade notes, if exhaustive would make for a wonderful read.

    Imagine if they upgrade notes read like the readers digest version of our Tips and Tricks!

    Still dreaming, stil hoping.

    Ben

  15. The below was received from my father and I have no idea were he got it from.

    So let just call it "Author unknown"

    FINALLY,

    after going through a virus attack,losing a hard drive,

    fighting off hackers, upgrading all my software,

    installing fire-walls, receiving blank e-mails,

    being threatened with beingcut-off by my email provider,

    and, a host of other problemsnow</EM> it works exactly the way I want it to!

    post-29-1190143863.png?width=400

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.