Using NI-CAN in TestStand

Hi,
I have a requirment for writing TestScript to test NICAN in TESTSTAND.
I tried with the .lib file in NICAN driver but am getting "parameters not recagonized" error.and i need to add the varibles manually.
NI can has many complex structures,which is bit weird to create them in TestStand.
Please let me know how can i use the CAN driver in TESTSTAND.
Thanks
IVI

James,
Thanks for your input!  I linked the document more as a reference for best practices than as proof of my recommendation. The closest reference in this document to this would be the "Functionality to Include in Code Modules", though this does not mention drivers directly. A couple reasons I would personally avoid calling drivers directly:
As you mentioned,many drivers use complex data as parameters, making them difficult to call
Creating a step for each driver call would result in very high granularity, making it more difficult to see what the sequence is doing.
This would also require more configuration as far as which steps to include in the database/report logging
As a programmer, you would have no control over what results are presented from the code modules, since you are calling driver code developed by NI
However, I definately would agree that there are cases where a direct driver calls would be the best approach, so I was a bit hasty in my blanketing statement.
Al B.
Staff Software Engineer - TestStand
CTA/CLD

Similar Messages

  • Problems in using Labview DLL with TestStand!

    Hi,
    I tried to put the VI's to create a TCP/IP Connection, read/write Data to it and close it inside a LabVIEW DLL and use these functions with TestStand.
    The problem is to get access to the ConnectionID generated as TCP Network Refnum in LabVIEW.
    I don't know how to specify the prototype entry for this Refnum in LabVIEW and how to read it with TestStand.
    Another try to pass an ActiveXReference of SequenceContext and use the SetValIDispatch method to set a local variable (Type: ActiveXReference) to the returned ConnectionID of the TCPOpen.VI wasn't successful too.
    It seems to me that the connectionID isn't a normal ActiveXReference.
    Regards,
    Sunny

    Hi Sunny -
    You should treat this parameter as a pointer to an int when calling the DLL from TestStand (or any language like C or C++). Note that you can't do anything with the value outside of LabVIEW since it only has meaning inside of LabVIEW. You can only pass it around for use in other VIs you call from TestStand.
    Hope this helps....
    Kyle G.
    National Instruments
    Kyle Gupton
    LabVIEW R&D
    National Instruments

  • What are the advantages of using LabVIEW projects in TestStand, as apposed to just a path to a vi

    What are the advantages of using LabVIEW projects in TestStand, as apposed to just a path to a vi ?
    I am modifying an existing workspace for a new product, and it seems like more work to add the vi's into a LabVIEW project
    does it gain anything in the long run

    Hi Rusty,
    I wanted to quickly clarify on the integration between TestStand and LabVIEW Projects.
    As Jeff mentioned, some of the big benefits of using LabVIEW Projects is to organize code and to namespace them.
    For instance if you had a project called "Power Supply" that housed all your power supply code and had a VI in that called "Initialize", and another project called "Temperature Chamber" that also had a VI called "Initialize", both these VIs are namespaced by the project, so there is no longer confusion about which "Initialize" VI is being used.
    Now from a TestStand point of view, in prior version of TestStand, we lost some of this benefit because TestStand did not know about TestStand projects and called VIs simply as un-namespaced VIs. However, in TestStand 2010 (released last year, free eval available at ni.com/teststand), we added the ability to (optionally) call VIs within the context of their projects. This means that:
    VIs are now namespaced by their project, even when called from TestStand
    VIs can use project specific constructs like NI-DAQmx tasks and conditional compilation settings
    Note: When creating deployments, the VIs maintain their projects and namespacing, so this benefit holds true for deployments as well.
    Additionally, someone had mentioned looking into using lvlibs to namespace your VIs for deployment. Two comments:
    With TestStand 2010, this is no longer neccessary since the project itself namespaces the VIs
    You might also want to look into LabVIEW Packed Project Libraries, which combined several VIs into a single file. Think of it as a DLL specific to LabVIEW that is as easy to call as normal LabVIEW VIs. TestStand 2010 can call VIs that are exposed by PPLs. In addition, the deployment utility can automatically pack your VIs into PPLs for deployment.
    Hope this is helpful!
    Jervin Justin
    NI TestStand Product Manager

  • I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    Hi Abdul,
    Sorry for my unprecise answer, but you talk about a tcode, but you're using a BAPI Call. Maybe you want to call the transaction in batch mode?
    http://help.sap.com/saphelp_erp60_sp/helpdata/de/fa/09715a543b11d1898e0000e8322d00/content.htm
    Regards,
    Franz

  • HT5699 i am from Lebanon and they did disable my account because of authorization they did my cousin without my knowledge, and i did change the password of my account and the webcard used please can u help me to know how to get my account back

    i am from Lebanon and they did disable my account because of authorization they did my cousin without my knowledge, and i did change the password of my account and the webcard used please can u help me to know how to get my account back

    http://www.apple.com/support/itunes/

  • Itunes and all my movies have disappeared,i can no longer add to library from my external hdd which ive always used and can only add from the laptops own hard drive,any ideas what the issue could be?

    ive recently updated, itunes and all my movies have disappeared,i can no longer add to library from my external hdd which ive always used and can only add from the laptops own hard drive,any ideas what the issue could be?if i transfer the movies from the external to the laptop they will add to the library without any problem so theres no issue with the laptop but when i go to add file in itunes i can path to the external but as soon as i select the file nothing happens, just goes back to itunes

    This happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • Since I have the newest version of itunes, I can't back up like normally. The only way is to considilate files and then put them on an external drive which I don't have. Are there any other options? If I can't back up to a disc like I used to, can I inste

    Since I have the newest version of itunes, I can't back up like normally. The only way is to considilate files and then put them on an external drive which I don't have. Are there any other options? If I can't back up to a disc like I used to, can I instead just keep everything on my ipod and then if I have to get a new computer or something just download all my songs from the ipod to my new computer's itunes? Will that work? Will I still be able to keep all my songs that way?

    I'm going to assume the consolidating files does not work due to hard drive space limitations.
    Since you're moving to Windows 7, have you tried using the Windows files and settings transfer utility?  That will move everything for you to the same location on the new computer, it also allows some control over what actually gets moved.
    Alternatively, if you know the location of all of the media, it can be manually moved by copying it from the old computer to the new computer in the same location.
    Also, using the Apple article on moving the library, take a slight twist on what it says.  Move the iTunes library to the external drive, update the settings in iTunes to reflect the library being on the external drive, then consolodate it.
    The options are endless for moving the library... it simply takes a little effort to make it happen and possibly a twist on existing "standard" methods depending on your unique situation.

  • Hi, I bought a second hand iphone 4s and seller has blocked it and reset it know the iphone is asking for a  email and password that the seller was using, I can't contact him know and i'm left with an Iphone that is useless, can you help ma please?

    hi, I bought a second hand iphone 4s and seller has blocked it and reset it know the iphone is asking for a  email and password that the seller was using, I can't contact him know and i'm left with an Iphone that is useless, can you help ma please?

    Sorry, there is nothing you can do until the device is removed from the sellers Apple ID.
    Without that, your device can't be used, check these articles:
    iCloud: Find My iPhone Activation Lock in iOS 7
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account

  • I have my iphoto with a different apple id that I no longer use and can't update or open iphoto what should I do?

    My iphoto doesn't allow me to open it because it needs an update but its under a different apple id that i no longer use what can I do?

    Use the old Apple ID - log into th eApp store using it
    Other wise contact App store support - link is on the right of the App store window
    LN

  • I have just updated the software on my pad to ios7. Big mistake. It is ugly and unpleasant to use. Also, on safari there are icons which I have no wish to use, but can't get rid of. Can I revert to the previous operating system?

    I have just updated the operating system on my ipad2 to iso7. Big mistake. It is ugly and unpleasant to use, and the Safari element comes loaded with icons I will not be using, but can't seem to get rid of. Does anybody know how to change the operating system back to the previous one?
    Thanks.

    Firstly, the icons when you load safari are your bookmarks in the favourite section. To remove them you can simply either delete them or move them to another bookmark folder. To access your bookmarks tap the blue book in the top right corner and then go through to bookmarks and select and edit from there, goodluck :)

  • Rescue and Recovery "File is in use and can't be copied" errors - T61 - WXP

    Hi and thanks -
    When Rescue and recovery backs up, I frequently get  the error message, "This file is in use and can't be backed up.  Close all programs and try again" [my paraphrase]. 
    Here is everything I have tried:
    Restarting Windows and backing up "clean" - I have also attempted doing a "Clean boot" by stopping all services in "msconfig". - still got many of the error messages.
    Starting in Safe mode - Rescue and restore doesn't work at all
    Starting up in "ThinkVantage" and doing a backup from there - Rescue and restore will restore from a previous copy, but will not back up.
    This backup error has gone on ever since I bought this macine used in January 2011, and I have never cared much.  But recently the machine had a "fatal error", and all of the backups were useless.  I had to comletely restore the machine to factory settings, which means I had to re-load all of my data and programs - an arduous task.  I do not want to meet this same fate again.
    Can you help me?
    Thanks!
    Solved!
    Go to Solution.

    Have you tried running a backup with your virus scanner / internet security software turned off? Sometimes these software can "hang" on files or folders with the intent to protect them and therefore prevent them being read
    Before attempting the above please ensure your system has no Internet access
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • What 's the meaning of "sample rate =-1" when to use the CAN init.vi?

    ALL,
          I saw a kind of use to CAN init.vi where The mode = "output recent" and the sample rate = -1. I check the NI  CAN help document, it seems that  the sample rate must be large than 0 when the mode = output recent. So,here,why the sample rate can be -1? What does it mean?
    Thanks!
    Lai

    I found that it is different whether to use "-1" or ''0" to sample rate. In CAN init.vi, there is an input parameter filepath which is used to load the ncd file or dbc file. The ncd file can't set the sample rate of  CAN message, but dbc file can. When I use sample rate = -1 and dbc file , the period(=1/sample rate) of CAN transmission equals  the Sample time defined in dbc file and is not determined by loop time in LabVIEW programm. But when I use sample rate = 0, the period of CAN transmission equals the loop time in LabVIEW programm. So I guess the period of CAN transmission is determined by the Sample time defined in dbc file when use sample rate = -1. Is that true?

  • For the iphone4, my light is on all the time! the light is supposed to turn off after a few seconds of use. how can i fix this?

    for the iphone4, my light is on all the time! the light is supposed to turn off after a few seconds of use. how can i fix this?

    If what Allen says does not fix the issue I have seen this as a Hardware issue and I would get into an Apple Store if it is close by
    http://concierge.apple.com/reservation/us/en/

  • The condition record for use B can not be displayed

    Hi gururs,
    What does this message (number : VE896 ) mean ?
    How to make it desapear ?
    P.S : it's about output type for purchase orders.
    This message is displayed when I click on : "Goto -> Determi analysis" in tcode ME22N.
    Regards,
    Bahia.

    Hi
    It means you are trying to veiw the executed condition record. System found the condition record for entered transactional data which you cannot see by clicking on it (when you see green record in condition analysis).
    For given condition type -> and access sequence/ access - system shows the condition record that is determined. You can see its details by clicking the access which shows the message that condition record has been found with its determined parameters.
    Ex: For batch determination I have set up one search strategy with a condition type (with access sequence). I created one condition record. When creating say sales order -batch determination takes place based on condition record parameters. System shows a green light for determined condition record. You cannot see its details - if you try to see then system issues a message like ''The condition record for use B can not be displayed''. If you want to see click on its immediate predecessor (access ).
    Thanks

  • When I connect to our server using smb:// can't copy files or edit names on server?

    When I connect to our server using smb:// can't copy files or edit names on server?

    Why not? What happens?
    Do you get an error message? What does it say?

Maybe you are looking for

  • MacBook Pro 13 Inch

    hi, i recently purchased a macbook pro 13 inch this past summer. i did the lion program and it worked great. i bought the newest model, (2011) but have noticed a difference with the ones more recently purchased from bestbuy; the shortcut keys have di

  • Block IDOC in XI

    Hello, my scope is to block in XI some IDOC sent from R/3 to SRM-SUS. The condition is the creation date of the order (ex. cutoff_date=01-01-2006 order created 12-01-2006 ==> pass IDOC to SRM-SUS, order created 23-11-2005 ==> stop IDOC in XI). How ca

  • Rename data if.....allowing me to group up....

    Post Author: Stuart CA Forum: Formula Dear All, I have been creating some useful reports in crystal but I can't seem to work out how to do the following. I need a statement that can do two things, If data in field 1 is equal to "100100" and data in f

  • Communication between java programs

    Hello, what's the best way of letting 2 programs "communicate" with each other in java ? Thanx, Pieter.

  • Internal componets, and another heat issue

    Ok, just recently i purchased the 15 inch macbook pro for use at college. I am originally a pc guy, but liked how apple puts together a machine, that is untill i got one. For starters, my case gets unbearably hot, above the f keys, there is a constan