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

Created project from existing projects, install new uninstalls old

$
0
0

I created a new project, that has a lot of the same features as an existing project, so I copied the old project, renamed it, and used this as the new project. When I finished the initial version of the new project and created a release package, installing it uninstalled the existing project. 

The new projects installed with a different name, to different folder, EXE has a different name. They don't have any registry entries that I created.

What do I need to change in the new project so that they are two completely separate programs?


How to simulate a mouse click ?

$
0
0

Hello,

I look for a way to simulate a mouse click on a control (color numeric).

Has anybody an idea?

Link errors w NIReport w 64bit exe build

$
0
0

Any idea why I get undefined symbol link errors when I try to build a 64 bit release executable in CVI with NIReport?  The 32 bit version builds OK.

 

 

Visa USB refresher

$
0
0

Hello all,

years ago I developped a CVI program that communicates with custom hardware via VISA USB. I no longer use VISA, prefering LibUsb for Linux/Win compatibility. And now someone is trying to install it but I no longer remember how to install that thing (I haven't developped for Windows since then).

 

Do you need to do something with .inf file ? Install VISA drivers ?

 

At the time I did build a CVI installer with Visa included. I just rebuilt it using the latest CVI since I had doubts wether the old one would work on Win7. Apparently the VISA device still doesn't work.

 

We get the following message:

Seeking: USB[0-9]*::0x04D8::?*
Visa Error: Les informations concernant la position sont insuffisantes ou bien soit le périphérique soit la ressource n'est pas présent dans le système.
Warning: no USB VISA device found, . . .

 



Custom PCI Device Driver for Phar Lap

$
0
0

Hi all,

 

I have deployed Labview Real-Time to a compact-PCI card in a cPCI chassis (non-NI brand for several unavoidable reasons). I need to do high-speed communication with another card in the chassis at minimum rates of 20 MB/s read, 4MB/s write - but preferably much higher. After extensive testing, we believe that NI VISA is incapable of maintaining those speeds in our system, and it barely maintains half those (side note: the hardware is more than capable as we have deployed embedded software that easily achieved the desired data rates).

 

Another engineer is responsible for finding ways to optimize VISA. The purpose of this post is to explore the option of writing a custom kernel driver for Phar Lap 2013 in C to handle communication with the other card. I have experience in writing windows kernel drivers, but the NI documentation for Phar Lap is severely lacking in this area.

 

So the overarching questions are:

1- Is it possible to do this?

2- If so, is it possible to use LabWindows/CVI to do this?

 

Any and all input is appreciated. Thanks

How to Determine Which Workspaces Are Open

$
0
0

We are currently doing some Git automation in which all developer work folders will get updated automatically. However, the automation script should skip a developer folder if CVI is open from that folder. For example, assume there are three folders.

  • c:\dev1\myproj.prj
  • c:\dev2\myproj.prj
  • c:\dev3\myproj.prj

 

If dev2 has myproj.prj open, the script will skip that folder. The way we tried to determine if a particular project is open is as follows:

1. Determine if CVI process is running.

2. If yes, get CVI window title.

 

We wrote a Win32 C++ utility for this purpose. Since the title shows the full workspace path, this information was sufficient. But recently, we noticed that if the path is too long, CVI shortens it (eg: c:\..\folder\myproj.prj). At the same time, if I hover the mouse on the title bar area, CVI shows a tool tip with the full path.

 

So I was wondering if there is any way I can read the tool tip string? Suggestions on approaching this in some other way are also welcome.

Acquisition de 2 signaux PWM avec un seul compteur?

$
0
0

Bonjour,

 

Je souhaiterais acquérir 2 signaux PWM afin d'en mesurer le rapport cyclique avec un seul compteur de la carte d'acquisition de données. Cela est-il possible?

Si oui, comment faire?

 

Je travaille sous Labwindows/CVI 2012 avec la DAQ NI6351. Les signaux PWM à acquérir ont une fréquence proche de 500Hz et un rapport cyclique de 10 à 90%

 

Merci d'avance

 

Cordialement,

Hervé

anyone know how can we set ring attribute to Dimmed? Thank you

$
0
0

anyone know how can we set ring attribute to Dimmed? Thank you


Why the compiler cannot check the function parameters error?

$
0
0

using cvi 2013 edition, OS is 64-bit windows 7. when using the call :

    sprintf ( varStr, "%s, %s, %s", text_1, text_2, num);


here, the parameter "num" is an integer, and the conversion sign should be : %d. when compilling the program, the compiler cannot recognize the error. I  think  this shoud be treated before running.

 

David

A question about the cvi's callback function

$
0
0

My question is that if a routine fallen into a callback and it needs to take  long time to finish, does it will affect the main thread running? the callbak format can be introduced by a button control, the PostDeferredCallToThread() or a timer's .

 

 

David

DBActivateSQL breaks without a breakpoint

$
0
0

Hello,

 

I hope anyone can help me. My program stops (in debug mode) at DBActivateSQL() and I don't no why. Especially, the function DBActivateSQL() is called many times, but breaks always on one point.

 

I have no breakpoints set (and no conditions); under Run->Break on, no selection is made and no expression is in the watch window.

 

I'm using LabWindows 2010 and Windows 7.

 

Kind regards

Jürgen

what is "fCall" in the head file "toolbox.h"?

$
0
0

i want to know, what is "fCall"? where is the definition?i research it everwhere,but cannot find it!

CVI and VIs

$
0
0

Hello

we are using CVI 2012 and I wonder if it is possible to integrate VIs in a CVI program? The background is that there are many VIs for instruments and we want to use the instruments in CVI.

 

Is this possible? And how can we realize it?

 

thanks

Oliver

4070 dmm and CVI2010

$
0
0

I have an old program that uses CVI 7.0 with a 4070 dmm.  The DMM soft front panel has an option for thermocouples/Thermisters.  I have another PXI rack that has CVI2010.  The soft front panel does not have the option to measure temperature.  I am trying to upgrade my old software to 2010.  Any suggestions? 

Is CA_AllocMemory() Tracked in Resource Tracking?

$
0
0

I have been using the Resource Tracking option to track down memory leaks. But I recently noticed couple of  memory allocations using CA_AllocMemory() that were never freed. It didn't show up in Resource Tracking though. So I was wondering if it tracks only memory allocation using malloc/calloc or do I need to enable some option. I had the Options->Build Options->Debugging Level set to 'Extended'.


Invalid type specification - unsigned __int64 in CVI2010 includes

$
0
0

I'm running into an issue where I have a project that was previously built with CVI 8.1.1 and now I have CVI 10.0.0.  When I try to compile various files using some of the NI includes, it generates an error when 'unsigned __int64' is used (ex: utility.h - line 840, userint.h - line 1777, inifile.h - line 108).  

 

Error: Invalid type specification

 

In the CVI2010 help, it says this error message says - "You can use the type specifiers signed and unsigned only in combination with one of the basic integer types (char, short, int, long)."

 

If this is the case, how is one to utilize these includes without modifying them?  Is there a project setting or something which can be modified to be able to use these?

 

cambiar Level de un Index

$
0
0

Hola a todos,

tengo un control: Edit List Box, en este tengo varios Index. Mi pregunta es, cómo puedo cambiar los valores y Levels de esos Index en CVI.

Existe elgo parecido como: SetValueToIndex  ó  SetLabelToIndex ?

 

Gracias por toda respuesta.

Abel.

I want Example FM Receiver for RFSP on CVI ........ please.

$
0
0

I want Example FM Receiver for RFSP on CVI.

 

I can find only the FM Demodulation but I wan't to use it to FM Radio Station.

 

:catlol:

strange execution highlight - 2013sp1

$
0
0

Hi,

 

I just installed CVI 2013SP1 and opened a project I have been working on lately.

I had last saved in version 8.5.1.

 

The project got opened/built/executed fine.

But when I put some breakpoints and debug the code the highlighted execution trace looks strange.

See different local screenshots attached.

 

Some editor preferences that may be related: tab length = 2 / bracket style = allman / last 2 of the 3 checkboxes are active in the Tabs region of Editor Preferences dialog.

 

If I open a sample project from built-in examples (Intgraph for instance) I observe the same behaviour.

Closing/re-opening the CVI IDE or "clean"ing and "rebuild"ing does not make any difference.

 

Is this a known issue already?

Trouble compiling in "release64/debug64" configuration

$
0
0

Hello,

A few months back I wrote a code in LabWindows/CVI to generate a DLL that then I open with Matlab. I had 32-bit version as my OS. Everything was OK I was happy with it. Recently I had to switch to 64-bit OS because of physical memory problems. I updated Matlab to 64-bit and I installed a more recent version of LabVIEW (togerther with LabWindows/CVI) 2013 Fall release, which is still 32-bit.

 

Now in this configuration, I cannot generate the DLL from my LabWindows/CVI code. I am using the "release64" (or "debug64") modality but I get this error message "Library Load Error": the list of errors include for example "Cannot find 64-bit program file for library 'NIIMAQdx'." and many others together with this one. In my code I am actually using this library (NI-IMAQdx) in fact I cannot compile the code.

 

What can I do? Is it just a problem of 64-bit version libraries? Is there a way to have support for 64-bit version libraries? How can I create my DLL if there is no support for such libraries in the 64-bit version OS? Is the latest version of LabWindows/CVI based on 32-bit or 64-bit processor? Does this make any difference?

 

In advance, thanks very much,

Nicolino

 

Viewing all 5361 articles
Browse latest View live


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