Quantcast
Channel: NI TestStand topics
Viewing all 6527 articles
Browse latest View live

Unable to update the existing type definition for a cluster containing an enum type definition from a LabVIEW code module

$
0
0

Hi, I found some strange behavior in TestStand. It is as described in known issues https://www.ni.com/pl-pl/support/documentation/bugs/19/teststand-2019-known-issues.html#662205_by_Category but not for the array of clusters but just for clusters.

So, I have a problem to update the container type definition containing enum type definition in TestStand.

The example is as follows:

  • Create a sequence file with a LabVIEW call.
  • Called VI will have a cluster containing numeric, string and typedef enum.
  • Create a type definition for this cluster in TestStand by clicking on Create/Update Custom Datat Type... button in the type column for the code module parameter.
  • 2020-04-16 10_14_38-Window.png
  • Create a new parameter with the newly created type.

Now all is working as it is in attached EnumUpdateBug_1.seq. We have 2 new type definitions in TestStand: one for cluster and one for enum.

 

Next, try to update the enum definition in LabVIEW and later in TestStand.

  • Change LabVIEW enum type definition - e.g. change one item text (see EnumUpdateBug_2.seq).
  • Then, in TestStand you will see the red exclamation mark because you changed the VI. Click on it and let TestStand accept the fact.
  • We don't see any issues at first glance, but then if we check enum in our parameters we can see that we don't have the same enum that we have in LabVIEW. If we click to check expression (red checkmark) where our parameter is used in the code module we see "no errors". But when we click Create/Update Custom Datat Type... button again. Then we see that we have a mismatch. It suggests using a new data type for our enum - it doesn't want to automatically link it with our enum typedef...
  • 2020-04-16 10_28_32-Window.png

We need to uncheck "Force Exact Match" and manually select types...

2020-04-16 10_30_20-Window.png

After we click Update we don't see any changes. Our updated type definition remains the same - enum looks like it was before, no update. Our LabVIEW call seems to be ok (no red marks of any sort) but if we look closer we can see the message...

2020-04-16 10_32_47-Window.png

 

To me, it looks like the bug described in know issues but just with clusters. The suggested workaround is not really helpful if you need to manually update the type everywhere...


Teststand 2D array

$
0
0

I have a 2D array in my TestStand sequence. In column 1 I have different frequency values. I am breaking up the 2D array into a 1D array and using the For each statement to use the frequency as array to iterate over. But for each of these frequency i want to use the other values that was in the same row as input to different variables.

For example 

 

Frequency  Resistance  Voltage

 

50hz  5ohm 3V

60Hz 6ohm 4V

70Hz 7ohm 5V

 

So i am iterating the loop using the Frequency value. But at every iteration i want to use the appropriate resistance and voltage value for example at 50 hz i want locals.resistance value to be 5ohm and locals.value to be 3V. Can anyone show mw an example of how to do this.

 

thank you

Import excel file with property loader

$
0
0

I have an excel file. Can someone explain a way how I can load it using Property Loader. I will need the appropriate values of Resistance and Current (in the same row as Frequency)for each Frequency. 

 

Thank you

zakariarahman_0-1587261370642.png

 

UNIToolAPI and Thrift

$
0
0

Hello All, 

 

I am doing a project that has to do with calling UNIToolAPI and Thrift. Has anyone done anything similar or has any experience with both?

 

Thanks 

 

Kind Regards

Database Readback

$
0
0

In my company we use a SQL server for logging test results. For that purpose is used the build in function in TestStand. LogToDatabase - Ni_Databaselogger.seq

How can we be sure that the data always are written to the SQL database?

Are all the data that are written also read and verified?

Change module path programatically

$
0
0

Hi,

I need to create a VI in LabVIEW to replace all code modules in a TestStand sequence. I tried doing so by getting all steps in the sequence through TestStand API, but I cannot find and property/method for step or module, that would allow me to get current path of the module and then replace that path with another one. Any ideas how to achieve this?

threads dilemma

$
0
0

Hello.

I have attached an example where there are one subsequence that runs in a new thread in parallel with 3 other sequences that runs sequentially.

Is it possible to stop Seq1 and still log the results that it has so far if seq2 or seq3 fails?

 

 

 

TestStand development vs deployment environment

$
0
0

Hi all,

 

How would one detect when a sequence is being run in development environment vs. in deployment environment?

...and it would be better, in this case, if the distinction was not by station ID or anything specific to the computer.

 

Thank you in advance!


A line of code that did not port from TestStand 2017 to 2019 32-bit.

$
0
0

The attached document describes how a particular line of code, see below, no longer works in TestStand 2019.  The attachment also describes how it was used.

 

RunState.Caller.Locals.ResultList += Locals.ResultList

 

Any help would be appreciated.

 

Thanks

 

 

'Could not load frontend.dll'

$
0
0

Hi all. I am new to the TS 2019. When I tried to log in the MMI, the following error message turned out.

 

---------------------------------------- Details: Could not load DLL or external library 'C:\Program Files\National Instruments\TestStand 2019\Components\Callbacks\FrontEnd\x64\frontend.dll'. Cannot load SxS version of cvirte.dll required by the DLL. Verify you have the SxS CVI run-time engine installed. Function LoadLibrary failed. Win32 Error Code = '1114' Error Message = 动态链接库(DLL)初始化例程失败。 ---------------------------------------- Error Code: -17004; Could not load DLL or library. ---------------------------------------- Location: Step 'Login' of sequence 'LoginLogout' in 'FrontEndCallbacks.Seq' ----------------------------------------

 

I have found the cvirte.dll and sxs.dll in system32 and sysWOW64, so this maybe caused by other errors.

 

Thanks for your help!

 

Best Regards

TestStand用户界面设计如何自动加载序列文件并运行序列

$
0
0

最近在研究TestStand的用户界面设计,查到的范例程序都是通过连接按钮和下拉列表手动操作加载序列文件并运行,请问如何实现自动呢?我该使用哪几个API?

Set Units programmatically

$
0
0

Using TS 2016 64bit Mulitple Numerica Limit Test, doesn't appear to be able to set the Units programmatically.

 

I use this parameter and no change to Units - 

RunState.Step.Result.Measurement["Measurement 0"].Units  . 

 

I click the option to set to "Custom" on Units is grayed out, why? I have not been able to enable Custom setting in the drop-down box. 

TestStand User Interface

$
0
0

在使LabVIEW设计用户界面的时候,调用TestStand引擎,再通过TestStand调用Labview编写的测试项。不可避免的会遇到一个问题:当测试项为耗时测试项时,用户界面如何能够控制测试项计时暂停和停止?

TS 64 bit Sending results to a Labview 64 bit using a named Queue

$
0
0

I have a need to send test results to a LabVIEW VI in real time.  Using TestSTand 2017  32 bit and LabVIEW 2018 32 bit.  I can create 2 VI's (Server/Client) both of which call Obtain Queue using a common name.  I can call the server.vi from testStand which sends an event to the Client.   This works fine.

 

But when I use the 64 bit versions on another PC the events no longer work.  If I run both VI's directly from labview 64 bit it works as expected.

 

Does 64 bit prevent sharing queues between applications?   is there an extra step I need to do?

 

 

not obvious searching options for local search and search in files

$
0
0

So I need to search for "Action" type steps in my sequence.

For local search I check "Type Names" and write "Action" in find field - this works.

 

but for find/replace in files when only "type names" is checked in Filter tab then it does not work. I have to check also "Steps" in Object to Search element (also it does not work when only "steps" are checked and "type names" unchecked). I can see the reason for that If I can combine "type names" with "Variables" and search for all Variables with type for instance "Number", but it does not work 🙂

 

detail, but maybe would be good to improve it.


Calling teststand engine from python - is it going to be supported as good as in .Net/labVIEW?

$
0
0

hi,

a question is in the subject. the reason is that is a bit annoying to call it through win32com (especially that I have problems to install those libs - "no matching distribution found for") since it looks that there won't be any code completion support.

Updating enum defined in called sequence in a caller

$
0
0

in SequenceFile "A.seq" I have defined an enum "enumA" and one subsequence with a parameter using that enum type.

in SequenceFile "B.seq" I am calling this subsequence. writing in the value "Enums.enumA.firstenumerator" - so far everything perfect.

Now close B.seq, add new enumerator "secondnumerator" in A.seq. close A.seq, unload modules, open B.seq, run it - it throws an error that the definition is different. and it seems that B.seq has a copy of that enum.
Is there any way that caller will update the definition based on called sequence? i.e. should the definition of that enum be kept only where it have been created.

 

I know that I can solve it using "ini" file and make it more global. and that this approach (i.e. defining enum in seq file) can make a problem that I can have C.seq with enum type with the same name as in A.seq and then have some conflict.

Programmatically create container based on values loaded from propertyloader

$
0
0

Hi All,

 

I want to load values from an ini file at runtime into the teststand model via a property loader.

 

I do not know the size of the data (number of strings) within the ini file until the property loader has ran, how can I programmatically create a container based on the size of data found within the property loader?

 

E.g. data within ini would be....

 

option 1, option 2, option 3......option n

 

Container created in teststand will contain 

 

options1 to option n

 

The desired result is to be able to pass a container full of strings to a teststand user interface written in labview. The data will be used to populate a combobox.

 

Thanks

 

Expression box text length limit

$
0
0

What is the limit on the string length inside of the Post Expression text box? Looks like I reached that limit. TS 2016 32bit.

Matlab/Simulink와 Veristand를 사용하여 Code 생성 중 에러가 발생했습니다.

$
0
0

Matlab/Simulink와 Veristand를 사용하여 Code를 생성하는 도중 다음과 같은 error가 발생했습니다.

 

=== Build (Elapsed: 3:52 min) ===
### Generating code into build folder: C:\Users\SEVEN\Desktop\pemfc_veristand_rtw
Warning:Matching "From" for "Goto" 'pemfc/Air(kg//h)2' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto12' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto13' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto18' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto2' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto20' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto21' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto22' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto23' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto24' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto26' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto27' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto28' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto29' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto4' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto5' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto8' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto9' not found
Warning:Unable to determine a fixed step size based on the sample times in the model 'pemfc', because the model does not have any discrete sample times. Picking a fixed step size of (0.2) based on simulation start and stop times. You can disable this diagnostic by explicitly specifying a fixed step size in the Solver pane of the Configuration Parameters dialog box, or setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Solver group on the Diagnostics pane of the Configuration Parameters dialog box.
### VeriStand 2019.2.0.0 (2019R3) code generation started
### Invoking Target Language Compiler on pemfc.rtw
### Using System Target File: C:\VeriStand\2019\ModelInterface\tmw\target\VeriStand.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
...............................................................................
...............................................................................
................
### Caching model source code
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
.........................................................................
### Writing header file pemfc.h
### Writing header file pemfc_types.h
### Writing header file pemfc_private.h
### Writing header file rtwtypes.h
### Writing header file builtin_typeid_types.h
.
### Writing header file multiword_types.h
### Writing header file zero_crossing_types.h
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### Writing header file rt_nonfinite.h
.
### Writing source file rt_nonfinite.c
### Writing header file rt_assert.h
### Writing source file pemfc.c
### Writing header file rtmodel.h
### Writing source file pemfc_data.c
### Writing header file rt_defines.h
### TLC code generation complete.
### Generating TLC interface API.
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
.......................
### VeriStand 2019.2.0.0 (2019R3) Modifying source file pemfc.c
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
................................................................
### VeriStand 2019.2.0.0 (2019R3) Modifying source file pemfc_data.c
### VeriStand 2019.2.0.0 (2019R3) Writing header file ni_pglobals.h
### VeriStand 2019.2.0.0 (2019R3) Modifying header file pemfc.h
### VeriStand 2019.2.0.0 (2019R3) Generating Ports Readme file
### VeriStand 2019.2.0.0 (2019R3) Generating Signals Readme file
### VeriStand 2019.2.0.0 (2019R3) Generating Parameters Readme file
### VeriStand 2019.2.0.0 (2019R3) Copying support files
1개 파일이 복사되었습니다.
1개 파일을 이동했습니다.
1개 파일이 복사되었습니다.
1개 파일이 복사되었습니다.
### VeriStand 2019.2.0.0 (2019R3) code generation done
Running rtwmakecfg from directory: c:\program files (x86)\eutech se\thermolib\5.4.0\blocks
[경고: Unable to run 'rtwmakecfg' file in directory: 'c:\program files (x86)\eutech se\thermolib\5.4.0\blocks' due to error: ''templateMakefile'은(는) 정의되지 않은 함수 또는 변수입니다.'
]
### VeriStand 2019.2.0.0 (2019R3) code compilation started
### Using toolchain: LCC-win64 v2.4.1 | gmake (64-bit Windows)
### Creating 'C:\Users\SEVEN\Desktop\pemfc_veristand_rtw\pemfc.mk' ...
### Building 'pemfc': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f pemfc.mk all

C:\Users\SEVEN\Desktop\pemfc_veristand_rtw>set MATLAB=C:\Program Files\MATLAB\R2017a

C:\Users\SEVEN\Desktop\pemfc_veristand_rtw>cd .

C:\Users\SEVEN\Desktop\pemfc_veristand_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f pemfc.mk all ) else ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f pemfc.mk )
"C:/PROGRA~1/MATLAB/R2017a/sys/lcc64/lcc64/bin/lcc64" -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2017a/sys/lcc64/lcc64/include64 -DMAT_FILE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=1 -DALLOCATIONFCN=0 -DONESTEPFCN=0 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DNI_ROOTMODEL_pemfc -DTID01EQ=1 -DMODEL=pemfc -DNUMST=2 -DNCSTATES=629 -DHAVESTDIO -DRT -DUSE_RTMODEL -IC:/Users/SEVEN/Desktop -IC:/Users/SEVEN/Desktop/pemfc_veristand_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -Fo"ni_modelframework.obj" "ni_modelframework.c"
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 7998 syntax error; found `*' expecting '}'
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 7998 skipping `*' `*' `*' `9' `>' `/' `S' `-' ...Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 8718 missing '
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 8718 missing '
up to `;'
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9029 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 Syntax error; missing semicolon before `-'
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 missing '
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 missing '
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 Syntax error; missing semicolon before ''
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9437 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 Syntax error; missing semicolon before `>'
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 skipping `>' `/'
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 Syntax error; missing semicolon before `-'
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 missing '
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 missing '
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 too many errors
gmake: *** [ni_modelframework.obj] Error 1
C:\Users\SEVEN\Desktop\pemfc_veristand_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\SEVEN\Desktop\pemfc_veristand_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
### Creating HTML report file pemfc_codegen_rpt.html
### Aborted due to an error in the build procedure for model: pemfc
Error:Error(s) encountered while building "pemfc":
### Failed to generate all binary outputs.

 

이게 어떤 문제인지 전혀 짐작이 안 되는데- 혹시 참고할 만한 부분이 있다면, 조언을 부탁드립니다!!

Viewing all 6527 articles
Browse latest View live


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