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
0 answers

Breakpoint not set even then it stops here

I am using Win 10 64 Bit PC with 2012 CVI program to test a function ( as below). The program always stops at this function (MeasurePressureValues) even there is no breakpoint set! Function: int iRet = 0; char szDeviceId[200] = "Iso45671A"; double…
Math2101
  • 11
  • 2
0
votes
0 answers

Ignore the command Line in Text File

how to compare two text file by ignoring the command " // Q_L1_M1F0" on second text file. 1.Text File REG= 0x3e23, 0x0110 REG= 0x5d2w, 0x69E9 REG= 0x3e23, 0x7051 REG= 0x3s06, 0xB190 REG= 0x3e23, 0x5694 REG= 0x3e2f, 0x0130 text file , REG=…
Math2101
  • 11
  • 2
0
votes
2 answers

Try to remove only character in first line from read text File

[C Platform] i have a text file and first line of the text file as "Calibrate (version 6.0.26.54947)" i need to ignore the characters "Calibrate (version )" and read only the number "6.0.26.54947". i have following code and struck…
Math2101
  • 11
  • 2
0
votes
1 answer

How to resolve NON-FATAL RUN-TIME ERROR in CVI/Labwindows

It says "the call back function function specified in uir is not a known function. If you are using the external compiler,you must include all the uir callbacks objects or source file in the executable or DLL". Am getting this error,how to resolve…
ambica
  • 1
  • 1
0
votes
0 answers

Redirect log output using Hardcoded C batch script

I try to execute following "unknown.exe" command in CVI platform (as C code batch script) and redirect those command output in a log file. sprintf(szCommand, "%s > D:\\log.txt 2>&1", "D:\\unknown.exe"); system(szCommand); When I run the script, the…
Math2101
  • 11
  • 2
0
votes
1 answer

DiscardAsyncTimer returning before timer callback is complete

I'm trying to write a program in LabWindows/CVI 2017 using async timers but ran into a problem with the DiscardAsyncTimer() function. From the documentation for DiscardAsyncTimer(): A call to create or discard an asynchronous timer will not…
Matt
  • 3,651
  • 3
  • 16
  • 35
0
votes
1 answer

How To Create a Continuous Voltage vs Time Graph in LabWindows CVI

I am confused as to how I go about creating code in CVI to create a graph in CVI with voltage (y-axis) vs time (x-axis) that I can use to track voltage from my experiment in real time. After doing some research I think I would need to use the DAQmx…
Ayanna
  • 1
  • 1
  • 6
0
votes
2 answers

Printing SQL in C

I'm looking for help with printing the results of an SQL statement out in C. I'm trying not to set each variable to a pointer and then using that pointer to print the variable out. If I did, I'd have like a couple hundred variables. This is what…
mpwbs92
  • 19
  • 6
0
votes
0 answers

Why float is read correctly in 32-bit but not in 64-bit in Visual Studio C++ 2015

I have an application in Visual Studio 2015 that receives a certain struct, as a memory pointer, with some fields from an application in LabWindows CVI that writes in a socket. Then I recast the memory into the same struct in my application. Code…
0
votes
1 answer

CVI Double to Char

I am trying to concatenate strings with numeric (double) values and texts. My current code: char nameLed[256]; //Nom de la led char colorLed[256]; //La couleur de la led char I_directLed[100]; //L'intensité direct que peut supporter la…
user3094275
0
votes
3 answers

How can i access directories in C90 without dirent.h?

i am working in LabCVI on the basis of C90. The tanks at hand would be to find the absolute paths of "*.spec" files in the "..\data"" directory and subdirectories. I am aware that there are explanationse how i can do this with dirent.h, but i need…
Johannes
  • 6,490
  • 10
  • 59
  • 108
0
votes
1 answer

Toggling between NRSE, RSE and Differential Analog inputs in LabWindows CVI

I'm having some issues reading analog input from a DAQ card in LabWindows CVI; the input configuration seems to be set to "Differential" by default, and I was wondering how I would go about changing that to NRSE.
0
votes
2 answers

Linker Error LNK2019 traced back to an __stdcall I think I got the right lib - what can I do to resolve this?

I tried to port a LabCVI Project to MSVS 2010 C++ Express. There is a line of code which reads like this: if (InitCVIRTE == 0) return 0; A Linker Error occurs: LNK2019 "_InitCVIRTEEx@12" - all relevant header already feature the cpp…
Johannes
  • 6,490
  • 10
  • 59
  • 108
0
votes
0 answers

LabWindows/CVI - Image processing

I am trying to convert an image from RGB to black and white image (0 or 1). At first I have converted it to grayscale but now i'm stuck (the idea was to finde the middle which I did using matlabe and now I need to normalize evrything..). Maybe…
Moran
  • 1
0
votes
1 answer

Identify GREEN color in an image with NI VISION in Labwindows\CVI

I am using NI VISION imaqColorHistogram(...) in CVI which gives me a report for each plane, for a colorMode that i choose ( RGB , HSL HSV, HSI,CIE, CIEXYZ ) on an image which needs to contains a GREEN spot (the spot is most of the image)   A report…
Raz
  • 489
  • 3
  • 8
  • 17