Jump to content

asbo

Members
  • Posts

    1,256
  • Joined

  • Last visited

  • Days Won

    29

Posts posted by asbo

  1. In a text-based language, you can talk about how many lines your application is. For LabVIEW, I've seen people talk about x number of VIs in a project, but I don't think that's a very accurate representation of a project's complexity - what if you happen to have 50 functional globals?

    Who wants to write a tool which will count the number of wires you use? :>

  2. This isn't a terribly simple process, especially considering LabVIEW has no native support for PDF files. I found an ActiveX-based example on the NI website (http://decibel.ni.com/content/docs/DOC-2163) but it doesn't seem to work in my brief test (I get an ActiveX automation error).

    You might be better off trying to find an external program you can interface with, though that's generally considered a dirty practice.

    I have a feeling you're ultimately have to going to a lot of OCR.

  3. QUOTE (Vaibhav @ Dec 2 2008, 11:26 AM)

    Hello!

    I am using LabVIEW to develop a prototype system. My task is to capture images from a network camera (Linksys WVC54GC IP camera) and show them in a client application. I have downloaded and included the OCX provided by Linksys, but I cannot capture the images. Can you please guide me regarding this? Which method I am missing on?

    I am attaching the .ocx and my test VI. What type of parameters to supply to properties like FrameRate. I have no idea about this.

    Thanks ahead!

    If you're looking for help, you should start your own thread. Posting your question on top of DCPreamp's is considered 'thread-jacking' and isn't terribly polite.

  4. QUOTE (harika @ Dec 1 2008, 02:46 AM)

    hi

    i tried as u suggested,but i didn't get the plot.i attached my plot.so,whenever the phase diff is less than -90 deg the plot should be continued and other than that plot should be stopped.plz help me out.

    In LV 8.5+, For loops are allowed to have conditional terminals. This is an easy solution to your problem.

  5. QUOTE (jcarmody @ Nov 24 2008, 10:59 AM)

    I don't know what you mean by "make an LED showing EX:ABC". I looked at the VI you attached and found it strangely familiar :unsure: ... All you did was replace the boolean indicator and translate the comments.

    Jim

    I have a feeling what he's going for is an LED "sign" ... I don't see a terribly good way of doing that without having a constant for each character and then doing a sort of merge of the A, B, and C arrays to make the array indicator show 'ABC'.

  6. QUOTE (vultac @ Nov 24 2008, 10:45 AM)

    hey how can i represent something like this on labview?

    8 D I/O lines.

    Let D0 & D1 be pulses and D2 - D7 as digital lines

    Start -> set D0 active high -> set D1 active high -> wait -> Set D0 active low -> wait -> set D1 active low -> finish.

    You can use the sequence structure and the Wait (ms) function to accomplish this - but you'll have to read up on how exactly to communicate with your particular device.

  7. Well, your biggest problem is that you don't have any data retention. Waveform graphs allow you to specify both X and Y coordinates, but you have to give it the entire data set at once, otherwise you're simply graphing an instantaneous point. Create two shift registers on your while loop, one for frequency points and one for phase points. Use the Build Array function to concatenate each new point onto the shift register array, and then bundle the two shift register arrays and pass the resultant cluster to the waveform graph.

    Be careful, though; the array will get very large so you can't run it for too long without consuming gobs of memory. You can use the iteration block, a case structure, and Delete From Array to solve this problem.

  8. QUOTE (Fresnel @ Nov 24 2008, 06:39 AM)

    I realised on friday that I had it in a loop, hence why it kept asking me to select rectangle. Here is a screenshot of the front panel. I have selected a rectangular ROI. I would like to be able to place it on the block diagram and use this ROI area as my new image, but can't find a way of doing this just now.

    You forgot the screenshot part ;)

  9. QUOTE (chocobar @ Nov 24 2008, 07:00 AM)

    the vi that i post is an example for a given condition...i did try to put a while loop but still it will continue on sending message...

    im gonna use USB DAQ to acquire a signal from the thermistor and from there it will trigger the vi...i tried and when it stays on a certain temperature...it will continue to keep on sending sms...

    like for example i set the trigger condition to be activated at 37...

    when 37 is being displayed throughout...it will keep on sending out sms...

    my problem now is to make sure that when it remain constant...it wont send multiple messages...i want it to be send out once...

    if you guys want me to post what i did i can upload it here...

    I see your problem. What I would do is use a feedback node or shift register initialized to a FALSE boolean. Once you hit the trigger case where the SMS is sent, set that boolean to TRUE and then add conditional code that won't send the SMS if that boolean is true. In the opposing case that is executed whenever the trigger condition isn't met, set the boolean to false.

    You could go really overboard and use timestamps to track when the last SMS was sent and if it was within x minutes, skip this trigger.

  10. QUOTE (EJW @ Nov 21 2008, 09:43 AM)

    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.

    I think the problem is that you're using the Build Array to create a completely new array - not working on the old one. Why not use the Replace Subset function?

  11. QUOTE (Dan DeFriese @ Nov 21 2008, 12:51 AM)

    Yes, this works fine. I put together a little example.

    You may have to alter the string constant in the caller VI; when I saved these files, my browser was kind enough to swap spaces for underscores and break it. :)

  12. QUOTE (jcarmody @ Nov 20 2008, 06:32 PM)

    That trailer has barn doors, not a roll-up door; you have to pull it away from the dock to close them. It would have been a good idea to block the carts in, though.

    Doesn't look he intended to stop to me ... :P

  13. QUOTE (Yair @ Nov 20 2008, 02:28 PM)

    If you're using the auto-tool, you can temporarily switch to the pan tool by holding down ctrl+shift. I think this doesn't work without the auto-tool, but I'm not sure.

    Of course, NI could also use the reasonably standard method of pressing the mouse wheel to change to pan mode, but that wouldn't work on the Mac. Then again, no one* really cares about the Mac. That'll teach them to make proper mice. ;)

    P.S. This is far from the first time anyone asked for this, but if you want NI to actually see it, you should send it to their product suggestion center.

    * Statistically speaking. Does not apply to LV R&D engineers and LAVA admins with the ability to do bad things to my account. Valid only in the U.S. and Canada.

    Oooo, neat trick. It does require auto-tool, but I'm a fan anyway.

    If they were to implement something with the middle click, I'd rather it lock the BD/FP to your cursor and moving the mouse moves the whole shebang -- rather than the MS Word-style offset-equals-speed nonsense.

    Just some friendly advice: I would add "void where prohibited" to your disclaimer as well. Just in case.

×
×
  • Create New...

Important Information

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