Jump to content

atk_nut

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Everything posted by atk_nut

  1. Hi there, I would like to fire an event in an event structure based on a digital input from a daq device (button press). Does anyone out there have an example of that? Can I do it? Thanks.
  2. I'm trying to generate a sine wave on 6 channels at 60hz. I want to "smoothly" transition to 50Hz. The update rate is 60,000 points per second (that should give 1000 points per cycle at 60Hz.) I generate a buffer of 1000 points for 60 Hz, then write the buffer of 1200 points (50 Hz) at the same update rate. However, the signal stays at 60Hz. until I reset the clock. I'm getting stumped. Any ideas? I've attached some code. Download File:post-1336-1155844390.vi
  3. Has anybody ever written a gerber viewer in labview? ie something that reads a gerber file and plots the data in a picture control?
  4. Does anybody know of a more memory friendly control/indicator than the standard picture indicator? I need to display a large 1meg jpg file and when I convert it to the picture format it takes over 65megs. Has anyone displayed a jpg direct in an activex control maybe?
  5. In LV8, I have a network published shared variable in one application. I reference this variable in another application by binding to it in the shared variable properties. I've changed the machine reference to "localhost" like in the example. It all works fine on my machine in development and exe. (I'm running xp.) However, when I install these applications on a different windows 2000 machine, the exe versions are still trying to reference the variables on the orginal machine. The win2k machine doesn't show up on the variable list either. In my builder, I have selected the variable engine, and I did run the installer. Any ideas? Thanks.
  6. OK, I've been given two dll's. One contains the .net methods that I wish to run, and the other contains the definitions for the custom classes that the methods return. I can add the first dll (with the methods) to the .net assembly references, but not the second. I can call the method, and it looks like the datatypes are there, but when I actually run the method. I get a .net exception: File or assembly name dllnumber1, or one of its dependencies, was not found. in Untitled 1 My c# expert says, no problem, all you have to do is declare dll#2 in your code. OK, so how do I do it?
  7. atk_nut

    9 data bits?

    I have an older obscure peice of hardware that has a serial protocol with 9 data bits. The protocol is as follows: Baud: 4800 1 start bit + 9 data bits (described below) + 1 stop bit No parity bits Byte 1 - channel id: 1nnnnnnnn Byte 2 - channel level: 0xxxxxxxx I've tried faking it out in various ways using Mark and space parity, but it doesn't work. Has anyone out there done this before? Thanks.
  8. Good. That actually makes me feel better, because I thought I was missing something. Thanks!
  9. How do you set the "events handled by this case" in scritping? Anyone?
  10. Anybody have an example of creating a new wire and linking it to two objects? ie a numeric constant to a timeout terminal on an event structure? I've attached what I have so far. Thanks. Download File:post-1336-1114041653.vi
  11. Ok. It turns out it was simpler than I thought (If you have OpenG installed.) See attached. Download File:post-1336-1113948711.vi
  12. OK, here's the issue. I'm trying to duplicate a record with the SQL toolkit. In the insert record vi, it takes a cluster of data, converts it to variant, parses the datatypes and inserts the record. What I want to do, is develop a vi that programmatically inserts a record based on the column info and an array of strings. (In stead of building a cluster to pass to the vi.) The problem is, how do you "build" a cluster variant from an array of strings. I have attached a vi that illustrates the problem. The goal: Make variant2 look like variant1! Any help would be appreciated. Download File:post-1336-1112914459.vi
  13. Here's how I solved it: Since both apps were accessing a SQL server DB. I just created a small table in that database to "token" pass between the two apps. I decided to go this way, because we could potentially have half a dozen machines accessing the hardware in the future. I would prefer direct communication because SQL may not always be available, but it works quite well for now. Thanks.
  14. Have you figured out a good way to handle the "_nnn" issue?
  15. Have you tried the GOOP wizard from NI? Is it different than what you are doing? I just tried it myself for the first time and it seems to work pretty well.
  16. Does anybody have any tips on implementing "hardware" sharing between two different systems running two different .exe's? What I'm looking for is a "semaphore" that will work between different pc's across a network and between different compiled .exe's. The end result is to inhibit a particular test that will interfere with another test that is running at the same time. Thanks in advance!
  17. We have been doing some optimizing of some existing monster code and we have found that instances of global variables is a problem. Specifically, we have two global variable vi's that contain ~ 150 variables each. In the heirarchy there are approximately 600 instances strewn about. I have found a solution that may work for us, but I wanted to get some further opinions. Basically the solution is this: At the top level, we have one instance of one of the global variables just to ensure that the vi is in the heirarchy and in memory. We then use the variable name to access the data using property nodes passing the data in(or out) as variant. Since there are only a few data types, we then use a polymorphic vi to essentially convert the data to (and from) variant. I have an example attached. What do you guys think? Will this help my memory size? We have found that this method is the closest to a drop in replacement for global variables. Thanks. In the example, look at "Global example.vi" and "Old way global example.vi" Download File:post-1336-1105663280.zip
  18. I tried that. The example fills in "parents" and "childs" only, not the rest of the table. Using the control refnum, you can fill the rest of the table, but you can't seem to read it.
  19. Does anybody know how to get the table data out of a tree control? Specifically, I want the text that I stuffed into the tree under the "child text array" in the "edit tree items:add item" method. Thanks. Henry.
×
×
  • Create New...

Important Information

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