cvi

sprintf %g specifier gives too few digits after point

我只是一个虾纸丫 提交于 2019-12-29 09:25:06
问题 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 less preceision (such as 15.85), and that values are writing to ini file in the same loop. so i do: sprintf(valLineY, "%g", grade[i].yArr[j]); All my other variables become nice chars like "20" (if it was 20.00000), "13.85" (if it was 13.850000)

Trace32 Lauterbach APIs for C program access to the application variables

落爺英雄遲暮 提交于 2019-12-23 03:29:13
问题 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. I want to access those values using Trace32 APIs using C programming to automatically write those values in excel or notepad. I tried their API for Remote Control and JTAG Access document but could not do much. Can anyone please guide? I couldn't

How can you examine lib files?

隐身守侯 提交于 2019-12-14 03:54:25
问题 I have a List of 390 Libraries and need to port a software from lab CVI to Visual C. Those dependencies are killing me. I cant import all of them, that would be overkill - and not all of them are unique and/or can be loaded at all. Is there an easy way to determine what calls a lib file takes? Are there any editors for this? 回答1: The Microsoft librarian program LIB.EXE allows you to examine library contents, assuming you are asking about static libraries. It's part of the VC++ distribution,

NI CVI with Python

人走茶凉 提交于 2019-12-10 22:23:25
问题 I'd like to integrate a Python IDLE-esque command prompt interface into an existing NI-CVI (LabWindows) application. I've tried to follow the Python.org discussions but seem to get lost in the details. Is there a resource out there for dummies like me? 回答1: Here is a python sample code calling a CVI. There are DaqMx python bindings too. 来源: https://stackoverflow.com/questions/91666/ni-cvi-with-python

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

こ雲淡風輕ζ 提交于 2019-12-10 12:26:39
问题 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 build the software targeting the older RTE. LabWindows does not support compiling for previous versions of the RTE so the work-around is to install multiple versions of the LabWindows Development Environment, and compile using whichever matches the

How can one target older CVI versions during build?

蹲街弑〆低调 提交于 2019-12-08 07:08:44
问题 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 RTE. I have installed the older version of LabWindows (9.0) on my machine and successfully built my project so I know that my code compiles under both environments. Ideally I would like to use LabWindows 2012 and just tell it to target the older CVI

How can one target older CVI versions during build?

偶尔善良 提交于 2019-12-06 21:31:30
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 RTE. I have installed the older version of LabWindows (9.0) on my machine and successfully built my project so I know that my code compiles under both environments. Ideally I would like to use LabWindows 2012 and just tell it to target the older CVI RTE. Is this possible? No, this is not possible. Applications built in LabWindows/CVI are only

Trace32 Lauterbach APIs for C program access to the application variables

被刻印的时光 ゝ 提交于 2019-12-06 15:40:05
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. I want to access those values using Trace32 APIs using C programming to automatically write those values in excel or notepad. I tried their API for Remote Control and JTAG Access document but could not do much. Can anyone please guide? I couldn't even configure Trace32 Software and not even send some command to Lauterbach. My main purpose is the

How to increase performance of memcpy

北城余情 提交于 2019-11-27 17:03:26
Summary: memcpy seems unable to transfer over 2GB/sec on my system in a real or test application. What can I do to get faster memory-to-memory copies? Full details: As part of a data capture application (using some specialized hardware), I need to copy about 3 GB/sec from temporary buffers into main memory. To acquire data, I provide the hardware driver with a series of buffers (2MB each). The hardware DMAs data to each buffer, and then notifies my program when each buffer is full. My program empties the buffer (memcpy to another, larger block of RAM), and reposts the processed buffer to the

How to increase performance of memcpy

人盡茶涼 提交于 2019-11-26 22:31:33
问题 Summary: memcpy seems unable to transfer over 2GB/sec on my system in a real or test application. What can I do to get faster memory-to-memory copies? Full details: As part of a data capture application (using some specialized hardware), I need to copy about 3 GB/sec from temporary buffers into main memory. To acquire data, I provide the hardware driver with a series of buffers (2MB each). The hardware DMAs data to each buffer, and then notifies my program when each buffer is full. My program