Jump to content

EJW

Members
  • Content Count

    70
  • Joined

  • Last visited

    Never

Everything posted by EJW

  1. QUOTE (Minh Pham @ Nov 20 2008, 06:52 PM) Actually, i am replacing the third element with new data, same size. I keep the first two indexes and input a new third array to replace the original.
  2. i have attached a picture of an inplace structure i used. does this method gain anything over not using it to do the same thing?
  3. I like to use enums in my programming because of the text output they have when using a case structure as opposed to a menu rings numeric output. Is there a way to make a control or xcontrol that uses the menu ring for the control, but outputs an enum style value?? I know this could probably be accomplished by using the menu rings string property but i'd rather have a separate control i can implement.
  4. QUOTE (guruthilak@yahoo.com @ Aug 6 2008, 06:54 AM) You can always select the assistant with the left mouse, go to the edit menu, and convert to task name constant. then repeat that process and convert to code or code plus example.
  5. EJW

    Memory Leaks

    QUOTE (Ton @ Aug 1 2008, 10:06 AM) I found something interesting. The machine I wrote the code on uses daqmx 7.4.0f0, my test machine in the lab uses 8.0.1f0 - the problem shows on both machines. However, i checked the machine that is actually running the test, which uses 8.0.0f0, and it is not happening on it. That is very strange. :headbang:
  6. EJW

    Memory Leaks

    QUOTE (Louis Manfredi @ Aug 1 2008, 10:14 AM) Yeah, that is what i am doing now, i know i have run into issues where one task reads DIO and another writes to DIO on the same device (different lines). Also, the other device reads a DIO and an AI, but i dont think that is usually a problem. Worst case, I'll string em all together with the errors and let them operate sequentially. In some cases i know i have had to actuall insert a stop task otherwise the next task doesnt work. I am hoping to complete this without all the extras! EDIT:: I converted the assistants to code only, put them o
  7. EJW

    Memory Leaks

    QUOTE (Ton @ Aug 1 2008, 10:06 AM) I thought of that , so i added a clear task on the task out of each express vi, which actually caused it to fail on the second iteration. I was actuall trying to minimize the amount of code i was rewriting in this program as there is a new version in 8.5 coming in about 2 months, and i didn't want to spend a lot of time on this one!
  8. EJW

    Memory Leaks

    I am updating a labview 7.1 program. I removed all traditional nidaq code and replaced with daqmx code and the daq assistants. The program, when compiled (myprogram.exe), has a memory leak. The memory useage continues to grow until you get low on virtual memory. However, in the dev mode inside of labview, there does not appear to be a memory leak. The labview memory useage never changes. How would i go about finding what is causing this? there are about 4 daq assistants in a while loop waiting on a test to start. these DA's poll various digital and analog channels. Could these be the cau
  9. I have recently run into an interesting problem. I have a new 8105 controller, 1031 chassis, and two 6251 DAQ cards. My labview program on this machine starts up with windows (XPSP2). However, when the program initalizes, it gets a device not present error. If you stop and start the program again, or close it and reopen it, it works fine, the device is there. Similarly , if you take the program out of the startup folder and launch it manually after windows starts, it works fine. It appears to me that windows has not finished recognizing the hardware, or the drivers are not fully loaded by the
  10. EJW

    PXI Memory UPgrade

    QUOTE (crelf @ Jun 17 2008, 02:52 PM) Good point! So I called NI, and the response was NO it would not affect the NI warranty!!!! QUOTE (Neville D @ Jun 17 2008, 02:57 PM) You might also consider that the NI memory will definitely support the extended temperature spec (if you have that option) in harsh environments. Neville. You know, i have ordered stuff with the extended temp spec, and yet i am still unsure what it is that is different! Do you know? Also, alot of memory these days is designed around "gamers" which tend to have HOTTTT! systems. So one would expect the more recent
  11. Has anyone upgraded memory in their PXI systems? Do you buy the way way overpriced NI memory or do you order something from a respectable company like Corsair , OCZ or Kingston. After all it is just laptop memory!
  12. Has anyone upgraded memory in their
  13. QUOTE (crelf @ Jun 16 2008, 06:22 PM) Oddly enough, i hade that happen with the write to spreadsheet file. i lost all my polymorphic instances except one. NI had me recopy the original lvlib from the CD to my computer and replaced the broken one with that. All was good.
  14. QUOTE (Michael_Aivaliotis @ Jun 17 2008, 01:02 AM) LOL, THAT'S THE PROBLEM!! Have you ever tried to find a needle in a billion piece haystack! However, through careful prudence and patience and several reinstalls, i did finally get it to work.
  15. QUOTE (TobyD @ Jun 16 2008, 01:26 PM) SURE! Haven't you noticed, the bigger the OS's get, the bigger the problems! As a side note, in my days of AOL (before realizing it was just an expensive portal), i preferred AOL v 2.5, i last used aol when 9SE came out and my neighbor wanted it installed. I recommended to her that 2.5 was probably the best as she was having numerous problems with it. On the other hand 24.95 a month doesnt sound bad now, considering i pay 89.99 a month for 12Mbps and a static IP !!!!!!!
  16. I had no problems with the sp1 install. everything went smooth. i never went to XP at home, and just recently at work. home went from 2000 to vista. most of the equipment i buy from NI is ordered with 2000 over XP (barbie windows) . How i miss the days of Windows for Workroups 3.11 running on my packard bell.
  17. all these programmers, somone must know somehthing about web programming. I need help with a phpNUKE installation. All the files are in place, i inserted the domain name in the admin.php file and uncommented that section. i updated the config.php file to have the correct information. installed the database, ran the nuke.sql script to set it up, added a user to the database and.......nothing, i get a nuke page that says there is a database error (before i was getting just blank page). HELP HELP HELP HELP!!!!!!
  18. QUOTE (orko @ Apr 14 2008, 02:29 PM) So your saying you prefer the top method, #1 ?
  19. hi everyone. just wondering which of the two methods of unbundling tasks in my example code is more appropriate to use. if you could take a look and let me know i'd appreciate it.
  20. Allright, this is a relatively simple application, yet i want it to be MODERN and take advantage of the fact that all my systems now use dual core processors. I understand that the new timed loops in 8.5 have the ability to assign a processor or processor core to each loop. Though i dont understand why its not available on the standard while loop. I am working on a new machine that has taken an old test and split it into two stations to do a new part. (It is impractical mechanically to try and do it in one station). So, station one tests the top of the part, station two tests the bottom of
  21. I am trying to take vibration measurements on our old test stands. The program i am writing in LV85 is to replace our outdated labwindows 5 program. I have a new pxi system to replace our outdated 286 machines. (dont laugh). We are taking vibration measurements with PCB accelerometers, typically 100mv/g and using an Althen VIB-RMS 5B module for signal conditioning. The origial system acquired this on an E series mf-DAQ, now i am using a 6221M. I am not familiar with C or labwindows and am unsure how they were calculating average g and peak g from the hardware i mentioned. I would assume
  22. QUOTE(ned @ Nov 14 2007, 01:04 PM) I think one of the problems people are having here is that everyone assumes that all design patterns are created equal. Such as, they all HAVE to be able to be used in all sizes of programs. A simple program, that does not do a whole lot, that only takes 1 programmer a month or less to write, could benefit from using the EVENT Structure as a state machine. I have written programs that only require a day or two of programming, and writing it as a state machine took up most of the time. I did rewrite one as an event machine and not only was i able to ge
  23. QUOTE(EJW @ Nov 9 2007, 11:22 AM) Well this is certainly an educational topic. At least we are getting good information all in one spot as discussions on event structures seems to be a little thin anyway. I guess it comes down to on preference and even program size. I am assuming the projects most people are commenting on are probably rather large compared to the one i will be doing. Most likely I will stick to the State Machine, even though as a former text-based EVENT driven programmer, i will muddle through the cumbersome state machine process. When it comes down to it, a State Ma
  24. QUOTE(Michael_Aivaliotis @ Nov 10 2007, 03:41 PM) Luckily for me, i don't do customer projects. These are all in house programs designed to run on production gaging equipment with little or no user input, aside from me or another qualified person making a setting or calibration change! ONe nice thing i like about the event structure though is when you respond to a control in the value change event, you have both NEW and OLD data available to you without using locals or shift registers.
×
×
  • Create New...

Important Information

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