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

Error 1304: Error writing to file and verify that you have access to that directory

$
0
0

I would like to install the Labwindows CVI in NI cDAQ-9133 and some errors occur, for example, it lacks DAQmxIOctrl.fp or verify that you have access to that directory. So I tried to reinstall the NI-DAQmx. And there are still some errors as the attached picture shown.

Could anyone help to solve this problem? Thanks in advance.


Non fatal run-time error stopping program error return value = -11 timeout error

$
0
0

I am working on a project to acquire data from an NI-9205 and transmit results to a server.  During some initial testing of the code we are seeing a random crash of the program with the following message:

NON-FATAL RUN-TIME ERROR:   "DAQmx4.c", line 99, col 9, thread id 0x00001338, function id 105:   Function ConnectToTCPServer: (return value == -11 [0xfffffff5]). Timeout error

 

Why is the program stopping for a non-fatal error?  Particularly a timeout - that's the whole purpose of having a timeout in the first place - to keep the program running. 

How do I prevent the program from stopping like this for any non-fatal errors?

Vision Acquisition Software

$
0
0

I would like to add the capability to acquire video from an Axis camera, and I understand from previous conversations with tech support at NI that this is possible with the Vision Acquisition Software included in my NI software package.

 

Can anyone suggest a good place to start with examples and documentation for using Vision Acquisition Software in Labwindows to capture video?

General Performances

$
0
0

Hello,

I have some performance issues with application build in labwindows CVI 2012 (64bits).

With time SetCtrlAttribute functions are taking longer and longer, and the application become unresponsive.

CPU and Memory consumption are OK.

 

Target OS is Windows Server 2012R2. (Runtime 2012).

Is there any known issue relative the this OS ? Should i upgrade to runtime 2015 ?

 

Best regards, G. Lacroix

 

http://drozdietblog.com/radiantly-slim/

$
0
0

Radiantly Slim 

Peter said “I am a model by profession and I also teach fashion in a university. My only ambition of way of life was to take the fashion as seriously as I can. It is kind of my passion. I loved to keep my human body in type and I used to take a lot proper good care of it. I got into an accident and it left me on bed rest for

http://drozdietblog.com/radiantly-slim/

Running a 32-bit LabWindows CVI program on a 64-bit Windows 10 environment

$
0
0

Hello,

 

We have been using a program written on 2010 LabWindows CVI and Windows XP environment. We now getting new computer with Windows 10.

Can we use the same program?

I tried to generate a 64-bit version and build a new release. But I get an error message

saying

"dataskt.h" The LabWindows/CVI DataSocket library is not supported on X64

 

Thanks

 

Bobby

Display oscope capture buffer and viewport

$
0
0

On an oscilloscope there is usually an indicator that shows what portion of the capture buffer (sometimes called a viewport or a window) that is currently being displayed. I talked with NI and they don't have any numeric slider that behaves the same way. I am looking for ideas on how to do this.

 

Thank you

Dave Rogers

Driver for 82357B

$
0
0

I have a GPIB/USB from keisight 82357B. 

 

What are the libraries that I have to install to make it run in labwindows? 

 

Thanks


SQL WHERE STATMENTS

$
0
0

Hi, 

 

I'm relatively new to CVI, but I'm in need of some help. Right now, I'm creating a UIR with a user input with a text box that is querying a database full of data. I'm wondering how do I get what I entered into the textbox into the WHERE OPERATOR = ' USERS INPUT '. Also, I'm trying to print that SQL Statement out too. So, far I'm just trying to get the output of this simple SQL statement.

 

hstmt =DBActivateSQL(hdbc,"SELECT * FROM REG_RESULTSTABLE");if(hstmt <=0){ShowError();}

    sprintf(uutNum,"%s \n",hstmt);while((resCode =DBFetchNext(hstmt))== DB_SUCCESS){SetCtrlVal(panelHandle,PANEL_lstregulator,uutNum);}

  

Wrong documentation for AddCtrlToSplitter() function

$
0
0

It seems that the documentation for AddCtrlToSplitter() function is incomplete and/or partially worng.

This function attaches a new control to the splitter control.

First of all, it's not clear if parmeter controlID refers to the splitter or to the control to attach.

From my tests it seem that this is the splitter control.

Second point: parameter controlToAttach has no description.

Based on its name, it seems that this is the control to attach Smiley Wink

 

Could someone from NI side clarify and improve the documentation?

 

Announcing the LabWindows™/CVI 2019 Beta Program!

$
0
0

I am pleased to announce that the LabWindows™/CVI 2019 Beta Program is now open for registration. As a beta program member, you will be among the first to use the next LabWindows™/CVI release - providing you the opportunity to give NI feedback and to test your existing projects against the latest LabWindows™/CVI features. Major features include:

 

  • Upgraded Source Editor– This release features a new source editor, which greatly expands the functionality and usability of the editor. The new source editor has a ton of new features within it that we'd love to hear your feedback about how they work for you.
  • Build Packages in the CVI Distribution Builder– National Instruments is adding packages as a distribution option for applications built in our IDEs that can be managed through NI Package Manager (NIPM).
  • TestStand Integration  We recognize many systems rely on the integration between LabWindows/CVI and TestStand. In LabWindows/CVI 2019, we added new features to further automate this integration. 

 

To sign up for the LabWIndows/CVI 2019 Beta, complete the following steps:

  1. Navigate to the Beta Program Resource Center (com/beta), select LabWindows/CVI 2019 from the list of software, and click Submit.
  2. Complete the beta application. This information helps us to understand what features of LabWindows/CVI are most important to our customers. Please ensure that you read and accept the Terms and Conditions of the beta program so that you can be approved.
  3. After you submit your request, please be patient with us as we process your application. Once you are approved, navigate to the Beta Program Resource Center (com/beta) to access the beta software.

Registration does not necessarily guarantee you a position in the beta program. Determination of acceptance into the program is up to the sole discretion of National Instruments.

Please email your feedback directly to the Beta Coordinator at cvi.beta@ni.com. We are especially interested in feedback regarding the upgraded Source Editor and the NI Package support in the CVI Distribution Editor. To report issues, log on to the Beta website and click the Report a Bug link. Please do not post questions or feedback about the beta on the NI Discussion forums. Posts that reference the beta or beta features will be removed (aside from this one, naturally).

 

I look forward to working with you during this Beta, and please let me know if you have any questions!

 

Kevin F.

Staff Product Support Engineer | Automated Test Software R&D

National Instruments

Get the value of a control attribute set in the uir

$
0
0

Maybe this is a stupid question, but is there a way to get the value of a control attribute that has been set in the uir?

I try to explain better with an example.

  • I set the ON color for a led to VAL_RED in the uir
  • in the code I change the ON color to VAL_GREEN
  • GetCtrlAttribute() returns the current ON color (i.e. VAL_GREEN)
  • how can I get the value originally set in the uir (i.e. VAL_RED)?

 

Advantech USB-5856 with Labwindows

$
0
0

Hello everyone,

 

I want to use the USB-5856 board for my application "with inductive input sensors and actuators such as pneumatic output valves". 

 

I need to know if Advantech products can work with labwindows? cause i didn't find the driver.

 
I ask you if you can help me to find a DLL for this card or an instrument driver for I can realize my code under labwindows
cordially,

NewCtrl vs DrawCanvas Coordinate System

$
0
0

I created a new control using

 int control = NewCtrl (panelHandle, CTRL_ROUND_LED, 0, y, x);

and then I drew a line using the same coordinate (x,y) using the code below.

I expected the cross hair lines to be at least near the newly created LED, 

but they are not.  They are far away.  The CanvasDrawLine(), I think

is using the top-left as the origin.  The NewCtrl() seems NOT.

How do I reconcile the coordinates used in CanvasDrawLine() and

NewCtrl() functions.

 

Point start, end;

start.x = x - 50; end.x = x + 50;
start.y = y; end.y = y;
CanvasDrawLine(panelHandle, canvas, start, end);

start.x = x; end.x = x;
start.y = y - 50; end.y = y + 50;
CanvasDrawLine(panelHandle, canvas, start, end);

 

 

Portable device - MTP (copy files from camera to local directory)

$
0
0

Hi,

 

I am trying to create a program that allow me to copy files from usb connected camera to local directory in PC.

The traditional functions like GetDir() or SetDir() or DirSelectPopup() is not working because the camera folder is not mapped as any drive.

May somebody can help or send any example how to see the files (Pictures) in a camera.

 

Thank you very much

Boris


Error using cDAQ-9184

$
0
0

Whenever the computer reboots or ethernet cable connecting to cDAQ-9184 is unplugged and re-plugged, my Labwidows application generates an error attempting to communicate with it apparently.

The error I experience is DAQmxCfgSampClkTiming ERROR: specified operation cannot be performed when there are no devices in the task.

 

The only way to get the cDAQ-9184 working is to open up the Measurement and Automation Explorer and select the cDAQ-9184 and self test it to get it connected.

 

How can I fix this problem so on a reboot or reconnection of the ethernet cable my Labwindows application can connect to the cDAQ-9184 without having to use MAX?

Help with DBBindCol function

$
0
0

Hi, 

 

I'm currently programming a SQL statement with DBBindCol... I'm getting either ASCI characters out or garbage characters. I'm wondering if there anything special I need to do to make sure it reads the right variable I selected in the statement. Are the two pointers just to show the address of the variable I selected. If so, what does DBFetchNext(hstmt) do? I get an error everytime I run it. Thanks!

Below is a sample of what I'm trying to do:

 

hstmt = DBActivateSQL(hdbc, "SELECT TESTINDEX,SESSIONID,OPERATOR,SN,TESTDATE,TEST_TIME,ERRNUM,ERRDES,SYSNUM FROM REG_RESULTSTABLE WHERE SN = 260887");
if(hstmt <= 0)
{
ShowError();
}
int nrec = 0;
nrec = DBNumberOfRecords(hstmt);
if(nrec<=0)
{
ShowError(); /*goto Error;*/
}

resCode = DBBindColInt(hstmt,1,&Test_Index,&T_Index);
if(resCode != DB_SUCCESS)
{
ShowError(); /*goto Error;*/
}

while((resCode = DBFetchNext(hstmt)) == DB_SUCCESS) 

{

sprintf(TI,"%d \t\t\t",Test_Index);

 SetCtrlVal(panelHandle,PANEL_lstregulator,TI);

}

Can a VI read a real-time value of a variable that changes in sub_VI containing a timed loop

$
0
0

Hi, im working on a project where i have a list of arrays that define a current value. I have a sub-vi that reads the the values of the array and increments the index every 100ms and writes it in a global variable. the main VI only reads the value of the global variable. The problem is only the last value is read because the Sub-VI never exists the timed loop so the main VI never reads the global variable until the timed loop stop condition is met. I need a solution that makes the main VI able to update the global variable value each time the value changes inside the sub_vi. 

Thanks in advance

Can a VI read a real-time value of a variable that changes in sub_VI containing a timed loop

Advantech (USB-4704) for LabWindows

$
0
0

Hi everyone,

 

I'm using Advantech USB-4704 as a replacing card for our current A/D card which has gone EOL.
Advantech is only "officially" supporting LabWindows, but since they have ANSI_C examples, I have been looking into them.

Except for one line, which i replace everything else seems to be supported:

//wcscpy(devInfo.Description, deviceDescription);
strcpy(devInfo.Description, deviceDescription);

 

The code runs perfectly using Visual Studio 2017, but not CVI 2015SP1.

 

Could someone help me out to get this to work with LabWindows?

Or is there another approach that is better? Thinking of maybe wrap the example that builds in VS2017 and export the DLL to CVI?

 

I have attached both VS2017 and CVI example, where one works and one fails.

You would need to install Advantech SDK to make it work, I assume (http://downloadt.advantech.com/download/downloadsr.aspx?File_Id=1-1MENNIH).

Thanks

Viewing all 5355 articles
Browse latest View live