sprintf(szConnStr, "Server=%s;Database=%s;Provider=SQLXMLOLEDB.3.0;"
"Data Provider=SQLOLEDB;Initial Catalog=%s", pszSvrName, pszDb,pszDb);
I got error -2147352567 when call ADODB_ConnectionOpen.
TIA
sprintf(szConnStr, "Server=%s;Database=%s;Provider=SQLXMLOLEDB.3.0;"
"Data Provider=SQLOLEDB;Initial Catalog=%s", pszSvrName, pszDb,pszDb);
I got error -2147352567 when call ADODB_ConnectionOpen.
TIA
I'm getting a GPF all of the sudden in a branch of a very mature project. I've been getting it in the debugger, and the code breaks at RunUserInterface().
I managed to track down where/what is causing it, but I'm at a loss as to why.
In this new branch, I'm replacing the callback function of a table control on one panel. I use InstallCtrlCallback to do so. This works as it should. Inside its new callback function, I call a function which does some NewCtrl (timer creation within the same thread) and then InstallCtrlCallback for the timer. These are causing the GPF when I allow the function to return.
If I simply comment out the creation of those timers & callback installs, no more GPFs. Why?!
Hello all,
I'm currently having an issue with the following configuration :
- CVI2013
- Tektronix oscilloscope ref. TBS 1052B-EDU
- Driver (instrument) tktds1k2k.fp
In my test application, I open the instrument, and then perform some initialization and configurations. After that, I enter inti a loop where I perform several predefined measurements (rise and fall time).
The problem I encounter is that sometimes, the function which configure the TriggerDelay has no effect with its last parameter :
tktds1k2k_ConfigureAcquisitionRecord (iD_Scope, (ViReal64)0.000250, (ViInt32)2500, (ViReal64)-0.000025);
The parameter is the "Acquisition Start Time" parameters. I know the value must be set regarding the sampling rate used (Horizontal Sampling Per Second) and I' take care of that.
The problem appears absolutly randomly and after many tries and long time, I still don't have the explaination neither a solution.
Did someone encounter the same problem ?
How to solve ?
Thank's in advance for help.
Regards.
Patrick
Can I change the date and time of my computer from LabWindows. Exits some function to do it?
Hello,
Being relatively new to LabWindows CVI or C as such( at professional level), i am confused whether or not to avoid goto statements in the code. I have often read that it is not a good practice to use a goto statements excessively and using it to jump backward.
I have a test sequence which is in the form of a flow chart, where there are various types of condition checks and associated branching. I couldn't figure out a way to implement the algorithm without using goto statements. I would like to know, what would be an ideal way to do this without use of 'goto'.
For example consider the flow chart shown below.
Image may be NSFW.
Clik here to view.
After process C , the program should loop back to B.
Can someone guide me on this? or is it ok to use goto statement in this scenario?
Best Regards
After reinstalling the windows, labview program, "Ressistance.vi", dose not work with
"Error 8 occurred at Open/Create/Replace File in Write Spreadsheep String.Vi -> Write To Spreadsheet File (DBL).vi. File permission error. You do not have the correct permission for the file. C:\238.dat".
I think there is a problem with the storage root.
So, i want to modify the labview source of "Resistance.vi" using the source of "Test.exe".
However, we can not deal with the labview program and code.
Please help me to use this program without the "238.dat".
Hello all,
I have managed to get a nice UIR where I press a button and it will open a com port, send a message, to configure the rs232 device downstream.
What I want to happen is to remove the need to initalise this by user interaction.
I want to have it automatically sending a constant message every 10 seconds.
Do I place a loop in the main or is there another parallel function i can run to loop through this comopenconfig, comwr, comrd.
Regards,
Wes
hy everybody,
i'm trying to open a telnet connection with an external board by the follow command:
telnetHandle = InetTelnetOpen("192.168.1.10", 2347, 0);
"192.168.1.10" is the ID number of the board
2347 is the telnet port
I can open the connection with this settings with a tool (named putty) without any problems but in cvi i get Always the same error -22
can you help me?
我在image control 里面没有getimage 和setimage 这两个函数 .
是不是没有安装完整版组建.
I want to use the get_image in CVI and set _mage but in
The function library without these two functions
Hello,
I have a little question. I have a task that generates a signal. Now I have a function that can pause the task. I pause the task with the command DAQmxStopTask and start the task again with DAQmxStartTask. Now I found out when I pause the task the signal level gets hold on the value the signal stopped. (Example: When the signal is high and I stop there the output will stay high)
But for my application it is important to set the signal level to low when I pause the task. But that works not as I like. Following you can see how I stop the task and how I would like to set the output to zero. I start the main program with a different function where I write the correct samples to start the task correct again.
// Pause the task
DAQmxErrChk(DAQmxStopTask(AnalogTask));
// Set output to 0
DAQmxErrChk(DAQmxWriteAnalogScalarF64 (AnalogOutTaskHandle, 0, 10.0, 0, 0));
DAQmxErrChk(DAQmxStartTask (AnalogOutTaskHandle));
DAQmxErrChk(DAQmxStopTask(AnalogOutTaskHandle));
Sometimes it works for the first run but not for the second run. I start my program than I pause the program, set the output to zero. Then I start my main program again and when I pause the task again I get an failure that the generation has stopped to prevent the regeneration of old samples. I did get the failure when I pause the program for the first time too.
So I would like to now if this way is the correct way or if there is a better way?
(It could be that the failure is in another part of the program. I have a register callback function that gets activated when I send samples from the buffer to the device to generate the samples for the main program. Could it be that these callback gets activated because it is the same task I use for setting the channel to zero.)
Hope someone can help.
Best regards
I want to visualize an Excel document on the .uir of my project. It is posible? Maybe with some ActiveX control?
I would like to ask this easyio.h document where, why debugging when there will be this error, how to solve?
Hello everyone,
I am using change detection for several digital lines and am trying to create an additional task to read a different digital line periodically. However, when both tasks are started I get the following error message:
Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
Property: DAQmx_SampClk_Src
Property: DAQmx_SampClk_ActiveEdge
Source Device: Dev1
Source Terminal: Change Detection Event
Required Resource in Use by
Source Device: Dev1
Source Terminal: PFI0
Destination Device: Dev1
Destination Terminal: di/SampleClock
Status Code: -89137
I am generating a clock using the card's frequency generator as a sample clock for counters and the digital input I'm trying to acquire. This freqout clock is routed to PFI0. The error message is not very explanatory to me, so I hope that somebody can help me with this error.
Hi all,
I am trying to write a simple DLL in CVI that will open a com port and write/read data. This will be used by someone who uses Visual Studio.
There is an example using CVI library to write code in Visual Studio which I used and works fine. with the basic code that is in the example.
Search for: "How to Integrate 32-Bit LabWindows/CVI 4.0 Libraries into Microsoft Visual C/C++ or Borland C/C++"
And there is an example that has code for CVI project that generated DLL and VS project that used the DLL but I cannot get it to run on VS 2015. Has anyone tried it on VS 2015?
Search for: "Creating a CVI DLL That Contains an UIR File, And Use The DLL in Visual C++"
Please give any suggestions.
Thanks,
Dmitry
V信/Q405'665'716,RMIT、莫纳什、迪肯 墨大等、荜业證+成/績單、教育/部认$ {$
Hi,
When I try to save my project I receive a pop-up message. Why this pop-up message appears?
I post a photo.
Hi,
When I try to save my project I receive a pop-up message. Why this pop-up message appears?
I post a photo.
Hi all,
I'm using the Graph component to show the measured data (Fig. 1). Then I can zoom the area of interest, which is the cross of the two records (Fig. 2). My question is: it is possible to export the Graph zoomed data from the Fig. 2 to a file? Determination of the cross of the two records is the goal. Thank you for any help.
Michal
Hi,
I want to display an image of image* type in interface.uir using NI Vision Custom Control. I want to display using an already createad IMAGECTRL. Does anyone know how to do it? Thank you.
Z