Veristand

Hi everyone.
I'm trying to compile a simulink model (.mdl) for NI Veristand 2013 by using NIVeriStand.tlc.
Error message occured as following (Under the MATLAB 2009b) 
"Real-Time Workshop error in block: "Sample2/Matlab Fcn", block type "MATLABFcn": Not yet supported by Real-Time Workshop"
In this case, I can't use the Embedded Matlab function block (w/ coder.extrinsic(-))instead of MATLABFcn, becasue the function tried here use a "COM-object library" call. (And, when I try to use the Embedded Matlab Function block, Some errors related to the COM-object library call occured.)
your help would be a great help.
thx

Am I understanding you correctly that you wish to access some IMU sensor through a COM port from your model to acquire data? If you have to use an activeX COM-object to communicate with its driver, then I don't personally see any options to do that within your model itself.
One thing you might look into would be to replace the block that gets data from your sensor in your model with a VeriStand Inport block available in the VeriStand palette. This will create an input to the model where the IMU sensor block used to be.
Then when you build your model and import it into VeriStand, it won't directly be reading the IMU sensor through its driver. It will just have a generic input that you can map to from VeriStand. To complete the link, what you might do is look to build a Custom Device for use in VeriStand that can acquire your IMU sensor data through an appropriate driver. You can then add that custom device to the system definition with your model and use the Mappings dialog in System Explorer to connect the IMU sensor output to the input of your model.
This is very common for models in VeriStand. They don't generally directly access any of their IO. Instead, the IO is configured in the VeriStand system definition separately and then mapped into model.
Jarrod S.
National Instruments

Similar Messages

  • FPGA Quadrature Generation for VeriStand

    Hey all,
    I have created this snippet of code to see what you might think of it.  I am unable to test it for the next week as the hardware is temporarily unavailable to me. I am pretty new to FPGA and very new to VeriStand, but I think this should work to create a Quadrature output.  I want to keep making progress so I'm just asking for anyone's opinion/thoughts about whether or not it should work.
    Measuring the timing is most of my concern.  And do I need to worry about overflow with the timers?  I'm not 100% sure how these timers work. Do they just count indefinitely upwards?  And if that's the case, what is the best way to handle an overflow in this situation?
    Thanks in advance.
    Attachments:
    QuadSnip.png ‏72 KB

    NOTE:  Before responding to the previous post... I noticed that I divided the period by 2 instead of 4.  Dividing by 2 would have given me a 180 degree phase difference rather than the 90 degrees that quadrature uses so I have changed that in my code to divide by 4 (it is NOT reflected in the snippet with the original post).
    I have looked at the square wave generator but my primary reason for not using that is a lack of knowledge about how to implement the variables in the .fpgaconfig file.  I know how to use the PWM categories when setting up the .fpgaconfig file for use in VeriStand so I thought that if I make a quadrature by using two identical PWM's offset by 90 degrees that it would work just fine.  This would also allow the user to change the period and the duty cycle in the VeriStand system definition file of the quadrature (which has been requested by some of my team).
    The reason there isn't a while loop around it is because it's a subVI in a SCTL that is in the main VI.  The SCTL includes a cluster of two channel constants, a U64 bit array with A and B hi/lo values in it, and a boolean for CW/CCW rotation.  The SCTL runs at the default clock speed (40 MHz).
    I'm brand new in VeriStand so I don't know if this will work at all and as mentioned before I haven't been able to test anything yet on hardware so I am just trying to develop as much as I can without that.  If it would help I could post the main VI that I have set up for my FPGA.
    Thanks for the input, I appreciate it and look forward to more.

  • How can I control the execution of a test in TestStand with VeriStand ?

    I'm working on a system which triggers warnings. When one of these warnings is triggered, I have to pause the test sequence.
    The warnings are declared as alarms in VeriStand and the test procedure is running in TestStand. So I wonder if I could ask the pause of the TestStand running in the VeriStand alarms procedure.
    Has someone this answer?

    Hi AltMarianne,
    The response of your question is no.
    You can't stop or pause teststand execution from Veristand when one of your alarm is triggered.
    It will be possible if from Teststand you called Veristand code module and checked the Alarms 's state.
    I hope having answer your question.
    Regards.
    Aurélien Corbin
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Cahiers de vacances de NI
    Présentations en ligne : 12 fondamentaux à réviser, du 9 juillet au 29 aoû...

  • Instrument readings in Veristand with a remote system

    I am new to National Instruments hardware and Veristand and I'm trying to use an instrument with Veristand to see if I can get readings from that instrument. I am using a PC with Windows Vista and I'm connected through a network to a PXI 8108 controller in a PXI 1050 chasiss. The instrument is just a thermocouple which I am using to get familiar with everything. The thermocouple is connected to the SCB-68 connector block which is connected to a PXI 6221 multifunction DAQ in the chassis. I am able to create a task in MAX under remote system and everything seems to work. What I want to do is to get the readings into Veristand, and I'm not sure if I need to create a custom device that is linked to the DAQ somehow or if there's some other way to do this. I've created the DAQ device in the system explorer but I don't see any way of linking it to the actual DAQ device on the remote system. I'm wondering if someone can help with this. 
    Any advice is appreciated.
    Thanks
    Solved!
    Go to Solution.

    You can read your thermocouple channel value directly from VeriStand, but the process is different than using MAX.
    In System Explorer, add your DAQ device that is cabled to your SCB-68. Make sure you specify the same name (i.e. "Dev1") that is in MAX. Also make sure you've imported the device channel that is hooked up to the thermocouple (i.e. "ai0"). There's no way in System Explorer to specify that this channel should have thermocouple scaling. VeriStand will initially sample this channel value as a raw voltage value. You can, however, set the high and low limit for this channel to something small like +/- 1V, since thermocouples have very small readings.
    You add the scale to your system separately after deploying the System Definition you created to the RT Target. You do this by connecting to the target using the Workspace and selecting the Workspace tool from the Tools menu called the Channel Scaling and Calibration Manager.
    In this dialog you will see your DAQ channel listed. Navigate through this dialog to assign an appropriate thermocouple scale to your channel. Once this is done, the target will remember the scale for this channel until you overwrite it.
    Let me know how this goes...
    Jarrod S.
    National Instruments

  • 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  

  • IRQ timeout error while executing the custom personality fpga in veristand

    Hi,
    I have gone through the below link and created a custom fpga code to write analog output and digital output through NI 9269 and NI 9472 card respectively.
    NI Veristand add on - fpga configuration editor.
    https://decibel.ni.com/content/docs/DOC-35499
    i was able to import the .fpgaconfig file in veristand system definition window.
    When i execute the code, i am getting IRQ timeout error. 
    Could any one help me how do i debug this error?
    i am interested to see how the veristand host code is executing it.
     

    Hi,
    Have you tried to simplify the FPGA code? If the issue is related to the VCE, you should post there :
    - https://decibel.ni.com/content/message/67188#67188
    The developers of this tool will answer you.
    Posting the error message or the FPGA code will also help us
    Regards,
    --Eric

  • How do I measure pulse width in VeriStand 2010?

    I'm using an NI PXI-6229 M Series DAQ.
    I the channel set up in System Explorer and I have my input signal routed to the Gate of Counter 0.  When I deploy and open the Workspace the measurement says 0 seconds although an oscilloscope shows a 7ms square wave at the terminal.
    I think the problem may be that I don't have a timebase applied to the Source of Counter 0.  How do I put an internal timebase on the Source?  I would prefer to do so without changing any VIs and I definitely don't want to add an external frequency generator to my setup.

    I think that the gate terminal cannot be used in that case. You might want to try to connect the external signal to the input terminal of the counter.
    Once you have rewired the external connection you will notice, that NI VeriStand might not update the frequency that often. NI VeriStand doesn't measure the frequency/period by using a frequency task. We have used a simple edge counting task that takes the upper and lower limit of the frequency to determine the update rate of the frequency value. The more accuarate the settings are, the higher is the update rate. In order to get a feasible update rate, increment the lower limit to a value that will never be below the real minimum frequency of the external signal and set the upper value to the maximum expected frequency.
    Thanks,
    Tom
    http://www.newgistics.com

  • Mapping constant block parameters in simulink to a Veristand control block

    Hello,
    I am trying to take a simple model of a RL circuit in simulink (built a dll file) and add control of constant blocks in Veristand to dynamically change the value of R and L constant thru the Veristand Slider or Numerical indicator. I can see the ouput of the model executing, based on the initial values I have loaded, but I am not able to mapping these Parameters to the any numeric control. 
    Any thoughts of how to accomplish this!
    Solved!
    Go to Solution.

    Trever,
    When you add the model in the system explorer, do you have inports on the  R and L on your model in the system explorer?  If you can see them there and the connect inside the model properly, you should be able to attach these to controls in your workspace.
    Here is some information on setting up your model. http://zone.ni.com/reference/en-XX/help/372846A-01/veristand/convert_model_to_dll/
    -Marshall R
    National Instruments
    Applications Engineer
    One stop for all your NI-VISA Support
    GPIB Support has a new homepage

  • How to edit template for report generator in stimulus profile editor in Veristand 2011?

    How to edit template for report generator in stimulus profile editor in veristand 2011?
    We are using Veristand 2011.When we run any sequence in stimulus profle editor,we get test results in form of ATML file.
    We want to customise the template for this test result generation as per our requirement.
    For example:
    Test case No.: Description of test case.
    Objectives: Explanation of objectives.
    Result: Passed/ Failed.
    Graph: If any.
    Please suggest how to do this.

    You cant really change too much in the report, you can customize TRML.xsl which is created every time in the Test Results\UUT 1 folder and that would give you some flexibility on what is shown. I dont know what a xsl is actually able to do in terms of composing data from multiple files (if at all possible) but it definitely allows you to change the visual format of the existing xml data.
    Otherwise I modified the xsl to customize the look of the xml report when opened in a browser to have less clutter and some coloring on the Pass/Fail but, the reports are XML files anyway so it's easy to extract data out of them and you can probably write your own report creation tool to compose the report in whatever format you like.

  • Veristand Problem: When Configurin​​g a project, searching for a library file as a dependent file

    Hi,
    The problem that I am having is that I took all of the necessary files in order to run a project and moved it to a different computer. When I open Veristand, and try to configure the project, a pop up window comes up with "Search for Dependent File: [filename]". It then says the missing file and the search directory. You can also browse for the file. So, for about the first couple of files, I just browsed for it and it was fine. But when it reaches a library file, I try to open it and it opens the library inside of Veristand. I think it thinks that I'm trying to get the file from inside of the library instead of the library itself.
    Any thoughts greatly appreciated.

    Continued here
    LabVIEW Champion . Do more with less code and in less time .

  • Veristand Problem: When Configuring a project, searching for a library file as a dependent file.

    Hi,
    The problem that I am having is that I took all of the necessary files in order to run a project and moved it to a different computer. When I open Veristand, and try to configure the project, a pop up window comes up with "Search for Dependent File: [filename]". It then says the missing file and the search directory. You can also browse for the file. So, for about the first couple of files, I just browsed for it and it was fine. But when it reaches a library file, I try to open it and it opens the library inside of Veristand. I think it thinks that I'm trying to get the file from inside of the library instead of the library itself.
    Any thoughts greatly appreciated.

    Continued here
    LabVIEW Champion . Do more with less code and in less time .

  • Use of Custom Files in Veristand

    Hello All,
       Haven't been able to find much documentation related to use of "Custom Files" in Veristand.  Would like to know of any examples of file types users have implemented.  Specifically, I would like to know if you can "call" certain file types from the models or custom devices (i.e. for configuration parameters or databases). 
    Thanks much,
    GSinMN  
    Solved!
    Go to Solution.

    Howdy GSinMN,
    There is a bit of documentation in the VeriStand Help that discusses Custom Files specifically.
    Adding Custom Files
    http://zone.ni.com/reference/en-XX/help/372846D-01/veristand/add_custom_files/
    Although, the help doesn't quite reveal the full capabilities of this feature. There are two distinct use cases I have been able to identify for the Custom Files option in VeriStand. I will list them out in more detail and show you an example.
    Making Files easily accessible to the Operator in the development environment.
    When a file is added into the Custom Files section of the Project it will have its own icon in the project and will be included in the project dependencies. Having the file brought to view in the project is helpful if there is a troubleshooting image or specific document (calibration specs, steps for running a test, etc) that you would like your Operator to have access to. For example, in the example project I've included, there is a file added called "TestA1_PreTestSetup.txt". From the project (on the toolbar) the Operator has the option to "Open File" (to view it) or "Export..." to investigate its path on the operator machine.
    Please note that the file is also now added to the dependencies of the project.
    If you begin to investigate the file in the project and lets say you right-click on it and notice that there is a Properties option. You may notice that the Description for this file is empty. This can actually be populated being modifying the XML source of the .nivsproj. This also leads into the second use case for Custom Files.
    Transferring files to the RT target which can be used by the VeriStand Engine.
    If you were to investigate the .nivsproj XML you could first find the Custom Files section, and then the tags for the item you configured.
    Here are the relevant tags and a break down,
    <DependentFile> - This points to the source of the custom file. In this circumstance, I have added the file to the "C:\Users\Public\Documents\National Instruments\NI VeriStand 2011\Test Procedures" directory. It is able to resolve the the first component to "To Common Doc Dir" because this is the common directory for VeriStand, and then it appends the Test Procedures folder and name of the file that I created.
    <Description> - Populating this tag gives us the ability to fill in the description information that occurs when we right click the file in the project.
    <RTDestination> - Populating this tag gives you the ability to also send the File to the target upon deployment. Your VeriStand engine could then access this file during operation. As far as which types of files to use, the link in the post above should help guide that.
    Please Note: Modifying the XML of the project gives you added customization and functionality to your project but these modifications should not be done heedlessly. Incorrectly modifying the tags in the XML file can lead to improper performance and outcomes. So tread carefully and make only minor changes at a time.
    I hope this helps. Have a great day, GSinMN
    Tim A.
    National Instruments
    Attachments:
    Custom Files Example.zip ‏10 KB
    TestA1_PreTestSetup.txt ‏1 KB

  • Is there any restrictio​n in designing labview model for veristand

    Hi,
    I developed the labview model with cluster, cluster attribute(i am accessing the cluster label text , value in the model), loops, shift register. The model works fine in a standalone labview environment. Then i converted to .lvmodel and attached to veristand system definition file. When i try to run the model from veristand real time enviornment the model behaves differently.
    Here is the details:
    I have used cluster label.text attribute which connected to a case structure. I want to run a different case for each cluster (I have 3 cluster inports), so i am using label to identify which cluster i am running currently. For example, the three clusters label names are "Label1", "Label2" and "Label3". For "Label1" i want to do addition, "Label2"  i want to do subtraction and for "Label3" i want to do multiplication. My case structure contain four cases "Default", "Label1", "Label2" and "Label3". When i execute the model(.lvmodel) from veristand, it always takes the default case. Means that it is not recognizing the cluster label.text attribute. How do i resolve this? and what is the problem here?
    Thanks,
    Elamk

    Hi Elamk,
    I had a chance to set up a simple .lvmodel in LV 2013 SP1 which takes the label from the Cluster and we make a decision based on the text using a Case Structure. I compiled the model and imported it to NIVS 2013 SP1. I deployed my System Definition File and monitored the "Selected Case" indicator which showed that it was able to read the Label.Text attribute correctly.
    Can you expand more on how you are setting up your .lvmodel inports and outports? In addition, how are you controlling the label values as inports? Can you post a simplified model that I can use to test?
    Let me know your thoughts on the above set up.
    I look forward to your reply.
    Sincerely,
    Aldo A
    Applications Engineer
    National Instruments

  • How to get NI veristand option in LabVIEW tools menu

    HI All
    I have developed a code in LabVIEW for which I want to develop Veristand model.
    but for creating the model , the procedure which i followed on this forum is from LabVIEW tools go to NI Veristand and then create the model.
    BUt in my LV2013 and 2012 also , I am not getting NI veristand option in tools.
    I have NI veristand 2011. Do i need to select any option while installation?
    I have selected LV model support also while installing.
    Please help.

    You need LabVIEW 2011 to build lvmodels for VeriStand 2011. This goes for all LabVIEW plugins.
    After you install LV 2011, you can re-run the veristand 2011 installer and select the model support option I believe I get the menu item you need.
    Jarrod S.
    National Instruments

  • Trouble with deploying models in NI Veristand to real-time target

    Hi All,
      I desperately need some help with some application i’m working on. I’m trying to read some accelerometer measurements into NI Veristand but coming up with an error all the time during the deployment stage to the real target which i have atttached. I can’t quite figure out what to do about it. I’m using a real-time device with a PXI-4461 module. I have checked that i can read all sensor measurements in MAX as attached. The error message is as follows:
      Initializing deployment...
    Waiting for the target to report its state...
    Initiating FTP connection...
    System Definition File -> Acquisition.in4
    Restarting system...
    Restarting target into run mode...
    The target encountered an error and reset. Verify that the system definition file and the target resources are valid. You must deploy a new system definition file or reboot the controller to correct this problem.
      Error -200757 occurred at DAQmx Start Task.vi:1
      Possible reason(s):
    Measurements: Sample Timing Type is set to On Demand which is not supported for analog input on this device.
    Set Sample Timing Type to Sample Clock. You can achieve this whlie setting related properties through DAQmx VIs or functions for configuring timing.
    Task Name: Dev6_AI

    Duplicate Post.

  • Increase Target Rate on Veristand

    Hello,
    I am a novice user of Veristand. I am trying to make a control feedback using a compactRIO : 
    RT NI cRIO 9024
    Chassis cRIO 9113
    Modules 9220 and 9263.
    I am using Veristand with a compiled model from Simulink to make my control.
    I want to be able to reach loop frequencies of 10 KHz or higher but the target rate loop freezes the system when i try to go above 700 Hz.
    Is it possible to do so?
    My model is very simple, for now I am simply connecting 1 input from the 9220 to the output of the 9263.
    Thank you in advance,
    Regards,
    Fares
    Solved!
    Go to Solution.

    Thanks for your valuable feedback!!
    I want to customize Legacy stimulus profile editor to add below features:
    - Converting test cases from excel sheet to CSV and to nivstest.
    - User interface to monitor status of each test case along with its channel values and display in graphs
    - User interface for logging test cases results back into excel sheets of test cases.
    Is it possible to share a source code of Legacy stimulus profile editor or could you please share the details like how it can be customized?
    Do I need to initiate seperate thread/post for this requirement?
    Regards,
    Nilesh

Maybe you are looking for