Jump to content

coolaid

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by coolaid

  1. Hi,

     

    With this structure, is it possible to handle parallel threads?  Like let say that I have an application work flow that is like a state machine, but I also would like the user to be able to do some action on the front pannel (ex. change a parameter in a user menu, update a maintenance list on the front pannel.)  

     

    Of what I understand, if the Action is busy executing a certain task, I'll have to wait that this task is done before executing another action.

     

    Thank you for your help.

  2. Calling Dlls from Labview is a bit of a black art.  The most likely cause of the crash is sending the dll a parameter that's different than what it expects.  For example, if the dll is expecting a 16 bit integer and you send it a 32 bit integer, Labview probably going to crash.  Sounds like that's what's happening to you.

    Did you write the dll or do you have access to the source code and/or *.h file?  If so, double check that you are calling the dlls with the correct parameters.  Sometimes in dlls you'll run across complex data stuctures that don't match very well with Labview data types.  It that case you usually need to write a wrapper dll that translates the data types into what the dlls expect.

    Check out this article, it's a starting point for how to call dlls from Labview.  It also discusses the difference between calling a regular dll and a .NET assembly.

    http://digital.ni.co...33?OpenDocument

    Thanks for the hint, but I've check and I mostly call functions from the dll without passing parameters.  The problem is that labview can crash only by closing a probe, or with a breakpoint.  It's like if the Dll is catching every labview events but don't know how to deal with them even if it's destined to it.

    Does this talk to you?

    Thank you,

  3. Hello there,

    I have a big problem here.  I want to use a bunch of dll created in C#.  The dll are used to initialize and read a temperature sensor device.  I only have to do the initialization and close my vi to freeze it.  Do you know what could cause this?  The problem is occurring when I want to stop or close the vi.

    Any help would be welcome.

    Thank you,

  4. QUOTE(TobyD @ Jan 9 2008, 11:48 AM)

    It sounds to me like it could be heat related. Video cameras and processing equipment will often start outputting weird artifacts when it gets to hot. I would make sure all fans are still turning smoothly and give everything a good cleaning with compressed air. You could even setup some fans blowing air directly on the equipment and run it for a while to see if it helps.

    Good Luck,

    Toby

    Good idea, I will try to clean it.  The problem that I also have is that I didn't have any problem with it and it's running for about 3 years from now.  The problem is temporary solve when I restart the computer.  I didn't change any hardware or software before thi problem occur.

    thank you for your support.

  5. Hello everyone,

    My system is using 4 cameras. this system worked for about 3 years and never had a problem with this. But now, When I start my process for less than an hour, I start to see horizontal lines in my acquisition image. Even when I close all my VI, this also happen in MAX. For the Xmas holiday's, I've turn all the system off. When I started everything back, My PXI chassis wasn't in MAX. So I've finally figured out that I had to open the PXI chassis before opening the computer. But, by doing that, I've lost some seting that I've manage to recover from backups. Is there a seting in MAX that could do this? A seting that could have a link with the image buffer? I'm also getting errors about the IMAQ acquisition that I never had before like "IMG_ERR_TIM0" Thank you for your help.

    I'm using a PXI-1000B chassis with a PXI-1409 acquisition card. I'm using Labview 6.1

    Thank you for your help,

  6. Hello,

    I'm trying to communicate wit serial and GPIB port of another computer.  My problem is that I see the remote ports in MAX/VISA/Aliases, but not in  the Visa ressource name control.  If I enter manually the port (IP adress + Port) I can communicate with it.

    Does anyone have a solution?  Could it be a Visa version problem?

    Thank you,

    P.S.  I'm using Labview 8.2.1.

  7. Hello,

    I have a length that I want to mesure from a picture taken with a camera. My Phase 1 is just to display the image so the operator can see it and approve/discard the product. I need to give a tool to the operator to measre the length of the default length. It's too soon for me to do it automatically, so I tought to change the mouse cursor with a circle with a dot in it to verify it the default is in the critera.

    Do you know how to change the cursor?

    do you have a better idea for my problem?

    Thank you,

    post-3808-1155571299.jpg?width=400

  8. Hi,

    I was doing some changes in one of my control when I've receive this error. I've check at NI and there's no indication about this error. Now I can't run my main program anymore. :throwpc:

    Do you have any idea of what's wrong?

    Thank you,

    post-3808-1151423610.jpg?width=400

    post-7603-092392200 1285164443_thumb.png
  9. The option you mentioned applies only to sub-VIs. If you want to close the main VI, you need to use the "Quit Labview" function, which you'll find in the application control palette. However, this is only advisable for VIs compiled to an .exe file, since it will close down LV entirely and you might even lose some unsaved changes.

    Good luck

    Guenther

    Is this will only close the .exe file that is running, or il could close other .exe that are running at the same time?

  10. Hello there, I'm new on this forum. I've used Labview at school, but now I'm using it at work. So I will surelly come here often! :)

    I know that's basic, but I just can't do it work. I would like that when a vi is called it would close when it's done running. I've check in the windows appearence and I've check the option "close afterwards if originally opened" but it don't close. am I doing something wrong?

    Thank you very much for your help.

×
×
  • Create New...

Important Information

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