Simulated Device Aliases should behave like other device Aliases

BUG submission:
Here is a nasty little problem: do the following:
Replace a USB device neatly:
Assign an Alias to a USB Device  For simplicity use an NI USB 6008 "MFD1"
Remove the device from the system
Plug in a new NI USB 6008
Run the code here with "Device to rename" = MFD1
require no further action.  This is desirable behavior!  user's are happy (And if I went to nirvana and wrote the Devmon hook linked from the abResult: Old 6008 becomes "Dev1" New 6008 is MFD1 and existing applications calling resources for "MFD1" ove the swap happened at PnP device discovery)
Similar techniques can be used for a system where one developer delivered a solution using a DMM as "Dev1" and your app call's it "DMM1"  Yup, Application specific hardware configuration has a lot of potential!
Contrast that with this:
Replace a Simulated USB device:
Assign an Alias to a Simulated USB Device  For simplicity use an NI USB 6008 "MFD1"
Plug in a new NI USB 6008
Run the code here with "Device to rename" = MFD1
Ignore the runtime error
Result: Simulated 6008 remains "MFG1" New 6008 is "Dev1" and existing applications calling resources for "MFD1" are broken pointing to the simulated device.
Simillar problems ocurr when importing a *.nce file (No surprise since, the system configuration API lets LabVIEW act on system configuration methods and properties just the way MAX does)
This bug can be a showstopper for high mix test enviornments with staged test releases.
Jeff

Intaris wrote:
An alias for a usb device is probably intimately linked to the device serial number. If the devices have valid serial numbers (usb spec says its optional) then what you want wont work because windows will only ever recognise that device with pid vid and serial number exactly matching as being the same device.
Which is why I intercept the connection event and configure NI Device monitor to launch the custom exe to re-name the alias via the system configuration API for USB DAQmx devices (and launch a config import from file in a system rollcall sequence for system hardware that doesn't use the DAQmx expert)
With an alias I could care less about how the OS identifies the resource- its what they exist for
Jeff

Similar Messages

  • ResourceBundle should behave like HashMap

    I am a little uncertain of why a ResourceBundle acts like a Map, but is very limited in the functionality that a Map provides. I have seen the API for 1.5 and it looks like ResourceBundle has not changed. I think it would be very beneficial to add containsKey type functionality. It just does not seem very functional to test for dynamic keys in a ResourceBundle by handling the MissingResourceException. I have actually created a Handler class that I use instead of ResourceBundle because my keys are dynamically created based on user roles, therefore, I don't want a lookup to fail just cause the key does not exist. Hence why a boolean test method should exist.
    Thanks for listening.
    Jay

    What should it act like? A LinkedList? There is an argument for not having a containsKey method: If you call containsKey and it returns true, presumably you are going to get the value after, so why not just get the value and check for null, or catch the exception in the case of ResourceBundles? I just generally use a method to get the values...
    public static String getString(ResourceBundle b, String key, String default) {
       try {
          return b.getString(key);
       } catch(Exception e) {}
       return default;
    }

  • Open/Place Dialog not behaving like other apps - win 7 64bit

    I just recently switched from mac to windows at work. It was also a jump from orginal CS(mac) to CS5(win). One thing I am having a problem with is that I can't create shortcuts/favorites on the left in those open/place/save dialog windows. All I get is a static frame with Recent Places, Desktop, Libraries, Computer and Network. But no Favorites. I can't even expand them in to trees. I can't right click on the icons or in that pane. The only thing I can do is left click and it opens up the view they represent. In other programs, such as Firefox, OpenOffice or Notepad, you have a Favorites selection and you can drag stuff over to it at any time.
    Is there any way to get that behavior in the Windows version of CS5?
    I work on a weekly newspaper and do lots of placing from many different locations through the week. I used to set up the new shortcuts at the beginning of the week on the Mac but haven't figured out how to do that in CS5 on Windows. By having to browse back and forth to those different folders I am losing about an hour or more of productivity over the course of a week. It really hurts as we approach our deadline.
    Any help would be greatly appreciated.

    bryanspringfield wrote:
    I tried to use Recent Places but it changes so frequently and I also use a lot of folders that have the same name but they are under different weeks directories so it's not as reliable. I suppose I can clear off the desktop and put all my shortcuts there. It's an extra step but seems like it will work bettter than how I've had to do it so far. Thanks to everyone. If anyone has a better solution, I would be pleased to give it a try.
    Since Desktop is always a choice, consider creating a single Desktop folder and placing shortcuts to the directories and subdirectories in it. The more Desktop items, the greater impact on resources and performance, but a single folder that contains other items counts as one item.
    If your files are kept on a network drive, Desktop can contain a shortcut to a shortcut folder on the common drive and all users can create shortcuts to it.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • How can I sync my iPad to a computer after syncing it to the iCloud? I have the option of setting it up new, or restoring to a sync from many months ago. I dont want to lose any apps but I would like to back up on computer. No auto sync like other devices

    How can I sync my iPad to a computer after syncing it to the iCloud? I have the option of setting it up new, or restoring to a sync from many months ago. I dont want to lose any apps but I would like to back up on computer. No auto sync like other devices.

    Plug it into your computer. Tell it to sync with "this computer" instead of iCloud. You shouldn't have to remove any apps. Otherwise, you can save the app data by using i-FunBox ( http://www.i-funbox.com/ ) just go to the "devices" tab and select 'user applications' and select all of your apps and tell iFunBox to "copy to pc" you're done! You have them all backed up.

  • Generating a custom signal through a simulated device

    Hello,
    I am acquiring 6 channels of strain gauge data simultaneously through the SCXI-1000 chasis with the SCXI 1520 card.  I want to create a synthetic input signal so I can test my programming structure.  I created a simulated device and simulated channels, but I cannot figure out how to control the simulated signal that is being generated.  I would like to be able to specify a waveform, frequency, and amplitude of the simulated data so that I can test some special cases of my application.  i cannot use the 'simulate signal' subvi because my code needs to remain unchanged to truly test this.  please let me know if this is possible through a simulated device.  your help is much appreciated.
    thanks,
    jt

    jt,
    You can write your own simulated signal source.   Make a copy of the DAQ Read VI with a different name.  This gives you a VI with the same connector pane so it can be substituted into your program.  Open the simulation VI and remove all of the DAQ stuff.  Put your simulation code in its place.  Substitute the simulation VI for the DAQ Read VI in the main program.
    Now, how do you "specify a waveform, frequency, and amplitude of the simulated data?"  
    You can add a cluster with controls for all those variables to the connector pane if there is a terminal available. Or you can use an Action Engine.  Call the action engine with the command set to Write in your setup code or in a separate VI for the purpose.  Inside the simulated DAQ Read VI call the AE with the command Read to get the parameters for your simulation.  Your flexibility with this approach is limited only by your imagination and your coding skills.
    Lynn 

  • Why can't I see a simulated device in myDAQ assistant?

    I have created a simulated device (cdaq 9174) in NI MAX.
    I am using the DAQ assistant symbol in labview to create a voltage signal simulation.
    When I get to the "select physical channels to add to the task" screen in the DAQ assistant, my simulated device is not showing up, even though I can see it in NI MAX.
    Any trouble shooting suggestions?

    Hi Dawud,
    you should stick with your original thread instead of scattering the problem in different places…
    Did you also simulate some modules in this cDAQ chassis?
    Why don't you supply a MAX screenshot with your question?

  • Compact fieldpoint simulated device for simulation

    I am preparing to use a compact fieldpoint device (cFp-2120) with some I/O modules for DAQ through ethernet communication.
    However, the hardware is not ready yet.
    Is it possible I can create a simulated compact fild point device with those I/O modules in MAX and then use these simulated devices just as the real devices in LabView to start writing the vi programs
    Thanks
    jinhua

    Hi,
    It sounds like you are interested in a feature similar to simulated devices like we offer with our DAQ devices. Unfortunately we don't offer this feature with FieldPoint. Let us know if we can help you in some other way and we'll be glad to answer any other questions you might have.
    Eric A.
    National Instruments
    Distributed I/O Product Support Engineer

  • Simulated device in a distributable application (executable)

    I've built my VI using a simulated USB-6218 DAQ device. Now I need to build the executable, with application builder, to be used in manufacturing where they don't have LabVIEW loaded, but they do have the USB-6218 available. I'm running LabVIEW 8.5. When I build the application and install it on the manufacturing computer, the non-DAQ features run correctly (ie LEDs respond, etc), but the USB-6218 does nothing. I've run the USB-6218 with the test panel in MAX on the manufacturing computer and it seems to respond correctly. Question is, how do I handle a simulated device so that the vi works on the real device after being compiled into an executeable? -Thanks.

    This should be no problem, I do this all the time, I make a simulated device om my computer and write the application, I usually rename my device in max to match the application.  When I install the exe on the client computer I rename the real daq device in max with the mane of the device I was previously simulated.  DaqMx will handle the call diferently depending if the resource is real or simulated.
    Paul
    Message Edited by falkpl on 07-15-2008 03:42 PM
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Simulated device capability for the NI USB-6008

     I noticed that Nidaq 8.3, does not have simulated device
    capability for the NI USB-6008.  Is there any way of simulating
    this device?
    Thanks

    Hello mmac,
    Unfortunately, there is no way to simulate the USB-6008.  If you would like to see this functionality in a future revision of NI-DAQmx, I would encourage you to go to the Product Suggestion Center and submit a product suggestion.  R&D considers these suggestions when deciding on new features for development. 
    Best regards,

  • DAQmxRegisterEveryNSamplesEvent Simulated device

    Hy to all,
    i simulate a 6014 CARD for test my simple test application using Measurement & Automation Explorer (MAX). I'm using ANSI C without Measurement Studio to develop my application. When i register the callback by DAQmxRegisterEveryNSamplesEvent (...) i don't get any error (return value==0), bat when the (simulated) acquisition is started the Callback isn't called. Does it depends on the simulated card?? How does the simulated card implement the timing and triggering?? have Anyone followed this kind of modality??
    Thanks in advance.

    ringos75,
    Timing and triggering are not simulated for simulated devices.  From the NI-DAQmx help file:
    Timing and Triggering with NI-DAQmx Simulated Devices
    With NI-DAQmx simulated devices, the following timing and triggering considerations exist:
    NI-DAQmx simulated devices do not simulate timing and triggering.
    An NI-DAQmx simulated device never issues a software event or causes a timed loop to execute.
    Reads never have to wait for data.
    Triggers always occur immediately.
    Watchdog timers do not expire.
    You should be able to write your program as though a real device were there (ie... all methods should error if you given the invalid parameters) however when you run the program with a simulated device, the tasks will act with the behaviors described above.
    Hope this helps,
    Dan

  • Obtain the determinat​e data from the NI-DAQmx Simulated Device

    Dear All,
           How to config in MAX in order to obtain the determinate data from the NI-DAQmx Simulated Device?
           For example, the vi will run when the Digital I/O line is High, but using the Simulated Device, the result is  random. In another word, I can't set the line is high or low.
           Would you please give me some suggestion?
           Thank you!
    Hugo

    Here is what I mean of stopping the DAQmx stimulated device. I do from step A - E; and step E is what I mean stopping the DAQmx stimulated device.
    3. Use the NI-DAQmx Task in VI Logger Lite to complete a data logging application.
    a. Open VI Logger Lite. If you do not have VI Logger Lite, download it or request a free CD.
    b. Right-click My System>>VI Logger Tasks and select Create New.
    c. Select Using NI-DAQmx and click Finish.
    d. Select the NI-DAQmx task for the NI-DAQmx simulated device. Leave all settings in the defaults, and click Run task in the toolbar.
    Figure 9. VI Logger Lite data logging task.
    The data logging task begins. Data from the NI-DAQmx simulated device is displayed in the Real Time Data viewer.
    e. Click Stop task.
    ====================
    =Labview 7.0 & 8.0 & 8.5=
    =====================

  • Changing input buffer size slows down simulated device?!?

    hi,
    my basic problem is having a 200279 buffer overflow.
    for a quick fix I increased the buffer size using DAQmxSetBufInputBufSize, but now the signal coming from the simulated device is much slower.
    how can it be?
    thanx!

    Hi,
    Buffer overflow errors occur when data is written to the buffer faster than it is being read off of it. Buffer underflow errors occur when data is being read off the buffer faster than new data is being added. In order to avoid either of these, a general rule of thumb for NI devices is to acquire around 1/10th of a second of data. For example, for a sample rate of 100 Hz, set samples to read at 10 samples.
    Is it possible for you to decrease the sample rate?

  • Simulated device with visual basic 6.0

    It is possible to run a VB application using simulated devices? I have created a simulated PCI6024E, but my VB application does not find the device.
    Thanks.

    The simulated DAQ devices only work for DAQmx. If you are using the CWDAQ activex controls, you will not be able to see them becuase these activex controls use Traditional DAQ. You can use VB 6.0 with DAQmx. Refer to this KB for more information.
    Bilal Durrani
    NI

  • Import MAX configuration without device or simulated device

    I'm hoping there's a way to do this.
    In previous versions of MAX, it was possible to import Channel and Task  information without having to import the Device.  This was handy if you didn't have the DAQ boards installed on that PC, but you needed to check Task and Channel information. 
    I'm currently trying to import an .nce file from a project where I'd used a USB6008 as the DAQ device.  I don't have access to one of those at the moment and it's one of the devices that cannot be simulated. 
    I have tried simulating a similar device with hopes of somehow "tricking" it to import.  So far, no luck. 
    Does anyone know of a way I can have a look at the Channel and Task information in that .nce file or possibly fanagle it into importing without or with another simulated device?
    Patrick Allen

    Hi pallen,
    I actually don’t know of a way to change the configuration in the .nce file. It's a binary file which main use is to import and export complete configurations when you do not need to edit that configuration outside of MAX. The .ini and .txt are intended for editing outside of MAX. However you can always import the .nce in MAX, make the changes needed and export a .ini to your final destination. Sorry that this is not too helpful on your current situation.
    Ana P
    National Instruments
    Applications Engineer

  • MAX Simulated Device SCXI-1001

    I open "Measurement and Automation Explorer".
    Right click on "Device and Interfaces".
    Select "Create New".
    Select "NI-DAQmx Simulated Device".
    Press "Finish".
    Expand "SCXI Chassis".
    Select "NI SCXI-1001".
    Press "OK".
    Window "Create New SCXI Chassis" appears.
    ("Chassis Communicator" does not allow a selection)
    "Chassis Address" set to zero
    Press "Save".
    Window "Chassis Communicator" not picked with message "Please pick the communicating DAQ device."
    My system does not have an SCXI-1001 attached. Our equipment is being shipped to the
    installation site. We need to continue software development and test.
    Can you tell me if I can simulate the SCXI-1001 without the SCXI being attached to my computer?
    This function worked when I tried it on the computer that had the SCXI-1001 attached.
    Is there a work around for his issue?
    Thank you for your help.
    Bill

    Hi Bill-
    In order to configure a simulated SCXI chassis you will first need to create a simulated DAQ card to serve as the chassis controller.  I would suggest a simple multifunction I/O board such as the M Series PCI-6221.  Please post back if you are still not successful.
    Thanks-
    Tom W
    National Instruments

Maybe you are looking for

  • Bump VMware Server 1.0.7 Latest error --Not enough memory...

    VMware Server Help Post Platform: Intel core 2 Duo E2168. 2G ram, but 1/2 just went missing. If this is causing my problems, the mind wobbles, yet it's easy to fix, yay! Lots of harddrives! Lots of harddrive space. gigabit eth. Nvidia 7600GS 512MB Hi

  • Master detail relation in the sql report

    HI All I am using Oracle 10g and have a requirement where I need to generate the output in the following format Deptno 10 Empno Ename 1 ----------A 2 ----------B Deptno 20 Empno Ename 3-----------C 4-----------D 5-----------E Deptno 30 Empno Ename 6-

  • JavaScript functions across the forms?

    Hello, We are developing set of forms using LiveCycle Designer. The forms are complex and need some involved JavaScripts. I found great feature where we can insert a script object to hold common JavaScript functions and use those anywhere in the form

  • Upgraded system. Gnome problems.

    Hi, I just ran a system upgrade and I now can not login to gnome. From slim I get to being able to see my desktop background, and then it crashes, displaying a nondescript error message within a dialog, which starts of (recalled from memory): Oh no!

  • When importing a pdf file in itunes

    When i want to import a pdf file in itunes . The program stops and i get the message Microsoft Visual C++ Runtime Library Runtime error in itunes .exe