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
1
vote
2 answers

What Testframeworks are available for NI Lab Windows CVI?

I am forced to use NI Lab Windows CVI, and i would love work with TDD. However i could not find any testframeworks for that IDE. Are there any known solutions?
Johannes
  • 6,490
  • 10
  • 59
  • 108
1
vote
1 answer

sprintf %g specifier gives too few digits after point

I'm trying to write floating point vars into my ini file and i encountered a problem with format specifiers. I have a float value, let it be 101.9716. Now i want to write it to my ini file, but the problem is i have another float values, which have…
Rovny Art
  • 167
  • 8
1
vote
1 answer

Using ThreadSafe variable macros in LabWindows/CVI

I am using the thread safe variable macros in the LabWindows/CVI environment and have observed that it is possible to get a pointer to a thread safe variable before it has been released. (from a previous request) Because the data I am…
ryyker
  • 22,849
  • 3
  • 43
  • 87
1
vote
1 answer

Automatically filling a form and running a program

A friend sent me 3 programs, which are written in C or C++. Every program has a form, which is filled and then a button is pressed to perform some calculation. The programs were written in LabWindows/CVI which I've never heard of. He asked me, if it…
TheAptKid
  • 1,559
  • 3
  • 25
  • 47
1
vote
1 answer

Trace32 Lauterbach APIs for C program access to the application variables

I have an ECU with Infineon controller and some xyz program flashed in it. Now the values of the variables of the program can be seen real time in Trace32 debugger with Lauterbach hardware. Now I have to note down all the values manually in report.…
Rohit
  • 11
  • 1
  • 4
1
vote
2 answers

Empty cFileName when calling FindNextFile in a labwindows cvi application

I'm currently working on a cvi application where I need to retrieve every .wav files of the current build directory. To do so in C, I'm using windows built-in function FindFirstFIle and FindNextFile in the following function : int…
Nessy W.
  • 151
  • 2
  • 10
1
vote
0 answers

LabWindows CVI .Net Controller C#Wrapper for Cognex DataMan

I need to Integrate Cognex Dataman Wireless Handheld scanner in to existing Application developed using LabWindows CVI. Cognex has provided SDK in C#. Below SDK link http://www.cognex.com/support/downloads/File.aspx?d=2628 I used CVI Tool .Net…
1
vote
1 answer

How to detect Windows XP or Windows 2000 OS to run a CVI executable

I am using NI LabWindows CVI 8.1 to compile and build a executable program which I need to run on either Windows XP and Windows 2000 OS. I use Windows XP to compile and build the executable. The info I have so far is that I need to place some…
dm.
  • 11
  • 1
1
vote
1 answer

How can one target older CVI versions during build?

I am currently using LabWindows/CVI 2012 to develop lab automation software. My customer's lab stations all have the CVI 9.0 runtime environment (RTE) installed. The customer strongly prefers to avoid updating their lab stations to the latest CVI…
Jesse Craig
  • 560
  • 5
  • 18
1
vote
2 answers

Synchronising Threads in CVI/Labwindows

I have two (or more threads) working parallel. Their purpose is to measure hardware devices and they rely on a external hardware stimulus. At a certain point during execution, they trigger an hardware device and wait for the stimulus. But I have…
Oliver
  • 596
  • 1
  • 7
  • 20
0
votes
3 answers

Assigning a char pointer to string literal generated at runtime - Is this dynamic allocation?

I am in the process of reviewing some code that someone else wrote. I came across an interesting case involving strings within this code and I need help understanding how this works. There is a function designed to be exported to a DLL. At the top…
0
votes
1 answer

Don't understand compiler warning - "passing unsigned into to type unsigned int*"

I have a struct type that I have created typedef struct component { char IPaddress[25]; int serverPortNumber; unsigned int handle; }; I created three instances of that struct. I am using an in-built CVI function for connecting to a TCP…
0
votes
1 answer

Timed functions in CVI GUI

I'm working on an application in Windows CVI that needs to run some code for a series of time intervals set by the user via text entry boxes. The boxes include three for how long to run each process, one to show the total time the processes will…
csulli245
  • 140
  • 7
0
votes
2 answers

flatcc undefined symbol aligned_free/aligned_malloc

Resolved I'm currently working on LabWindows/CVI, this is a C. The only version of C supported is c99. I'm trying to integrate Google Flatbuffers (the c version flatcc) to my current project. When I'm trying to link my solution, I'm facing a linking…
Xemuth
  • 415
  • 3
  • 12
0
votes
1 answer

How to find if a font is installed on the system inside LabWindows CVI?

In a panel from a User Interface Resource file there are few Text Message controls with special fonts (this is an old project where UIR was already deigned and is used in production so cannot change it). At design time LabWindows detects if the font…
user2380383
  • 174
  • 1
  • 8