Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/19/2010 in all areas

  1. Right-click in the Register Event Callback node (put the mouse over the "VI Ref" input) and select "Create Callback VI". Et voilá Saludos, Aitor
    1 point
  2. I would say no. My first introduction to the term "Abstraction Layer" happened when I was introduced to the OSI seven Layer Model for network communications. THe TCP/IP functions in LV are an Abstraction Layer for the network stack. Underneath that layer (the only layer we can touch using the built-in functions) the TCP functions in turn use the Abstraction offered by the IP layer (note: Windows is fuzzy here, when last I paid attention) which in turn uses the hardware which is abstracted through the hardware driver. The under lying layers are handling the dirty work of making sure the packets are broken up into parts that will travel over the wire and make sure the get reassembled in the correct order etc. If you have evern looked at what an Ethernet Sniffer that uses the Promiscuous mode of the ethernet interface, you will see that to understand what is traveling over the wire requires you to parse the ethernet packet header (Source Destination and protocol) and then use the proper rule for THAT protocol etc. THe TCP/IP abstraction offered with LV turns this complicated stack of protocol etc. into what is virtuallly abstracted a virtual wire. THe same thing applies to file I/O and for that matter the INI files and TDMS are also abstractions. If I got any of that wrong please feel free to correct me. Ben
    1 point
  3. Here's an example of one of my current applications. VIs in the Highest layer is only allowed to call VIs located in the same layer or one layer below, i.e. not call VIs in the lowest layer. VIs in the second layer is only allowed to call VIs located in the same layer or one layer below, i.e. not call VIs in the top layer. //Mikael
    1 point
  4. To be sure you get the right Identity/ID/Identifier of a recently inserted row, you should call execute this query: MSSQL: SELECT SCOPE_IDENTITY() do not use the SELECT @@IDENTITY command it can give you unwanted behavior. http://msdn.microsoft.com/en-us/library/ms190315.aspx MYSQL: SELECT LAST_INSERT_ID() Cheers, Mikael
    1 point
  5. im not a database expert but i reckon you can query the Identifier column of that table and sort it in descending order, the 1st item will be the latest identifier that you have just inserted. it will b something like: SELECT TOP 1 Identifier FROM Mytable ORDER BY DESC Or you can just Google for a built-in function that returns the latest ID Regards,
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.