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

Distribute CVI runtime engine without the installer ?

$
0
0

Customer wants to distribute CVI runtime engine with their application in VB.net.

They don't want 2 installer (one for VB.net, one for CVI).  They want to extract the files out of CVI installer, and included in VB installer.

Any one did this before?

For CVI 2013.

TIA.

 

 

 


DiscardMenuItem fail error -11

$
0
0

I have a menu that I created in the UI editor and placed on a panel.  I want to programatically remove menu items.  I get error -11 UIEInvalidMenuItemId.  I even tried removing the menu from the panel and loading the menu separately and I still get the error.  When that failed I triedI to set the dimmed atrribute.  That worked.

 

         iMenu = LoadMenuBar(iMainPnl, "140613.uir", MBR_BADGE);
        iTmp = DiscardMenuItem(iMenu, MBR_BADGE_MOTOR);
  

     iTmp = SetMenuBarAttribute(iMenu, MBR_BADGE_MOTOR, ATTR_DIMMED, TRUE);
  

 

CVI 2012 SP1

remote debugging information file out of date

$
0
0

I am unable to remotely debug a project.  I get "The debugging information file for this file is out of date".

 

This is very strange because the project resides on the remote computer and I am working on it as a network share.  I had it working yesterday, but not today.

 

I assume that I have the 2 system configured properly since I am getting this error on my development system when I launch the program on the remote system.  I am connecting remotely with TeamViewer 10.

 

CVi 2012 SP1.

What is Multihread apartment? how to solve this issue

$
0
0

Hi All,

 

i receive the error below,  how to resolve this issue if i want it to run at the same time?

 

Library function error (return value==-180)

The dialog cannot be displayed in a thread whose concurrency model is multithread apartment(MTA)

 

Thanks :smileyhappy:

how to set portrait and landscape mode in cvi labwindows 2010 panel

$
0
0

Hello,

         I just wanted to adjust the panel for potrait and lanscape mode but whats the best way to do .

 

Thanks 

Checkbox states

$
0
0

Hi everybody,

 

I would like to use in my software a behavior of the checkboxes and I don't know how to do it using LabWindows/CVI :

 

I Have a tree of options (the + symbol represents a checkbox):

+opt1

---+opt1.1

---+opt1.2

 

And if I check *ONLY* the opt1.2 element, I want the checkbox opt1 to be in the "undeterminate" state (you know, the green square on windows).

I could have use the dimmed property, but I also need to represent if my checkbox is interactible or not.

 

So how could I manage my code to have this behavior ?

 

I also triied to use the ActiveX control with the Microsoft Checkbox Windows Form (v2 because I'm using CVI9, but I hope I will have CVI2010 by the end of the week) but the "TripleState" property look like the dimmed one...

 

Any idea ?

 

Thanx a lot,

Olivier.

 

Application file name does not change

$
0
0

After I go to BUILD >> CONFIGURATION >> MANAGE CONFIGURATION >> RELEASE >> EDIT >> TARGET SETTINGS, then either type in a new name in the APPLICATION FILE field, or actually browse and select the file that I wanted it to be named to, and select OK >> DONE >> DONE. It does not get change.

 

 

Ver 2010

Monitor IP address 255.255.255.255

$
0
0

Hi,

 

I am trying to monitor the DHCP discovery port using the CVI UDP tools. The port is on multicast address 0.0.0.0 (aka 255.255.255.255).

 

When I try the following;

 

status = UDPMulticastSubscribe (MDchanHandle, "0.0.0.0", NULL);

 

It gives me a runtime error telling me that this is not a valid multicast address.

 

What am I doing wrong?

 

Thanks

 

Andy


why there is neither "text-msg frame" attr nor "label frame" attr?

$
0
0

Hello everyone,

 

For warning or advice-giving, I just need some eye-catchingeffects with a few numeric ctrls on my panel when a value changes.

 

Then I think maybe an "ATTR_LABEL_FRAME_COLOR" attr suits me, but ther is NO such!!!

 

Can anybody give me an idea? A colored frame of a ctrl itself does not work fine with me:manembarrassed:...

 

Thanks a lot.

 

Yours F.y.

 

 

DLL project: single header file?

$
0
0

I have a best-practices question.

 

I'm about to start a DLL target project to turn one of my company's custom hardware modules into a DLL for use in other projects.

 

This project will consist of about 5 C source files and as many header files.

 

But for the deliverable build output, would you recommend turning these into a single header file for the customer?  (just for convenience)

 

 

Ivi Driver - LeCroy oscilloscope - Get "Physical name" from "Virtual name Mapping"

$
0
0

I am working with the lcscope IVI driver to set the oscilloscope. Within the IVI High level commands I have the possibility to address the channel with the virtual name.

e.g.:

Result = lcscope_SetAttributeViReal64 (lcScopeHandle, "CHANNEL1", IVISCOPE_ATTR_INPUT_IMPEDANCE, imp);

 

But I need also the LL commands for setting the scope which sends the string directly to the VISA interface.

e.g:

Result = lcscope_WriteString (lcScopeHandle,"vbs 'app.Acquisition.Channels(\"C1\").VerScaleVariable=true'");

 

Now I have the problem that I need the physical name behind the virtual name. Instead of CHANNEL1 ==> C1. 

Is there any possibility to read out the mapping.

For instance:

char *GetPhysicalChannelName(„CHANNEL1“) with return string “C1”?

 

invalid function delcaration when generating a function panel

$
0
0

Greetings-

I am trying to create an instrument driver in CVI 2013.  My DLL succesfully builds, I then open my header file with my exports and select options->Generate Function Tree.  All of my function declarations come back with " Invalid function declaration for <FuncName>".  I cannot seem to focus any web search to narrow in on function panel generation and the error.  So I submit to you my problem.

 

Shown below is my header file...

 

//#include "Simulator.h"
#include "visa.h"   
#include "vpptype.h"

#if !defined SIM_INCL
#define SIM_INCL

#define DEFAULT_BUFF_SIZE 512

//ERROR DEFINES
#define SIM_CONFIG_ERR       -1001
#define SIM_CONFIG_TIMO      -1002
#define SIM_CONFIG_BAUD         -1003
#define SIM_CONFIG_DATA_BITS -1004
#define SIM_CONFIG_PARITY    -1005
#define SIM_CONFIG_STOPBITS  -1006
#define SIM_CONFIG_TERM_CHAR -1007
#define SIM_CONFIG_INIT      -1008  

#endif

enum PRNDL_State {PARK = 0, REVERSE, NEUTRAL,DRIVE,LOW};

/// ADDT FLOWCONTROL

typedef enum _flowcontrol
{
    NONE = 0,
    XON_XOFF,
    HARDWARE
} FLOWCONTROL;


/// ADDT PARITY
typedef enum _parity
{
    NOPARITY = 0,
    ODD,
    EVEN,
    MARK,
    SPACE
} PARITY;


/// ADDT COMPORT_SETTINGS
typedef struct _comport_settings
{
    int baud_rate;
    int databits;
    PARITY parity;
    double stopbits;  
    int portNum;
    FLOWCONTROL flowcontrol;
    char *ComName;

} COMPORT_SETTINGS;


/// -> ConfigUtils
int  __stdcall ConfigSimulator (ViSession DefaultRM, COMPORT_SETTINGS SimPort);
extern int __stdcall  SimulatorSetInit (void);
extern int __stdcall  CloseSimCom (void);
///<- ConfigUtils


///-> SetterGetterFunc
extern int __stdcall  SimulatorSetVBatt (int State);
extern int __stdcall  SimulatorSetIgn (int State);  
extern int __stdcall  SimulatorSetAcc (int State);
extern int __stdcall  SimulatorSetPrndl (int NewPosition);  /* P=0, R=1, N=2, D=3, L=4 */
extern int __stdcall  TapUpDwn (int NewState);   /* 0 = Tap Dwn nonZero Tap Up */
extern int __stdcall  TapOff (void);
extern int __stdcall  ReadVBATT_Status(void);
extern int __stdcall  CallReadSimulator (void);
///<- SetterGetterFunc



Cleaning up a bode plot

$
0
0

I am developing an application to test hardware components my colleague designed.

 

My application can read signal streams from the hardware and log the data in a file. Additionally, I can command the hardware to perform a frequency sweep on one of its input signals. Thus, I have the ability to log an input signal's frequency sweep as well as a corresponding output signal.

 

I can then do two things with the file:

  1. Read the log file and play back the signals on a strip chart. I have low-pass filters selectable to reduce noise on the raw data, if necessary.
  2. Read the log file of a frequency-swept signal, perform a transfer function on two selected signals, and plot the resulting data on a magnitude-v-freq, and a phase-v-freq log-scaled graph, aka Bode plots.

My issue is that my Bode plots are sometimes noisy, and I don't know how I should go about cleaning them up.

 

Here is an example:

bode.png

 

I know the frequency-swept input signal was noisy itself, so I thought to run it through a low-pass filter before plotting, but it did not appear to make any change.

 

I've also seen all the CVI curve-fitting options, but I'm not knowledgeable in whether or not these would make any sense, especially for the phase-v-freq graph, as its shape is indeterminate.

 

Can anybody nudge me in the correct direction? I'm sure there's information I am not providing as well.

Utilisation avec NEUTRIK A2D

$
0
0

Bonjour

Quelqu'un a t'il utilisé le logiciel AS04 v 2.5 sous Win7 32 bits pour piloter le banc de test NEUTRIK A2D? Ce banc de test fonctionne sous Win98 avec la version 2.21 de AS04, mais ne fonctionne ni sous XP ni sous Win 7 32 bits. Ce logiciel a été crée avec LabWindows CVI d'après les gens de NEUTRIK. En fait il y a un problème de synchro de la liaison RS232. Quelqu'un a t'il une idée du problème?

Merci

declaration of a 2 diumension array

$
0
0

Hello,

 

  I'm tryning to decare an array of 18 line and 10 colomn

 

  char *stabMesures [19][10];

 

  i want that each cell have a maximum size 

 

 what i can add to this declaration?

 

Many Thanks,

 

 


labwindows tcp client to generic server

$
0
0

I made a program fom the client sample in the TCP sample folder. Now I want that program to communicate to a generic server that doesn't have labwindows running on it. Is this possible with just a few minor edits or do I need to start from scratch with a different sample program?

GetTableCellVal for Combo Box is returning float???

$
0
0

I'm using a Combo Box with a few strings as options.  When I use GetTableCellVal(panelHandle,TABLE_CONSTANT, Point that changed, &value) where value is declared as "char value[100]" I get the following error:

 

Invalid argument type: found 'pointer to array 100 of char', expected 'pointer to float'.

 

The documentation says the the GetTabelCellVal returns a string for Combo Boxes, not a float as with Numeric cells.  What am I missing here?  Thanks!

 

Note: The parameter "Point that changed" is pseudo code.  I form the Point type correctly.

 

 

Line from documentation:  If the cell type is VAL_CELL_STRING, VAL_CELL_RING, VAL_CELL_COMBO_BOX, or VAL_CELL_BUTTON, the function expects you to pass a buffer large enough to hold the corresponding string, plus the terminating NUL. Use GetTableCellValLength to obtain the length of the string.

Generalized SVD

$
0
0

Hello NI-Community,

 

I am using LabWindows/CVI (I cannot check the version at the time I am writing this post.) for controling a DAQmx device. I would like to perform a generalized SVD with measured data. Unfortunately I cannot find this function in my libraries. Furthermore I could not find informations in the internet if an algorithm exits in a LabWindows version.

 

But I found the information that the generalized SVD exits as a VI in Labview. So is it really true that NI only provides an algorithm for Labview and not for LabWindows?

 

With kind regards,

Marcel

Function viOpen VISA return value 1073807343

$
0
0

Hi everyone,

 

I am using Labwindows/CVI 8.5.1 and I am facing an unpredictable (to me) error.

 

I have two equipments that I control with TCP/IP protocol using VISA Library in Labwindows. The two devices are connected to an Ethernet HUB which is connected to my development computer.

Most of the time, it works very well, I can acces both instrument and make them do what they are supposed to. But sometimes, i don't know why, I get the VISA error 1073807343 from the function viOpen. This means that "the datas of the position are note sufficient or the device is not present in the system"  (french traduction). When I get this error, I can't found one thing that has changed or that is different.

I am not even able to reproduce this error because I don't know what's causing that.

 

Can you help me finding the possibly reasons of this behavior ? I think that I have to know what can bring error 1073807343, and i will find a solution.

In the VISA documentation i haven't found the answer yet ...

 

Thanks by advance for any help.

 

Vincent.

Invalid Control ID

$
0
0

Hi,
I use Labwindows/CVI on w8.1 and an arror is occuring when I try to load an image on a Tab.
It was working for me before, but now, when I try to load an image for a TAB (see attached) with the edit Panel, an error occurs. The error says on a popup that is an Invalid Control ID (see attached). I do not know why I cannot load an image now, and before it works.


Could you please tell me how can I fix this issue?
Thank you so much for your help.
Best regards

Viewing all 5339 articles
Browse latest View live


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