Jump to content

p27182

Members
  • Posts

    22
  • Joined

  • Last visited

Posts posted by p27182

  1. Hey folks,

    I was wondering why my subVIs icon changes from the one I made (that says 'close' on it) when I wire the class to it- it turns into a blank VI icon from that class with a number 2 in the bottom right.

    The VI works, and it is definitely calling the right VI, but I just wanted to know why the icon changes.

    Thanks for any info!

    -Pat

  2. Yup. I do it the same way as sachsm.

    Sry for gettin off topic here, but Shaun- noobie question, is there a way to set up your structures to have color tint like the for loops ya just posted by default? So every time I lay a for loop its tinted yellow, while loops blue etc etc...

    and also- if I did this, would it stick with the vi if I were to send the vi to someone or edit it on another computer?

    thx!

    -pat

  3. I just bought a 13 button mouse (G700)... not only does it have buttons for days, but you can program one of them to change back and forth through 3 different "profiles" so that all the 12 other buttons can be config'd for another 12 hotkeys and or macros... with timing recorded on the keys too... it's a wee bit overwhelming :yes: lol...

    somehow, despite having the button "unassigned" in logitechs mouse config sw, when I hit one of the buttons it Ctrl+E's by default... kinda handy haha.

    we'll see if I can actually put these buttons to some productive use...

    It's a wireless guy that apparently will work on all surfaces so I'm certainly bringing it with me anywhere my laptop goes....

    -pat

  4. Hey-

    I'm looking to buy a new mouse (the one I have keeps randomly reseting its position to the upper rightmost spot on my displays) and looking on newegg I see mic with upwards of 10+ buttons...

    My question is, have any or many of you set up any of the extra buttons on your mouse to execute shortcuts in labview?

    Are there a lot of programmable shortcuts or hotkeys in labview that make you significantly faster? I'm aware of only a few with the quickdrop window, so I suppose if you could get one button on the mouse to ctrl+space and another to ctrl+d (or whichever). I think I read or heard somewhere you can create your own through the quickdrop menu- have to look into this i do.

    Sorry if any of this is unclear... it's early and I havent had my coffee yet.

    thanks

  5. I certainly consider myself a noobie here and with LV, my coworker just showed me how he uses the disable structure- I think it will prove to be useful for me in the future.

    I wanted to ask a question though- if you tell LV to build an EXE from VI, and the disable structure has some code disabled, is any of that disabled code compiled into the exe? or just left out?

    thx for any info

    -pat

  6. Hey folks,

    quick question- Im wondering why the USB 6525 isnt available in MAX as a simulated USB device, and if there's anything to do to make it available.

    Suppose I could use a simulated USB 6501 as a stand in for simulation functionality right?

    anyone have any other ideas?

    Thanks

    -pat

    Errrr... scratch that, doesn't look like 6501 is available either but I see no reason not to use PCI or PXI as long as the outputs are the just regular DIO...

    -pat

    is there a way to delete a post?

  7. No, the XPe piece is running a LV executable that utilizes a USB based DAQ amoungst other things, I'm really just looking to use a USB cable for serial communications just like a 232 hookup so that the system can be just as versatile as a common Test & Measurement class USB device. (partially because rs232 is kind of on its way out with many computers sold without the serial DB9 ports.)

    -pat

  8. Hey folks-

    I reckon my question is more windows XPe related than LabVIEW related, but it wouldn't surprise me if someone here has dealt with, or considered this idea before in this arena.

    My googling has turned up very little... but I want to know how feasible it may be to turn a box running XPe into a USB device (test and measurement class) that can be recognized by a remote hosting computer - all the while still being able to host USB devices on other USB ports itself for USB DAQ.

    Even if someone was willing to point me in the right direction, to documentation or another forum it would be very much appreciated!

    Thanks

    -pat

  9. Hello

    I'm working with eval versions here, but my employer's about to purchase the appropriate lic's.

    I just wanted to show them what it is I intend to do-

    anywho, onto the problem...

    Vision assistant's thresholding function under the grayscale tab doesn't seem to let me select just an ROI to analyze- quite a simple issue that I feel dumb asking about but it was particularly simpler to do in vision builder...

    it simply thresholds the whole image, and that's it.

    Anyone have any experience with this? or think I'm just doing something wrong?

    Thanks

    -Pat

  10. QUOTE (jdunham @ May 18 2009, 11:28 AM)

    If you right-click on the pict ring you can import pictures from your clipboard.

    Ah, I see (said the blind man), so I don't even need the controls editor...

    I guess that was a poor assumption.

    Dan- I will try and get the indicator done and post it up to at least show you guys what I'm after- right now I'm trying to fogire out the sizing of the gifs and the ring control...

    thanks much guys

    -Pat

  11. Hello-

    I'm struggling quite a bit despite the documentation I've found here (http://zone.ni.com/reference/en-XX/help/371361B-01/lvconcepts/custom_cont_ind_type/).

    Everytime I open up a new control or go to Advanced>>Customize from a Picture Ring, I can't seem to get the behavior of the picture ring right- It makes me wonder if I even Understand the way the picture ring is supposed to work.

    Either way, this is what I'm trying to do:

    I'm making a system that uses vision to interpret the position of a dial (one that is manually adjusted by hand when in use). And although I have the vision part of this system practically finished (spits out the angle of the dial), I can't seem to get the indicator of the dials position to function the way I want. I thought a picture ring would let you essentially associate a value with a picture, and have that value as in input trigger the display of the associated image.

    is my understanding of picture ring skewed or just plain wrong? Would you suggest doing this another way?

    Thanks for any and all suggestions or info

    -Pat

    edit:

    *PS- using the eval of version 8.6 as of now

    looking at the "Using Custom Controls" example VI the deck of cards is exactly what I'm looking for, except I want gifs of a knob sitting at all sorts of angles instead of the individual cards. I notice that when I go to customize this control and "show parts window" it treats the whole deck of cards as a "Ring Picture"... so as of now I'm just trying to figure out how to edit the set of images in the ring picture set....

    thanks again for any info

    -pat

  12. hmmmm.... she doesnt seem to be working... either that or I'm totally missing something (not unlikley). The bottom (calculation) loop seems to get started too early, then it acts like it comes to a halt, and changing the ms wait value doesnt seem to influence the result... I feel like theres something real dumb im missing.... maybe I'll get later or something.

    I spoke to a buddy of mine here who's a grad student, turns out he's working on something really similar, and actually handed me some matlab code for taking IMU data and extracting low-noise info. it's basically numerical integration with a threshold, he laughed at me when i told him i wanted to crunch out double integrals to get displacement data... lol then he proceeded to show me loads of graphs that represented displacement by standard integration, and man, they were freakin ugly ... half the graph turned out to be way off...

    so now im wondering if I can use anything from this matlab code IN labview.... how close is matlab's language to mathscript? is this a dumb question? ... shit for all I know it could be the same...

    I've never used the mathscript tools in labview- anyone have any experience?

    thanks for all the help guys...

    much appreciated!

    -Pat

  13. QUOTE(LV Punk @ Aug 29 2007, 07:26 AM)

    Your situation is fairly common; you have a data stream that is faster than can be handled in real time. You need to simultaneously offload the communications buffer before it fills AND process the data. This is where LabVIEW queues and parallel execution become useful.

    Your program can be split into two loops; one to capture the RS-232 data, and the other to post-process and display the results. I've attached a modified version of your program; the upper loop reads the RS-232 data as quickly as possible, and places it in a queue. The lower loop periodically flushes the queue, selects the last element and converts it to coordinate data as before.

    Adjust the wait-next-multiple input in the lower loop to determine the display quality. If the VI still runs slowly, then you will need optimize other parts of your code. I'm curious to know if this alone will improve your performance (I'm guessing it will :thumbup: )

    wow. thanks! unfortunetly my partner has the IMU right now but as soon as I get it in my hands I will be sure to run it and see how much quicker it is. - I guess my noob-status still stands, I'm still interpreting the changes you made haha, I've never actually used anything off the que pallette.

    thanks a lot for the help, I really do appreciate it, unfortunetly I don't know of anyone here that really knows labview this well...

    I'll let you guys know how it tirns out!

    -pat

  14. QUOTE(Neville D @ Aug 27 2007, 01:04 PM)

    I would open up the express VI's you have for integration, and extract out only the functionality you need for your calculations. Avoid the blue dynamic data type wires if you want speed.

    Better yet, write your own integral VI, that should be pretty trivial for someone who is fresh with all the math. Or you might use the pt-by-pt integral VI.

    Use the "defer panel updates" property to not redraw every single iteration.. maybe once or twice a second might be good enough.

    You can selectively make visible or invisible the different UI elements to see which of them is contributing to your slow behaviour. This should help you to figure out if its the calculations or the display that are causing the slowdown.

    In general going to a dll won't buy you more speed, as compared to well-written LabVIEW code. Optimizing LabVIEW code should give you a speed increase equivalent to C-code. If you are bent on using C, use a formula node and type C-code into it. It is equivalently fast, without the hassles of debugging the dll in a different environment.

    Also to speed up certain calculation sections, change the VI's priority to "high" (or even subroutine for certain fast, repetitive calculations), and disable debugging on everything; using a built executable will also buy you a slight increase in speed since this removes the diagrams, disables debugging, and removes all unnecessary parts of the application.

    You could also do a simple decimate for the display (display only every alternate pt).

    Neville.

    thanks for the advice, it is much appreciated.

    I tried the non-express integration but I must have been using it wrong, despite reading the help file cause I kept getting all zeros.

    The dissapointing part is that the computer Im trying to do this on isnt exactly a workhorse either. I'm finishing up a computer I'm building that will hopefully give me a lil better results, I suspect having more than half a gig or ram would help no?

    time will tell I guess...

    thanks again for the help

    -pat

  15. QUOTE(tcplomp @ Aug 25 2007, 03:43 PM)

    I'm not really and expert on this, but maybe you should lower the speed of your calculations to 25 Hz instead of 200 Hz (no-one can see that anyway).

    So gather you data at the current speed (200 Hz), and do the calculations and displahy at 25 Hz, or at a even lower speed.

    Ton

    PS your format string implicits 14 bytes, but you read 18 why?

    haha oh man, I didn't even see that! thanks for pointing it out, 200Hz.... lol

    the 14/18 bytes idea.... what about the spaces? I might be wrong because the program seems to jump out of synchronization and starts chopping up the packets, trying to read them after cutting them in half and it doesnt recover either... I'm not at school at the moment, but I'll take a gander at it again as soon as I get in.

    thanks a lot for the help!

    it's much appreciated.

    -pat

  16. Ok, here's the deal so far:

    I have a sparkfun IMU that spitting out XYZ accelerometer info over a serial connection @ 57600 baud. I have it hooked up to the COM1 port and in general, it works (drops out though after a lil bit, but thats another problem!)

    my problem that seems like a doozie to me is the display of the data. I want a 3d display and I have that, it looks and functions beautifully excluding it's ssslllooottthhhh like nature. of course I guess it could be the activeX stuff thats hogging resources or maybe its the time domain integration im trying to do on the data... my buddy here at school is helping outsource some of the number crunching labors and the serial data acquisition to DLLs. does this sound like im on the right track??? will using DLLs significantly reduce the resources required by labview? enough to run smoothly?

    someone also mentioned the idea of decimating the incoming data stream... spose i could do that too...

    I'm still googling and reading for possibilities, but i wanted to hear your suggestions, i imagine there are some serious veterans on here that really know their stuff.

    thaanks for any help/suggestions

    -pat

    p.s.- attached my vi . . . like i said, she's a resource hog for obvious reasons...

×
×
  • Create New...

Important Information

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