Quantcast
Channel: LabWindows/CVI topics
Viewing all 5349 articles
Browse latest View live

threading and ni6515

$
0
0

Is it possible to call DAQmxWriteDigitalLines  in different threads for different lines? or will every call have to be thread locked?

 

DAQmxCreateTask ("", &DOCARD); 

 

DAQmxCreateDOChan (DOCARD, text, "",DAQmx_Val_ChanPerLine);

 

DAQmxStartTask(DOCARD);

 

DAQmxWriteDigitalLines (DOCARD, 1, 1, 10,
                                          DAQmx_Val_GroupByScanNumber,
                                          &DOArray[0],

 

 DAQmxStopTask(DOCARD)  ;
 DAQmxClearTask(DOCARD)  
 


Microcontroller with LabWindows

$
0
0

I am writing a test procedure in LabWindows.  I want to talk to a microcontroller in order to tell it when to control a motor.  I am considering using one of Atmel's mega chip series; however, I have never performed this task.  I am curious if there are certain precautions that I need to take into account before I choose a mcu and/or features that are advantageous for LabWindows.  The plan was to use some type of serial interface, but again, maybe there are better interface methods for this sort of thing.  Are there any developers with this sort of experience that may have some general thoughts about this sort of task?

 

Thanks,

Alex

create a function in CVI

$
0
0

Hi,

I'm new in CVI and i need to know how to print the received data "readBuf" in this function any help please

Thank you

 

 

int CVICALLBACK ReceiveData (int panel, int control, int event, void *callbackData, 

 int eventData1, int eventData2)
{
char readBuf[20] = {0};
int strLen;

switch (event)
 {
case EVENT_COMMIT:
/* Read the characters from the port */
strLen = GetInQLen (COM_PORT);
 ComRd (COM_PORT, readBuf, strLen);
SetCtrlVal (gPanelHandle, PANEL_OUTOUT_STRING, readBuf);
SetActiveCtrl (gPanelHandle, PANEL_INPUT_STRING);
break;
}
return 0;
}

NI 9870, CompactDAQ & CVI

$
0
0

As anyone used the NI 9870 4-port RS232 Module with CompactDAQ and LabWindows?  Or do our NI support folks out there know anything about this?

GetGeneralErrorString does not recognizes error -180

$
0
0

As the title says, Programmer's Toolbox function GetGeneralErrorString () does not recognizes error -180 (which relates to ActiveX and FileSelectPopupEx function).

When called with value -180, the function returns "No description available", while GetUILErrorString () returns the correct description for that error.

 

It seems to me that the error radicates in a incorrect userint.h file:

	/*** errors returned by User Interface Library functions: ***/
typedef enum
{
	UIENoError                                                  = 0,
	UIEManagerCouldNotOpen                                      = -1,
...
	UIEInvalidAngleInMetaFont				= -178,
	UIECellCannotBeMadeActive				= -179,UIEErrorLimit						= -180
} UIError;

 

As you can see, there should be a specific item in the enum for GetGeneralErrorString to work correctly:

char * CVIFUNC GetGeneralErrorString(int errorCode)
{
    int                 absError = ABS_VAL(errorCode);
#if defined(_NI_mswin_) && _NI_mswin_
    int                 tracking = SetEnableResourceTracking (0);
#endifif (absError < ABS_VAL (UIEErrorLimit))
    {
(bla bla)

 

Don't know how GetUILErrorString is implemented, but apparently it does not rely on that same enum...

dynamic 2d string array (returned to TestStand)

$
0
0

I am trying to read a 2d string array from a file and pass it back to TestStand

I have made a shortened version of my code that uses nested for loops to generate data instead of reading from a file.

 

if I define the 2d string array in the beginning I can pass it back with the following code:

 

    errChk( CA_VariantSet2DArray (&tmpVariant, CAVT_CSTRING, ROW_SIZE,COLUMN_SIZE, My2DstrArray));
    tsErrChk( TS_PropertySetValVariant(seqContextCVI, &errorInfo, "FileGlobals.TestData", 0, tmpVariant));

 

If I use dynamic allocation I get an error that says the array is too small (on the first line I wrote above) even thought the data looks the same in the watch window

 

the attached file has 2 functions (FillArrayFromFile1 and FillArrayFromFile2) the first one works, the second one gives me the error

I can't figure out why any help would be appreciated

How to get the run time of codes?

$
0
0

I want to how to get the run time of codes.

For example , 

       for(i = 0; i < 10; i++) a = i;

 

+91-9672995765 love problem solution baba jin delhi

$
0
0

Love specialist astrologer A.K sharma ji +91-9672995765 (Diamond Gold madelist ) and three time jyotish siromony winner ||

Astrology services provides in india,uk ,usa ,canada, america, , jermeny, singapore,dubai, france , spain ,paris ,kuwait.

america,itly,and all country Ak sharma ji is an international astrologer also provide service in indian cities mumbai,bangalore,Ludhiana,hyderabad,jaipur ,Jodhpur ,lucknow,noida.ahamadabad

delhi,pune,and all indian cities

Ak sharma ji have provides best astrology services to you many people take anvantage of his

spirit and his astrology knowladge one call can change your life

for women and girl we provide 100 % privacy

services

1-Love problem solution

2-intercaste love marriage problem solution

3-love marriage specialist

4-dull business problem solution

5-Get love back problem solution

6-forgien travelling problem solution

7-blackmagic removal astrologer

8-love vashikaran specialist

9-girl and boy vashikaran

10-childless problem solution

11-blackmagic specialist

12-divorce problem solution

13-husband wife problem solution

and all any kinds of problem solution available here get your problem solution in just 48 hours only one call and get back happy in your life also provide service on whatsaap

contect detail

name-Ak sharma ji

email-astroankushsharmaji@gmail.com               

mobile-+91-9672995765

whatsapp-+91-9672995765


+91-9672995765 relationship problem solution astrologer in surat

$
0
0

Love specialist astrologer A.K sharma ji +91-9672995765 (Diamond Gold madelist ) and three time jyotish siromony winner ||

Astrology services provides in india,uk ,usa ,canada, america, , jermeny, singapore,dubai, france , spain ,paris ,kuwait.

america,itly,and all country Ak sharma ji is an international astrologer also provide service in indian cities mumbai,bangalore,Ludhiana,hyderabad,jaipur ,Jodhpur ,lucknow,noida.ahamadabad

delhi,pune,and all indian cities

Ak sharma ji have provides best astrology services to you many people take anvantage of his

spirit and his astrology knowladge one call can change your life

for women and girl we provide 100 % privacy

services

1-Love problem solution

2-intercaste love marriage problem solution

3-love marriage specialist

4-dull business problem solution

5-Get love back problem solution

6-forgien travelling problem solution

7-blackmagic removal astrologer

8-love vashikaran specialist

9-girl and boy vashikaran

10-childless problem solution

11-blackmagic specialist

12-divorce problem solution

13-husband wife problem solution

and all any kinds of problem solution available here get your problem solution in just 48 hours only one call and get back happy in your life also provide service on whatsaap

contect detail

name-Ak sharma ji

email-astroankushsharmaji@gmail.com               

mobile-+91-9672995765

whatsapp-+91-9672995765

+91-9672995765 husband wife problem solution astrology india

$
0
0

Love specialist astrologer A.K sharma ji +91-9672995765 (Diamond Gold madelist ) and three time jyotish siromony winner ||

Astrology services provides in india,uk ,usa ,canada, america, , jermeny, singapore,dubai, france , spain ,paris ,kuwait.

america,itly,and all country Ak sharma ji is an international astrologer also provide service in indian cities mumbai,bangalore,Ludhiana,hyderabad,jaipur ,Jodhpur ,lucknow,noida.ahamadabad

delhi,pune,and all indian cities

Ak sharma ji have provides best astrology services to you many people take anvantage of his

spirit and his astrology knowladge one call can change your life

for women and girl we provide 100 % privacy

services

1-Love problem solution

2-intercaste love marriage problem solution

3-love marriage specialist

4-dull business problem solution

5-Get love back problem solution

6-forgien travelling problem solution

7-blackmagic removal astrologer

8-love vashikaran specialist

9-girl and boy vashikaran

10-childless problem solution

11-blackmagic specialist

12-divorce problem solution

13-husband wife problem solution

and all any kinds of problem solution available here get your problem solution in just 48 hours only one call and get back happy in your life also provide service on whatsaap

contect detail

name-Ak sharma ji

email-astroankushsharmaji@gmail.com               

mobile-+91-9672995765

whatsapp-+91-9672995765

+91-9672995765 love vashikaran specialist in mumbai pune

$
0
0

Love specialist astrologer A.K sharma ji +91-9672995765 (Diamond Gold madelist ) and three time jyotish siromony winner ||

Astrology services provides in india,uk ,usa ,canada, america, , jermeny, singapore,dubai, france , spain ,paris ,kuwait.

america,itly,and all country Ak sharma ji is an international astrologer also provide service in indian cities mumbai,bangalore,Ludhiana,hyderabad,jaipur ,Jodhpur ,lucknow,noida.ahamadabad

delhi,pune,and all indian cities

Ak sharma ji have provides best astrology services to you many people take anvantage of his

spirit and his astrology knowladge one call can change your life

for women and girl we provide 100 % privacy

services

1-Love problem solution

2-intercaste love marriage problem solution

3-love marriage specialist

4-dull business problem solution

5-Get love back problem solution

6-forgien travelling problem solution

7-blackmagic removal astrologer

8-love vashikaran specialist

9-girl and boy vashikaran

10-childless problem solution

11-blackmagic specialist

12-divorce problem solution

13-husband wife problem solution

and all any kinds of problem solution available here get your problem solution in just 48 hours only one call and get back happy in your life also provide service on whatsaap

contect detail

name-Ak sharma ji

email-astroankushsharmaji@gmail.com               

mobile-+91-9672995765

whatsapp-+91-9672995765

india @love@ guru +91-9672995765 breakup problem solution in hyderabad

$
0
0

Love specialist astrologer A.K sharma ji +91-9672995765 (Diamond Gold madelist ) and three time jyotish siromony winner ||

Astrology services provides in india,uk ,usa ,canada, america, , jermeny, singapore,dubai, france , spain ,paris ,kuwait.

america,itly,and all country Ak sharma ji is an international astrologer also provide service in indian cities mumbai,bangalore,Ludhiana,hyderabad,jaipur ,Jodhpur ,lucknow,noida.ahamadabad

delhi,pune,and all indian cities

Ak sharma ji have provides best astrology services to you many people take anvantage of his

spirit and his astrology knowladge one call can change your life

for women and girl we provide 100 % privacy

services

1-Love problem solution

2-intercaste love marriage problem solution

3-love marriage specialist

4-dull business problem solution

5-Get love back problem solution

6-forgien travelling problem solution

7-blackmagic removal astrologer

8-love vashikaran specialist

9-girl and boy vashikaran

10-childless problem solution

11-blackmagic specialist

12-divorce problem solution

13-husband wife problem solution

and all any kinds of problem solution available here get your problem solution in just 48 hours only one call and get back happy in your life also provide service on whatsaap

contect detail

name-Ak sharma ji

email-astroankushsharmaji@gmail.com               

mobile-+91-9672995765

whatsapp-+91-9672995765

Tamper Evident Data Recording

$
0
0

 

AMS2750E covers pyrometric requirements for thermal processing equipment used for heat treatment. It covers temperature sensors, instrumentation, thermal processing equipment, system accuracy tests, and temperature uniformity surveys. 

 

Paragraph 3.2.7.1.1 of  AMS2750E states “The system must create electronic records that cannot be altered without detection”.

 

Anybody got any ideas how to do this with LabWindows?

CVI Image_control

$
0
0

I want to get the roi postion of the imagecontrol

Threading question

$
0
0

Hi

I am new to threading.

I am trying to reuse functions that store data in variables and structures etc.  Rather than doubling up on everything and using if else etc. I was thinking about using arrays and 2D arrays.

There would be the main thread which can call 2 other threads, each thread more or less a duplicate except for data storage and control etc.

 

Is the 2d array idea viable?

 

 


help message like comic

$
0
0

hi everyone,

i want ask you something.

I want show an help message when the cursor pass on a label like a comics.

 

is it possible?

 

thanks in advance

Modal window in multiprocess

$
0
0

when I use the function MessagePopup in a sub thread in my program, I get a modeless window ,but the window with MessagePopup should be modal. Shall Somebody help me to solve this problem. In the accessory, I pack my source code. Thank you in advance! I am very glad to receive your reply.

Save data in table

$
0
0

(First off all, sorry for my english)

 

Hi,

 

I'm a french student and i realise an internship. I work with Rohde&Schwarz analyzer.

I would like to save the data in a oppened excel but i can't. So i decided to save the data in a table in Labwindows CVI and then copy the table to Excel. I can copy the table but I can't save data in it.

I tried the function: SetTableCellRangeVals but I have a problem with my data ("double" expected "pointer to pointer to char").

I have 630 points to save. When i tried to save it in excel, there were in a same cell so at the end I had only the last point.

 

If anyone could help me,

 

Matthieu

 

problems to read a registry key REG_SZ

$
0
0

hi everybody,

i'm tryng to read the value of a particular regster named ParentIDPrefix. It is visible on picture

reg.png

 

i'm using this funcion:

RegReadString( HKEY_LOCAL_MACHINE, "\\SYSTEM\\CurrentControlSet\\Enum\\USB\\6&85f603c&0&2", "ParentIdPrefix", NULL, 0, &size);

but it doesn't work and returns thi error:

"Could not open Registry Key"

 

Can you help me?

how to find API reference information in LabWindows/CVI 2010

$
0
0

Hello,

I am debugging our device driver in a project under LabWindows/CVI 2010. The code was developed earlier by other engineer but he is not in the company now. 

 

Specifically, there are 3 semaphore APIs I wanted to look into, but I could not find the proper document about them. The 3 APIs are used in driver as following:

      SEM_ID  mySema;

      ...

      mySema = CreateSemaphore(NULL, 0, 1, NULL);

      ...      

      dwResult = WaitForSingleObject(mySem, 5000);

      ...

      ReleaseSemaphore(mySema, 1, NULL);

 

I am wondering if WaitForSingleObject() belongs to the same group of APIs with CreateSemaphore() and ReleaseSemaphore().

 

Another general question is that where is the documentation for the detailed information of an API used in the driver? Please provide the web link or pdf documents.

 

Best Regards

Viewing all 5349 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>