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

CVI became unworkable

$
0
0

Hey everyone.

I'm using LabWindows/CVI 2013 for academic purposes. 

Lately my application works really slow in debug mode (Build -> Configuration -> Debug).

When I run the application (Run -> Debug Application) I can observe "Build succeeded" relatively quickly on the Build output.

However, then the application barely loaded and CVI is not responding for long amount time. eventually, the application is loaded, but works slow for several seconds. then it works regularly. 

I don't remember that I added any significant code lines lately, so I don't understand how and why it works that slow. what should I do?

 


créating interface

$
0
0

Hello
to create an interface or the technician will have to press a button to select it how I should proceed thanks
on labwindowsCVI

 

rs232 lib + multi-thread = Blue Screen of Death

$
0
0

I've got a nearly repeatable critical issue on my project.

 

I'm using the standard RS-232 Library for a very straight-forward application with an SRS RGA (gas analyzer).  That half of this effort works very well, very ordered and non-mysterious.

 

But then I tip-toed into the multi-thread world using the CMT to facilitate the instrument's rather slow retrieval of histogram and analog scans.

 

I opted for thread-safe queues, as they seemed to have the lowest cost-to-entry and smallest setup.  I'm doing nothing fancy here, merely creating a queue each time a histogram is needed, filling it with data and elsewhere reading the data from queue and plotting.

 

Yet, under certain circumstance, I get very often get BSODs:

 

IMG_20180312_151531.jpg

 

I did some research on "ser2pl64.sys" and see that it's my serial-to-USB cable.  I swapped this out, no affect.

 

I've done many projects now with the RS-232 Library and never, ever seen such hard errors like this.  I really feel that I've done some poor housekeeping with the CMT, as this is my first project to use that lib.  Yet, as far as I can tell, I'm flushing and discarding it when done.

 

how to edit other columns in tree control

$
0
0

hi, everyone... i have problem to fill second column in a tree control... the cells are editables, but the first column is edited and i get error on second columns index???!!

my codes are as follow:

 

int CVICALLBACK startCB (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
double xn[100]={0.0}, sine[200];
double x[200]={0.0}, y[200]={0.0};
double amp=1.0, cycle=0.25;
int i,j,k=2;
char sx[100], sy[100];

switch (event)
{
case EVENT_COMMIT:
InsertTreeColumn (panelHandle, PANEL_TREE, 1, NULL);
SetTreeColumnAttribute (panelHandle, PANEL_TREE, 0, ATTR_LABEL_TEXT, "X Value");
SetTreeColumnAttribute (panelHandle, PANEL_TREE, VAL_ALL_OBJECTS, ATTR_COLUMN_VISIBLE, 1);
SetTreeColumnAttribute (panelHandle, PANEL_TREE, 1, ATTR_LABEL_TEXT, "Y Value");
SetTreeColumnAttribute (panelHandle, PANEL_TREE, VAL_ALL_OBJECTS, ATTR_COLUMN_VISIBLE, 1);

for(i=0;i<100;++i)
sine[i]=amp*sin(sqrt(2*PI*i*cycle/100));

i=2;
xn[i-2]=0.0;
xn[i-1]=amp*sin(sqrt(2*PI*cycle/100+xn[i-2]));

while((xn[i-1]-xn[i-2]) >0.00001){
xn[i]=amp*sin(sqrt(xn[i-1]));
sprintf(sx,"%.5f",xn[i-1]);
sprintf(sy,"%.5f",xn[i]);
++i;
SetTreeCellAttribute (panelHandle, PANEL_TREE, VAL_ALL_OBJECTS, 0, ATTR_CELL_TYPE, VAL_CELL_STRING);
InsertTreeItem (panelHandle, PANEL_TREE, VAL_SIBLING, 0, VAL_LAST, sx, NULL, NULL, xn[i-1]);

SetTreeCellAttribute (panelHandle, PANEL_TREE, VAL_ALL_OBJECTS, 1, ATTR_CELL_TYPE, VAL_CELL_STRING);
InsertTreeItem (panelHandle, PANEL_TREE, VAL_SIBLING, 1, VAL_LAST, sy, NULL, NULL, xn[i]);
}

x[0]=0.02; x[1]=0.02; y[0]=0.02; y[1]=sine[2];
for(j=2;j<100;j+=2){
x[k]=y[j-1];
y[k]=y[j-1];
x[k+1]=y[j-1];
y[k+1]=amp*sin(sqrt(2*PI*y[j]*cycle));
k+=2;
}

PlotLine (panelHandle, PANEL_GRAPH, 0, 0, 1, 1, VAL_GREEN);
PlotWaveform (panelHandle, PANEL_GRAPH, sine, 100, VAL_DOUBLE, 1.0, 0.0, 0.0, 0.01, VAL_THIN_LINE, VAL_EMPTY_SQUARE, VAL_SOLID, 1, VAL_RED);
PlotXY (panelHandle, PANEL_GRAPH, x, y, i-1, VAL_DOUBLE, VAL_DOUBLE, VAL_THIN_LINE, VAL_EMPTY_SQUARE, VAL_DASH, 1, VAL_YELLOW);
break;

case EVENT_ZOOM:
SetCtrlAttribute (panelHandle, PANEL_GRAPH, ATTR_ENABLE_ZOOM_AND_PAN, 1);
SetCtrlAttribute (panelHandle, PANEL_GRAPH, ATTR_ZOOM_STYLE, VAL_ZOOM_TO_RECT);
break;
}
return 0;
}

it doesnt like the 1, as second columns index in the following code:

InsertTreeItem (panelHandle, PANEL_TREE, VAL_SIBLING, 1, VAL_LAST, sy, NULL, NULL, xn[i]);

why i cannot find the reason... can anybody help me out? thanks snd kind regards

Error en compilar

communication with a wireless camera under labwindowsCVI 2017

$
0
0

Hello for the communication with a wireless camera under labwindowsCVI 2017 how I could proceed

thanks for help

CAD Model STEP

$
0
0

Hello

does anyone know if it is possible to load and display STEP files with a CAD in LabWindows or LabView?

 

If not, does anyone know an alternative how this could be done with LabWindows or LabView with a third party product?

 

Thx in advance

OZ

[CVI 2015 SP1][XNET] nxReadFrame problem

$
0
0

Hello,

 

I'm trying to read few frames with different periods (10ms et 1000ms). It's about 10 frames. 

The problem is that, with a buffer size 500, I only get 3 or 4 frames in it.... then a duplication of theses frames to get the buffer full. 

It's not a Timeout problem I guess because I set the nxReadFrame like this : 

l_Status = nxReadFrame(giCAN1SessionRefFramesR, &l_pMyFrames, sizeof(l_pMyFrames), nxTimeout_None, &l_pMyNumBytesReturned);

Any one can tell me why I can't find the other frames in my buffer ? 

 

Thanks,  


Labwindows 2012 Localization Error

$
0
0

Hello,

 

I'm getting a crash of the Localization utility trying to translate my application in labwindows CVI 2012.

 

When i enter 1 letter in "local language" an error occure and the localization Utility close.

You can observe the error in the added screenshot.

 

Does a patch exist to resolve this error ?

 

Best regards,

G. Lacroix

LabWindows 2015 - Constant definition conflict

$
0
0

Hello,

 

Below is the description of the problem:

 

TXMAIN.C:

#include <txengine.h>

double measurement;

measurement = NULL;

 

TXENGINE.H:

#ifndef NULL
#define NULL 0
#endif

 

\CVI2015\include\clang\3.3\stddef.h:

#undef NULL
#ifdef __cplusplus
# if !defined(__MINGW32__) && !defined(_MSC_VER)
# define NULL __null
# else
# define NULL 0
# endif
#else
# define NULL ((void*)0)
#endif

 

TXMAIN.C and TXENGINE.H is part of the project file. The NULL in TXMAIN.C file doesn't take its definition from TXENGINE.H (which is included in the project file) but takes it from STDDEF.H giving an error: assigning to 'double' from incompatible type 'void* '.

 

Why doesn't it take its definition from the header file included in the project file? Is there any priority change which causes it to link the constant to stddef.h instead of txengine.h.

 

Please help with your inputs.

 

Regards,

Abinaya

 

 

Weird printer issue in Windows 7

$
0
0

I have a PC running Windows 7 Ultimate, 64-bit.  I'm having a strange issue with a USB printer (HP LaserJet 3015).  The printer is available when I select File - Print from an application like Notepad, but it is not visible in the "Devices and Printers" area of the Control Panel -- in fact, no devices at all appear there.  No monitors, keyboards, mice, or anything else.

 

This appears to be affecting a LabWindows application that we're running.  This application calls the routine SHDocVw_IWebBrowser2ExecWB from an OLE library to display a pop-up allowing the user to print the contents of a browser window, but the pop-up never appears.  I have this application installed on another system as well, and on that one the "Devices and Printers" folder contains all the regular system devices and the pop-up works properly.

 

I found a suggestion in a Windows 7 forum to go into the Windows services folder and set the Bluetooth service to Automatic.  I tried this and restarted the PC, but it didn't fix the problem.

 

Any ideas?

advanced analysis library and RTX64

$
0
0

Hi,

I have for many years (back to 2005) a solution based on : 

RTX : IntervalZero RTOS 32bits (https://www.intervalzero.com/)

Visual C++ 6.0

Advanced analysis library (analysis.lib <2003)

 

and the application is deployed on any 32bits OS and works perfectly.

 

I am actually trying to upgrade this solution for windows 10 Pro 64bits platform with :

RTX64: IntervalZero RTOS 64bits (https://www.intervalzero.com/)

Visual studio pro 2012

Advanced analysis library (analysis.lib from LabWindows/CVI 2013)

 

when I try to build the solution, I get the folowing error : 

analysis.lib(loaddll.obj) : error LNK2019: unresolved external symbol __imp_wsprintfA referenced in function __load_dll_if_needed

 

I was able to solve this error by adding the user32.lib to the project. the build of the solution is now ok but It cannot be executed as the use of use32.dll is not permiited by RTX. thus adding use32.dll is definitivelly not the solution.

 

Any help is welcome. Thanks . 

 

 

NI PXIe-6555 not recognized by CVI 17.0

$
0
0

Hello everyone

 

I am currently trying to probe so signals on my testbench with a NI PXIe-6555 and in order to do so, I was thinking of using the NI-DCPower Pulse Voltage Sequence found in the CVI examples.

 

When trying to use it on other modules it works just fine but on the PXIe-6555 it doesn't. It gives me the error message linked. 

 

Does any of you had the same issue or knows where the problem is?  

 

Thanks 

Cannot initiate Function generator Ag33520B from function panels: ag3352x_init

$
0
0

Cannot initiate Function generator Ag33520B from CVI function panels ex: ag3352x_init No response (timeout) from CVI function ag3352x_init.

In NI-MAX everything work fine. No errors.

CVI VISA commands works fine but not the function panels in my lib ex ag3352x_init or ag3352x_InitWithOptions.

Other instrumenst works well (AgInfiniiVision_init, AgInfiniiVision_InitWithOptions..)

Closing all instances of Excel

$
0
0

Hi CVI/LabWindows Forum,

 

I am having an issue with a program I am currently working on.

I am using CVI/LabWindows 2015 on Windows 7.

 

In my code I am using excelrpt to create excel files, write data to them, and create graphs. I have all that working, mostly (sometimes my graphs dont get their titles populated), but I have had an issue recently where my data did not save. I suspect that this is because the code was started and stopped prematurely and excel my code was not able to properly discard my handles. Is there a way to check the task manager for any instances of excel and close them all before continuing?

 

As a separate issue but might as well add it here...

Any ideas as to why my graph titles are not populating?

And is there a way to set the x-axis data range(I am not using ExcelRpt_ChartWizard because I was having issues with it)?


LabWindows/CVI driver for Rigol DG1022 signal generator

$
0
0

I can find drivers for LabVIEW here, but I can't see drivers for LabWindows/CVI.

As an example, Agilent/Keysight 33220A has drivers for both the NI IDEs.

 

Where can I find drivers for LabWindows/CVI for a Rigol DG1022 signal generator?

 

Ni Licencemanager 4.0 and 4.1 strange behaviour

$
0
0

After installation and the correct setup I look inside the licencemanager of NI. It says to me something about evaluation, although licence we use does not have to do with evaluation, and it does not show to me the other licensed which are already used in our company. Please also see pictures.
Licencemanager 4.0 and 4.1 does not make a difference.01_2018-03-20 11_24_51-NI-Lizenzmanager 4.1.png01_2018-03-20 11_25_04-NI-Lizenzmanager 4.1.png

 

How to get more control about change and save of project settings

$
0
0


My issue is that when I open a project created with an older CVI Version e.g. created with CVI 7.1 and opened with CVI17/CVI12 that it automatically change some setting (do not have a clue which ones) and when I close the CVI IDE it automatically save the changes without asking "Do you want to save? Yes/No".
And the changement is indicated by an asterix * on the project name inside the project explorer of CVI.

How to install DAQ7.5 on OS 64Bit

$
0
0

I have to port some selfwritten moduls with c from Daq(traditional) to DaqMx. Therefore I need to understand what the idea of the old functions is and so I will install DAQ7.5 on my working PC to explore the old stuff. But it appears a FAILED Message see picture.
How can I ignore it?
Because I only need to explore in this case not to build up some executables on my 64Bit OS.03_InstFAIL_NIDAQ7.5.png

creating code c under labwindowscvi using vision assistant script

$
0
0

HELLO, 
I create a script under vision assistant after that i convert the script  with image control under Labwindows/CVI on C code ,
the C preject creating didn't shows the windows of selecting the control and indicator to create on the front panel.
I found just  :
- main code.c
- processing.c
- processing.h
- NImachineVision.c
- nimachinevision.h
But not an interface.uir, they just apear the window to aploed  the image but the precessing on this image dont apear , i can just display image without processing
Which file will i modify? what i have do on next step to correct
Please help me.

Viewing all 5334 articles
Browse latest View live


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