Improving the LabVIEW Help: Working with Data Types

Have you ever had trouble figuring out how to work with the waveform data type, the dynamic data type, or some of the other more complex data types in LabVIEW? As a tech writer on the LabVIEW team, I'd like to improve our documentation about working with data. What would you like to see? What would be helpful? Have you ever given up on a particular data type because it didn't work? Have you ever created a replacement data type because you preferred not to use a LabVIEW data type?
Lacy Klosterman Rohre | Marketing Editor | National Instruments | 512.683.6376 | ni.com/newsletter

I've been programming LabVIEW since around 3.1 / 4.0.  Over the years and versions, I've found it necessary to approach a lot of the new datatypes and algorithms with some healthy skepticism because I don't think we're usually given a "fair and balanced" overview.  Some of the things that are highly promoted that bring "ease of use" for beginners (and I *do* understand the importance of that when you're growing your LabVIEW user base) can carry significant performance penalties that are mentioned in more of a whisper, if at all.  I'd just like a more full disclosure of the tradeoffs -- the good, the bad, and the ugly.
Waveforms -- very rarely use them, unless required for analysis functions.  I have a vague notion (between a belief and a memory) that they used to carry a significant performance penalty compared to arrays, but that the gap is now much smaller.  Still, I'm most comfortable with my old habit of using data arrays.  Some of this came about because a lot of my work uses counters where I may have a variable "dt" value or where my AI is clocked by a counter and the "dt" isn't internally generated.
Dynamic signals -- have never used them.  Have no clear idea what good they're supposed to be, and they seem to be tied in primarily with Express VI's, which I have also studiously avoided.
Variants -- Use them only slightly.  Performance issues are a question mark.  Exception: have learned that the implementation of Variant properties allows their use as an efficient way to create associates for string lookup tables. 
Digital Waveform -- have typically avoided it except when graphing digital data during debug.  Haven't found any compelling reasons to use it.  I do like the notion of a compress/expand capability for sparse digital data, but haven't exercised it enough to trust the implementation. 
Recap:  I don't need more simple "how-to's" in the help.  I need a LOT more "why bother's" that include both pros and cons. 
-Kevin P.

Similar Messages

  • Salaxy S4 doesn't recognize SIM in India. Voice calls work but data doesn't. (The SIM was working with data plan). Any idea?

    There is a message that says something like "Unrecognised SIM" but the Voice works. Data just doesn't work.

    You have to change the APN to match the carrier settings in that region.

  • Help working with Dates

    I have a spreadsheet with a ton of data in it from various years (2010 - 2014).  A sample of data is below:
    Date
    Name
    Type
    Finished
    1/12/12
    Jim
    Customer
    (Check Box Checked)
    3/1/13
    Chris
    Vendor
    (Check Box Checked)
    4/1/13
    James
    Customer
    Check Box Checked
    5/1/14
    Jim
    Vendor
    Check Box NOT Checked
    6/1/14
    Seth
    Vendor
    Check Box NOT Checked
    Basically I am looking to do multiple queries on this spreadsheet.
    1.  How many entries  for 2012 are "Finished" (or check box is checked) where "Type = Customer"
    2.  How many entries for "Type=Customer" exist between the dates 1/1/13 and 4/28/13
    3.  Is there a way to break down the dates by "Quarters", Jan - Mar, Apr-Jun, etc... then report specifics about that data.
    My biggest hurdle has been how to insert the "Date" into the logic.  Is it with an IF statement, is it some other type of function.
    Any help is greatly appreciated.
    Thanks in advance.

    Its all possible,  Some can be achieved by using the built-in filters (top right).  Some cannot be achieced using the filters and can be achieved using a summary table.
    This may be a good start:
    Create a new table titled "Summary".  Set up as shown.
    cell B1 is a checkbox
    cell B2 and B3 contain start and stop dates (if applicable)
    cell B4 is a pop up menu containg the following items:
    Cell B5 is also a pop-up menu and contains:
    Now in your original table add three new columns (which you can hide later, and shown in the first picture I posted):
    E2=AND(OR(AND(Summary::$B$1,A2≤Summary::$B$3, A2≥Summary::$B$2), Summary::$B$1=FALSE), COUNTA(A2)>0)
    this is shorthand for... select cell E2, then type (or copy and paste from here) the formula:
    =AND(OR(AND(Summary::$B$1,A2≤Summary::$B$3, A2≥Summary::$B$2), Summary::$B$1=FALSE), COUNTA(A2)>0)
    F2=OR(C2=Summary::$B$4 , Summary::$B$4="Do Not Care")
    G2=OR(AND(D2=Summary::$B$5, Summary::$B$5≠"Do Not Care"), Summary::$B$5="Do Not Care")
    select E2 thru G2, copy
    now select columns E, F and G by clicking on the column header for column E (the "E" at the very top), then hold the shift key while clicking the the column header for column G
    now unselect cells E1 thru G1 by holding the command key, while single clicking cells E1, then F1, then G1
    paste
    Back in the summary table:
    B8=COUNTIFS(Table 4::E, TRUE, Table 4::F, TRUE, Table 4::G,TRUE)

  • Help: Problem with data types and classes

    Hi there,
    I'm currently struggling with getting a class to read in data from a file and from that select the correct constructor to use... Basically I read a line in from a file as follows:
    <String Make>:<String model>:<String registrationNumber>:<String engineSize>
    e.g.
    Ford:Focus:HG42EG:1800
    There is an Interface called Car, of which 'Ford' is an implementation along with 'Vauxhall', 'Chrysler', etc...
    From this I wish to construct a new instance of a Ford called Focus with input parameters (RegNumber registration,int engineSize) i.e.
    Car Focus = new Ford(HG4 2EG,1800);So far I can convert the engineSize String into an integer and can construct the RegNumber (a class of mine) but can only get it to construct a Ford by using a switch, i.e:
    switch (modelKey){
    case 'f': new Ford(); break;
    case 'v': new Vauxhall(); break;
    case 't': new Toyota(); break;
    etc...
    Now I do get this to work correctly but I'm concerned that it is not OOP therefore is the way I can get code to convert the String 'Ford' into Car 'Ford'.???
    Many thanks in advance for any advice you can throw my way,
    Leebo

    What is this anyway???
    If Car is an interface you can't create instances of it....No, if Car is an interface, his code should be (depending on what the RegNum constructor looks like:
    Car Focus = new Ford(new RegNum("HG42EG"),1800);It's the same as:
    List someList = new ArrayList();However, he won't be able to use a word read from the file as a variable name "Focus". He'll need a Map:
    Map myCarMap = new HashMap();
    myCarMap.put("Focus", new Ford(new RegNum("HG42EG"), 1800));(Could be defined as "Map<String, Car>" if he wants to use generics.)

  • Need Help with data type conversion

    Hello People,
    I am new to java, i need some help with data type conversion:
    I have variable(string) storing IP Address
    IPAddr="10.10.103.10"
    I have to call a library function which passes IP Address and does something and returns me a value.
    The problem I have is that external function call in this library excepts IP Address in form of a byte array.
    Here is the syntax for the function I am calling through my program
    int createDevice (byte[] ipAddress).
    now my problem is I don't know how to convert the string  IPAddr variable into a byte[] ipAddress to pass it through method.

    Class InetAddress has a method
    byte[]      getAddress() You can create an instance using the static method getByName() providing the IP address string as argument.

  • Adding fields with data type "TIMS" to the BP transaction

    hi all,
      This  is Anil regarding the addition of fields to the BP transaction.
    here my problem is for BP transaction I could not find any BADI or screen exit  to add the fields. Even EEWB tool does not allow us to cretate the fields with data type "TIMS". so could you please suggest any other way to add these fields to BP?
    when I enter the values to the time fields in BP transaction, they must reflect in
    BUT000 table also?
    Regards,
    Anil .

    In the physical layer, Column Properties change the data type to int.
    If still problem exists, In the Business Model, write a case statement like
    case when column1=1 then 1 end
    and apply count aggregation on the new calculated column,add the column to presentation table, use that new calculated column for report.
    - Madan

  • My Imac late 2012 running Yosemite does not recognise my Huawei 3g usb modem. itried to install Java bt still it does not although the same modem works with my MacBook pro . any help please

    My Imac late 2012 running Yosemite does not recognise my Huawei 3g usb modem. itried to install Java bt still it does not although the same modem works with my MacBook pro . any help please

    Hey there mbarikiwa,
    If your iMac still has not recognized the usb modem, I would use the troubleshooting for Yosemite USB issues in the following article:
    OS X Yosemite: If a USB device isn’t working
    If the device is connected to a USB hub: 
    Make sure the device and the hub are the same speed. Connect USB 3.0 SuperSpeed devices to a USB 3.0 SuperSpeed HUB, USB 2.0 Hi-Speed devices to a USB 2.0 Hi-Speed hub, and so on. 
    If the device doesn’t have a power cord and is plugged into another USB device that doesn’t have a power cord: 
    Try plugging the device directly into your computer’s USB port  or into a USB device that does have a power cord. You might need to disconnect and reconnect the other device as well, if it has stopped responding. 
    If you have many devices connected to your Mac: 
    Disconnect all USB devices except the device you’re testing, an Apple keyboard, and an Apple mouse. Make sure that the device is connected directly to the computer, and that any hubs or extension cables are disconnected. If you can use the device now, the problem may be with one of the other USB devices or hubs you had connected to your computer. Try reconnecting them, one by one, to your computer. When you find the device causing the problem, review its documentation for further troubleshooting steps. 
    Verify that the device appears in System Information: 
    Choose Apple menu > About This Mac. In the window that appears, click Overview, then click the System Report button to open System Information. 
    In the window that appears, see if the USB device is listed below Hardware in the Contents list. If the device appears but does not work, review the device’s documentation for further troubleshooting steps. 
    Restart apps: 
    Quit and restart any apps that use the device. 
    Restart your Mac: 
    Choose Apple menu > Restart.
    Check your device’s USB connection
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Can the MacBook Air work with any other type of internet connection beside wifi?

    Can the MacBook Air work with any other kind of internet connection besides Wifi?

    Who? ITS VERY important when doing a restore, in fact you DO NOT want to do a wifi restore
    The pros all have that Ethernet adapter,... that should tell you something. An Ethernet restore via that "thing" makes restoring the OSX about 8X faster.
    Its called a Gigabit Ethernet adapter for a reason.
    "who the heck" is anyone working with their Macbook Air at home and want a MUCH FASTER download / internet connection.
    *Stockbrokers who pack their Macbook Air, arrive at work and plug that "hardwired" dongle to their Air........  because even seconds in the stock market can make the difference between losing a million $$, or making a million $$
    So now you know WHY,.....before you didnt.

  • I would like to know if labview can works with hp82335b interface

    I would like to know if labview can works with hp82335b interface for instruments data aquisitions

    Hi,
    on following link: http://ftp.agilent.com/pub/mpusup/pc/old/hp_over.html
    they say:
    "The 82335 will not work under National Instruments Labview in any way, shape, or form. In general, it will not work on any product that doesn't specify that it does work.
    There are no plans for any improvements to this product and no engineering resources on it."
    In case this is true, you will go into trouble with
    your card using LabVIEW.
    Regards
    wha

  • JDBC MS Access--- cannot extract entry with null value with data type Meta

    I'm trying to extract a data entry with null value by using JDBC. The database is MS Access.
    The question is how to extract null entry with data type memo? The following code works when the label has data type Text, but it throws sqlException when the data type is memo.
    Any advice will be appreciated! thanks!
    Following are the table description and JDBC code:
    test table has the following attributes:
    Field name Data Type
    name Text
    label Memo
    table contents:
    name label
    me null
    you gates
    Code:
    String query = "SELECT name, label FROM test where name like 'me' ";
    ResultSet rs = stmt.executeQuery(query);
    while (rs.next())
    String name = rs.getString("name");
    rs.getString("val");
    String label = rs.getString("label");
    System.out.println("\t"+name+"\t"+label);
    catch (SQLException ex)
    System.out.println(ex.getSQLState());
    System.out.println(ex.getErrorCode());
    System.out.println("in sqlexception");
    output:
    C:\Temp\SEFormExtractor>java DBTest
    yet SELECT name, label FROM test
    null
    0
    in sqlexception

    The question is how to extract null entry with data type memo?Okay, what you need to do is this:
    if (rs.getString("val") == null)
      // do something
    }This way, when it's a null value, you can check it first, and then handle it how you want, rather than getting an exception.

  • [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)

    Dear Experts,
    i am getting the below error when i was giving * (Star) to view all the items in DB
    [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)
    As i was searching individually it is working fine
    can any one help me how to find this..
    Regards,
    Meghanath.S

    Dear Nithi Anandham,
    i am not having any query while finding all the items in item master data i am giving find mode and in item code i was trying to type *(Star) and enter while typing enter the above issue i was facing..
    Regards,
    Meghanath

  • Issue with Data type 'Date' in Hyperion Planning V11.1.2.2

    Hi,
    I have created members with data type date. However when I save the date, it either disappears or comes up with a random date? Has any one come across this kind of problem before?
    If so can you share the fix.
    Thanks in advance for your help.
    Cheers,
    XXX

    Hi
    This problem is linked to you not having a consistent setting for your date input type.
    So, go to application administration and set the date format to MM/DD/YYYY in application settings and display options, under current application defaults. Then after you have done this as a user go to User Preferences and display options and on the date format select the same. Or remove the Automatically detect.
    I have seen this behaviour if you have Automatically Detect on the user preferences
    Thanks
    Anthony

  • The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value.

    Below select statement results in "The conversion of a nvarchar data type to a datetime data type resulted in an out of range value"   error. By the way Terms
    field's data type is nvarchar
     SELECT * from INVOICE
    where convert(datetime,Terms) 
    BETWEEN
    '01/01/14'
    and
    '01/30/15' 

    If you can't use TRY_CONVERT (It's only available in 2012+) You should be able to validate the data with something like this (based on your example date formats):
    DECLARE @notDate TABLE (Terms NVARCHAR(10))
    INSERT INTO @notDate (Terms) VALUES
    ('01/01/14'),('02/29/14'),('01/32/15'),('13/13/14'),('13/3/14'),('13-13/14'),('02/29/12'),('02/29/13')
    SELECT *,
    CASE WHEN (LEN(Terms) - 2) <> LEN(REPLACE(Terms,'/','')) OR LEN(Terms) <> 8 THEN 'Bad Form'
    WHEN LEFT(Terms,2) > 12 THEN 'Bad Month'
    WHEN LEFT(Terms,2) IN (9,4,6,11) AND LEFT(RIGHT(Terms,5),2) > '30' THEN 'Bad Day'
    WHEN LEFT(Terms,2) = 2 AND LEFT(RIGHT(Terms,5),2) > (28 + CASE WHEN (2000+RIGHT(Terms,2)) % 400 = 0 THEN 1 WHEN (2000+RIGHT(Terms,2)) % 100 = 0 THEN 0 WHEN (2000+RIGHT(Terms,2)) % 4 = 0 THEN 1 ELSE 0 END) THEN 'Bad Day'
    WHEN LEFT(Terms,2) NOT IN (2,9,4,6,11) AND LEFT(RIGHT(Terms,5),2) > '31' THEN 'Bad Day'
    END
    FROM @notDate
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • Work with data from a table of another SAP R/3 system

    Hi,
    I want to work with data from a table of another system. I know there's a function called 'RFC_READ_TABLE' but I don't know really how it works. What I want to do is to get data from that system and pass it to the one where I'm working in order I can continue working with this data in the report.
    Besides, I'd like to select only the records that have some conditions.
    I'd appreciate if someone could tell how to do it, whether with FM 'RFC_READ_TABLE' or in another way.
    Thanks in advance,
    Gerard
    P.S: The systems are already connected in SM59

    Yes, you can use RFC_read_table .You can pass the number of columns but I recommend you to  bring all results in your internal table after that you can filter the records. Most of the time I have notice when you make RFC call with this FM to another system it works but it may also happen that other system controlling authorization and then it might give you nothing. As I face this problem on my last Project.
    Hope this’ll give you idea!!
    <b>P.S award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • Does the cinema display work with windows

    Hi last year i got a new acer laptop and found the screen was much to small for all the windows i work with so i connected it to an external screen that i had just a week ago it stopped working and i was wondering if the cinema display would work with my laptop

    Here's some interesting links that might help:
    Boot Camp Software Update 3.2 for Windows 64 bit
    Apple Cinema Display 27”on Windows
    LED Cinema 27" with Windows 7 (Apple discussions thread)

Maybe you are looking for