Jump to content

bbean

Members
  • Posts

    263
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by bbean

  1. Is your problem that you do not know what the data ready message is? You could try running a USB sniffer like: http://benoit.papillault.free.fr/usbsnoop/doc.php.en while the vendor software is running to find out what the message is?
  2. QUOTE(Aristos Queue @ Dec 12 2007, 12:51 PM) Thanks for the description. Whats the point of using the waveform datatype (when you have multiple channels) then? If everytime you need to look at the data for an individual channel, a copy of the data is made (even if you are not altering the data). The LabVIEW compiler isn't smart enough to deal with this issue? :thumbdown: Does anyone have tricks for using waveform arrays or should I go and convert all my DAQ code to 2D arrays?
  3. Why does indexing an array of waveforms create a buffer allocation, but indexing a 2d array does not?
  4. It looks like you are missing the VISA libraries: http://joule.ni.com/nidu/cds/view/p/id/831/lang/en Download and install them on your machine or use your CDs
  5. QUOTE(yogi reddy @ Nov 20 2007, 08:05 AM) Stop cross posting http://forums.lavag.org/large-data-transfe...8861#entry38861
  6. QUOTE(yogi reddy @ Nov 19 2007, 12:22 PM) Try using this framework Simple TCP/IP Messaging (STM) Component http://zone.ni.com/devzone/cda/epd/p/id/2739 Command-based Communication Using Simple TCP/IP Messaging http://zone.ni.com/devzone/cda/tut/p/id/3098
  7. QUOTE(jpc @ Nov 16 2007, 05:53 PM) Can you post the code where the DB is called?
  8. Is this happening on the server side? Are there any LabVIEW applications on the server? Many Database Servers, MS SQL Server for example, will hog memory up as they go. The memory won't be released by the DB until another application requests it. I believe they do this so they can store queries and frequently executed statements in memory for faster exection. Check to see if the Oracle DB has some way of limiting the maximum amount of memory it uses. Regards
  9. I've found this activex grid to be quite useful where the builtin mcl control in labview lacks: http://www.devexpress.com/Downloads/ActiveX/XQuantumGrid/ If you can stomach using activeX.
  10. QUOTE(Karl Rony @ Oct 25 2007, 10:05 PM) You are right. I was just trying to show him a typical insert with SQL Server that I could throw together quickly. I downloaded mysql and the odbc driver and ran my program again and it is definitely slower with mysql. My hunch is that the ODBC driver actually uses Http instead of shared memory, but that is just a guess. Maybe tweaking the connection string/mysql setup/ stored procedures would help. The wierd thing is that my CPU usuage hovered around 2% whereas with SQL Server it hovered around 40%. Here are the results: median insert : 9ms min 7ms max 250 ms
  11. Here you go. On my computer: Dual Core 2.2 ghz 2mb ram SQL Server 2005 I can insert 10,000 records on average about once per millisecond with max cpu usage on both cores of around 40%.
  12. QUOTE(tmot @ Oct 23 2007, 08:30 AM) Can you please post a connection string for the "mattias" database ? Have you tried a stored procedure yet? If you have anti-virus software running, you may want to turn that off and see if things speed up any. Brian
  13. One other suggestion: Since your app and the db are on the same computer, use a "shared memory" protocol instead of TCP/IP if you haven't already. Also as mentioned above, 1) Separate DAQ and DB Loops 2) Initialize connections to DB outside loop 3) Use stored procedure for inserts Can you post a snapshot of the code? and a SQL script of the create database commands?
  14. QUOTE(Dean Mills @ Oct 15 2007, 04:25 PM) Dean's right. Don't forget to return settings to normal after your done debugging. Sometimes not having reentrancy on can screw up some events. I also use the attached tool to record event occurrences as they happen to a file.
  15. QUOTE(yen @ Sep 2 2007, 02:16 PM) Sorry Yen, Backsaving doesn't work.
  16. QUOTE(Neville D @ Aug 23 2007, 08:08 PM) BD and FP size are available during runtime but Data Size is not. BD and FP don't seem to change while the VI is running
  17. Is there a VI property/method or way to return the currnt memory usuage of a VI that is running? How does the profiler accomplish this? The reason I need to do this is that I want to monitor the memory usuage of template vi instances that I run. If I start the profiler before I run the application to track memory usage, the instances of the VIs are shown when they are opened, but they always show 0k for their use. I was also contemplating creating a graphical memory profiler....has this been done before in LV? B
  18. QUOTE(tcplomp @ Aug 21 2007, 12:56 PM) :ninja: I see
  19. QUOTE(tcplomp @ Aug 21 2007, 12:23 AM) Redraw event? I'm using LV8.2 and don't see it.
  20. QUOTE(MikaelH @ Aug 20 2007, 06:05 PM) Thats what I was afraid of.
  21. I want to capture when a user clicks the title bar and drags a front panel window to a new location. I only found a "Panel Resize" Event which doesn't fire when the user "moves" the front panel. Am I missing an easy way to do this?
  22. QUOTE(yen @ Aug 18 2007, 02:49 PM) Just what I was looking for. Thanks.
  23. Is there a way to get a cluster of all the properties for a graph? I would like to store most of the properties of a graph to file and then recall them later in. It seems like there should be an easier way than building a giant cluster manually and saving it to an INI file. I've found a "Plot Attributes" cluster that can be retrieved utilizing the event structure. http://forums.lavag.org/index.php?act=attach&type=post&id=6674 But I haven't found a way to pump this cluster back into the graph without unbundling the entire thing an manually wiring up each property to a giant plot property node. http://forums.lavag.org/index.php?act=attach&type=post&id=6675
  24. http://forums.lavag.org/index.php?act=attach&type=post&id=6526 I keep getting this error and even if I delete the file it mentions. It doesn't get fixed. Also I don't even think I have a "controls" pallete in the user.lib directory. :headbang:
  25. anyone ever seen this error caused by a registered activex event in LabVIEW 7.1: http://forums.lavag.org/index.php?act=attach&type=post&id=5856 It crashes the VI after execution and the error log says: D:\lvmerc\src\source\execsupp\eventoracle.cpp(392) : DAbort: panel-locking Event callback not in UI! The interesting thing is that only one of the registered events "cmdended" causes the crash, but the other one works fine. And, it does not crash in LabVIEW 8.2. I googled and looked at the NI boards, but nothing was very clear about how to fix the problem.
×
×
  • Create New...

Important Information

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