Quantcast
Channel: LabWindows/CVI topics
Viewing all 5349 articles
Browse latest View live

Cannot launch external exe

$
0
0

Hi,

 

I have to launch and external exe.

The exe "ComputeRay" is working when I launch it from the command window as shown below.

 

But when I try to launch it with system ("ComputeRay") I get the error file not found (-3).

 

How could I make it work?

CMD window.jpg

 


CVI 2013 Legacy Formatting options not saved on exit. (Bug Check)

$
0
0

Bug Check: When I choose legacy formatting options to change the bracket styles and then save and close the program, the information is reset to default upon reopening the project.

 

CVI Version 13.0.0

 

cvirte incompatibility

Display Czech characters on Labwindows/CVI panel

$
0
0

Is there a way to display Czech characters on a LabWindows/CVI panel (version 8.5.1)?  As an example: "Počítadlo výrobků" (Production Counts).  When I try to paste this on the label for a string control, it displays "Pocítadlo výrobku" (some of the special characters are missing.  I have the font set to Ariel.

 

Thank you for your help.

Display Czech characters on Labwindows/CVI panel

$
0
0

Is there a way to display Czech characters on a LabWindows/CVI panel (version 8.5.1)?  As an example: "Počítadlo výrobků" (Production Counts).  When I try to paste this on the label for a string control, it displays "Pocítadlo výrobku" (some of the special characters are missing.  I have the font set to Ariel.

 

Thank you for your help.

Control tooltip on a panel overlapped by another panel.

$
0
0

I have asked this question before but I try again.

Is there any workaround so that the tooltip can be displayed when the location where the tooltip normaly displays is overlapped by another panel ?

Could I control the position to either left/right instead of below ?

CVI 2013f1 Error: The compiler has run out of memory.

$
0
0

Hi again,

 

#pragma pack(push,1)

typedef struct
{
  char   sub_c;
} SUBSTRUCT;

#pragma pack(pop)

#pragma pack (push,8)

typedef struct
{
  char c;
  
  SUBSTRUCT sub1;
  
  struct
  {
    int i;
  } sub2;

} BUGGY_STRUCT_AGAIN;  

#pragma pack (pop)

BUGGY_STRUCT_AGAIN s = {0};

int main (int argc, char *argv[])
{
  return 0;
}

 

fails to compile, too.

 

Even with f1 patch.

CVI 2013 SP1 - repeated function calls with pointer parameter on an array-variable causes a index shift

$
0
0

I have some functions will pointers as parameter and with CVI 2012 SP1 they work as before without problems but with CVI 2013 SP1 they are now erroneous.

 

Here the description what happens - I found a remedy but one have to adopt the old code and I think it is clear that no one "catches" all lines in a "big old code" which are (maybe) affected:

 

I have functions 

     "function_XYZ(int *p_paraArr)"

with "p_paraArr" as pointers on an (int) array.

 

Assume that I have a other function

     "fct_TOP(void)"

in which is an local array variable which is inizialized by

     "int TheArray[25] = {0};"

and inside this "TOP"-function-body I make a function call

    "function_XYZ(TheArray)".

 

There are no complains of the compiler (CVI 2012 or 2013) and the code works (but on CVI 2013 only one time!).

 

But if I put "fct_TOP" in a loop I get a shiftin the "TheArray"-memory.  (The loop encloses the "TOP"-function!)

This means the "TheArray"-result got from "function_XYZ(TheArray)" starts at index "1" not on Index "0" - as the first time the function "function_XYZ(TheArray)" was executed.

 

Solution is:

I only replaced

    "function_XYZ(TheArray)"    (<1>)

by

    "function_XYZ( &(TheArray[0]) )"     (<2>)

the whole program works now everytime (in the whole loop) - not only the first time (in the loop).

 

In the second version (<2>) everything is needed for "well working":

The "&" and the brackets "(...)" which encloses the element which sould be pointed to by the "&".

And hopefully you believe me: I tested it a few times it was only that "little" change which solved the problem.

 

It seems so that the CVI 2013 (SP1) makes some sort of internal index-shifting by a repeated execution of the

    "function_XYZ(TheArray)"

but I don't know why or how but I can see in the debug-mode by observing the expected vs. the received array-values !

At first time the internal index (implicit) of "TheArray" is "0", but the following times (during executing the loop) the internal index changes to "1" (seen in the debugger because all expected values were shiftet that way!).

 

So there is an explicit index to the array ("function_XYZ( &(TheArray[0]) )") needed to make it not only the first time of execution of that code clear.

 

There are some good improvements in the CVI 2013 (SP1) and I like that environment more than the 2012-version - but:

       There are some other "changes" too, in the compiler (or linker...?) which are more rigid than "in former times".

The problem by that sort of error is always the "old code"!

You wouldn't expect such a behaviour.

The compiler/linker doesn't complain (a complaint would be good!) the writing but it makes this error (in loops).

 

By the way: My "Build Options" are set on "Extended" (without changes in the "..."-Button-Options) and all check-boxes, except the "OpenMP_support"-check-box are checked! So I think I set the compiler very rigid - maybe there are some "..."-Button-settings to get that rid of that problem , but I didn't found them/it.

 

My request:

   - Please make the compiler more rigid by needing an explicite index

   - or switch to the "old" behaviour with "function_XYZ(TheArray)" points implicite always to the index "0" of the "TheArray"-element.

 


Installation stops when upgrading NI-DAQmx drivers

$
0
0

Hello,

I am deploying a CVi  application since a couple of years under various CVI versions. Usually, going to a higher CVI version is rather seamless. 

I switched from CVI2009 to CVI2012 recently. I created a new distribution kit with CVI2012.

When I run that kit over an existing installation created with CVI2009, this message pops up.

Popup.JPG

 

 

 

The DAQmx drivers on the previous installation (CVI2009) are:

MAX1.JPG

 

with the CVI2012 version, it looks like this:

MAX2.jpg

 

Since there's a rather large number of installations out there, I don't want to force my customers to manually uninstall the NI-DAQmx drivers, and then run my installation again.

So I guess my question is, - what can I do to avodi this?

 

Thanks for your help.

 

Best Regards,

Greg

 

 

 

Solving corrupt dynamic memory problem

$
0
0

Using LabWindows/CVI 2010, Windows XP. I have a data acquisition program that uses a rather large number of dynamically allocated arrays as buffers. The buffers are used to hold data from DAQmx and are passed and copied to a number of thread-safe queues and other routines. In certain circumstances, when I free one buffer I get a "dynamic memory is corrupt" error, which probably means - from reading the other posts on this topic on this forum - that some buffer was written past its end and corrupted the dynamic memory linked list. Is there any good way to determine exactly <i>which</i> buffer was corrupted? I don't believe that it was the one that I get the error on, it was probably the previous or next one in the chain. I can see the memory chain in the resource window, but I'm not sure how to interpret it.

App built with CVI2010 failed to installed in Windows8 tablet

$
0
0

We created our application with Labwindows CVI2010 and it worked well under WindowsXP and Windows7. 

 

We tried to install it in a Windows 8 pro tablet but installation was hung and then exited.

 

Is there any solution for this problem?

 

Thanks 

define contents of menu bar from text file

$
0
0

Hi, 

 

I would like to list the contents of the menu bar dynamically by reading it from a text file. Is there a way to do this? 

 

Thanks!

 

Sinnas

In past versions of CVI, using OpenFile with no path meant to look in the local path (in other words the install directory). Is there a way to do this in CVI 2013?

$
0
0

I use an .ini file to allow the users to change the bootup preferneces for the program. In the past that file lived in the install directory and OpenFile could cheerfully find the file and apply the preferences. In CVI 2013, the program seems to need an implicit path to the file. Is there a way around this?

label/value pairs in ring control from .ini file

$
0
0

Hi,

 

Could someone please point me to the functions that will allow me to write values of the ring control drop down from an ini file? I am able to read my ini file but i dont know how to update the ring control values with the sections. A little help please.

 

Thanks!

Labwindows DLL and Excel VBA

$
0
0

I have a Labwindows DLL compiled under CVI 2012 that I can sucessfully call from Excel VBA (2010).  Now compiling under CVI 2013 I get a variety of errors including 'bad arguments' and excel crash.  Anyone aware of changes in CVI 2013 that would cause this? Arguments in the call include two user-defined types, and a string. Build options and other settings appear to be the same.


How can the meter to deflect fast?

$
0
0

I want my meter gauge to deflect fast and also deflect at the same time.

 

I got 4 meter gauge I need the meter gauge to respond a the same time.

 

What should I do??

 

6820pwm半周期测量 报错-200141 是什么原因 如何解决?谢谢

$
0
0

6820pwm半周期测量 报错-200141 是什么原因 如何解决?谢谢

Is CVI for linux out ?

$
0
0

Hello all,

I haven't been back here for a while... I've beenusing the beta version of CVI for Linux for the last 6 months or so, but I haven't heard anything about the final version. Has it been released yet ? A quick search didn't lead to anything recent.

Thanks.

CNVVariableEngineIsRunning always returns "not running" on PXI chassis.

$
0
0

At the start of my program, I ensure that the Network Variable Engine is running before I start using it.  This works fine on my laptop (Windows 7, LabWindows 2012) but not when I run the same program on my PXI Chassis (NI-PXIe-1082 with PXIe-8135 RT Controller, LabWindows 2012).  The 'IsRunning' parameter returned from the function CNVVariableEngineIsRunning is always 0.  Should this work in the PXI environment?  Is there a work around?

 

The code below waits the full 60 seconds when run on my PXI platform.  Data returned from CNVVariableEngineIsRunning calls: status = 0, running = 0.

 

    start_time = Timer ();
    do {
        status = CNVVariableEngineIsRunning (&running);
        if ((status != 0) || (running == 0)) {
            delta_time = Timer () - start_time;
            Delay (1.0);
        }
    } while ((running == 0) && (delta_time < 60.0));

 

Thanks.

LaunchExecutableEx command

$
0
0

I am trying to automate a segger flasher for production testing.  I created a .bat file that runs the jflasharm.exe file with command line paramters.  The .bat file reads the return value from the jflasharm.exe and creates a log file.  If I use the start /min jflasharm.exe to run the file the ExecutableHasTerminated function indicates the program has terminated even though it is still running.  I would like to hide the flasher program in the background and only display my labwindows gui.  Any suggestions?

Viewing all 5349 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>