Another LV newbie question

I am receiving some binary data from my device. The device send a block of
data based on a structure which has 16bit ints, bytes and character strings
etc all mixed.
What is the best way to decode it. In C, I can just include the structure
def and point to the starting memory location.
vishi

Hi,
you must use "Functions->File I/O->Read file.vi".
This VI allows you to read any kind of data from your file. To specify the data type you have to wire some constant to the "byte stream type" input node. The type of this constant (or control) specifies the type of data will be read from the file.
To read such data like you described in the question you have to use clusters.
You have to create cluster of your 16bit ints, bytes and character strings in proper order and wire it to the VI's input node. Hope this will help.
Good luck.
Oleg Chutko.

Similar Messages

  • Another Programming Newbie Question:

    I have read many of the posts from programming newbies like myself looking for advice as to which language to start their programming journey. While helpful, my situation is slightly different and I would appreciate thoughts from those of you who have been doing this for a while.
    On one level, like the others, I am interested in beginning programming for my own personal interest and hobby. I want to be able to poke around building stuff for my Mac as I see the need. The second driver however, is a professional one; I work as a management consultant within an IT company.
    Much of my work relates to Business strategy and IT alignment. At that level I am expected to bring a business perspective to IT issues and to provide assessments that confirm proposed technology/software solutions are in fact going to add value for the company overall. Basically big picture stuff.
    In this role I am not usually asked to bring the same "technical" perspective that a true business analyst would. However, I would like to better understand the methods, terms and concepts that my colleagues use in developing their software. On occasion I am asked to provide a high level requirements analysis, which draws largely upon my business knowledge, but given that that this information is then presented to my developer colleagues I would like to understand things at a more technical level.
    So my question is whether I am free to choose any language to begin my learning quest or if there is a language that will better lead me to understanding and communicate the technical side of software development.
    Also I know that a lot of the work done in my company is in Java - but there are obviously a wide range include various applications that sit atop various data bases.
    I hope my various questions have been communicated clearly enough. I welcome any thoughts or advice that any of you may be able to share with me.
    Thanks!
    Power Book 12   Mac OS X (10.4.1)  

    The case of the employee wishing to merge his own admirable desire to learn programming with the requirements of his position is an interesting case that shows, perversely (or so it seems at first--it's actually perfectly logical) that corporations do not necessarily benefit from the talents, drive and ambition of individual employees--and this is not a cynical or sinister notion. Etresoft's analysis and advice is spot-on and I only wish to add a footnote to it: Along with the "getting the job done quickly and simply as possible" fallacy, and the at first glance counter-intuitive proposition that the complex, fragile, and massive solutions actually benefits the corporation qua corporation, one must remember that corporations are not and never pretended to be pure meritocracies nor are they conceived of as sets of individual employees in competition with each other for rewards. That is to say, trying to make one's personal interests into job requirements is far too questing and individual a project to succeed in any corporate (in the neutral sense of "aggregate," not in the sense of conformist) environment The corporate nature of the incorporated business is, after all, its defining characteristic. This means solutions by consensus aimed as much at institutional self-perpetuation as at the maximization of profit will be favored over mavericks following instincts, absolutists assimilating all power to themselves, or the efficient yet eccentric (again, in the neurtral sense of the word) initiatives of earnest employees trying to unite where possible the requisites of their given post with their own private interests. The upshot to all this is this: the attempt to use pre-existing corporate structures and processes for the fulfillment of individual growth and personal satisfaction (which may as a by-product, or accident in the Aristotelian sense, generate corporate wealth) is to look past stated categories and definitions and to ignore historically-observed outcomes. Corporations will not appreciate or benefit from individualistic impulses not because individual satisfaction is suspect but because its ways are inimical to corporate ways--the friction of the indivduals trying to redefine mutually-agreed upon positions and outcomes for selfish purposes costs too much to be indulged. From the corporate point of view, it is a threat to be contained, not an asset to be exploited. Robinson Crusoe had to spend 28 years on an island alone in order to adequately enact his individualism as it relates to capitalism.* The adaptable, nimble, individual-identified employee with his productivity tied to his own appetites, cannot, at least in the abstract, help but work against the aggregate needs of the corporation.
    *Excursus: Defoe's 1719 novel is the foundational narrative of capitalist self-production and its major offspring is Max Weber's Protestant Ethic and the Spirit of Capitalism (1920).This is where 18th-century economic theory including Adam Smith, leads us astray today--it was formulated not before the Industrial Revolution--the transition to capitalism took place in the 17th century--but before the aqdvent of the modern corporate structure.

  • Another java newbie question:  "Link errors"

    In the environments I've attempted compiling in, it seems that there is a just-in-time default, which means that any missing classes are not found until run time.
    Is there any way to to run javac so that what we used to call "link errors" will be displayed at compile time?

    Java has no .h files, so it shouldn't compile at all if a class is missing, unless:
    Someone compiles class Library, they have class Extension available
    They give you Library
    You compile, javac sees theat "Library" exists and checks no further
    At run time, you get errors about Library needs missing class "Extension"
    What class is missing anyhow?

  • Variable accessibility: newbie question

    My next newbie question:
    The following two classes are in two separate files in the same a folder testClass2:
    package JavaDemos.testClass2;
    import java.awt.*;
    public class Sketcher {
        static SketchFrame window;
        static int widthXXX;
        public static int getwidthXXX() {
            return widthXXX;
        public static void main(String[] args) {
            window = new SketchFrame("Sketcher");
            widthXXX=1000;
            System.out.println("output: width = " + widthXXX);
            window.setVisible(true);
            window.specialReport();
    package JavaDemos.testClass2;
    import javax.swing.*;
    public class SketchFrame extends JFrame {
        public SketchFrame(String title) {
            setTitle(title);
            setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        public void specialReport(){
            System.out.println("number " + widthXXX);
            //     System.out.println("number " + Sketcher.getwidthXXX());
    }They don't compile.
    I get the following error message:
    JavaDemos/testClass2/SketchFrame.java [23:1] cannot resolve symbol
    symbol : variable widthXXX
    location: class JavaDemos.testClass2.SketchFrame
    System.out.println("number " + widthXXX);
    ^
    1 error
    Why isn't widthXXX directly accessible from SketchFrame?
    Thank you again in advance for any help.

    Why isn't widthXXX directly accessible from
    SketchFrame?Because it's a class variable of another class. You have to refer to it as Sketcher.widthXXX.

  • Newb Question for burning DVD/CDs

    I have an external DVD writer on my iMac.
    I got the thing last month and an completely new to Apple (sorta)
    Now how do I make a data CD and DVD?
    On Winblows XP all I need to do is select the files, right click and click on SEND FILES TO CD for making data CDs.
    However for DVD I need 3rd party software.
    Will iDVD do the trick?
    Thanks for the looking at this simple newb question.
    GeekyBoy

    Now how do I make a data CD and
    DVD?Drag the files to the icon of the
    blank CD/DVD that appears in the
    Finder.However for DVD I need 3rd party
    software.You might want to try Patc
    hBurn.Will iDVD do the
    trick?No, iDVD is only for making video
    DVDs and it requires a G4 processor.
    Thanks for the tip Duane.
    I was just reading abotu burning CD on another site. It mentions about what you said, drag the files to the CD.
    However I am reading in my profiler that burning is NOT supported by OS X on this CD/DVD writer.
    Will Patchburn or any other software overcome this?
    Thanks

  • InDesign or Acrobat (newbie question)

    Hi,
    I tried posting this in the LiveCycle Designer forum, but I think it's a bit too much of a newbie question:
    Once in a blue moon when I'm at work, someone will ask me if I can add text fields to a PDF form so that they can easily type onto it and print it out. I've always done that directly in Acrobat (on the few occasions that it's been requested from me). But I was curious about Adobe LiveCycle since it came with CS3, so I played around with it a couple of days ago. I added the text fields in LiveCycle this time, and it seems to have worked fine. Which is the better program for this kind of task? I'm not 100% clear on the *main* purposes of either program or how they compare. If anyone wanted to give me a clue about it, I'd appreciate it!
    Thanks,
    Phyllis

    > I thought perhaps you could add that capability
    You can (I said I was oversimplifying). However there are contractual
    limits - to oversimplify (!) 500 users per form.
    >Which would be preferable -- receiving form data from LiveCycle or Acrobat?
    It depends what you want to do.
    >
    >I wish I knew what the difference was between these two programs. Is it purely a matter of emphasis on one task or another?
    They come to the same problem in different ways. For a simple task
    they may seem pretty much the same. Some differences:
    * A form made in Acrobat is a PDF with form fields stuck on top; it
    remains a normal PDF in every other way. Forms are almost always made
    by preparing an existing PDF, then adding form fields.
    * A form made in Designer is barely a PDF. It's a wrapper round an XML
    file. You can no longer edit it in Acrobat, ever, even for the most
    simple things. PDF files are imported and converted (sometimes with
    loss of quality or features), or forms are made from scratch.
    * Acrobat form fields are fixed size.
    * Designer form layout can be dynamic.
    Aandi Inston

  • MailServer Newbie Question..

    So my first time i setup a Mail Server with Mac OS X Server.
    Everything works like a charme. I can send and receive emails internally. That means
    i can send and receive emails from mac to pc and vice versa. Now my question.
    How do I setup the Server to catch my external eMail adresses and send it to my internal account.
    And how do I setup to send throw my server to the rest of the world without getting banned and
    blacklisted
    I how someone can write a small tutorial for me or can post a link for this newbie question.
    Thanx in advance..
    mike
    P.S.: Sorry for my bad English. But I am from Germany

    how to configure the server to accept mail for my own domain ?
    Any domain you want to receive mail for goes into the Local Host Aliases pane (in Advanced-> Hosting tab). However, you said that you can already send and receive internally so presumably you have it set up for a domain already? If this is not the same domain as you want to use, just change whatever settings you are using to your real domain. You can then test sending and receiving internally for your own domain but without changing your external (public) mail provider. When you are ready to change your outside mail server for your own one, get the public MX record changed so that all external mail starts getting directed to your own server.
    how to get the public DNS record (MX Record)
    If you have a 'real' domain then someone is hosting your DNS for that domain. THis is probably whoever you bought the domain from. You need to get them to change your MX record (or the IP address for the host name record which the MX points to - see my first post).
    Is it really impossible to catch the external email-accounts with the server via pop.
    my idea behind that is to synchronize the external email accounts with the email accounts on the server..
    I have never really looked into getting a mail server to use a pop download from another external mail server - it may be possible by manual configuration but it never made sense to me. Why have two mail servers in a 'chain'? Basically, the public will see only one server responsible for your mail (via MX record) - you have to decide whether you want to leave this with your external provider or take the responsibility yourself.
    Your configuration for the incoming mail seems to me like you would change the
    external email server completely to my internal server.. right ??
    Correct. Once the public MX record is changed then all other mail servers will send to your server and not your current provider. You can always revert back by changing the MX record back to your existing provider (as long as your account is still open).
    -david
    Message was edited by: David_x

  • Starting fluxbox-newbie question

    :? I currently have kde running on my system. I installed fluxbox using pacman. 
         How do I start fluxbox? I couldn't even find it, so I su to root, type fluxbox, and get
         an error message saying that another window system is already running! (kde)
        A  typical newbie question, but I don't know how to start fluxbox. I think I want to
        replace kde with fluxbox, so should I just uninstall kde?? 
                                                           Thanks -- Larry

    lmellen wrote:
    :?  scottro -- This is .xinitrc.
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    exec wmaker
    # exec startkde
    # exec icewm
    # exec blackbox
    exec fluxbox
    The only thing I uncommented was" exec fluxbox". I'm still getting kde at start up.
    I have kdm listed in a start up daemon in rc.conf. is this the problem?
                         thanks for the reply -- Larry
    if you comment out exec wmaker and then put a ! in front of the kdm daemon you should boot to a console at which point you login then type startx. you may also have to change your init level but i dunno i haven't used a graphical login manager for a very long time.

  • RV042G Newbie Questions

    I have the new Cisco RV042G router, and I have just a few "newbie questions" about it as I get started using it:
    The firmware on board is v4.2.1.02. Since this is a brand new router, is that the latest firmware?
    Under Time>DST Dates, what do I need to configure in there? I'm in the US, Central Time.
    I want to use Back to My Mac from iCloud (formerly MobileMe). Under the iCloud preferances pane on my Mac, it's saying: "Back to My Mac may be slow because NAT Port Mapping (NAT-PMP) or Universal Plug and Play (UPnP) is turned off on your router. Turn on NAT-PMP or UPnP." What should I enable on my router in order for Back to My Mac to better function?
    I'm using a VOIP phone on the network (only 1 device with a couple phones). Are there any QoS settings I should tweak for better performance of my VOIP phone? I did change the port the VOIP phone is connected to to High (instead of Normal) under Port Settings. Will this help boost performance?
    I also want to setup a VLAN on a port for guests to access the Internet, but not have any access to my personal network. Here's the steps I've done so far. Is this sufficient or is there anything else I need to do?
    I went to Setup>Network, enabled Multiple Subnets.
    I added 192.168.254.1/255.255.255.0 as a subnet.
    I went to Port Management>Port Setup, set the port I wanted to use (Port 4) to VLAN2.
    I went to Firewall>Access Rules, added two rules:
    Deny All Traffic from 192.168.254.0 to 192.168.1.0.
    Deny All Traffic from 192.168.1.0 to 192.168.1.0.
    Thanks everyone for your help!

    Easy.  just goto the DHCP field and fill in the Static DHCP fields.
    Assigning static IP addresses by adding devices from a list
    Click Show unknown MAC addresses. The IP & MAC binding list appears. If the web browser displays a message about the pop-up window, allow the blocked content.
    The devices are listed by the IP address and the MAC address. (Typically the MAC address appears on a label on the bottom panel or back panel of a device.) If needed, you can clickRefresh to update the data.To select a device, first enter a descriptive Name. Then check the Enable box. Alternatively, select all devices in the list by clicking the check box at the top of the Enable column.
    Click OK to add the devices to the Static IP list, or click Close to close the pop-up window without adding the selected devices. After you click OK, a message appears. The message includes important information. Read it before clicking OK. Keep the browser open and wait until the selected MAC addresses appear in the Static IP list.
    Modify or remove list entries, as needed:
    To modify the settings: Click a device in the list. The information appears in the text fields. Make the changes, and then click Update. If you do not need to make changes, you can click Add New to de-select the entry and clear the text fields.
    To delete an entry from the list: Click the entry that you want to delete, and then clickDelete. To select a block of entries, click the first entry, hold down the Shift key, and then click the final entry in the block. To select individual entries, press the Ctrl key while clicking each entry. To de-select an entry, press the Ctrl key while clicking the entry.
    Assigning static IP addresses by entering devices manuallyIn the Static IP Address section, add or edit entries as needed. Remember that the settings are not saved until you click the Save button.
    To add a new device to the list: Enter the following information, and then click Add to list.
    Static IP Address: Enter the static IP address. You can enter 0.0.0.0 if you want the router to assign a static IP address to the device.
    MAC Address: Enter the MAC address of the device. (Typically the MAC address appears on a label on the bottom panel or the back panel of a device.) Enter the address without punctuation.
    Name: Enter a descriptive name for the device.
    Enable: Check this box to assign the static IP address to this device.
    To add another new entry: Enter the information, and then click Add to list.
    To modify the settings: Click a device in the list. The information appears in the text fields. Make the changes, and then click Update. If you do not need to make changes, you can clickAdd New to de-select the entry and clear the text fields.
    To delete an entry from the list: Click the entry that you want to delete, and then click Delete. To select a block of entries, click the first entry, hold down the Shift key, and then click the final entry in the block. To select individual entries, press the Ctrl key while clicking each entry. To de-select an entry, press the Ctrl key while clicking the entry.
    Using the Static IP List to Block Devices
    You can use the Static IP list to control access to your network. You can block access by devices that are not on the list or do not have the correct IP address.
    Add devices to the Static IP list as described in Static IP Addresses.
    Enable or disable the following features:
    Block MAC address on the list with wrong IP address: Check this box to prevent a computer from accessing your network if its IP address has been changed. For example, if you previously assigned a static IP address of 192.168.1.100 and someone configures the device to use 192.168.149, the device will not be allowed to connect to your network. This feature discourages users from changing their device IP addresses without your permission. Uncheck the box to allow access regardless of the current IP address assignment.
    Block MAC address not on the list: Check this box to block access from devices that are not included in the Static IP list. This feature prevents unknown devices from accessing your network. Uncheck the box to allow access by any connected device that is configured with an IP address in the correct range.
    Hope that helps.
    Regards Simon
    http://www.linksysinfo.org

  • Trouble backing up Macbook (10.4.11) and some newbie questions...

    I am using a MacBook OS X 10.4.11 and do not have Time Machine. I have a couple newbie questions...
    What is the best way to back up everything? I am using Disk Utility's Restore tab but it is taking forever. I first tried to do it though Disk Utility's First Aid tab but it wouldn't let me make a New Image because the "source was in use", I think it is because I don't have the Install Disc to begin with (http://support.apple.com/kb/ht1553).
    Secondly, does this include everything in "Home" (bookmarks, iPhoto library, iTunes library and so forth), Documents, and Desktop? Or must these be archived and transferred to the external hard drive separately from Macintosh HD?
    Thanks in advance for any help!

    I tried restarting the phone and switching to another USB cable and now it is working so never mind.

  • Dumb newbie question -- shell vrs linux console

    This is probably a dumb newbie question, but what is the difference between the shell screen and the linux console screen? I used another system before Arch and I believe there was only the shell screen! Does it matter which one is used?  Thanks -- Larry

    The console is the 2D text rendering thing. The shell is Bash, just a program that handles your input and has the console as output.
    If on the other hand you mean the console at startup, and you call that the console while you call xterm, etc. shells then the answer is different. It's just a matter of configuration if you automatically start X or not. A lot people use gdm or kdm to get a graphical login screen after bootup, others just type "startx" in the console when they want to start X.
    You can switch to the console with Ctrl+Alt+Fn where n is a number between 1 and 6. You can switch between consoles with Alt+Fn, X is on the last console, so to go back to X do Alt+F7.

  • Total Newbie Question ... Sorry :-(

    I know it's a windows thing, and I am now converted to Mac but I gotta know this because it's doing my head in. It's a complete stupid green gilled newbie question.
    When installing new programs on a Mac can you create shortcuts to the programs on the Dock? I did what I THOUGHT it would be, i.e I made an Alias and stuck it in the dock, but on rebooting my Mac later on, in place of the shortcuts where 3 question marks which when clicked on did absolutely nothing???
    Help?
    A.L.I
    Windows XP Pro Desktop, Macbook Pro, 60GB iPod Video   Mac OS X (10.4.5)   OS X

    You aren't installing something from a dmg file are you? The dmg is a disk image – kind of a virtual CD. So when you double click the dmg and then get the little disk/hardrive/custom icon on your desktop that is the same as if you had mounted a CD. You then need to drag the application off of that "CD" into your application folder. Then it is truly installed.
    You can then "eject" the icon your your desktop. This is what happens when you shutdown and without remounting the image your dock shortcut can't find the original.
    Just a thought.

  • Newbie Question. just installed IE7.. how do I set up a local host to preview sites?

    Sorry for the newbie question... but it's been a long time since I have done this
    Thanks!

    Just define your site in DW as always.  For a static site, that's all you need to do.

  • Newbie Question about FM 8 and Acrobat Pro 9

    Hello:
    I have some dcouments that I've written in FM v8.0p277. I print them to PDF so that I can have a copy to include on a CD and I also print some hard copies.
    My newbie question is whether there is a way to create a  PDF for hard copy where I mainitain the colors in photos and figures but that the text that is hyperlinked doesn't appear as blue. I want to keep the links live within the soft copy. Is there something I can change within Frame or with Acrobat?
    TIA,
    Kimberly

    Kimberly,
    How comes the text is blue in the first place? I guess the cross-reference formats use some character format which makes them blue? There are many options:
    Temporarily change the color definition for the color used in the cross-reference format to black.
    Temporarily change the character format to not use that color.
    Temporarily change the cross-reference definition to not used that character format.
    Whichever method you choose, I would create a separate document with the changed format setting and import those format into your book, create the PDF and then import the same format from the official template.
    - Michael

  • Domain name settings - Newbie question

    Sorry for a newbie question!
    I am already pointing a domain name to web hosting for email account. Now, I need an application server to run ERP software and Oracle, and installing Solaris and Oracle need a domain name.
    If I point my domain name to the server, how do I receive emails from web hosting???
    Install an email server to the application server instead? What can I do if I want the same domain name? Any option?

    Setting up a mailserver and making sure it doesn't suddenly turn into a spambox is not something you do with the use of a few commands. I suggest to dive into the Solaris admin guide on docs.sun.com and read up on e-mail and network services.
    If that is asking too much of your time you'll be better off getting your ISP to handle all this for you.

Maybe you are looking for

  • Are there any 3rd party tools which provide Microsoft Azure IaaS diagnostics?

    Are there any 3rd party tools currently, which can be used for giving detailed diagnostics Information about the IaaS environment (like on VM's, Virtual Network etc.) in a detailed report format periodically? Please note that I am looking for any suc

  • Error 500 with .htaccess and +FollowSymlinks

    Hi, I'm doing a website for a community of gamers and I have one .htaccess on the root folder of the website that cointains parameters to allow using friendly urls. The content of the .htacces is this: RewriteEngine On Options +FollowSymLinks Rewrite

  • Cannot Connect iPod to Itunes or Computer

    When i connect my ipod through the usb port, nothing comes up on itunes or my computer to say it is connected and i can begin synching my music. Any help?

  • Oracle ERP Organizational Readiness Tool

    If anyone here is interested (or knows of a client that may be interested), below is a link to an ERP organizational readiness tool. The brief series of questions are designed to assess fundamental items that should be in place before any large ERP p

  • Card information failure

    I was trying to redownload a app and it had me put in the card information, although when I did it said that the payment system was unavailable, how do I fix this?