Jump to content

bmoyer

Members
  • Posts

    207
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by bmoyer

  1. What is the more stable emulator for running Windows version of LabVIEW under OSX: Parallels 6 or VMWARE Fusion 3?

    thanks,

    -John

    Why limit yourself to only 2 choices? I use Oracle VM Virtual Box, not because I have a preference but because I use it on my Mac at home for personal use (non work) and it's free. For what I do it works well and is stable (from what I can see).

    Bruce

  2. I actually had the same trouble. I was able to do a splash screen without having to use to exe or dll...

    If you create a vi that is your splashscreen, use it to load the main vi of your application dynamically, and make this splashscreen the main vi of your built application, then the splashscreen shows up right away (because the main vi is a few bytes only). You just need a notifier or something like that to tell the splashscreen to stop runing when your application is loaded.

    I did that with a 20MB applicationand it works great, the splashscreen shows up in 3 seconds.

    I agree, this method is the way to go. All of the files are in the same exe too so it's more contained then having 2 exes.

    I use a VI called Startup.vi that I use to dynamically call the other VIs (designated as a "Startup VIs" in the build). In the "Always Included" section I include the Splash Screen.VI and my main program VI.

    Bruce

    Startup.vi

  3. Yes, I was thinking the same but if connect read terminal to property node like what you showed. Next, Can I delete existing indicator on that place(PMBus address) after connecting to the property node of PMBus indicator. In that case, it delets existing property node also and i have left it alone there after. Is this right?

    I have one more doubt about enable and disable indexing. As i am new to programming and difficult for me to undestand. can you help me, In waht cases we use these option. Since, I was just using trail and error methods in the case of errors. I want to know what exactly it is? see the attachment, hopefully i changed all things. Is it ok now, then i will check with device later and may i can troubleshoot some other problems.

    No, don't delete the indicator, because that will make the property node not work. Actually, I think your indicator should be a control (right-click on the pull-down menu on the front panel and select Change to Control) so that the user can select it.

    You don't expect me to read threads do you? tongue.gif

    Apologies. He's all yours biggrin.gif

    That's funny. No, you can have him/her.

    rajnew 2.vi

  4. No, i did not check with the device though My task is to finish this. Could you please help me that you told some thing about property node setting in the first message ..Please I am running out of deadline. Please can tell me exactly hoe can i do that.

    This is all you need to do to get the pulldown menu items (see image). I told you exactly how to do it.

    post-4985-0-60358400-1300129643_thumb.pn

  5. I tried to create property node in strings but the problem is I Am using local varible of the dropdownlist in other event cases because of selected address should written to port in other event cases. Please can make it for me and the attched Vi is above. I am using labview 8.5. I guess that i have taken string dropdownlist but I need to display hex numbers in dropdown list. Please make me out of this.

    The local variable outputs what the selected value is which is what you need for the events that send the selected value. The "Get available addresses" event just initializes the pulldown with all of the selectable values.

    Does your device have response termination character(s) so that you can more robustly control the communication?

    Bruce

  6. Do you see an error when you get addresses?

    I'm not sure wait device this is for, but there's a couple of things I see.

    You probably want to enable a termination character (settable when initializing (VISA Configure Serial Port)) as an easy way to know when your device is done sending characters. Hopefully your device uses a termination character. If it does, just wire a large number to the byte count input of the Serial Read and it will return as soon as the termination character is received.

    Your use of the dropdownlist is incorrect. Create a property node with property of Strings[] and wire the output of the serial read to the property with the property outside of the for loop.

    Consider changing the mechanical action of the buttons so that they automatically return. Right-click on the button and under mechanical action select latch when released. Move the button into its event (the button must be read in order to return).

    If you are considering making this a more robust program, consider looking into state machines so that your program doesn't terminate when it receives an error.

    Bruce

  7. In the event structure, when you are editing an event, you may want to uncheck the "Lock front panel until the event case for this event completes" for most events (unless you want to disable any user action until the event is completed.

    You also may want to consider 2 state machines. One for user events and the other for the temp chamber. You need to devise a way to pass the events from one to the other (most people use queues). LabVIEW has templates (located from the menu File-->New... under VI-->From Template-->Frameworks-->Design Patterns called (Master/Slave Design Pattern, Producer/Consumer Design Pattern (Data), and Producer/Consumer Design Pattern (Events). You may also want to look at the JKI state machine. Many people use that and are happy with its expandability.

    Bruce

  8. Hi,

    Right now I am working on a project to create an open Vision-like library for LabVIEW based on Intel OpenCV. At the moment, we don't have enough time and people to wrap all the OpenCV functions, so we could really use some statistics on which functions are essential and which of them could be left for the future. Please, express your opinion here.

    Thanks in advance

    Wow, that could be quite an undertaking. I wish you luck.

    Anyway, the NI-VISION functions used depends a lot on the application. Here's a list of the NI-VISION VIs I've used on some recent project.

    IMAQ Absolute Difference

    IMAQ AVI Get Filter Names

    IMAQ Add

    IMAQ ArrayToImage

    IMAQ ArrayToColorImage

    IMAQ CannyEdgeDetection

    IMAQ Cast Image

    IMAQ Clear Overlay

    IMAQ Compare

    IMAQ Copy

    IMAQ Divide

    IMAQ Equalize

    IMAQ Expand

    IMAQ Extract

    IMAQ FillImage

    IMAQ Find Circular Edge

    IMAQ Histogram

    IMAQ Histograph

    IMAQ ImageToClipboard

    IMAQ ImageToImage

    IMAQ ImageToImage 2

    IMAQ Mask

    IMAQ Multiply

    IMAQ Overlay Bitmap

    IMAQ Overlay ROI

    IMAQ Overlay Text

    IMAQ Quantify

    IMAQ Resample

    IMAQ ROIProfile

    IMAQ Rotate

    IMAQ Shift

    IMAQ Subtract

    IMAQ Symmetry

    Bruce

  9. Are you using the integrated SCC-interface?

    If your interface is slow (and it can be slow partly caused by LabVIEW) it can hog LabVIEW.

    Ton

    I do use the SCC with LabVIEW (Visual Source Safe). What do I have to do, disable integrated SCC in LabVIEW? It seems that there are so many don't do this or don't do that (don't have the project open, don't use 32-bit PCs, don't use the Find feature, etc.) in order to have LV2010 work properly.

    Bruce

  10. Hi

    I am using the regular IMAQ Write Frame.vi to save the video from a Basler camera. If I don't use any of the available compression modes the avi file size is becoming very large (10 sec aprox 150MB) with in a short period of time. If I use a compression and when playing it in a windows media player or any other player the frame rate is not the same. I attached the sample vi that I am using to record the video. Please let me know what can be done to reduce the size of the video file and be able play it with the same frame rate recorded using windows medial player.

    ThanksRecording Test.vi

    Which frame rate value is stored in the AVI when compression is turned on?

    Also, the Grab VI is self pacing, so you probably don't need the wait in the top loop.

    Bruce

  11. I have noticed that if I do a Find operation in the LabVIEW Project, and the project is large, then any change makes LabVIEW unresponsive for 30-120 seconds, and the Z-order of the open windows is shuffled around. This does not include "Find and Replace" (ctrl-F in a VI) or "Find All Instances (right-clicking on an icon) but does include "Find in Project" (Crtl-F in an open project) or "This VI in Project" (Ctrl-shift-E) in a VI. If I close LV and reopen it, the problem goes away until I use the Find function again (which I have learned not to do). It does not always happen, but if many windows are open, it is more likely to occur.

    I don't have a CAR # for this, because I can't always reproduce it.

    Bruce, does this match anything you experienced?

    I'm not sure what causes the saving of VIs to take a long time and I'm not usually aware of my exact sequence of events before the problems occurs. I did try to find in the project and it does take about 30 seconds to find a VI but I didn't notice a save problem afterwards, just that the find is very slow.

    Actually, with a little more investigation, my statement above is wrong and that if I change any logic on the diagram the save takes about 20 seconds. I didn't notice a delay earlier because I was just moving objects on the diagram, which doesn't cause a recompile. If I change the logic, I don't even have to do a find in order to cause the slowness problem.

    Bruce

  12. I'm using LV2010 on Windows XP (although I saw the same thing with LV2009). It takes at least 10 seconds after I drop a VI (and other things too) on my diagram before I can do anything else in LV. Is there some setting that will fix that. Is it maybe recompling every time? This is getting really old.

    George

    I gave up on LV2010. Tried converting a large LV8.5 project to LV10 and it was so slow it was unusable! :throwpc: Saving a VI after a simple change usually took about 30 seconds. I even tried turning off the separate compile files option but still pretty bad. I managed to create the exe of the project and it seems to take a lot longer to load even though it's supposed to execute up to 20% faster. I had to go back to 8.5 after wasting a lot of time due to time constraints.

    Bruce

  13. This VI is different in that it doesn't prompt you to select a model, and if you cancel one it also doesn't ask to select a model. Also after a model is selected the button that was selected doesn't stay in the true position.

    But if the original poster wanted this functionality I would suggest a radio button with 13 options. And a label saying "Please select a model"

    I realize that the code I posted may not behave exactly the same, I was just trying to show the structure and take a stab at what I thought the original poster was trying to implement. Sometimes we go down these paths that overly complicate things and there isn't any reason why (except for that we didn't know any better).

    Bruce

  14. Well, if you have a non-student version of LabVIEW then I suggest looking at the Event Structure. Unfortunately this is not available in the student version. Right-click on your controls and select Mechanical Action...Latch when released. This will prevent you from having to reset the controls everywhere.

    I redid your VI using an event structure. Search the online forums for state machines and look at the examples in LabVIEW under File...New. Then go to VI...From Template...Frameworks...Design Patterns and look at the examples there.

    There's going to be a long learning process so don't get frustrated if it takes a while understand.

    Bruce

    UI (bmoyer-1).vi

  15. Or they could expand the Help details to include not working with Config refnums. I never looked at the detailed help for this function and was surprised at its limitations. Maybe it would be more helpful to describe what functions it does work with instead of what it does not.

    Bruce

    Not A Number/Path/Refnum? Details

    This function works only on references generated by LabVIEW functions. Do not use this function to determine the validity of a rendezvous refnum, semaphore refnum, or any refnum created by the GOOP wizard, LabVIEW Database Connectivity Toolkit, or LabVIEW Internet Toolkit. For rendezvous refnums, use the Not A Rendezvous VI. For semaphore refnums, use the Not A Semaphore VI. For all other GOOP refnums or toolkit refnums, use the VIs defined by the refnum creator.

  16. I had this same problem and was never able to figure it out. It was like the computer had a vendetta against any exe built using LabVIEW. Only happened on a few computers and the only way to fix was to rebuild the computer from scratch. I questioned our corporate antivirus filters, but was unsuccessful at figuring out where the problem lays.

    The frustrating thing was that these were exe's that I had used for a long time and now all of the sudden are loading very slow on particular computers but all other applications worked fine. Maybe because it isn't an approved application?

    Hope you find your answer because I'd like to know too.

    Bruce

    • Like 1
×
×
  • Create New...

Important Information

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