simply recover 16-bit int instead of double?

Hello

I have a usb-6210, which has a resolution of 16 bits. to my surprise, I double values (64-bit) when I use studio measurement in c#. It is a waste of memory, but I couldn't get the driver to provide 16-bit values (integer or binary or other values). I don't want to lose the ability of calculation with conversions after extraction.

How can I get the 16-bit values of the device?

Thanks in advance!

that s it, thank you!

Tags: NI Software

Similar Questions

  • to choose the simple click instead of double click for selection using the mouse is no longer seen in Win 7 Pro

    possibility to choose the simple click instead of double click for selection using the mouse is not seen more in Win 7 Pro.

    where you can select the option, please? Thank you

    Hello

    You do not tell us where you are looking for it.

    "Click or double-click to open an item".

    http://www.SevenForums.com/tutorials/10117-single-click-double-click-Open-item.html

    See you soon.

  • Download Card purchased. System Windows 8 32-bit who refuse installation (64-bit only). There he possibility to download a 32-bit version instead of the version 64 bots? Thank you

    There he possibility to download a 32-bit version instead of the version 64 bots? Thank you

    You have not indicated what software it is, but if it's something to do with the Creative Cloud software there is no 32 available bits.  All CC programs require 64-bit systems.

  • I can install Firefox to be automatically start in 32-bit mode instead of always having to reboot when certain web sites?

    Whenever I go on this site that it asks me to restart in 32-bit mode. It would be good to have this happen already or automatically instead of always having to restart.

    1. Open Finder and go to the Applications folder
    2. Click right (or control-click) on the Firefox app and select "Get Info."
    3. Select the option "Open in mode 32 bits"
  • Waveform manipulation of the bytes in a byte array and display in 16 bit int signed in a chart

    Hello, I read in two bytes using a VISA READ and then output is a string. However, I want to be able to access these bytes individually because I need left move the first octet 8 places and then add it to the second byte and then left move their sum 4 places to the left gives me a 16-bit signed int. Then I need to do this show in a waveform chart. Can anyone help please?


  • Outlook express can open the 32 bit IE instead of 64-bit browser in xp pro 64 bit

    new hard drive and reinstall xp pro 64-bit. Now all attachments and links of web page {where necessary} open 64-bit IE browser for flash and some adobe products will not work because there is still no 64 bit support. How can I fix my outlook express default to open the 32-bit ie browser?

    Hello

    If you want to open an Outlook Express 64-bit to 32-bit, you will need to access your Windows command prompt.

    a. Click Start, and then select 'run '.

    b. Type "cmd" without the quotes, and press "enter."

    c. type without the quotes "C:\SysWoW64\cmd.exe" and press "Enter." Please note that the 'C' is the drive letter for the partition where your operating system is stored. Replace with other letters if your operating system is stored elsewhere.

    d. Type "C:\Program Files (x 86) \Outlook" without the quotes to open Outlook Express in 32-bit mode.

    e. now to configure Outlook Express to open in an Internet Explorer for 32-bit by following the above steps.

  • How to install windows 7 pro, when I mistakenly installed the 32-bit version instead of the 64-bit version

    I just installed windows 7 pro.  Unfortunately, by mistake I installed the 32-bit program on 64-bit program.  now that I try to install the 64-bit, I get the error message: "this installation disc is not compatible with your version of windows.  upgrade I need the disk to correct installation.  so he said to shut down your computer and reboot the installation disc. »

    but when I reboot it just goes directly to the office.  would someone kindly give advice on how I overcame this misadventure?  I know that windows 7 pro on my computer, 32-bit version, but want windows 7 pro 64-bit version.  I still have the discs and software keys... Thank you.
    Prior to this installation, I was running 32 bit XP pro

    You'll need during cratch because there is no way to upgrade a 32 bit OS to a 64-bit version of Windows.

    Check your BIOS to make sure that your DVD drive is set as the first boot device, and then save your settings (if a change was required) and get out.

    With the 64-bit DVD in the DVD drive, restart the computer.

    Choose the "Custom" option and then delete the existing system and Windows partitions, click next to continue the installation,

    Since you enabled the OS using the 32-bit product key most likely you need to activate by phone this time.

    How to activate Windows 7 or Vista manually (activate by phone)
    http://support.Microsoft.com/kb/950929/en-us

    1) click Start and in the search for box type: slui.exe 4
    (2) press the ENTER"" key.
    (3) select your "country" in the list.
    (4) choose the option "activate phone".
    (5) stay on the phone * do not select/press any option * and wait for a person to help you.
    (6) clearly explain your problem to the support person.
    (7) the person must give you a confirmation ID, copy it down on paper,
    (8) check that the ID is correct in reading the support person.
    (9) to enter the ID number, then click 'Next' to complete the activation process.

    J W Stuart: http://www.pagestart.com

  • Wrong bit #32, instead of 64 bit... so now can not download

    Put in the wrong bit # downloading items 14 on Windows 7, PC.  Now, I can't get past the registration to download again to 64 bit number. I tried ALL the ADOBE listed allows... nothing works.  Impossible to find the program on my computer either... just an artist trying to make better pictures, and it's really a pain!  No help from ADOBE customer no service either.

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • The retail win 7. I installed 32 bit and activated. How to re - install 64-bit instead.

    I installed and activated the DETAIL of Win 7 Home Premium 32-bit version instead of the 64-bit version.

    How to re - install the 64-bit version.

    What problems can I expect and etc.

    All of the programs I have installed will be lost...?... ETC.

    Will I have to reactivate?, ETC.

    Your help will be appreciated.

    Thank you

    You will need to do a clean install, there is no place on the way to upgrade Windows 7 32 bit to 64 bit.

    Using the disk of 64-bit Windows 7, install Windows 7 Windows Easy Transfer Utility from the DVD (to find it, simply navigate to x:\support\migwiz, "x:" is the name of your hard drive. (In this case, you will see a collection of files, the important"that you must search for and double-click is 'migsetup'.) run it and create a DAMP (Windows Easy Transfer file), if you have an external hard drive, you can access it later when you perform a clean install of Windows 7 64-bit disk so you can stored there.

    Once you have done this, just do a clean install of Windows 7 64 bit disc. In Windows 7 64 bit disk, start Windows Easy Transfer, follow the wizard screen, tap on which is stored the WET file (external hard drive) and it will restore your personal files and settings. Reinstall the applications needed.

    http://www.notebooks.com/2009/10/07/using-Windows-easy-transfer-in-Windows-7/

    Boot from the DVD 64 bit Windows 7
    Click Install now
    Accept the license agreement
    When the option is displayed to select a type of installation, click (Custom advanced)

    Select the disk partition where you want to install Windows 7 click Next.

    You will receive the following warning:

    The partition you have selected may contain files from a previous Installation of Windows. If so, these files and folders will be moved to a folder named Windows.old. You will be able to access the information in Windows.old, but you will be able to use your previous version of Windows.

    (At all costs, do NOT click on anything in Format, deletion or Partition name.) So even do a custom installation, your personal files are still kept. Click OK

    The installation program will now begin installation. During installation, your computer will be restarted several times.

    Once the installation is complete, you can complete the Out of Box experience as the choice of your laptop, create a username, password, your time zone. You can then proceed to download the latest updates for Windows and reinstall your applications and drivers.

    You can then retrieve your personal files from the Windows.old folder and reinstall all of your applications and drivers.

    http://notebooks.com/2010/11/09/how-to-recover-documents-music-and-email-after-upgrading-with-the-Windows-old-folder/

  • Problems to regain the QML C++ enum; JS is undefined instead of an int.

    I followed the path of BB to regain the enums in C++ QML discussed here:

    http://supportforums.BlackBerry.com/T5/native-development/HOWTO-C-enum-in-QML/m-p/2345641#M21139

    However I'm getting back the value JS "undefined" of my logic of C++ biz instead of what I want (i.e., an integer that corresponds to my enum type).

    The scenario is that I want to restore the data from the application of a backup and do a lot of validation of each step of the restore if something goes wrong, I can post a dialogue of restoration has failed no credits that could help the user recover.

    I have a class enum setting as follows:

    #ifndef RESTOREFAILURETYPE_HPP_
    #define RESTOREFAILURETYPE_HPP_
    
    #include 
    
    class RestoreFailureType: public QObject
    {
    
        Q_OBJECT
        Q_ENUMS(Type)
    
    public:
    
        enum Type {
            Success = 0,
            JSONReadFail = 1,
            UndoFileRemoveFail = 2,
            CopyToUndoFail = 3,
            DestFileRemoveFail = 4,
            CopyBackupFileFail = 5,
            ValidateSchemaFail = 6
        };
    
        RestoreFailureType();  // Empty constructor defined in .cpp file
        virtual ~RestoreFailureType(); // Empty destructor defined in .cpp file
    };
    
    #endif /* RESTOREFAILURETYPE_HPP_ */
    

    I save this class as an increables type in my app delegate:

    qmlRegisterUncreatableType("myApp.restoreFailureType", 1, 0, "RestoreFailureType", "RestoreFailureType provides enum values.  It cannot be instantiated.");
    

    I have a DataManager class that takes care of managing the operations of store, backup, restore, etc CRUD/user support, with what restoration function:

    In DataManager.hpp:

    Q_INVOKABLE RestoreFailureType::Type restoreFromBackup(QString backupFileName, int selectedIdForUndo);
    

    in DataManager.cpp (here I show a fake draft.  Since not even that much is still working, the rest of the logic of biz is not relevant to this discussion:

    RestoreFailureType::Type DataManager::restoreFromBackup(QString backupFileName, int selectedIdForUndo) {
        return RestoreFailureType::Success;
    }
    

    And in my QML UI layer, I import the type:

    import myApp.restoreFailureType 1.0
    

    And a FilePicker component supports passing the name of the backup file to the DataManager.  The FilePicker and his onFileSelected() slot:

          FilePicker {
                id: backupRestoreFilePicker
                type: FileType.Other
                allowOverwrite: true
                directories : ["/accounts/1000/shared/documents/MyApp"]
                viewMode: FilePickerViewMode.ListView
                onFileSelected: {
                    if (mode == FilePickerMode.Saver) {
                        // Save mode stuff for doing backups
                    } else if (mode == FilePickerMode.Picker) {
                        var restoreResult =  _dataManager.restoreFromBackup(selectedFiles, _appSettings.selectedId);
                    }
                }
            }
    

    I tried to remove the code down for everything that is relevant to this question.

    When I put a breakpoint on the line where the var restoreResult JS is defined:

    var restoreResult =  _dataManager.restoreFromBackup(selectedFiles, _appSettings.selectedId);
    

    and step, restoreResult, var JS becomes the value "indefinite".  From what I read in the thread mentioned above, restoreResult is supposed to get a whole number (in this case he should get zero method justiciable restoreFromBackup how I generated), that I can then compare to imported enum type.  I should be able to compare the return value of restoreFromBackup to see if it is equal to one of:

    RestoreFailureType.Success
    
    // or:
    
    RestoreFailureType.JSONReadFail
    
    // or:
    
    RestoreFailureType.UndoFileRemoveFail
    
    // or:
    
    RestoreFailureType.CopyToUndoFail
    
    // etc...
    

    I think others have got it working, and miss me him probably just a few details.  A lot of satisfaction to anyone who can identify the error/omission or even give a good lead.  In addition, comments are welcome on if I'm trying to manage this scenario in a recommended manner.  My intention is to use the listed failure code to customize a SystemDialog message that may help the user recover from a restore operation has failed.  The restore file might have been corrupted in a way that is not analyzable JSON, or the user could have selected a file that isn't even a backup file created by my application, or they could have revoked authorization, or JSON can be analyzable, but the user could not resist the temptation to manually change the values in their backup file etc.

    Hmm,

    Sometimes all you have to do is to talk, even if you speak to yourself.

    I changed my function DataManager to return my type listed as int instead of as the enum, and I don't have the correct integers in QML, anything can still be compared using the enumerated type.  So:

    Q_INVOKABLE RestoreFailureType::Type restoreFromBackup(QString backupFileName, int selectedIdForUndo);
    

    becomes

    Q_INVOKABLE int restoreFromBackup(QString backupFileName, int selectedIdForUndo);
    

    and

    RestoreFailureType::Type DataManager::restoreFromBackup(QString backupFileName, int selectedIdForUndo) {
        return RestoreFailureType::Success;
    }
    

    becomes

    int DataManager::restoreFromBackup(QString backupFileName, int selectedIdForUndo) {
        return RestoreFailureType::Success;
    }
    

    and I can do now:

    var restoreResult =  _dataManager.restoreFromBackup(selectedFiles, _appSettings.selectedId);if(restoreResult == RestoreFailureType.Success) { // Do success stuff} elseif(restoreResult == RestoreFailureType.JSONReadFail { // Do JSON read fail stuff} else...
    

    This isn't quite how it was recommended in the thread, I mentioned in the previous post... but it seems to work for what I need.

  • "Download and install the installer itunes 64-bit instead!"

    Hello. try to download itunes... pop - up box "this itunes Installer is designed for 32-bit Windows version, please download and install the itunes 64-bit Installer instead"

    Please help me I don't know how to do the same thing

    Thank you

    Well you go back to the apple website and download/install the 64 bit version and not the 32-bit version (run first the DiskCleanup)

    http://support.Apple.com/kb/DL1047

  • Conversion of 16-bit unsigned 32-bit float

    Hi, I'm new to labview and data types in the electronics. Due to a shortage of labour in my company, I am required to do it myself. I've been through several labview basic tutorials and examples, but I am unable to do anything properly with labview. Any help is very appreciated.

    I'm using labview 8.6.1 and I downloaded the drivers for modbus. Currently, I am required to read data out of a sensor and write the data to a file. Using the ".vi MB series Master query Read Input registers (poly)", I am able to read the data in the registers. However, the data in the registers are 16-bit unsigned and does not give the "real" value I'm not sure about this, but I tried to use simply Modbus 6.3.6 and change the bit 16 32-bit unsigned type float makes the job of showing the real value.

    So, my question is, how do I get the actual values of the VI? I apologize if this is a simple question but I am new to this and don't have the time to study further in this regard. In addition, I apologize in advance if not enough information is given. Her updated the VI of "Master Series MB query Read Input registers (poly) .vi" that I used to write data to the file, as well as 1 text files, I got is attached.

    Thank you for your help and sorry for any trouble.

    Here's my VI registered under LV8.6.

    You have pretty cables through your VI, but it is ridiculously little handy, easily scalable and uses some Rube Goldberg constructions.

    Your Rubes:

    1. table to the cluster to unbundle converty.  Then grouping to a cluster and then to a table.  No need to go through the songs and dances of cluster.  You could have used the Index table and table build and not had to convert anything to a cluster or backward.

    2. using a constant Dbl to change than one through the digital conversion function to determine the data type for the type cast.  Eliminating the conversion and has created the representation of the single precision instead of double precision constant.

    3 code dozens of times when he should have been treated in a loop of duplication.

    If you use me as a Subvi, your screen real estate will be less than a 1/4 of what it is now.

    You say you want to read a bunch of records that are not adjacent to each other?  You can make several requests of reading.  Write a query command, then read the answer.  Then write another order of demand for various registers and read this response.  It depends on how different readings, you do or how far records of interest are about whether it makes sense.  If you need read a two pairs of registers, which are some distance apart, it might be more efficient to perform a single read multiple registers if they are close together and just throw the records don't care you.  It will be more bytes to read at the back, but it might be faster because it can be done in only one reading.  Or you could do two readings targeting your specific records.  It might be less bytes to read in each message, but it will take more time to make two requests to read and wait for responses between the two.

    I don't know if the limit of 125 records is something to make your device, modbus or modbus in general protocol library.  I want to say that it might be that the modbus Protocol usually means that records the 125 250 bytes of data.  Factor of a few bytes of the command of the response and the checksum, you will be 256 bytes.  Modbus packages are designed to take less than 256 bytes so that only a single byte is needed to tell how many bytes of data will be forthcoming in response to the message.

    With selective targeting of your records to read and using the table of Index to read specific float32 values of interest, you can write the 12 values you want in the file instead of all those you don't need.

  • Is there a bug in CVI 2010 SetTableCellRangeVals and SetTableCellRangeAttribute for strings - particularly in 64-bit mode?

    It seems that I can't get SetTableCellRangeVals to publish string data to a table in 32-bit mode, I can't SetTableCellRangeAttribute to work for arrays of strings and now it seems numbers either. I just get garbage - it could be my code, however.

    Worse in 64-bit mode, I can't seem to post anything (for strings at least), but get a GP fault instead.

    I played with the size of the pointer in the array of strings (from 4 to 8 bytes

    The heart of the test code is here but the files are attached as well.

    int CVICALLBACK Test_callback (int, int int event, control panel,
    void * callbackData, int eventData1, int eventData2)
    {
    int i, numrows = 10, byattrib;
    int bit32 = 1;
    Double * dbl_array;
    char * string_array, * string;
    Rect a_rect;
     
    switch (event)
    {
    case EVENT_COMMIT:
    GetCtrlVal (main_handle, PANEL_BYATTRIB, & byattrib);
    String = malloc (50 * sizeof (char));
    If (bit32)
    string_array = malloc (4 * numrows * sizeof (char));
    on the other
    string_array = malloc (8 * numrows * sizeof (char));
    for (i = 0; i< numrows;="">
    string_array [i] = malloc (50 * sizeof (char));
    dbl_array = malloc (numrows * sizeof (double));
       
    for (i = 0; i< numrows;="">
    {
    dbl_array [i] = i * I * 3.1416.
    FMT (string, "The value is %f", dbl_array [i]);
    strcpy ([i] string_array, string);
    }
       
    a_rect. Top = 1;
    a_rect. Left = 1;
    a_rect. Height = numrows;
    a_rect. Width = 1;
       
    status = DeleteTableRows (main_handle, PANEL_TABLE, 1, -1);
       
    status = InsertTableRows (main_handle, PANEL_TABLE,-1, numrows, VAL_USE_MASTER_CELL_TYPE);
       
    If (byattrib)
    {
    status = SetTableCellRangeAttribute (main_handle, PANEL_TABLE, a_rect, ATTR_CTRL_VAL, dbl_array);
       
    a_rect. Left = 2;
    status = SetTableCellRangeAttribute (main_handle, PANEL_TABLE, a_rect, ATTR_CTRL_VAL, string_array);
    }
       
    on the other
    {
    status = SetTableCellRangeVals (main_handle, PANEL_TABLE, a_rect, dbl_array, VAL_ROW_MAJOR);
       
    a_rect. Left = 2;
    status = SetTableCellRangeVals (main_handle, PANEL_TABLE, a_rect, string_array, VAL_ROW_MAJOR);
    }
       
    free (string);
    for (i = 0; i< numrows;="">
    free (string_array [i]);
    free (string_array);
    free (dbl_array);
    break;
    }
    return 0;
    }

    Thanks for any help,

    Greg

    Greg-

    Certainly, you have found a bug.  However, I think that the issues that you run in a SetTableCellRangeAttribute are the result of a misunderstanding of the function.  This function, when you use it to set the value, sets the values of all the cells in the range to the same value.  Therefore, the var_args parameter must be the value that you want to set all cells to and not a pointer to an array of values.  In your code, you would need dereference the berries, and then, you would see that all the cells are the same value, which is the expected behavior.

    I created a bug report for the accident which follows from the definition of values on string cell types in 64 - bit with ID 284842.  This bug will be fixed in the next version of maintenace of the CVI.  In the meantime, you should be able to use SetTableCellVal to set the value of each cell individually in 64-bit.

    I'm sorry for the inconvenience-

    NickB

    National Instruments

  • How cascading 2 counters for 64-bit timer?

    I work with the PCI-6225 card which has several counters.  I configured CTR0 to 20 MHz.  I get the CTR0 time by calling the OR-DAQmx C function 'DAQmxReadCounterScalarU32' to get the number of frequencies and then by dividing the number of frequency of 20 MHz for a time value.   The maximum time value that may be getting is that of 214.7483648 seconds (2 ^ 32 / 20e6).    I want to stunt/link two counters (CTR0 and CTR1) to get the frequency of 64-bit values.    To be clear, CTR0 configured as CTR1 configured as 32 byte MSB and LSB 32 bits so that whenever CTR0 reached maximum values and "roll" then CTR1 would be incremented by 1.   How can I do this using the C-NOR-DAQmx features?

    Thank you

    Ian

    Hw do will be more reliable, but here are two possible ways to approach it in sw.

    1. There is a DAQmx property with a name similar to "Terminal number reached" that I have used in LabVIEW but do not know the underlying C syntax.  When you query this software, it will return a true once, is reset to false.   I'm sure that he will return a true even once on the * following * the event rollover, but you would be better double-check me on that.  Not knowing your entire application, I guess you will probably need to be prepared to manage several inversions.

    2. in certain applications, rather than establishing a measure which follows the cumulative time, you can configure the hw to measure periods and then take a NAP in sw to get your 'timestamp '.   Unless an individual interval could exceed 200 + seconds, you can just do your accumulation of software with a 64-bit data type.

    Technically, you can even do both.  Do a measure 32-bit intervals hw, do a query of software for the event of tc, accumulate intervals & counties of reversal in a 64-bit int.

    -Kevin P

  • I just dug my copy of train simulator, and it does not work on Windows 7 64-bit. Ideas please

    I just dug my copy of train simulator, and it does not work on Windows 7 64-bit. Ideas please

    Thank you very much for all your suggestions. "Iwent with."

    This can help with some (but not all the) programs/drivers:

    (1) uninstall the program, if it is already installed. Then when install you / reinstall instead of double click on the Setup file, right click and select 'resolve compatibility issues.

    (2) then click on 'Try recommended settings' and in the next window, click on "Start the Program" to install it.

    (3) after he set up see if it works properly. Note: some programs may not be able to run in Windows 7.

    and it worked.

    did anyone tried the version updated? I read some rather disappointing reveiws.

    Once again my kind thanks for all your suggestions

Maybe you are looking for

  • How to uninstall programs?

    How can I remove installed program correctly? The program is missing several files and Setup is unable to remove it. Windows 7 64-bit operating system

  • Why my computer running so slow when I play facebook games?

    My computer works fine until I have started playing games on facebook. My games finishes loading and the internet signal is not very strong, or so it seems. Any suggestions?

  • My HP LaserJet 1022 does not work with my new computer with Windows 7. Can you help me?

    I just bought a HP p6803w CPU which runs on Windows 7.  When I try to connect to my HP LaserJet 1022 it won't work.  Apparently, I need a compatible driver downloaded.  When I tried to download the drivers on the HP site, it seems that one of the two

  • Applications hang when using HP printers. Mac OS x 10.6.8

    Mac Mini 2.53 GHz Intel Core 2 Duo, OS x 10.6.8 Printers: HP LaserJet 5SiMX and HP color LaserJet 4650dn The print dialog box either does not end, requiring a Force Quit or the application just hangs. TextEdit gives a clue with the following message:

  • APEX 5: variable crumbs

    Hi allIn our application, we have the following situation for example:3 pages:-P1: report 1-P2: report 2-P3: detail of the pageP1 and P2 are our reports which we have the ability to click on a button that opens the detail P3 page.Is it possible to ma