Questions tagged [cvi]

LabWindows/CVI is an event-driven, ANSI C89 programming environment developed by National Instruments.

LabWindows/CVI (CVI is short for C for Virtual Instrumentation) is an event-driven, ANSI C89 programming environment developed by National Instruments. LabWindows/CVI uses the same libraries and data acquisition modules as the better known National Instrument product LabVIEW, and is thus highly compatible with it.

See

65 questions
0
votes
1 answer

General Protection error when using NI VISION imaqDetectLines() function

I am using National Instruments Vision module in Labwindows\CVI For some reason, when i use the func imaqDetectLines(), i get FATAL RUN-TIME ERROR: "Angle tracker.c", line 50, col 11, thread id 0x00002004: The program has caused a 'General…
Raz
  • 489
  • 3
  • 8
  • 17
0
votes
1 answer

Distinction in Control Styles for Lab Windows CVI

I'm creating some UI controls in Lab Windows CVI programmatically, and I saw on NI's site that there are two different graph types, "CTRL_GRAPH_LS" and "CTRL_GRAPH". Many other controls have the same suffix. What are the differences between the…
Glasses2C_Sharp
  • 149
  • 2
  • 8
0
votes
1 answer

Measure Volt DC from an Analog input into an array and Calculate Volt DC in RMS

I am developing Test automation in GeoTest ATEasy and LabWindows\CVI, in the tests i measure analog and digital outputs\inputs. In one of the test i need to measure an Analog input which contains an audio signal - and verify its Hz and Volt DC…
Raz
  • 489
  • 3
  • 8
  • 17
0
votes
0 answers

C - Debug mode won't acknowledge callback event

I'm trying to write a simple UDP transfer program in Labwindows/CVI. The idea is it creates 2 UDP channels, uses one to write data to a port, and the other to receive the data and print it out. Here's the receiving end: //Called whenever data…
FreshWaterTaffy
  • 270
  • 1
  • 2
  • 18
0
votes
2 answers

Merge code from several folders

Good Morning, I am working on legacy code. This legacy code consists of multiple projects (language C with NI LabWindows CVI) and was never manged in a source control System but only in on folders. Over time it got a little messy and copies of this…
0
votes
1 answer

Use of TCP in ATEasy

I want to create a server-side program using ATEasy so that the ATEasy tests will send tests information to LABWINDOWS\CVI which will implement the client side. My question is, does someone have a good tutorial or example on how to use TCP sockets…
Raz
  • 489
  • 3
  • 8
  • 17
0
votes
2 answers

C Threads, CVI: how to return array out of thread?

I have a problem with multithreaded program. Let's say I have series of few integer arrays (usually 2 or 3), each processed by a separate thread. I managed to make my computations, but now I would like to return processed array, created inside my…
irchris102
  • 108
  • 10
0
votes
1 answer

Hide dependent DLL functions

I am struggling to understand if I can prevent exposing certain function calls from within a DLL that I am building. The function calls I want to hide are calls that are exposed by sqlite3.dll which I am building into another DLL of my own making. …
Kin3TiX
  • 708
  • 1
  • 5
  • 18
0
votes
1 answer

Sending ATD command to a Fastrack Supreme via RS232 in LabWindows/CVI

I work on project based on a FASTRACK SUPREME which has to receive commands via a serial RS232. The problem is: When I use HyperTerm the command ATDxxxxxxxxx; works fine. When I use the CVI RS232 library nothing happens. Is it possible that my…
Annees
  • 1
  • 2
0
votes
1 answer

Strange error return with sscanf

I have this: #include #include int main(void) { int ret; int major =0, minor= 0, build =0, revision =0; char entry[16]; strcpy(entry,"1.2"); ret = sscanf(entry,"%d.%d.%d.%d", &major, &minor, &build,…
Jiminion
  • 5,080
  • 1
  • 31
  • 54
0
votes
1 answer

connect to an access .accdb database using a c# activeX object in Windows 7 and CVI 9.0.1

I am trying to connect to an access .accdb database using a 32 activeX object in CVI 9.0.1. I am able to connect just fine to a .mdb file, but when I try .accdb the function goes through just fine, but connectFlag returns a 0 indicating it failed to…
0
votes
1 answer

labwindows nullChk returns with an error

What is nullChk and how should it be properly used? I am using the following line of code: nullChk(temp = malloc (numBytes + 1)); and I get the following error message: 700, 9 error: use of undeclared identifier 'error' 700, 9 error:…
Essi Shams
  • 159
  • 1
  • 13
0
votes
1 answer

MS C/C++ Linkeroption /MT but still unresolved _allmul() when linking with different IDE

I am writing lib files in VS that have to be imported into CVI. Recently a linker problem occured. It says that _allmul() is an undefined symbol. _allmul() and freinds are implemented as calls to the CRT library functions to handle various 64bit…
Johannes
  • 6,490
  • 10
  • 59
  • 108
0
votes
1 answer

How can I install multiple versions of the LabWindows Development Environment on the same machine?

I develop software in LabWindows for multiple customers. Often it is the case that a customer is using a backlevel version of the CVI Run-Time Engine (RTE). When possible the customer is urged to upgrade to the latest, but when they can't I must…
Jesse Craig
  • 560
  • 5
  • 18
0
votes
0 answers

Running a filter at a high speed

I'm writing a signal processing software in CVI. I've got a signal, transmitted to the computer via USB at a very high speed (~50K). I want to filter it in RT. In order to do it I created a filter in Simulink and turned it into a C code, which I run…