hi,
I am using ni 8431 serial board for rs-485.
when i login windows there is a constant output voltage on TX+ line.
how can i disable the output voltage and activate it again after certain setup on my UUT ?
regards
gilad
hi,
I am using ni 8431 serial board for rs-485.
when i login windows there is a constant output voltage on TX+ line.
how can i disable the output voltage and activate it again after certain setup on my UUT ?
regards
gilad
I noticed a strange behavior when allocating memory with structures.
The explanation is unfortunately a bit lengthy that's why it is in the attached Word document.
I attach also a test Program which features this behavior
Thank you if someone can help
Don't hesitate to ask if some additionnel explanation is necessary
Dear All
I´m trying to find information about cDAQ chassis controlled by CVI labwindows commands. We have a 4 channes AI (analog input) module connected to a cDAQ chasis USB to PC. Where can I find information about the commands to access simple reading voltage in some channel, or examples.
I found DAQmx, i have installed, but ...library\DAQmx option still remains dimmed on my CVI labwindows.
Pd: We don´t want to use labview.
Cheers
Roque
int val; switch (event) { case EVENT_COMMIT: GetCtrlVal (panel, PANELPAUSE_PAUSE, &val); SetCtrlAttribute (panelsil, SILY_GRAFSIL, ATTR_STRIP_CHART_PAUSED,val); SetCtrlAttribute (panelvy, VYSKA_GRAFVYS, ATTR_STRIP_CHART_PAUSED,val); SetCtrlAttribute (panelvyk, VYKYVY_GRAFVYK, ATTR_STRIP_CHART_PAUSED,val); break; } return 0; }
The following problem occurred inside a program I have written. I will try to explain it in a short version of the whole program:
I have a control-Callback for a button where i wait for EVENT_COMMIT. If i press the button I call a function where I handle different things. Inside of this function there is a Fmt() command where i get a General Protection Fault.
In short it looks like this:
int CVICALLBACK Main_CALLBACK_Test (int panel, int control, int event, void *callbackData, int eventData1, int eventData2)
{
if(event == EVENT_COMMIT)
{
if(control == MAIN_Start)
{
Function_Call();
}
}
return 0;
}
void Function_Call (void)
{
char cDummy [50] = {0};
Fmt(cDummy, "%s<%s", "Test for Text message");
}
This behavior does not only happen with the Fmt(). I also get errors with for example SetCtrlVal commands or whole function calls. All of these errors only occur, if the code is inside of a function. If I put it outside, everything works fine. The function itself is declared in an .h-file which I include in the main-program.
Please someone help me with this issue.
My System is Windows 10 with CVI 19.0.0
Hello,
I am working on legacy software using LabWindows2010. I was given NILWCVI2010.exe to install. I am asking, can I use NI Device Driver 2019 with it
I tried to download NI Device Driver August 2011 and it took forever.
Thank you,
Qing
我有一个控件的.tlb文件,在win7上做如下操作,编译使用成功
1. 由 .tlb文件导出.dll文件
2. 用 regtlibv12.exe 注册 .tlb文件
3. 在lab windows 工程中导入 .net 控件,选择相应的 .dll文件
4. 编译运行。
同样的操作在win10下总是如下报错:
I have an array buf[2048] in the UI interface, how to transfer it to the sequence file, please help to guide, thank you
Hello ,
I search code for use PCI-8513 with CVI 2017 without Xnet DB,
I have allready write code for Init / Read / Write
CanHdl NiXnetCanInit(char * Interface,int BaudRate,short Term)
NiXnetCanSend(CanHdl CanSessionHdl,int id,char * Data)
NiXnetCanRecv(CanHdl CanSessionHdl,double TimeOutInSec,int * id,char ** Data)
i search how send Cyclic Can Data every n ms , i have try all line below in all conbination without succes
l_pFrame->Type = nxFrameType_Special_Delay;
nxSetProperty(CanSessionHdl.SessionRefOut,nxPropFrm_CANTimingType,sizeof(u8),nxFrmCANTiming_CyclicData);
nxSetProperty(CanSessionHdl.SessionRefOut,nxPropSessionSub_CANTxTime,sizeof(double),(void*)&time);
nxSetProperty(CanSessionHdl.SessionRefOut,nxPropSession_IntfOutStrmTimng,sizeof(u8),nxOutStrmTimng_ReplayExclusive);
Thanks a lot.
I have CVI 2012 full development (CDs) and running on a Windows7 PC. Work has upgraded me to a Windows10 PC and now I need to transfer CVI. How do I accomplish this without having a CD drive?
Hi i am developing PID controller, i am generating sine wave (10v, Hz) for Set-point, in feedback I am reading encoder Count.
my problem is how to convert my Feed-back encoder count into wave-form in GUI(user interface).
for reference image attached here.
I am new to LanWindows and working on a Legacy application, which has many projects defined as Dynamic Link Library using 2010 LabWindows .
I created a new Dynamic Link Project, say my_DLL_prj. Added into the workspace. In Target Type, set a header file mytest.h in DLL Export Options dialogue. then I build this my_DLL_prj. LabWindows reported my_DLL_prj.dll and my_DLL_prj.lib are created correctly.
In main application, added the mytest.h file to main project, added the my_DLL_prj.lib into the main project. then in main.c file, I call a function, my_test() defined in mytest.h file from my_DLL_prj.
It complains link errors - Undefined symbol '_my_test' reference in 'main.c'.
Since it is an legacy project from many years ago, I am trying to look through existing projects hopefully can find some clue. All existing DLL project will create a file named exports in the cvibuild.projectX folder. and inside this file, there is a symbol of function names that are exported.
[ShowSWFP_X]
callConv = 115
name = ShowSWFP_X
paramSize = 20
But, my_DLL_prj does not generate a exports file.
I had read the NI LabWindows/CVI help for roughly one week already... did not find a clue.
Many thanks.
1.Requiremnt is simple i have to read 10 volt Analog signal I will pass to ADC.
2.how to plot analog waveform in CVI GUI from ADC in Labwindows/CVI
Hello all,
in the CVI help the documentation of the srtncpy you can read what's following
Output | ||
Name | Type | Description |
targetString | char [] | Contains the target string to which the specified number of characters from the source string are copied. If the source string is shorter than maxChars, ASCII NUL bytes are appended to the contents of this parameter until maxChars are written. If the source string is longer than maxChars, no ASCII NUL bytes are written to the contents of this parameter. If you want to guarantee that an ASCII NUL byte is at the end of the copied bytes, you can use the following: strncpy (target, source, n); target[n] = 0; |
I've put in bold + underline the relevant part.
I've a doubt about the code snippet provided as example
How could it be? I mean, it sounds like an off-by-one to me
May I have your kind opinion?
Tanks in advance
All the best
A quick search through this forum and the help file didn't show me anything obvious... Is there LabWindows networking support to alter the keepalive (such as standard TCP/IP setsockopts call and SO_KEEPALIVE)? I see posts here pointing folks to doing it using standard Winsock, but since this is such a standard part of TCP/IP networking I figure there is probably a built-in way?
I am currently using LabWindows/CVI to collect data from cDAQ9184 and 9189 racks. We wish to incorporate a high-resolution absolute position encoder into the software calculations.
Our options so far have been to use BiSS/SSI (which the cDAQ racks do not support), or use an incremental encoder (which would not be as reliable).
I have found a suitable encoder that uses Ethernet. How can I incorporate this into my current LabWindows/CVI software?
I am adding feature to my lagacy product, so have to use LabWindows 2010. I am wondering if there are Thermotron drivers using Ethernet ( prefer ) or RS-232.
many thanks,
Qing
Hello
I have developed the code to control power supply in my machine/windows 10 computer (CVI 2015) later created executable.
I copied executable in test machine/computer (win xp), with CVI2015 RTE installed, still not able to open VI session.
Any help?
Hussain
Hi All,
I just upgraded CVI from 2013 to 2019 and now I get error -180 (UIEFileDialogWrongConcurrencyModel) when using the FileSelectPopup(Ex) function. I am using 32-bit CVI 2019 on a 64-bit Win 8.1 machine. Before the CVI (and drivers) upgrade everything worked fine. The popup function is called from my main thread. I use various threads for data acquisition and analysis (via CmtScheduleThreadPoolFunction and PostDeferredCallToThread and such), but (to the best of my knowledge) I am not using any ActiveX functions. Any hints for troubleshooting?
Thanks,
Martin
For LabWindows/CVI we have source code for 4 different utilities. I am looking to get these into our version control system. We use GIT but this would apply to any of the possible version control systems.
I adminster our GIT repository and code in C for embedded systems. However, I was not the developer of the LabView CVI projects we did here and I am trying to help the developer here get his code into the GIT repository.
In general, it is best practice to have the version control system ignore files and folders from your project folder that are generated by the compiler. For LabWindows/CVI I am less certain what files and folders should be ignored and what files are actual project setting files and any needed source or library files that should get checked into source (well the source files the developer created are pretty obvious, its the files that might be library code provided by compiler I am concerned about).
What folders, files or file extensions should I put in the .gitignore file?