Max qurey-view

Hi eveybody:
I need your help. I have a table which primary key containes three fields. I would like to able to create a view select the maximum value of each key.
Primay Key Fields: PRIM_SEQ, START_DATE and END_DATE
Example:
PRIM_SEQ START_DATE END_DATE AMT_REQN
214 12/31/1999 12/31/1999 394775
214     1/1/2000 12/31/2000 0
214     1/1/2001 12/31/2001 50203
309 1/1/2002 12/31/2002 12548
309 1/1/2001 12/31/2001 858
309 1/1/2000 12/31/2000 0
309 1/1/1999 12/31/1999 589
309 2/1/2003 12/31/2003 788
309 1/1/2003 1/31/2003 11547
I would like my view only shows the followings records:
PRIM_SEQ START_DATE END_DATE AMT_REQN
214     1/1/2001 12/31/2001 50203
309 2/1/2003 12/31/2003 11547
Thanks,

Actually is probably neither 12548 nor 11547.
PK=(PRIM_SEQ, START_DATE, END_DATE) … but there likely is one important item that was left out: within each PRIM_SEQ partition, those [START_DATE, END_DATE] date ranges are mutually exclusive. It is kind of important for the MAX(START_DATE) and MAX(END_DATE) to be found on the same row within each partition.
SQL> alter session set nls_date_format='dd-mon-yyyy';
 
Session altered.
 
SQL> select * from ff order by 1,3;
 
  PRIM_SEQ START_DATE  END_DATE      AMT_REQN
       214 31-dec-1999 31-dec-1999     394775
       214 01-jan-2000 31-dec-2000          0
       214 01-jan-2001 31-dec-2001      50203
       309 01-jan-1999 31-dec-1999        589
       309 01-jan-2000 31-dec-2000          0
       309 01-jan-2001 31-dec-2001        858
       309 01-jan-2002 31-dec-2002      12548
       309 01-jan-2003 31-jan-2003      11547
       309 01-feb-2003 31-dec-2003        788
 
9 rows selected.
 
SQL> select ff.*
  2  from  ff
  3       ,( select prim_seq
  4                ,max(start_date) max_start_date
  5                ,max(end_date)   max_end_date
  6          from  ff
  7          group by prim_seq
  8        ) agg
  9  where  ff.prim_seq   = agg.prim_seq
10  and    ff.start_date = agg.max_start_date
11  and    ff.end_date   = agg.max_end_date
12  ;
 
  PRIM_SEQ START_DATE  END_DATE      AMT_REQN
       214 01-jan-2001 31-dec-2001      50203
       309 01-feb-2003 31-dec-2003        788
or with analytics …
SQL> select t.prim_seq
  2        ,t.start_date
  3        ,t.end_date
  4        ,t.amt_reqn
  5  from   ( select ff.*
  6                 ,case start_date
  7                     when max(start_date) over (partition by prim_seq) then 1
  8                     else 0
  9                  end last_ind
10           from  ff
11         ) t
12  where t.last_ind = 1
13  ;
 
  PRIM_SEQ START_DATE  END_DATE      AMT_REQN
       214 01-jan-2001 31-dec-2001      50203
       309 01-feb-2003 31-dec-2003        788That is my interpretation anyway.
One more thing ... an IOT will likely help here.

Similar Messages

  • Compact RIO NI-9082 Configuration in MAX Unable to Save

    Hi everyone,
    I've been trying to set up a new cRIO the NI-9082. Currently, I am able to see the cRIO under 'Remote Devices' in MAX and view configurations. However, two errors are occurring:
    1). When I try to change setting such as hostname and press 'save' a warning pops up saying "There was a problem saving the settings to the target. Make sure your hardware is powered on and hat it is connected to the network". I've attached an image below.
    2). At the same time, when I try to install software onto the cRIO by right-clicking 'software' and selecting 'add/remove software' and run the 'LabVIEW Real-Time Software Wizard', another error pops up: "Error: the harddrive n the remote system is either full or encountered an I/O error." I've also attached an image below.
    The cRIO is powered on with 'DISABLE RT' toggled OFF. It is connected to the network via an Ethernet cable. This connection looks fine however I look at it. (The Ethernet port connection light is flashing continuously indication activity etc.) It is from the PC which is connected to the same network, that I am trying to interface with the cRIO. The cRIO displays the correct IP address assigned through the network.
    Apologies if I haven't supplied sufficient information to solve this problem, but if anyone might be able to explain why I might be encountering these two problems under these circumstances, help would be extremely appreciated. Thanks!
    Solved!
    Go to Solution.
    Attachments:
    cRIoConfigProblem.JPG ‏229 KB
    MAXsoftwareInstallError.JPG ‏26 KB

    Hi Craig,
    Thank you for your reply! The firewall was an initial issue, so I had asked an administrator to disable it. This allowed me to proceed to my current stage where I am able to see the cRIO and its configurations in MAX; but encounter the problems mentioned in my main post. At least, I think its been disabled. In the attached FirewallOFF.JPG, everything does look turned off. However, in the attached FirewallMAXUnticked.JPG, MAX is not 'ticked' as an 'allowed program'; but when I proceed to add it, the error message shown pops up confirming MAX is already on the list of exceptions. If the firewall isn't the problem, do you have any other ideas what might be? 
    Regards,
    Ya-Wei.
    Attachments:
    FirewallOFF.JPG ‏110 KB
    FirewallMAXUnticked.JPG ‏108 KB

  • MAX 4.2.1.3001 Task Test Panel Button Missing

    I just upgraded to LabView 8.2.1, along with the drivers, NI-DAQmx, MAX, etc., and now when I use MAX to view my existing tasks, they no longer have a "Test Panels" button.  They appear to now have an integrated test graph.  That is nice, but before I was able to press the "Test Panels" button, select a type of "Values" instead of a graph type, and this would allow me to see the raw values that each channel was returning.  What happend to this functionality in 8.2.1.3001?  I know that I can go to each individual channel and see its raw values, but that is not acceptable.  I need to see all of the values of each of my task channels together in one place, the same way I was before "upgrading" to the new MAX.  Am I missing something?
    Thanks for listening!
    Rick Howard
    Exquadrum, Inc.

    This post and also this post, which are the same, have been replied to on this DAQ forums post, on which you can continue posting.  Please post only once on the most relevant forum.
    Regards,
    Raajit L
    National Instruments

  • How to delete a resource that didn't show up in MAX configuration tree?

    I want to delete the TCPIP0 resource. The help says to right-click it in the configuration tree and to select DELETE. The problem is the TCPIP0 resource doesn't show up in the configuration tree. Is there another way to delete it from MAX database?
    Note that it also doesn't show up in VISA interactive controls.
    Thanks,
    Ben
    Attachments:
    MAX2.PNG ‏109 KB
    MAX3.PNG ‏71 KB

    If you want to delete resource names individually, delete their aliases from visaconf.ini (the file that stores the aliases), and then refresh Measurement & Automation Explorer (MAX) to view the changes.
    Applications Engineer
    National Instruments

  • Buying a new Monitor

    +*I have a Mac iBook 800 MHz PowerPC G3 with 256 MB SDRAM running Mac OS X Version 10.4.11.+*
    +*The Graphics/Displays says the following:*+
    ATI Mobility Radeon 7500:
    Chipset Model: ATY,RageM7
    Type: Display
    Bus: AGP
    Slot: ATI
    VRAM (Total): 32 MB
    Vendor: ATI (0x1002)
    Device ID: 0x4c57
    Revision ID: 0x0000
    ROM Revision: 113-XXXXX-207
    Displays:
    Color LCD:
    Display Type: LCD
    Resolution: 1024 x 768
    Depth: 32-bit Color
    Built-In: Yes
    Core Image: Not Supported
    Main Display: Yes
    Mirror: Off
    Online: Yes
    Quartz Extreme: Supported
    Display:
    Status: No display connected
    +*The monitor output plug hole on the side of the computer is a mini DVI.*+
    +*I am thinking of buying an external monitor. A 21.5 in Samsung EX2220x which has both DVI-D input and Dsub input. The latter is labeled RGB-in on the back of the monitor. Its specs are:*+
    Display
    Screen Size
    21.5" Wide
    Brightness (Typical)
    250 cd/m²
    Contrast Ratio (Typical)
    MEGA DCR (Typ. 1,000:1)
    Resolution
    1,920 x 1,080
    Response Time (Typical)
    5 ms
    Viewing Angle (Horizontal/Vertical)
    170˚ / 160˚ (CR> 10)
    Color Support
    16.7 M
    Signal input
    Video Signal
    Analog RGB, DVI
    Sync. Signal
    Separate H / V, Composite, SOG
    Connector
    15pin D-SUB, DVI-D
    Power
    Power Consumption
    22 Watts
    Stand By Power (DPMS)
    <0.3 W
    Type
    Built-in
    Features
    Plug & Play
    DDC 2B
    USB powered hub option
    No
    Mac compatibility
    Yes
    Multimedia Speakers
    No
    Wall-Mount
    75 x 75 mm
    TCO
    TCO'5.0
    Cabinet Color
    High Glossy Black
    Optional Accessories
    DVI Cable
    Special Features
    MagicBright3, MagicEco, MagicAngle, MagicReturn, Off timer, Image Size Color Effect, Customized key, Windows7, DVI with HDCP
    +*My question is will my Mac drive this monitor & if so would it be best to connect the computer to the DVI-D or the RGB input?*+
    +*If the Mac will not drive the above monitor will it drive my second choice a 20 in Acer X203HBD which has both a DVI w/HDCP and a VGA input. Its specs are:*+
    TFT Technology
    TN
    Image
    Image brightness
    300 cd/m2
    Image Contrast Ratio
    10000:1 (dynamic)
    Max horizontal view angle
    170
    Max vertical view angle
    160
    Display
    Diagonal Size
    20 in - Widescreen
    Dot Pitch / Pixel Pitch
    0.276 mm
    Max Resolution
    1600 x 900 / 60 Hz
    Color Support
    24-bit (16.7 million colors)
    Max Sync Rate (V x H)
    75 Hz x 80 KHz
    Response Time
    5 ms
    Signal Input
    DVI-D, VGA
    Features
    HDCP
    Video Input
    Analog Video Signal
    RGB
    Digital Video Standard
    Digital Visual Interface (DVI)
    Expansion / Connectivity
    Interfaces
    1 x VGA - 15 pin HD D-Sub (HD-15) , 1 x DVI-D - 24 pin digital DVI
    +*My question is will my Mac drive this monitor & if so would it be best to connect the computer to the DVI or the RGB input?*+
    Thank you for your help.

    If the monitor has a VGA input, as it appears it does, and will support 1024x768, then you could use it, but it would be a waste of a 22" monitor. Without hacking your iBook an external monitor will only mirror the internal screen (the iBooks do not officially support extended desktop mode which allows you to have different things on the two screens) and at 1024x768, far below the monitor's native resolution, things will be quite fuzzy.
    Regards.

  • Lookout 5.1 & 6.1 locking up

    During last two weeks, lookout Ver 5.1 which has been running without problems for a couple of years started locking up with out warning usually around midnight or shortly after.
    Attempted all recommended fixes that I could find from the website and forum and even moved it to a new computer but problem is still occuring.  
    Upgraded to 6.1 and problems still exists. After approx 5 mins of
    runtime, lookout.exe drives CPU to 50% (dual core processor), the menu bar on the
    screen disappears and the system locks.
    Have to reboot computer to get back system.
    Running brand new computer with Win XP Pro SP3.
    Need some help quickly!!!
    Runing AVG FREE antivirus - nothing found with any scan.

    First, you need to check if Lookout reads the good value from PLC. If the communication stops or the data has bad quality, Lookout won't log and no data on Hypertrend. So, make sure the communication to PLC is good and data is good during the period when hypertrend shows nothing. For example, if PLC1.data1 stops updating on Hypertrend, check if PLC1.data1 stops updating or red X on it. Also notice if there are any alarms during that time.
    Then, go to MAX to see if the data is logged into Citadel. In MAX, create View to display the trend. Check if the data is there or not. If the data is logged, the problem is in Hypertrend. But if there are no trend either in MAX during the gap, it means the logging has problem.
    After you create the View, you can "Export to Text". Refer to the attached pic. In the txt file, there are the raw data from Citadel. If there is no data logged during a certain period, you will see the blank in data column.
    For example,
    183 9:58:26.316 AM 123
    184 9:59:37.490 AM 
    185 9:59:37.490 AM 123
    This means from 9:58:26.316 to  9:59:37.490, there is no data logged.
    So, we need to check if the data from PLC is good and if the data is logged.
    Ryan Shi
    National Instruments
    Attachments:
    untitled6.JPG ‏95 KB

  • Problem to get all channel work

    I am designing a system to read temperature using SCXI1000,SCXI1100,SCXI1303,type T Thermocouple, and Labview7. The problem is that I want to use 9 channels, but only one works ( channel 0)when doing a test on the channels using MAX. I am wondering why that happen. Is it a hardware problem, configuration etc....Please give me an idea what may happen.

    You do not have a hardware or software problem. When you use an SCXI chassis, all the channels are mutiplexed through channel 0 of your DAQ card. You will not be able to view any of the channels by merely referencing channel 0 using the Test Panel function.
    You could use one of the SCXI-1100 example VIs that ship with LabVIEW, or, you could consider using Measurement and Automation Explorer (MAX) to create virtual channel names. This will serve several purposes:
    1) It provides uniques names for each channel
    2) It simplifies the channel call syntax during acquisition (you would use T0,T1,T2... instead of ob0!sc1!md1!0:8
    3) It provides a means to output reduced temeprature data directly without writing a VI for data reduction
    4) The temperature readings will alread
    y be referenced to the cold junction on the 1303 module, and,
    5) You will be able to use the channel viewer within MAX to view all of the temperature readings.
    To create a virtual channel name, launch MAX. Under the Configuration tree (LHS window) RIGHT mouse click (RMC) on the Data Neighborhood entry and select >> Create New...
    In the pop-up window, select Virtual Channel and press the finish button. Now follow the Channel Wizard prompts to create the virtual channel. Choose any name you like for this first channel. Once completed, you can go back to the Configuration tree, RMC on the channel name and select "Duplicate...". It will create muliple copies and assign them sequential names and assign them to sequential channels on the 1303 module. Once you have finished, you can view the channels using MAX. If you Select TEST on the top menu bar, a window will be launched that will allow you to view the reduced temperature readings.

  • Multiple channels from GigE camera

    Hello NI Folks,
    I am using a GigE camera for my Machine Vision application. I have to save data from all three channels coming out of Camera.
    I am using Example VI from National Instruments 'Grab and Setup attributes.vi' to get attributes and save Image. But the problem is this example VI has capability only to grab data from one channel. Anyone please give an idea for Which part of thIS example VI should I edit to grab all the three channels ??
    I checked this issue even in MAX. I selected all three channels in MAX and tried to take a snap from camera, but there is only one image captured, there is no option in MAX to view all three channels. I am attaching the MAX scrrenshot below which shows all the channels from my GigE are activated
    How to make Labview to read all the three channels from camera ??
    Regards
    Neo.

    Hello Mr.Alexander Glasner,
    This is the camera I am using
    http://www.automationtechnology.de/cms/index.php?id=243&L=1
    It is used for Laser triangulation technique. this camera gives out  3D data in one channel, Intensity data in other channel, grey scale Image in third channel. All these these channels comes out ofcamera through a single Gigabit Ethernet.Camera manufacture provided a software with which streaming of desired channels is possible. But I want to do it in Labview. Is there any block in IMAQ library to isolate these channels from GigE Interface ?
    My point with MAX is, MAX is able to grab all the attributes including its channels names DC0,DC1,DC2. But it is not able to display three channels seperately when selected.
    Regards
    Neo

  • IMAQdx timestamp off-by-one

    I have a network camera and it provides its own timestamp via the IMAQdxTimestampHigh and IMAQdxTimestampLow properties. I'm observing something I don't expect -- the timestamp appears to be off by one image.
    I have a simple VI that shows this behavior. In it, I open an IMAQdx session with my camera, configure a grab, reset the timestamp counter, and read the images sequentially. When examining the timestamp associated with each image, the first image has what appears to be the Nth+1 image's timestamp from the previous grab, as if stale data was left in memory.
    To see this behavior, run the "Exercise Timestamp Reset.vi" twice. Before you run it the second time, take note of the value for "Last Timestamp". When you run it the second time, the value for "First Timestamp" is slightly higher than "Last Timestamp", which suggests stale data. I would expect "First Timestamp" to be close to zero.
    What could be causing this behavior, and how can I fix my code? So far, I've tried:
    Moving the "Reset Timestamp Counter.vi" so that it is called immediately after creating the IMAQdx session,
    Creating an IMAQdx session, resetting the timestamp counter, and clearing the session before creating a second IMAQdx session for the grab.
    My particular configuration:
    Allied Manta MG 504B ASG
    LabVIEW 2009 SP1
    IMAQdx 3.9.1
    Solved!
    Go to Solution.
    Attachments:
    Exercise Timestamp Reset.zip ‏50 KB

    BlueCheese wrote:
    Maybe I used the wrong terminology here.... Its not so much "subverting the firewall" as processing the GigE Vision-related traffic at the lowest layer in the network driver, well before it gets handled by the network stack and any firewalls in the system. This is somewhat implied by using the "High Performance GigE Vision Driver". The firewall is still in place for any other traffic to the system.
    When you are _not_ using the high-performance driver, the GigE Vision data does go through the firewall. However, since the reception is done in the OS kernel for performance reasons the firewall doesn't work quite the same way as through applications. The various exceptions you can modify on the list relate to individual programs, not the kernel. The kernel effectively has unrestricted access to the network stack. However, because of the way the firewall works it does end up blocking UDP traffic that is not "connection-based" -- in that UDP inbound traffic is not allowed unless outbound traffic along the same path was recently detected. In the original GigE Vision 1.0 standard there was always a unidirectional path with no way to make it appear bidirectional. In later versions a feature was added that made it possible and today most cameras support it. This is the "Firewall traversal" feature that I mentioned earlier that can be enabled inside IMAQdx. This is likely the easiest option and doesn't require any changes to your firewall configuration.
    Thanks for your clarification -- I'm not so alarmed :-)
    I was able save another Wireshark capture after enabling Firewall Traversal, and this time I saw a lot more traffic. I set the camera's PacketSize to 1200 and saw many UDP transfers just above that size.
    One thing that was a bit strange: I could only enable Firewall Traversal from MAX via View Options » All Attributes and then checking the box for AcquisitionAttributes » AdvancedEthernet » FirewallTraversal » Enabled. I didn't see an equivalent in the LabVIEW Class Browser: Firewall Traversal was not present in the Advanced Ethernet submenu. I didn't see any filtering options for the property node either (I've seen that before in DAQmx). It was only discoverable as AcquisitionAttributes::AdvancedEthernet::FirewallTraversal::Enabled by using IMAQdx Enumerate Attributes.vi. I suppose that the driver doesn't keep a cache of some attributes and relies on run-time detection instead.
    At any rate, I would be grateful if you can inspect whether or not the camera is sending bad timestamps. I am still waiting for a response from Allied about a firmware update.
    Attachments:
    firewallTraversal.zip ‏3388 KB

  • Luakit browser framework (almost with jQuery!)

    Edit: This information is out of date by a few years now, luakit works great now!, get tinkering!
    Hey Guys,
    As a project to teach myself C I've spent the last 3 weeks slapping the AwesomeWM Lua API on to a WebKit based micro-browser (in this case I chose surf) with the intention of creating a dynamic, easy to configure, easy to prototype, micro-browser configured and extended entirely by Lua.
    I've got window creation and several functioning widgets working (webviews, textareas, hboxes, vboxes and a notebook widget for tabbing) but I've still got a long way to go.
    With a bit of work on each of these widgets and the development of a "higher-level" Lua library like the AwesomeWM projects awful library the browser will be ready for every day use. The awful library (in case you are not familiar with it) provides a friendly wrapper around the AwesomeWM's raw C API, I plan on creating the same for Luakit.
    I intend (like the awesome window manager) for Luakit to be more of a browser-framework and the actual look and behavior of the browser be crafted entirely by the users Lua config.
    I have the project hosted here:
    http://github.com/mason-larobina/luakit
    And a public issue tracker and wiki setup here:
    http://www.luakit.org/
    Discussion about the direction of Luakit, feature suggestions, testers (down the track) and developers welcome.
    Happy hacking!
    Second Edit: Screenshots of luakit in action:
    Last edited by mason.larobina (2012-06-10 02:22:08)

    aeosynth wrote:how do I auto-enter insert mode when focusing a text box?
    Easy & done already, have a look here.
    aeosynth wrote:how can I scroll by pages?
    You can't at the moment but you can get the view size from the get_scroll_vert method:
    local current, max, view_size = view:get_scroll_vert()
    Then its just a simple calculation to scroll by a multiple of the view_size.
    aeosynth wrote:actually, if I'm not focused on a text box and enter insert mode, then page up/down, (shift) space work normally. this probably isn't intended behavior.
    when I'm editing text and exit insert mode, I expect vim's normal mode commands to work xD. someone's already ported vi to javascript actually: http://gpl.internetconnection.net/vi/
    The view:eval_js(script) method works really well now, I haven't tried it with that script but I imagine you could get something similar working (obviously vi embedded inside a modal browser would cause problems) but a subset of those commands would work well. 
    aeosynth wrote:I need mouse bindings to get new tab on middle click, rocker / mouse gestures.
    Mouse button bindings have been added here.
    aeosynth wrote:the rc.lua seems really big. some of these functions could be pushed out into a library.
    Yes it is & yes they will be.

  • Configuring NI-PCI-MIO 16xe-10

    I'm attempting to configure LabView 7.1 with my NI PCI MIO 16xe-10 device on Win7(32bit).........
    Using the discussion board, I've been able to get the LV7.1 working with Win7 (yea!!)
    I've also been able to install the PCI-16xe-10 device and use the Meas&Automation Explorer to receive signals with the "assistant".(yea!!)
    What I cannot do is get the LabView 7.1 to communicate with the device. (Grrrrrr).
    I am basically using LabView as a fancy 'chart-recorder' or volt-meter to record singnals and store them to a file.  Nothing really fancy.
    My 'fall-back' is to re-install the card in the XP box and continue living in the past.
    Any suggestions would be greatly appreciated.

    Callmeal,
    Measurement & Automation Explorer (MAX) is NI's version of Windows Device Manager, and is not the actual driver to your products.  You can use MAX to view installed drivers & software, but more importantly MAX is used to troubleshoot & configure hardware.  The image below demonstrates how to find your DAQmx Driver Version.
    Not all DAQmx drivers are compatible with all versions of LabVIEW.  Please see this NI-DAQ and LabVIEW Compatibility article.
    In regards to your sales question, I would highly recommend upgrading.  The current version, LabVIEW 2011, offers a large number of advanced features not available in LabVIEW 7.1, including simple data logging.
    Regards,
    Alexander M
    Applications Engineer
    National Instruments

  • What is Exclaimation Mark on some photos?

    After altering some settings (max) for viewing web-sites, etc, I've found that 25-30% of my photos in iPhoto show up with a big, black exclaimation point where the picture should be! What's going on? Thanks for your time.

    It means that the file path to the original file has been broken.  Do the following: make a temporary, backup copy (select the library and type Command+D) and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Transfer cidital database

    Will some tell me what is the excat procedure for transfering the database to another computer.
    I had a computer fail and replaced it with a temp laptop till I replaced it with a permanet computer several months ago.
    I tried to transfer the dabase but it would not show trend data.
    I cannot remember exactly what I did, just know it did not work.
    Lookout ver 6.0.1

    Take a look at this KB
    http://digital.ni.com/public.nsf/allkb/2B0C74744BB37391862571F500067C64?OpenDocument
    If two computers are both working fine, you can use the MAX to archive the database from one computer to another.
    If one computer has problem, and you only have the database files, just copy all the files to the destination computer. And follow the KB to attach the database.
    To verify if the database is successfully attached, you can create trend viewer in MAX to view the trend.
    And then, you need to tell Lookout to use this database. Configure the system default database in Option->System, or specify a database for the process in File->Modify Process.
    Ryan Shi
    National Instruments

  • DSC vs. TDM

    Hi,
    In our
    company we have a few data-loggers and are thinking of an improvement
    considering data-management and reusability. Therefore we consider the DSC
    (Citadel) and the TDM format.
    At the
    moment we are looking per hour to a binary file with a size of 133 MB. We have
    32 digital and 64 analog channels. Every channel creates 500 data points per
    second. Every value of the 32 digital channels (Boolean array) is converted
    into an U32 value.
    I have
    already tested DSC and TDM. The data-management and the performance of viewing
    the data is very good with Citadel. Disadvantages: When writing the digital
    channels to the database every value reserves at least 1 Byte à overhead of at least 7 bits. The entire needed
    storage for one hour grows about factor 3. We’ve also tried to compress a
    digital array of 32 values to an U32 value. That would save storage but viewing
    the data with MAX isn’t possible. Therefore we have tried to programmatically
    view the data with the Mixed Signal Graph which would be a good opportunity for
    us to view analog and digital data. Unfortunately the loading of the data isn’t
    reasonable for our users. Furthermore we have also tried to use MAX to view
    data from a remote computer. There we detected a great performance lost
    compared with viewing on a local machine. Is it a know issue?
    Next we’ve
    investigated the TDM format. It is really a great thing (we can store the
    scaling and other describing information) but a big problem for us is that we
    aren’t able to search within the binary data. A further disadvantage compared
    with DSC is that we have to care for the data management and that the viewing
    of the data is much slower.
    Has anybody
    tips or details for a possible solution for our problem?
    Many thanks
    in advance.
    Kind
    Regards,
    Joachim

    Hi Robert,
    Yes, we already use Diadem in our company. The main problem is that we aren't able to search the binary data --> signal. In our binary file we have compressed 32 digital signals to an U32. There is only the possibilty to view the data with a DataPlugin which describes the configuration of the binary file. The TDM format is a good format but our application should be continous user friendly. Our favourite would be the TDM file format which can be viewed with the Mixed Signal Graph with a high performance like the MAX is doing it with Citadel data.
    Kind Regards,
    Joachim Schreibmaier

  • Serial Commuinica​tions

    I'm trying to figure out how to communicate with a California Instruments Model 801PR Power Generator using the Com1: port.   I've tried example serial programs in Labview and get the following error:
    Error -1073807346 occurred at VISA Open in Serial Communication.vi.
    Possible reasons:
    VISA:  (Hex 0xBFFF000E) The given session or object reference is invalid.
    When I try running an "initialization VI" that was provided with the 801PR (in the CICRP50 vi lib) I get the following message:
    Error -1074135040 occurred at CIC_RP50 Initialize.vi.
    Possible reasons:
    IVI:  (Hex 0xBFFA0000) Cannot load IVI engine.
    Does anyone know what this means and is anyone able to offer advice on how to communicate via the serial port. I'm using Labview 6.1 and this is my first project.

    Hi cmm,
          Before you can use the serial-port in LabVIEW, MAX has to "see" it.  Normally,  in MAX, it appears per pic. (attached)
    If you don't see the "COM" port in MAX, try VIEW\Refresh - (MAX will look for "new" devices.)
    If it _still_ doesn't show-up, you may have some hardware conflict.  Can you use the port under Windows' Hyperterminal?  (use a loop-back connector to confirm operation.)
    Cheers
    When they give imbeciles handicap-parking, I won't have so far to walk!
    Attachments:
    MAX.JPG ‏24 KB

Maybe you are looking for