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

cvi 2013 and sql

$
0
0

Hello All

 

I have upgrade today from CVI2012 SP1 to CVI2013 SP1

I have complied & run a project that works fine on the previous version.

I am sad to report that CVI 2013 crashes immediately in release mode (on debug mode it runs)

 

The project is huge project about 70k lines with extensive SQL calls to *.mdb files using sql toolkit

I have determined that the crash occurs in simple FetchNext call

 

The PC is XP SP3

CVI 2013 SP1

SQL toolkit 2.2

 

Pls help (i do not want to roll back unless i have to)

Thanks for advance

gabel Daniel


BSOD when compiling project in CVI 2013 SP1 from a network drive

$
0
0

Gents,

 

I have just received and installed CVI2013 SP1 (version 13.0.1 build 201) and I have the same problem that I observe with patch f1. When I build several times my project which is located on a network drive (due to clearcase version control) I obtain a BSOD. If I copy the entire project on a local drive the problem disapear.

 

I put my project files (only CWS and PRJ) in attachment, may be it could help you to find the issue.

 

Regards,

Stephane

help PCI 6220

$
0
0

Hello I have a final project study on the design of a tester and I want to develop the program on the LabWindows / CVI for the  PCI 6220 National Instruments  if you help me  thank you

Congratulations, Roberto Bozzolo

$
0
0

Congratulations, Roberto, for achieving 5000 posts!

 

Considering the small footprint of this forum this is truly unique ;-)
And while 5000 is an impressive number, your kindness, patience, and your contribution's quality are even more impressive, numbers can't tell the whole story.

 

It's no exaggeration to say that your contributions belong to the most helpful ones - without them this forum wouldn't be as useful by far, NI (and we all) should confer a decoration on you :-)

 

So thanks a lot for sharing your time and knowledge!

Error passing a structure address to a function

$
0
0

Hopefully this is simple.  It is confusing.

I am trying to pass a structure address to a function.  Need to because the code in the function needs to operate on the contents of several structures.  The very simplified version of this code looks like this:

 

// Structure declaration
struct xxxStruct {
    int aaa;
    double bbb;
 c   har ccc;
} AAA, BBB, CCC, DDD;

 

// Function Declaration
void ProcessStuff ( struct xxxStruct * passedStruct);


// Function source
void ProcessStuff ( struct xxxStruct * passedStruct)
{
    double tempDbl;
 
    tempDbl =  passedStruct->bbb + (double)passedStruct->aaa;
}


// Function called
main()
{
   ProcessStuff(&AAA);

   etc, etc.
}

 

This generates compile time errors like this:

  208, 34    warning: incompatible pointer types passing 'struct passedStruct*' to parameter of type 'struct passedStruct*'

 

Besides the fact that thiserror message is meaningless, what am I doing wrong?

CVI2013SP1 on Win7

 

DAQ assistant

$
0
0

Am trying to use DAQ assistant in LabWindows/CVI but returns the following error "This feature requires labWindows support for NI-DAQmx.Please install LabWindows support for NI-DAQmx from the NI Device drivers media or check the installation".Please assist on what am supposed to do or the path to this drivers.Thanks

moses

RF acquisition

$
0
0

Hi!,

my question is i have an antenna attached to 5601 and i want to capture RF signals through it,do i have to configure MAX for a channel or by invoking the 5601 slot is enough as my resource?i would also appreciate code examples.

 

thanks,

moses

BAR Code QR Code Problem

$
0
0

Dear All,
I am doing a project. I need to detect QR Code and Bar code. The issue I am having is that i cannot detect them simultaneously. I press one button for Bar Code, it gets scanned and detected, and then I have to press another button for QR code, then it gets scanned and detected. As a result, I cannot get them saved in one row. I get data like the picture attached. The problem in this is that the barcode represent student ID, and when i search the data base using barcode no. , I dont get anything, because that row has got no QRCode. I want them to appear in one row. PLEASE HEL ME! Thx.

 
 

Some errors occurs when compiling old .prj from 5.0 to 2013

$
0
0

Dear all,

 

I'm a new guy for programing.

 

Now I'm trying to compile a CVI project from 5.0 to 2013.

 

Some error messages occured. I think the problem is the library function is not compatiable for the version of 2013.

 

The code is as following (

 

int TimebaseDev = -1;

 

int DacClkOpen(int addr)
{
char buffer[100];
DacClkDev = ibdev (0, addr, NO_SAD, T1s, 1, 0);
if (DacClkDev < 0) return -1;
sprintf(buffer, "SYMM %d;TRIG ON", WAVETEK_SYMM);

Talk(DacClkDev, buffer);
return 1;
}

 

The error message is as following

 

NON-FATAL RUN-TIME ERROR: "wavetek.c", line 45, col 5, thread id 0x00001688: Library function error (iberr == 2 [0x2]).

 

Thanks for your help.

rfsa error

$
0
0

iam RFSA in CVI  to analyze data but am getting the following error 

NON-FATAL RUN-TIME ERROR: "niGSMMeasureModAcc.c", line 139, col 5, thread id 0x00001818: Function niRFSA_FetchIQSingleRecordComplexF64: (return value == -1074118654 [0xbffa4002]). Maximum time exceeded before the operation completed. what could be the reason?

 

thanks,

moses

New Bug in CVI2013SP1?

$
0
0

Hello,

 

In CVI2013 there was a bug () when changing the uir file: the change did not show up, one needed to rebuild the project, this seems to have been fixed, but now there is something else... 

 

I have a project with several source files and one UIR file. All source files are compiled, so when pressing the green triangle button the project starts immediately, i.e. the only message shown in the Build Output window is Build succeeded.

 

Now I change one attribute in the UIR file (say the panel title).

 

Scenario A: After modifying my UIR I press the 'save disk' symbol to save the uir file, and only then press the green triangle button. The build action taken is Linking the project, and the program shows the correct UIR. So this is fine.

 

Scenario B: After modifying my UIR I press the green triangle button, CVI then prompts me that the UIR has been modified and needs to be saved. Pressing the OK button then is very time consuming because in this case CVI recompiles all source files, links them, i.e. it seems to perform a complete rebuild... This I would consider a waste of my time and not as expected

:smileyfrustrated:

Well, there is a workaround (scenario A), but I suggest to include a fix in SP2 :smileywink:

How to capture a .gif file from a spectrum analyzer and save the file in PC

$
0
0

I want to capture a .gif file from a spectrum analyzer and save the file in PC, but I've got a problem when read data from the instrument. I'm not sure how to format the string got from the instrument , When I use "%s" or "%t" as the read string format the data got from the instrument is truncated.

my code are as follows, could anyone tell me where i am wrong?

 

char resultsArray[5000];

viPrintf(hSpectrumInstr, ":MMEM:STOR:SCR 'C:PICTURE.GIF'\n");
 viQueryf(hSpectrumInstr, ":MMEM:DATA? 'C:PICTURE.GIF'\n", "%t", resultsArray);
 printf("%s", resultsArray);
 getchar();       

CVI2013 sp1 bugfixes, known issue and release notes

axis labels / scaling in CVI2013 SP1

$
0
0

It appears that the scaling of axes has been changed in SP1 of CVI2013...

 

Following scenario:

 

linearly scaled y axis, two plots, according to the data axis range should start at zero (autoscaling)

 

The green plot on the graph remains unchanged, but I can add a large value (10000) to the orange plot, in this case the plot actually shows the expected value (left figure below)

If I undo the addition of the constant offset to the orange plot, i.e. subtract 10000 from all y values of the orange curve, the lower axis range is some small value, this depends... say 1e-63 or so (right figure below, both curves overlap so only the green one is visible)

 

This does not make sense to me.

 

Of course there will be rounding errors involved, so after adding and subtracting some value the original baseline may not be exactly zero anymore, so lets assume it's a little bit larger, 1e-63. BUT THE GREEN LINE HAS NOT CHANGED, and obviously the minimum of the green line is zero... And zero is smaller than 1e-63...

 

y-axis-1.png      y-axis-2.png

 

No, it's not April 1st :smileywink:

library function return value==-4 Panel,menu bar or control array handle invalid

$
0
0

im using a DLL in my program in wich i make all my functions i want to show results on the front panel wich is called in the main i have such error library function error ==-4 Panel,menu bar or control array handle is invalid.

can u help me please.


graphique fond noire

$
0
0

Bonjour

 

J'execute un programme (compilé avec labwindows/CVI V3.1) sur un pc W7 32bits.

Au préalable, j'ai installé le labwindows/CVI run time 2013.

Lors de l'execution du programme, le fond de mon graphique de visualisation est noir. Donc aucune courbe n'est visible (voir ci-dessous).

 

Capture.PNG

 

Je vous remercie pour vos suggestions.

 

Jérôme

6036E acquisition failure

$
0
0

Hello

 

System used:

-PC W7 32bits

-Acquisition card DAQCard-6036E (PCMCIA) link to a NI BNC 2110.

-a force sensor connect to the BNC 2110 for the signal.

-I installed on the pc the drivers (NIDAQ980f0) and LabWindows Run time 2013.

 

I have a failure during data acquisition with a program compiled on Labwindows/CVI 3.1.

 

I check the card with NI MAX tools and the card received a signal according to the force sensor.

 

When I used my LW/CVI program, it received nothing. Before the program worked well on XP 32 SP3. May be the problem is on the computer settings (DAQCard-6036E driver and LW/CVI settings) or in the program (I join it to this message)

 

The program I use was compiled long ago. I have not the last version of Labwindows/CVI. So, I tried to install LW/CVI 3.1 on the Pc but the installation failed.

 

Thank you for your help.

 

Regards

 

Jérôme

PlotRectangle line thickness

$
0
0

Hi,

 

I was wondering if it was possible to change the thickness of the rectangle in PlotRectangle or PlotOval.  I can't find an attribute that will let me do that.  Thank you.

The question about the callbackdata parameter in the function PostDeferredCallToThread()

$
0
0

I find if using a local variable to pass to the PostDeferredCallToThread(), then in the callback function, it cannot be recevied correctly. But as NI document said, this variable is a user-defined, will avoid declaring the data object as a global variable. how to interpret the question?

 

David

Message Popup will not close

$
0
0

Running LabWindows/CVi 2013 SP1.

 

I have a Message Popup window that will not close when the "OK" button is clicked.

Viewing all 5349 articles
Browse latest View live


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