Modifying parallel dialog

I hope someone can help a poor LabVIEW programmer. I'm running a TestStand 2.01 sequence with the parallel model. I already modified modelsupport.dll to display up to 10 sockets by changing modelpanels.uir and paralleluutdlg.c. Now I need to add a new text control for additional user entry before the sequence runs. I added the control, created the callback, and made some more changes to paralleluutdlg.c. Basically, what I want is after a serial number is entered, to go to new control and when a value is entered there, run. The problem is that when I run seqedit.exe from CVI, I get
NON-FATAL RUN_TIME ERROR
"paralleluutdlg.c",line 271, col 5, thread id 0x000000414
Library function error (return value==-64(0xffffffc0))
The value passed is not a valid control mode for this control
This happens right after the RunUserInterface function is called in the RunParallelUUTDialog function of the DLL. When this happens, I cannot click the OK button to start the sequence. The display for the first socket shows correctly but the information for the other sockets is just displaying the Initializing mode. I've tried several things including commentating out the callback and most of the other changes I made but the problem is still there. I've attached a file with the files in the CVI project. Any help given will be greatly appreciated.
Attachments:
modelsupport2.zip ‏90 KB

I have a couple.
First, try changing using VAL_HOT in place of VAL_NORMAL when setting the control mode of the new string control. The following lines had been setting the control mode to normal:
Line 639:
FWCtrlMode = VAL_HOT;
Line 1240:
errChk( SetCtrlAttribute (panel, testSocketData->ctrls[kTSCtrl_FW],
                        ATTR_CTRL_MODE, VAL_HOT));
The next idea probably won’t make a difference, and it’s worth a shot. Try adding a line, to the initialize ctrls section of the MakeNewTestSocketCtrls function, to set the value of the new string control. That is, starting at line 352:
// initialize ctrls
sprintf(tmpNumBuf, "%d", testSocketIndex + 1);
errChk( SetCtrlVal (childPanel, newTestSocket->ctrls[kTSCtrl_TestSocketIndex],tmpNumBuf));
errChk( RecessFrame(childPanel, newTestSocket->ctrls[kTSCtrl_SerialNum]));
errChk( SetCtrlVal (childPanel, newTestSocket->ctrls[kTSCtrl_FW],""));
errChk( RecessFrame(childPanel, newTestSocket->ctrls[kTSCtrl_FW]));
I hope this helps.
Regards,
Eric M
Message Edited by Eric M on 07-19-2005 07:49 AM

Similar Messages

  • Why is OK disabled in the debugger's Modify Value dialog?

    Hi,
    For some reason OK disabled in the debugger's Modify Value dialog. Nothing that I have seen so far explains why this would happen. The variable stores an oracle.jbo.domain.Date, and the ADF source library was imported into the project.
    Ideas?
    James

    Hi Timo,
    You mentioned "tore" twice in your post, but I do know what that is. So, are you saying that if int or String was the type it would behave differently?
    James

  • How can i reverse the function of the curves in the modify curves dialog

    in much older version of PS, there was a little set of arrows to reverse the function of the curves in the modify curves dialog. i miss this greatly, since I've been using them opposite from the standard direction for over 20 years.
    Any way to switch this in CC?'

  • Modify Calendar Dialog in OIM 9.1.0

    Hi everyone,
    When I do a request for role assigning in OIM 10g, I see a Calendar Dialog.
    This calendar dialog is a general calendar dialog.
    But I want to modify this calendar or I want to create a new calendar dialog.
    Because I want to do a calendar which has a date which is after six months from this time.
    under ......./xlWebApp.war/cabo/jsps
    calendarDialog.jsp
    a.jsp
    frameRedirect.jsp
    fred.jsp
    How can I modify this calendar dialog ?
    How can I reach this standart calendar dialog?
    Thanks.
    Regards.
    Edited by: Huseyin Igde on Jul 25, 2012 1:53 AM

    Can you check whether path variables is set in your system under System Variables like Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;

  • HELP! Modify SAVE dialog file format options?

    Can someone please tell me how to modify the options in the save dialog?
    Every time I save a file and have to choose the file type, I have to scroll through obscure and obsolete file types. Sure, I might need someday to save Scitex CT, or Photoshop DCS, but the chances are very slim. Some people surely use PIXAR and TARGA, but I don't. What the hell is an IFF? If I ever need a Portable Bit Map (really?) file it would be great if I could find it in a user defineable option pull down. I can pretty well guarantee that the file types I need are PSD, TIFF, JPEG, PDF, PNG and once in a blue moon, GIF.
    Sure, this is a minor thing, but after years of saving thousands upon thousands of files its like being pecked to death by ducks.
    Thanks.
    Craig

    craig cheatham wrote:
    it's like being pecked to death by ducks.
    I wonder how many folks know what that really feels like...
    Do I really need to insert a smiley? 
    -Noel

  • Modify a dialog screen status and catch an action from it

    Hi all,
    my program makes some write and generate a dialog screen,
    making /system /status i get to know that that dialog is generated by program SAPMSSY0 with status STLI.
    i need to put a BUTTON in that status and that button must be clickable and when i click it i have to visualize another screen!
    how can i add a button in an automatic generated dialog and how can i intercept the action of clicking that button?
    thank you very much,
    Giacomo
    Edited by: Giacomo Cipriani on Feb 11, 2009 12:43 PM

    any advice?

  • Altering the appearance of Parallel UUT Dialog

    Hi all
    I was hoping someone might be able to help answer a TestStand related question. I am in the process of putting together an ATE system. For simplicity and speed of implementation we have decided to use the unmodified parallel process model with callbacks. The system will test up to 3 different types of UUT’s in parallel.
    Depending on a user selection (made in the ProcessSetup callback) any combination of the 3 UUT types could be selected to run.
    The system functions perfectly but we were hoping there was a simple way of altering the Parallel UUT Dialog to make the final application more intuitive.
    Would any of the following be possible without the need to alter Modelsupport2.dll??
    Alter the test socket label from 0,1 or 2 to text that would reflect the UUT type being tested in each socket?
     Alter the Status Message to reflect the UUT type being tested?
    Any other suggestions.
    I am running under windows XP, the version of TestStand in use is 3.5. I am programming with LabVIEW 7.1 I have no experience with C,  hence altering the Modelsupport2.dll is not a realistic option.
    If anyone has any suggestion of how I could make my application more intuitive please respond.
    T.I.A
    Declan
    Attachments:
    Parallel UUT Dialog.JPG ‏46 KB

    Ray is correct that the changes to modelsupport2 are fairly simple but you would need to buy CVI in order to do this. I have made some of the same changes. I do almost all of my work in LabVIEW but I also have a CVI license so it was no big deal to me. You could consider writing your own parallel dialog in LabVIEW. For the batch model, I needed a different serial number entry and I wrote that in LabVIEW. It was not an entire replacement of modelsupport2. I just did a custom serial number entry VI and a custom results display VI and put them in the PreBatch and PostBatch callbacks. This was all pretty simple and the parallel mode would be more difficult but it could be done.

  • How to create parallel tasks using parallel for loops

    Hi,
    I am setting up a program that communicates with six logic controllers and has to read the system status every 100 ms. We are using OPC datasockets for this, and they appear a little slow. 
    I have created a uniform comm. method for all controllers, and now I find myself programming this method six times to communicate with each system. I am wondering if this could be done more elegant using the parallel for loop, in which case I would program an exchange once and then have six workers running simultaneously. Since a picture is more clear that a thousand words, what I am asking is this:
    Is it possible to replace something like
    by
    and have this for loop running these tasks in parallel (on different cores / in different threads)?
    I have configured the loop to create 8 instances at compile, so I would have 2 instances surplus available at runtime if I find I need an additional system.
    The benefits of the method show in the second picture to me are:
    * takes less space
    * modifications have to be made only once
    * less blocks, wires and stuff makes it more clear what's going on.
    * flexibility in the actual number of tasks running (8 instances available at runtime)
    * if more tasks are required, I need only to update the maximum number of instances and recompile, i.e. no cutting and pasting required. 
    Unfortunately, I don't have those system available yet, so there's no way to test this. Yet, I would like to know if the above works as I expect - unfortunately the labview help is not completely clear to me on this.
    Best regards,
    Frans 
    Solved!
    Go to Solution.

    Dear mfletcher,
    First of all: thanks for confirming that my intuition was right in this case.
    As for your question on the help: below is a copy/paste from the help on the 'configure parallelism dialog box' 
    Number of generated parallel loop instances—Determines the number of For Loop instances LabVIEW generates at compile time. The Number of generated parallel loop instances should equal the number of logical processors on which you expect the VI to execute. If you plan to distribute the VI to multiple computers, Number of generated parallel loop instances should equal the maximum number of logical processors you expect any of those computers to ever contain. Use the parallel instances terminal on the For Loop to specify how many of the generated instances to use at run time. If you wire a larger number to the parallel instances terminal than you specify in this dialog box, LabVIEW only executes as many loop instances as you specify here.The reason for me doubting if what I programmed would work the way I intended lies in the fact that the help only mentions processors here, which would be interpreted as actual cores. Thus on a dual core machine, the number should be 2.
    I think it would be helpful to mention something about threads here, because in some case one would like to have more parallel threads than there are cores in a system.
    In mu case I would like to create six threads, which on my dual core processor would be spread over only two cores. Then these six threads run in parallel.I know that in case of heavy math that would not help, but since I am doing communications, which have timeouts and such, and that probably runs smoother in six parallel tasks even though I only have two cores. 
    Hope this helps in improving the help of the for loop.
    Regards,
    Frans 

  • Modify layout of a popup screen

    Hi Experts,
      I need a modify a dialog screen( screen built using screen painter) in which data is displayed using table control.
    Since all the of columns in the table control is not visible in the popup and the user needs to scroll if he/she wants to see other columns, my client wants to add 'Layout' button to the popup screen and this should work similar to the layout option that come by default in ALV display.
    My question is, is it possible to provide such an option in dialog screen? if Yes, then please let me know how this can be achieved.
    Thanks in advance..
    Regards
    Balu

    I don't know of a way to get the same layout functionality you get with the ALV display but there is a configuration button which is accessible for every table control you create in your dialog program.
    The button (on my SAP GUI) looks like three little vertical bars that look similar to a very small table grid (the top is blue and the first column looks like it is yellow while the other two little bars look like they're white).
    It is located in the upper right-hand corner of every table control when you run your program.
    If you click on this configuration button the user will be able to configure the table columns for their individual needs.  This is functionality that SAP provides by default.  When you click on the configuration button there is an information button (indicated by an "i") which will give you more information about how to use this layout configuration tool.
    I hope this helps.  Perhaps it will suffice for your needs with this request.

  • Dynamically set number of sockets in parallel mode

    I am new to teststand (been programing LabVIEW for a long time)
    I know this is do-able but not sure where to implement it - hoping for an example.
    Before the 'Test UUTs' entry point I would like a message popup;
    - based on the user button pressed I would like to set the number of sockets to either 3 or one (three sockets when running in auto mode, one socket if running in manual mode) all within Parallel model (can't change models on the fly)
    ideally I would like the entire thing encased in a loop that would ask "auto, manual, exit" so that a manual session could be run, and at the completion one or more sessions in auto mode before exiting.
    SO WITHIN EITHER A MANUAL OR AUTO SESSION 'NEXT UUT' WOULD STILL BE AVAILABLE, and after exiting from next uut the outer loop would still allow switching session modes
    the loop would need to be right up front so the number of sockets could be set before the mode options are loaded.
    if there is an example of a modified parallel process model that has similar mods, I would be very gratefull,
    thanx
    lmd2
    ALE System Integration
    Lawrence M. David Jr.
    Certified LabVIEW Architect
    cell: 516.819.9711
    http://www.aleconsultants.com
    [email protected]

    Hi lmd2,
    Attached is a quick example of one way to do what you are asking. This is only a general example, and there may be a bettter implementation depending on the architecture of your application.  The link here also has information on setting the number of sockets for a specific sequence file. Hope this helps.
    Regards,
    Ebele O.
    National Instruments
    Attachments:
    ParallelModel.seq ‏455 KB

  • Feature Suggestion for Keyboard System Preferences - Modifier Keys

    I recently picked up an iMac and it came with the new low-profile aluminum small keyboard -- without the keypad.
    I really like the small keyboard except for one thing -- the placement of the fn and control keys. The larger keyboard has three modifier keys on the left side: Control, Option, Command. The small keyboard has four: fn, Control, Option, Command.
    It is annoying to switch between keyboards where the control key is in a different spot on each one. Retraining my finger on a per-keyboard basis is hard.
    Apple thoughtfully provided in System Preferences a Keyboard control panel and it thoughtfully provided a "Modifier Keys..." popup to allow you to reassign the modifer keys. A great feature.
    The problem is: you can't use this to modify the behavior of the 'fn' key. It is apparently hardcoded.
    If I could use the modifier keys dialog to change the 'fn' into a 'Control', then I could use this keyboard without swearing everytime I miss the control key.
    Another feature that would be great would be if I could also have different bindings for the modifers on the left side versus the modifiers on the right. That would allow me to reassign one of the right side modifier keys (that I never use) to be an 'fn' key.

    I'm in the exact same boat as you...that Fn key is driving me nuts. I tried DoubleCommand and some other things as well, but the only thing that's coming close to what I want is a free download called "KeyRemap4MacBook."
    Just go under the "Remap Fn Key" section and you can basically have it act as the Command key. (I actually always had my Command and Control keys swapped, so now both the Fn and Control keys now essentially act as the Command key.)
    There are a few quirks I haven't figured out -- I can't seem to do Forward Delete -- but again, it's the only thing I've found so far that works.

  • How do I automate parallel process model?

    Hello,
    I need to modify parallel process model so it runs in automated mode. The serial number will come from a serial bar code reader and the operator does not have to press OK on the operator screen. How can I do it?
    Thanks
    CT.

    Either you can write your own preUUT callback sequence or you can modify modelsupport2.dll which provides the standard serialnumber input panel. You can find the source code for modelsupport2.dll in <teststand directory>/Components\Models\TestStandModels.

  • Set Windows XP Default File Dialog Directory

    Anyone know how to set the default directory that shows when a file dialog box is opened in Windows XP? I am using a subVI from the NI website that allows multiple files to be selected from a file dialog box, BUT there is no start directory input into the VI, and the VI is based on DLL calls for which the code was not provided. Ideally I was hoping I could set the default directory for XP in Labview, so that each time this Select Multiple Files subVI is called I can read the directory of the files selected, then set the default directory to that directory, so it is updated every time.
    Michael

    I have tried implementing the SetCurrentDirectory but it doesn't seem to work as wanted. I run the Select Multiple Files VI, and take the first file, strip the path of the file, and call the kernel32.dll to SetCurrentDirectory. If you select more than one file, the Open File dialog box will not default to that directory the next time you run the program.
    I read on msdn2 (http://msdn2.microsoft.com/en-us/library/ms646839.​aspx) about OPENFILENAME struct, and how it is used to determine the initial directory for an open file dialog box, but I'm not sure how to access that struct. Maybe this is what I need to change, or maybe I have to use the SetCurrentDirectory somehow in conjuction with the other DLL call (which I don't know how to do since I don't have the code for it). Any ideas?
    I don't have experience with .llb's, so I'm having a problem attaching. I've attached the modified File Dialog (Windows API) VI, the rest of the files can be found at http://zone.ni.com/devzone/cda/epd/p/id/4737
    Michael
    Message Edited by miguelc on 03-21-2007 01:22 PM
    Attachments:
    File Dialog (Windows API).vi ‏39 KB

  • Possible to modify the message clients receive when updates are ready to install?

    An upper-up wants the message clients see when updates are ready for installation changed. They want the "Software changes must be applied to your computer after [date]" changed to something else. Is this possible? (See the image below)

    No, there is no supported way to modify this dialog box.  If you submit feedback on Connect and post a link here, I'd definitely vote it up.
    http://myitforum.com/myitforumwp/2013/12/02/giving-feedback-on-microsoft-connect-for-configmgr-2012-help-yourself-help-the-community/
    Nash
    Nash Pherson, Senior Systems Consultant
    Now Micro -
    My Blog Posts
    If you've found a bug or want the product worked differently,
    share your feedback.
    <-- If this post was helpful, please click "Vote as Helpful".

  • Multiple TaskFlow run as Dialog issue

    Hi,
    I am openning multiple taskflow as a dialog box or popup .On Click of button, I am getting one taskflow with pages as a dialog successfully but in that taskflow , one more button is there. On click of that button ,I am openning second taskflow with pages as a Dialog box is successfully. but problem is that on this time, second taskflow is openning inside First taskflow (like parent-child ). I want to open second taskflow seperately . Please help ASAP......

    Hi,
    giving that task flow calls a sequential you don't get two task flows open in parallel dialogs
    Frank

Maybe you are looking for