Problème en Message Popup sur Teststand
Bonjour
grâce a Message j ai crée une possibilité de faire un choix sur 5 éléments (foto ci_dessous) de telle sorte que lorsque si l on choisie par exemple Can1, seul Can1 doit être exécutée et pour obtenir ce résultat je devrai aller sur Propreties->expression -> Post expression pour écrire une condition comme quoi Locals.CanType déclaré est égal a l un des Buttons
dans un exemple de Teststand "computer6" j ai vue il on écris cette expression au niveau de Post expression
Locals.CPUType = ((Step.Result.ButtonHit == 2) ? "AMD" : "INTEL") << cette condition n est valable que pour 2 buttons>>
Le Problème est le suivant : comment puis je écrire une condition sur le Post expression valable pour 5 buttons c est a dire l on devra choisir entre CanX, Can1, Can2, Can3 ou Can4.
merci d avance
Pièces jointes :
1.PNG 20 KB
Bonjour,
J'aurais tendance à procéder en deux temps; en Post Expression, le vient copier la valeur de ButtonHit dans une variable locale :
Locals.PopupButtonHit = Step.Result.ButtonHit
...Puis, à l'aide d'un Switch Case, gérer l'attribution de la valeur de Locals.CPUType. Ceci dit, la valeur numérique de Locals.PopupButtonHit suffira peut-être à aiguiller dans le Switch Case l'appel de l'une ou l'autre des sous-séquence gérant respectivement Can1, Can2, etc...
Si c'est cette variable qui porte cet aiguillage, cela peut valoir le coup de la documenter à l'aide d'un commentaire du type "1 : CanX, 2 : Can1, ..." (quitte d'ailleurs à positionner le CanX en dernier, pour qu'à une valeur de ButtonHit corresponde un Can).
Cordialement,
.mrLeft{float:left} .mrInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898}
Mathieu R.
CTD - Certified TestStand Developer / Développeur TestStand Certifié
CLAD - Certified LabVIEW Associate Developer
Similar Messages
-
Can't edit the Message Popup in TestStand 3.5
I'm using TestStand 3.5/Labview 8, and when I inserted a Message Popup in my sequence, I found that I'm unable to edit it.
I started with a new sequence file, right click->Insert Step->Message Popup, then right clicked the message popup and select Edit Message Settings. I then get the following error (see err1.jpg attachment for actual error popup):
SeqEdit.exe
Error in call to LoadPanelEx.
Parent Panel Handle: 1
UIR File Name: editmsg.uir
Panel Resource ID: 1
hInstance: 0x597F0000, D:\...\TestStand 3.5\Components\NI\StepTypes\MsgBox\msgbox.dll
Error Code: -143
ActiveX control error
Then when I click OK in that error I get another error (see err2.jpg attachment for actual error popup):
Sequence Editor
Program Error.
Error Code: -17001
I verified that the msgbox.dll file exists, and from reading some posts on the forum thought it wasn't properly registered. When I tried to register it using regsvr32 I got the following message: "msgbox.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered." See err3.jpg attachement for actual error popup.
Any ideas what is going on here and what I need to do to correct it?
Thanks,
-Bill
Attachments:
err3.JPG 15 KB
err1.JPG 20 KB
err2.JPG 11 KBUnfortunately that didn't work. I went to Start->Programs->National Instruments->TestStand 3.5->Operator Interfaces->LabWindows-CVI and got the following error message:
Test Executive
Error in call to LoadPanelEx
Parent Panel Handle: 0
UIR File Name: TestExec.uir
Panel Resource ID: 4
Hinstance: 0x00400000, D:\...\OperatorInterfaces\NI\Full-Featured\CVI\TestExec.exe
Error Code: -143
Active X control error
The actual error window is attached. Looks like my installation has other problems? With the way our IT department operates, if there is a way to fix this without reinstalling, that would really be helpful... :-)
Attachments:
err4.JPG 20 KB -
Message Popup crashes TestStand
Hello,
Our sequence executes under TestStand 3.5 ; steps call dlls written with LabWindows/CVI 7.1.1.
Everything is going fine except some calls to the "Message Popup" step
of TestStand : sometimes TestStand crashes on such calls (we have to
stop it from Windows Task Manager). We have several "Message Popup" to
display during the sequence execution and we have noticed that the
application does not systematically crash on the same Message Popup
step.
The target computer is a PIV 3.2 HT with 1Gb RAM.
Does anybody have the same problem ?Hi,
We have installed CVI8.0.0.273 runtime engine and we still have crashes on some Message Popups in SeqEdit.
Here is a short description of the system : we have a PXI 1000B chassis connected to the computer with a PCI and a PXI MXI-3 (software v1.15).
PXI cards : 2 PXI CAN 8461/2 (one dedicated to DiagOnCAN and the other one for CAN), 1 PXI 6070E, 1 PXI 6713, 1 PXI 6704, 1 PXI GPIB. We also have 2 PCI cards : Addi-Data APCI 2032 which drive the relays of the system. We have installed DAQ-mx 8.0 (DAQ 7.4.0 is also used on the system for an other application, not with TestStand), NI-488.2 2.43 and NI-CAN 2.3.2.
Our application is multithreaded (3 threads + 1 main thread).
We have tried several solutions not to use the step "MessagePopup" of TestStand : we have created a specific step calling a CVI dll. In this dll we call the CVI MessagePopup function, but TestStand still crashes. Next we have tried to display a panel (created in a uir file) instead of the Popup but the problem is not solved (we tried several combinations of panel attributes).
In Windows TaskManager we see that the PIV 3.2GHz HT is never overloaded (CPU load = about 90%) and that there is enough memory available on the system.
If we try to run a sequence that creates 3 threads which process nothing (infinite loops), with no signals / CAN / instruments processing, we can't reproduce the crash caused by the Popups.
Do you have any suggestion about that ? -
Can't edit the message popup in teststand 4.2.1
Hi,
I installed the 2010 version of TestStand on my PC.
Everything has been fine until today.
Every time i try to edit a property loader I get the following error:
Error in cal to LoadPanelEx.
Parent Panel Handel: 0
UIR File Name: PropertyLoaderUI.uir
Panel Resource ID:3
hInstance: 0xZ
I click ok and a second window appears saying
File not found
Error -94
I rebooted the PC, tried a repair, checked the adapter and made sure the search directories covered the file PropertyLoaderUI.uir
Can anyone help with this?
Thanks,
SeanSean -
Have you moved the TSDBComponents.dll file from its original location? If so, have you also placed the PropertyLoaderUI.uir file in the same directory as the TSDBComponents.dll file?
You mentioned that the search directories cover PropertyLoaderUI.uir. If you were speaking of the TestStand search directories, this would not affect whether or not the PropertyLoaderUI.uir file is found.
From looking at the TSDBComponents.dll source code, it looks like we load the PropertyLoaderUI.uir file using just its name expecting it to be in the same directory as the TSDBComponents.dll file. CVI then searches for the file based on its search directories. In this case, it looks in the same directory as TSDBComponents.dll to find the UIR file.
If this is not the cause of the error you are encountering, please let me know and we can troubleshoot this further.
Hope this helps.
Manooch H.
National Instruments -
Bonjour,
Je souhaite créer un message Popup (sous TestStand) sans bouton.
Le but de ce message est uniquement une information à l'utilisateur lors de l'exécution de plusieurs thread.
Cette information indiquera à l'utilisateur que TestStand attend la fin de l'exécution de tous les thread avant de continuer. Aucune action utilisateur ne doit être possible pendant l'affichage de ce message Popup.
Merci d'avance pour votre aide.
CordialementBonjour ,
Est-ce que la boîte de dialogue ont besoin d'un délai d'attente ? Je ne pense pas que la boîte de message par défaut dans TestStand va accomplir cette tâche.
Je pense que vous devez le faire dans un module de code . Utilisez-vous LabVIEW ? Si oui, alors créer un VI qui apparaîtra et la temporisation après une si longue .
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~ -
Modal message popup hangs parallel model in Teststand 4?
Hi:
I'm having a problem using the 'Make Modal' option on message popups. It is hanging the user interface.
Here is what I've done:
* created a sequence with just a message popup in it (using Teststand 4.0 editor)
* set the popup to be modal
* set the sequence to use the parallel model
* recompiled Full Featured CVI User interface for teststand 4.0 (using CVI 8.0.1)
* run sequence in the recompiled user interface
* popup is displayed
* after acknowledging the popup, the popup and the user interface freeze
If I change the sequence to use the batch model, everything works.
If I don't recompile the user interface project that came with Teststand and just run the exe, everything works.
What am I missing? Sequence file attached.
Thanks,
Dave
Attachments:
modalpopup.seq 6 KBHi dseel,
After I copied over your version of modelsupport2.dll, I see the attached error message for every test socket, basically saying that TestStand can't find a certain function in modelsupport2.dll.
What modifications did you make to the dll?
One thing though, I notice the same error message even with the Simple OI... Where are you putting modelsupport2.dll? In the same folder as the CVI Executable, or in <TestStand>\Components\NI\Models\TestStandModels?
Jervin Justin
NI TestStand Product Manager
Attachments:
TSErrorMessage.jpg 56 KB -
Modal message popup is causing TestStand ActiveX error
When I execute a modal Message Popup step, I get the following error:
ActiveX Error
sCode = 0xffffbba4
Source: TSAPI
Description: Could not connect to TestStands TSSync server.
If the Message Popup is not modal, the sequence executes just fine.
I am making the Message Popup modal by selecting the "Make Modal" option.There is a call to TS_StartModalDialogEx function in the \API\CVI\tsutil.c file which in turn calls into the engine. The engine needs the sync server to implement the modality. I would assume that the file \bin\TSSync.dll is missing or not registered. You can register the dll by running "regsvr32.exe \bin\TSSync.dll". See if this fixes your problem.
Scott Richardson
National Instruments -
Bonjour, j'essaye d'installer i tunes mais le message d'erreur apparaît !:
"un problème s'est produit sur ce package windows installer. Un programme necessaire pour que cette installation puisse se terminer n'a pas pu être exécuté. Contacter votre servive support ou le distributeur package"
Pourriez vous m'aider? merciBonjour, j'essayerais d'utiliser le Adobe cleaner tool.
http://www.adobe.com/fr/support/contact/cscleanertool.html
ou de reinstaller le download assistant. (pour ajouter les fichiers manquants) -
TestStand 2.0でMessage popupに日本語を表示する方法について
いつもお世話様です。 TestStand Ver.2.0(English)で、Message Popup欄に日本語でのメッセージを表示する方法をご教授ください。 以前のW2Kでのシステムでは表示可能だったのですが、PCをW-XPへGrade upした際に表示できなくなりました(文字化け)。 よろしくお願いいたします。
この件はPCの言語設定により解決いたしました。 今後ともよろしくお願いいたします。 skktomi
-
Deal with teststand message popup
when I add a message popup in my sequence,I need two button: Ok(button1) and Cancel(Button2).and set timeout.
My question is like this; I need get the status when execute,if uesr click ok,the sequence should go to next step,the other stauts,the sequence should abort executing.
example:
Message Popup
if(RunState.Sequence.Main["Message Popup"].Button1Label=="OK")
call sequence //this action need execute when click "OK"
else
break //this is a action ,without any connection of message popup
end
but no matter what button I click ,the sequence always execute break,that's means the if condition can't get the status of message,where is my error.
any one help me ,thanks very muchduplicate post see the following link
http://forums.ni.com/ni/board/message?board.id=330&message.id=21602&jump=true
Regards
Ray Farmer -
My Message Popup is reported as:
Verify that the Installed memory (RAM) is 1.96 GB: Passed
Button Index: 1
What is the best way to prevent reporting the Button Index line?For your step in the sequence open Step.Result in Variables pane, right click on ButtonHit, select Advanced>Edit Flags and uncheck "Include in Report" property. It is checked by default for custom step types created as combined types with the Message Popup general type.
That should be done for all instances of these step. When I tried just to incheck the "Include in Report" property in my step type, somehow it is still checked for all newly created steps of this step type. Possible solutions (besides changing them all manually as I described above) are to modify them at drop time from OnNewStep custom substep or to create automated script and run it on your sequences after creation to modify the flag.
Let me know if you need help with these solutions.
Sergey Kolbunov
CLA, CTD -
How to open a message popup and keep the sequence running ?
I have some steps in my sequence to initialize communication ports that takes a few seconds. As i have the trace off i want to display a message popup to tell the user that the sequence is doing the init. After the init steps are done i want to close the popup out of the sequence without pressing any button.
Is there a possibility in TestStand to do this ?
The normal Message popup stays until a key is pressed and even pauses the sequence while active.
Thank for help.You could call your message popup in a subsequence as new execution and terminate this execution programmatically after your init steps have finished.
In order to do this you have to specify (module) the sequence call step that calls your subsequence:
-Multithreading and Remote Execution = Run in a New Execution
-Settings: Initally Hidden and Tracing disable, Restartable, Close Window when done, Wait for Execution to complete: Do not wait, Process Model Option: Do not use a Process Model
-Store an Object Reference to the New Execution in: e.g. Locals.ExecutionRef
After your Init steps you insert a ActvieX/COM Action Step that terminates the new execution:
-Object Reference: Locals.ExecutionRef
-Automation Server: NI TestStand API 3.1
-Object Class: Execution
-Call Method or Access Property: Call Method
-Method: Terminate
This will terminate your new execution showing the message popup. -
Control Buttons in message popup with Digital I/O
In my Test system the operator can use only the Start Stop Quit buttons on the Panel.
He aint have any mouse
That means I have to provide him wit all the control power thr' these 3 digital I/Ps
There are many message popups in the SequentialModel.seq file
The OPERATOR will respond to them with the 3 H/W buttons.
OK= Green
Terminate = Red
how can I assign my Buttons to all Popup messages on teststand Irrespective of their .(i.e handling them Individually)My plan is to control the whole testsystem, with Hardware buttons (On off S/Ws for Operator) (operator wont be using mouse- it takes timeto scroll & prod is slow).
The H/W buttons r read thr Labview. The file is a member function of the class that I call In teststand seq.
I am trying to read and respond to Teststand dialogues thr' the Operator Interface using these 3 buttons -
Excel 2007 Not allowing message popup when double clicking
Hello,
We have recently upgraded to Office 2007 and are using IP workbooks. When a user gets the "messages available; double click to display" the message box is not popping up. Does anyone know how to fix this issue? Not sure if it is an excel issue or a BEx issue.
Thanks,
CherieSAP Note 1299828 mentions that it has been fixed with BI Addon Support Package 9.
SAP Note 1294382 - SAPBINews NW7.0 BI Add-On Frontend SP900 - GUI 7.10 says:
Fixed in Bex Analyzer: "Message popup is not shown on double click in Excel 2007. Please read note 1299828."
I have it installed now but it does NOT work either (for me)!
At least in the global settings the option automatically popup messages works. Each action brings up the messages then.
Cheers,
Lars -
Message popup timeout - time left
Can we get from the sequence context the time left (or time elapsed) of a timeout enabled message popup.
For example,
If the message popup is set to timeout after 120 sec and the operator responded when there are 50sec left for the step to timeout,
does any built-in variable have the value 50 (seconds left) or 70 (seconds elapsed)?
I know there are workarounds like calling Seconds() function in pre- and post-expressions and taking the difference but I wonder if it is already implemented or not.
Thanks.
S. Eren BALCI
www.aselsan.com.trThis information is not stored in the step properties. It is possible to change the step type to get this information. The source code for MessagePopup is included with TestStand at <TestStand>/Components/NI/StepTypes/MsgBox/ if you have Labwindows/CVI.
Your suggestion of using Seconds() is much easier to implement and be accurate enough for your use cases.
Allen P.
NI
Maybe you are looking for
-
After trying to updat from 4.0 RC2 to 5.0.1 Error message appears error: Platform version '2.0.1' is not compatible with min version >=5.0 <=5.0. Have uninstalled and tried to re install earlier version but now get same error message but now get is n
-
<pre><nowiki>Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@adobe.com/FlashPlayer] "Path"="C:\\windows\\system32\\Macromed\\Flash\\NPSWF64_11_1_102.dll" "ProductName"="Adobe Flash Player 10.1 Plugin" "Vendor"="Adobe
-
Very freaky, image in browser is not what's displayed
I was planning on doing a little organization in Aperture, and it seemed images were out of place, as not in the right album. Then clicking on image in browser to move it, discovered it's not the same displayed is really weird. I quit the application
-
Do i have to login as orcladmin to Create New Groups
Do i have to login as orcladmin to Create New Groups and users... because I am unable to add members to the new groups i am trying to create.
-
Calendar app eating up my mobile data
Since upgrading to an iPhone 5S with iOS7 I've regularly used up my mobile data allowance of 750 MB by the mid of the month. Almost never ran into that problem with my iPhone 3GS and iOS6. I've checked mobile data usage in the settings and apparently