Using Set Cursor Busy in Veristand Custom Device Page

I am writing a Custom Device in Veristand and tried using the Set Busy vi to disable the cursor while I am doing some tasks on a System Explorer page.  It seems like the Set and Unset Busy vi do not work inside of the System Explorer environment.  I see that NI provides a way to release the cursor with the Veristand API but I do not see a way to set it busy with in the API.
Am I correct in saying these cursor VIs don't work the way they would in a normal application? Or is there a work around here that I am missing?
Thanks.
Rob
Solved!
Go to Solution.

Hello,
The idea is good, it works for me if you open a reference to System Explorer.lvlibystem Explorer.vi (VeriStand 2012) :
Best regards,
.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

  • How to use SET CURSOR in REUSE_ALV_HIERSEQ_LIST_DISPLAY

    Hi,
    I have added new fields in Standard VL10C ALV report , I have added one editable field in this standard ALV output.
    I want to set the cursor by default on the editable column on the specific row depending on some condition also if possible
    i want to highlight only that particular row.
    Please reply if anybody knows how to do this.
    Thanks,
    Pawan

    Hİ Pawan
    You can see the list of events supported by reusable alv with function REUSE_ALV_EVENTS_GET
    when I run this function in se37 I see the some events maybe helpful for your question
    PF_STATUS_SET : this has to be called from PBO of your screen, so you can try to use SET CURSOR
    command to put cursor on the selected field
    BEFORE_LINE_OUTPUT : It's called before the output of every single line so you should use command
    "FORMAT COLOR COL_POSITIVE INTENSIFIED ON.  "for highlighting the line
    AFTER_LINE_OUTPUT : than u can use "FORMAT COLOR COL_POSITIVE INTENSIFIED OFF." command
    I hope it'll be helpful.

  • Using SET CURSOR

    Hi, I am trying to set the cursor so it always appears in an input field on my screen.  The screen itself contains some input fields at the top of the screen, and then an ALV grid on the bottom half.  The transaction then transfers values from the input fields to the ALV grid, but after each update I want the cursor to return to the first input field.  But this doesn't seem to work consistently.
    In the screens PBO I use SET CURSOR FIELD ekpo-matnr
    And in the PBO I am doing the same.
    But with no joy.

    Hi
    I think you should pass the vales in Single Quotes
    SET CURSOR FIELD 'field name'.
    where field name is the name of the screen field.
    Thanks!
    Rahul

  • Calling Main and Extra Pages of Custom Device(s) from LabVIEW

    Hi,
    I am currently evaluating VeriStand (VeriStand 2011) and its control from LabVIEW using .NET APIs.
    I am trying to use LabVIEW to add and configure custom devices for a given system definition file.
    For that I am using a subpanel, the same way it is done in the System Explorer.
    It is almost working.
    I only get errors from VIs that are dynamically called from the Custom Devices API. These VI's are part of an lvlib which is called "Custom Devices Storage.lvlib".
    I can't find this lvlib on my Computer. So, I guess, this error is normal. The only way to get rid of this error would be to load this lvlib in memory, but how ?
    An example of a dynamically loaded VI from the Custom Device API :
    If I can't configure a Custom Device inside my own Human Man Interface, there is no way I use VeriStand in the future. I don't wan't an operator or an administrator to open the System Explorer and change anything else than Custom Devices that may change in several of our test benches.
    Is there a way to do that or should I throw VeriStand to the trashcan ?
    Thanks in advance for your answer(s).
    Regards,
     

    Hi DaHelmut,
    First of all, I apologize for the lack of applicable replies. What you're attempting isn't something we usually encounter so our team didn't quite understand.
    I'll restate what you want to make sure its clear: You want to make your own version of system explorer fir your team to edit system definitions with. You also want it to support configuring custom devices. Therefore, you need custom devices to work inside your system explorer just like they do inside the shipping system explorer.
    This is technically possible, and I will help you accomplish this with some advice, however I have never seen this done before so it might take us a while to figure out all the issues. Typically people developing a custom GUI for a test bench just use the system definition API directly instead of using custom device's as-is... which is more difficult, and I agree your approach is better if it works. However, most test benches have a known set of custom devices (maybe just XCP/CCP and scan engine) so they only need to use the system definition API for maybe a few custom devices... not any device.
    First things I should mention:
    Editing a system definition, either through your custom gui and therefore through the system definition API, or through the system explorer... always requires a PC or Full development license. An operator licenses will never be able to edit system definitions no matter what.
    There is a set of VIs provided by the ECUMC toolkit to add/remove/edit system definitions with the XCP/CCP custom device. You would have to put your own GUI on top, but the VIs are installed here: <\LabVIEW>\vi.lib\ECUMC\NIVS
    I have an unreleased set of VIs that do the same thing for the scan engine and ethercat custom device I can provide
    If you still want to create your own system explorer thats capable of loading and configuring any custom device, here are some suggestions:
    Custom devices are built into LLBs that include all of their dependencies, so they can be loaded by the LabVIEW run time engine. If you create a VI that loads custom device's, you should be careful to avoid cross linking corrupting your development system or your custom device's. For example your system explorer might use "Get File Extension.vi" from vi.lib, but the custom device you're loading might also use this VI and therefore its linked to a copy inside its LLB. You will know when cross linking happens when the LabVIEW load warning dialog appears saying "vi X loaded vi Y from Z instead of A". If that happens, do not save. To avoid this entirely, it might be easiest to test your system explorer only as a compiled exe.
    As you saw, some custom device API VIs used by custom device developers make dynamic VI calls to an in-memory library named "Custom Device Storage.lvlib". Since this library is part of the shipping system explorer.exe source, these dynamic calls will error when not run inside the shipping system explorer.exe. There are two types that must be handled separately.
    Some custom device APIs like "NI VeriStand - Signal When Ready for Shutdown.vi" just make this dynamic call, and will simply return an error. These are mostly system explorer GUI specific custom device APIs. To avoid this error, you must create and bring this VI into memory yourself. So create that library and the stub VIs you need, then place static VI references to those stub VIs on your custom system explorer's block diagram. That will bring them into memory so when the custom device VIs try to dynamically call them, it will not error.
    Most custom device APIs like "NI VeriStand - Get Item Description.vi" make the dynamic call and instead of simply erroring, they will instead catch the error and switch to using a .NET implementation of the API call. I advise looking at the block diagram of this VI and then the corresponding offline API VIs to better understand this redirect system. Unfortunately, this redirection gets the offline API VI path relative to vi.lib which doesn't exist for exe's. So when you build your custom system explorer into an exe, you will need to place the "NI VeriStand\Custom Device Offline API" folder adjacent to the exe with these VIs for them to be found because the "vi library" primitive returns the exe's directory when inside an exe
    Let me know if that helps or if you have questions.
     

  • Set cursor on screen

    hi,
    i want to set cursor on screen field. i used SET CURSOR FIELD field_name command on PBO ,but it is not working. if any body has solution then please reply me....
    Thanks
    Regards
    Rakesh

    Hi
    Check Rich Heilman's reply for code sample in the thread:-
    Re: Cursor setting in Screen fields
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • Set Cursor in Report Program

    Hi,
      I am doing a report program. After display the report i am coming down.
      For a particular position I have to click which will open a screen.
      But when I close screen then my cursor position is coming to beginning.
      Plz help me.
    Thanks,
    Sunil Sahoo

    Hi,
    why dont you use set cursor to set the position in the screen in at selection-screen output.

  • Hi friends i have doubt on set cursor.

    i am using dialog programming. here in the first text field i am auto generating the number, so user should only suppose to enter the values for other repective fields only.but in execution the cursor is positioning at the first field. it should start from the second and so on.
    i tried using SET CURSOR FIELD F2. but tbe result is same. please provide me guidence on this.

    Hi,
    In the PBO of the dialog module,write the following code :
    SET CURSOR FIELD `FIELD2`.
    Remember the FIELD2 is the name assigned to the textbox of the screen.
    Best regards,
    Prashant
    PS : Please reward all helpful answers

  • How to SET CURSOR FIELD my_field in my_REPORT_PROG.?

    Hi Experts,
    If the user do not enter a value in one field( NOT mandatory field) on the selection screen of my_report_prog. I wanna,
    1- To throw message - am getting by throwing as STATUS message
    2 - wanna keep CURSOR on that particlar field in order to input the value by the user - am using SET CURSOR FILED my_filed----
    > but NOT working????????
    So, pls. let me know that How to get it done?
    thanq

    hi,
    try the following code.you will get the cursor in the same field if you use status message or information message.
    selection-screen:begin of block b with frame title text-001.
    parameters:a type i.
    selection-screen:end of block b.
    at selection-screen.
    if a <> 3.
    message s000(0) with 'hi this is chaitu'.
    endif.
    after showing the message the cursor is at a.
    please rewards points if useful.

  • Setting Cursor

    Hi ,
    i have a requirement here,actually in one of the UI Screens we have a waherhouse number and than multiple task can be entered in the boxes below ,now my requirement is when ever the user presses enter the cursor should be positioned at the first empty screen,but every time the cursor goes to the warehouse number ,i have tried using set cursor field syntax in the PBO event ,though the sy-subrc retrns 0 still the cursor is not psitioned to teh next input field .
    Appreciate your help on this.
    Cheers
    LK

    hi,
    Have you checked this demo program
    DEMO_DYNPRO_SET_CURSOR

  • Setting Cursor in ME53N !

    Hi there,
    I have a problem regarding ME53N. Purchase Requisitions.
    I inserted a new message type E, and I want to set the cursor on a certain field, when that message pops in.
    How can I do that?
    Please help.
    Thanks a lot.

    I will explain further my problem, because I was a little bit shortly in my issue exposure.
    I implemented a BADI  -- ME_PROCESS_REQ_CUST and the method PROCESS_ACCOUNT.
    At one point in ME53N, with the fields Material Group & G/L Account NOT SET, the SAP System give 1st the "Enter G/L Account" error message and 2nd "Enter Material Group" error message.
    The client request was to switch the messages, so 1st "Enter Material Group" and 2nd the "Enter G/L Account", because I had to automatically determine G/L Accounts based on Material Group.
    Anyway, I solved this by coding at some point in  PROCESS_ACCOUNT method the following:
    CALL METHOD cl_message_handler_mm=>get_handler
            IMPORTING
              ex_handler = lref_msg.
    CALL METHOD lref_msg->remove_all.
    mmpur_message_force  'E' 'ME'  '083' text-003 '' '' ''.
    Now, the problem was solved, first the system gives  "Enter Material Group" message first, but the cursor is not positioned on MATKL field.
    I try to add before  mmpur_message_force  'E' 'ME'  '083' text-003 '' '' ''.  this:
    mmpur_metafield mmmfd_mat_grp BUT NOTHING HAPPENS
    I cannot use SET CURSOR in implementation.
    Please help,
    Thanks a lot.
    Edited by: bogysan on Jun 30, 2011 10:38 AM

  • Using PowerShell to set Custom Access Rights on a Calendar Does not set Free/Busy Permissions

    We recently discovered an issue where, if you use Exchange Management Shell to configure custom access rights, the Free/Busy permissions do not get set at all (they remain as "None"):
    $temp = [Microsoft.Exchange.Management.StoreTasks.MailboxFolderAccessRight[]]("ReadItems","EditOwnedItems","DeleteOwnedItems","EditAllItems","DeleteAllItems","FolderVisible")
    Add-MailboxFolderPermission -Identity "conf-company-test:\calendar" -User "Company Calendar Management" -AccessRights $temp
    Add-MailboxFolderPermission -Identity "conf-company-test:\calendar" -User "mpinkston" -AccessRights Editor
    If you use a pre-defined "role" such as Editor given to mpinkston6 in the above example it sets the Free/Busy permission to Full Details. It would appear that using Add-MailboxFolderPermission or Set-MailboxFolderPermission is generic for folder
    objects, and doesn't explicitly set the Free/Busy permissions. In the case of the pre-defined roles either the command is doing something special/different, or the permission checks later accept pre-defined roles for determining Free/Busy permissions. No idea
    which is going on. If Free/Busy permissions can be fixed through PowerShell by some other mechanism/command, that would be great. If not, how do we go about requesting a fix/feature change in Exchange?
    http://technet.microsoft.com/en-us/library/dd298062%28v=exchg.150%29.aspx
    (Please expand Parameters and read AccessRights to get a better understanding for what I'm describing.)

    Did you try adding AvailabilityOnly or LimitedDetails in your $temp variable for Calendar folder? These would set it to "Free/Busy time, subject, location" or "Free/Busy time" respectively....
    Add-MailboxFolderPermission - http://technet.microsoft.com/en-us/library/dd298062(v=exchg.150).aspx
    The following roles apply specifically to calendar folders:
    AvailabilityOnly   View only availability data
    LimitedDetails   View availability data with subject and location
    Amit Tank | Exchange - MVP | Blog:
    exchangeshare.wordpress.com 

  • Custom device / I am trying to use a vehicle controller model developed in LabVIEW with compactRIO (cRIO-9024)

    Now I have developed a vehile controller model with LabVIEW so as to run on VxWorks operating system. ( compactRIO cRIO-9024)
    And I converted a controller model of labview into *.lvmodel in order to use it as I did with simulink models. 
    However, converted *.lvmodel was not supported for VxWorks operating system. so after searching for this, I found out that I have to use a custom device. 
    I am now studying the custom device, but it looks diffcult because I dont have much experience in real-time system.
    Here are my questions.
    1. Simulation model in VeriStand
    Should I convert a labview controller model into *.lvmodel even if I use the custom device in order to run on VxWorks operating system? 
    If not, what should I do after building a controller model with labview?
    2. Operating system
    It is silly question. anyway, as long as I run a controller model on compactRIO cRIO-9024, the operating system always has to be set to VxWorks. Is it right?
    3. Custom device
    This is the most difficult thing. I dont know even what to do. What functions should be inside a custom device template tool? The controller model send output signals to a vehicle model, and receive input signals from a vehicle model.
    Thank you in advance. 
    Hognjun

    Hi,
    You should post this on the Veristand Forum.
    http://forums.ni.com/t5/NI-VeriStand/bd-p/440
    Ravi

  • It seems like outputs don't respond to inputs / cRIO-9024, custom device, NI VeriStand, ControlDesk of dSPACE

    Hello
    I am now working on running a labview controller on VxWorks RTOS, and then this labview controller is integrated with a vehicle plant model in ControlDesk of dSPACE through CAN (cRIO-9113). 
    I have two models as below:
    1. vehicle cruise controller written in labview using the Control and Simulation loop of labview
    2. custom device project
       : LabVIEW model is not supported for VxWorks RTOS, so it is necessary to interface between labview model and compactRIO. 
       This custom device project is set to Asynchronous execution mode and labview model was integrated into <custom device name> RT Driver VI.vi. 
    Anyway, I successfully built a custom device project and deployed to the target, and seems like there is no problem to integrate with a plant model in ControlDesk of dSPACE. (I can see the green light blinking on CRIO-9113, CAN module)
    The problem is that signals from input are not delivered to ouput. 
    As seen below, I just put a laview model into <custom device name> RT Driver VI.
    In order to synchronize time between Timed loop and Control and Simulation loop, Device Clock is connected to two loops.
    Besides, local variables are used to share inputs and outputs. 
    Inputs were not delivered to outputs even when labview controller was an empty loop as below.
    When I manipulated signals at ControlDesk of dSPACE, I saw values in input channels of workspace of veristand changing as I expected, but output didn't change. 
    How can I solve this? shoudl I add some functions into labview code? 
    Besides, when Device Clock is connected to the Control and Simulation loop, should I place a checkmark to 'Synchronize loop to Timing source?
    Thank you 

    Hi Joe,
    You are correct I would definitely begin by looking at the custom device template and the current custom devices (you can download them and open the source code to see a good starting point for how to start)
    However it may be easier to just make a model that has a configurable trigger lines that controls the DAQ device and then use the Stimulus Profile to log the data whenever you want.
    If you decide to go the custom device way here are some good starting points:
    http://www.ni.com/white-paper/9348/en
    http://www.ni.com/white-paper/13604/en
    http://www.ni.com/white-paper/9349/en
    https://decibel.ni.com/content/docs/DOC-9891
    Sam S
    Applications Engineer
    National Instruments

  • Set the cursor busy steered by supanel vi

    I let run a vi and there is a subpanel. Is there a way that I can set the cursor busy steered by the subpanel vi. I pass the reference of the mainvi over a global variable into subvi. Without success there is no error message but the busy cursor does not appear. Just setting the cursor in subvi creates a null window error. Is there a easy way to implement it. Or do I have to use user events in main vi called by suvi an then se it busy. Would be not so nice to understand it later.
    kind regards reto

    I attach my test VI (LV 8.0). You can try it.
    Attachments:
    test sub.vi ‏17 KB
    test.vi ‏22 KB
    test global.vi ‏4 KB

  • How to set a busy cursor when the excel report pops-up(in Excel)?

    I'm using LabVIEW 7.1 and Report Generation Toolkit for MS Office to build a VI. at the end of each session when the data in a certain peroid of time was collected, the data will be transmmited to Excel report. the problem is during the poping-up of Excel report, if the cursor clicks inside Excel accidently, all the collected data will disappear and the blanks in Excel will no longer be filled automatically. I have tried to use Set Busy.vi, but it only works in VI panel, not in Excel. Will someone please help me?
    thanks very much

    Hi jingli,
    For changing cursor appearance, you can visit another post on the forum:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=506500000008000000272E0000&ECategory=LabVIEW.LabVIEW+General
    (search for mouse pointer appearance in this forum if the URL doesn't work)
    Another suggestion would be setting the windows appearance to "minimum" when you open your Excel report (wire it at the New Report VI).
    Dan

Maybe you are looking for

  • How do I set up a Mac to print double-sided?

    My printer has the functionality (so that's not the problem), but I seem to have to set it up in each software program every time I want to print something. I need to be able to print to do my job, but I hate wasting all that extra paper. And how do

  • No node created when calling BAPI !!!

    Dear All, I am making a demo Web Dynpro in which I m trying to use BAPI BAPI_EQUI_GETDETAIL  For doing this I have done the following steps (as per stated in Tutorial 2):- 1. Left-Click on the Web Dynpro Name 2. Create -> Service Call 3. A wizard Sta

  • How can I use the gps without internet in my Ipad3 - 4G

    How can I use the gps without internet in my Ipad3 - 4G. Do I need to download any additional app than the one that already came with it?

  • Windows 7 won't boot (required device is inaccessib​le)

    I accidentally interrupted a "back-up to a previous date" and now can't get Window 7 64 bit to boot. Tried recovery dvd but no go. Please help! Screen displaying --- Info: The boot selection failed because a required device is inaccessible Status: 0x

  • What do I need to use XML?

    Hi, I've just start using XML and I need some help. I've created a XML file and I want a simple example of what do I need to execute it. My XML file is here: <?xml version="1.0"?> <country name="Brazil"> <city>Rio de Janeiro</city> <city>Sao Paulo</c