LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to improve FP objects sensitivity?

Hi all
 
I have VI with XY Graph and number of buttons. Buttons are used for scaling plots on a XY Graph programmatically.  Data for plotting are obtained from usb-device using Call Librari Functions, and at some parameters  buttons reflection time became very long. I'm sure that data acquisition and buttons clicks procession are in parallel processes. Please, help me correctly organize this tasks.
 
Thanks
PS Sorry for my English)))
 
0 Kudos
Message 1 of 4
(2,910 Views)
You'll have to post your vi, or a picture of the code, since it is very hard to determine what the problem would be from just a description
0 Kudos
Message 2 of 4
(2,899 Views)

It sounds like the problem could be related to calling the DLLs for your USB instruments. Keep in mind that the default setting for a Call Library Function Node is to call the DLL in the User Interface thread. When doing so, it will lock the thread for its own use, meaning you will lose some responsiveness in your front panel.

I have two ideas on this:

  1. Set the CLFN to call the DLL as reentrant. This will no longer run in the UI thread. This could cause problems, though, because more than one DLL call can then be made simultaneously, which could be bad for your hardware. You will need to strictly control the order of execution in your application.
  2. Look into LabVIEW 8.20's new features for calling DLLs. It allows you to call DLLs dynamically using callbacks. You might check out this link for more info.


Message Edited by Support on 01-10-2008 10:52 AM
Jarrod S.
National Instruments
0 Kudos
Message 3 of 4
(2,896 Views)
Thank you very much! The first idea decide an issue for 30secSmiley Happy Now I'm gonna look into second.
0 Kudos
Message 4 of 4
(2,876 Views)