How do I get Labview 7 to read from RS232

I have a power meter that sends output to a serial port. I need to get that output into Our LabView program. We have the Serial code from the power meter. It sometimes works when the lightbulb icon is clicked, otherwise it does not. ?

Hi,
You said that the code that you currently have works when you have Highlighted Excution on (light bulb); this leads me to belive that you have a timing issue. You can start by adding saome delays between the read and write functions, this way yuo give enough time to the instrument to respond to each command.
Please let me know if you have more specific questions on this.
Regards,
Juan Carlos.

Similar Messages

  • How do I get iTunes to read from my external drive?

    Ok, before you post this link http://docs.info.apple.com/article.html?artnum=301748 please read this. That link only seems to give advice if you have your music on your computer's hard drive and you want to transfer it all to another drive. My problem is that all of my music is currently on an external drive. There is nothing to transfer or consolidate from my computer. I've gone into the preferences and set the iTunes music folder to the location on my external drive. The part about consolidating doesn't seem applicable in my case. So now that I've set the location of my iTunes music folder why isn't anything showing up in my iTunes library? Why can't I play any music?

    So have any of this "external" music ever been added to iTunes? If not, go to File>Add to Library. Then navigate to the external hard-drive folder that contains the music.

  • How do i get itunes to read from an external harddrive without transfering it all on to the computer

    I have 1.5 terrabytes of movies on an external hard drive. my internal hard drive is only 1 terrabye. Every time I try to link my movies it starts to transfer everything back to the internal. is there a way to make it read just movies (music is on the internal) on the external, without duplicating it all on to my mac?

    Hold down the option key while dragging items to the iTunes window.  This will override iTunes copying the media to its media folder and simply add it in its current location.  There can be disadvantages to this, particularly when the day comes you wish to relocate items to a new external drive.   You will have to re-add those items to the library again, losing things such as ratings, playcount, etc.

  • I have iphoto '08 version with an imac osx 10.5.8. It will not read my RAW files  from my Nikon D800 - a very new model.How can I get it to read my RAW files?

    my somewhat old imac osx 10.5.8 with iphoto '08 will not read my RAW files from my new Nikon D800 camera - a new model on the market( 5 months or so). How can I get iphoto to read my RAW  files?

    iPhoto 08 would not read RAW files from that new a camera. You need to upgrade so you can get more up-to-date version of OS X and iPhoto. Another possiblity is see if iPhoto 11 will run on 10.5.8, if so you should update. You can also attempt to run Software Update and see if it finds a newer release of iPhoto 08 that supports newer RAW formats.

  • How can I get back my pdf from adobe reader app on my restarted windowsphone 8.1 Samsung ATIV S please?

    How can I get back my pdf from adobe reader app on my restarted windowsphone 8.1 Samsung ATIV S please?

    Then all your data are lost, unless you backed them up (e.g. to https://cloud.acrobat.com/files).

  • How do I stop Serial "VISA Read" from giving me packets instead of available bytes.

    Dear Labvillians,
    Highlight:
    How do I stop serial "VISA read" from giving me packets instead of bytes?
    Background:
    I have a system that serially publishes 14 byte packets on a semi-regular interval.
    At busy times, the producer of these these packets queues the data, effectively producing super-packets in multiples of 14 bytes sometimes as large as 8 packets (112 bytes).
    My protocol handler has been designed to processes bytes, packets or super-packets.
    My application now has multiple devices and the order of message processing is critical to correct functionality.
    My observation is that the VISA read waits until the end of a packet/ super-packet before passing the data to the application code. (See Plot Below)
    My expectation is that VISA read should give me available bytes, and not get too smart for itself and wait for a packet.
    I have observed this on PXI, Embedded PC, cFP and most recently, cRIO
    I have experimented with the cRIO's Scan interface rate, which helps with reducing the packet backlog but doesn't resolve to sub-packet byte read.
    I understand that one solution is to Write FPGA code to handle it and pass the bytes through R/T-FIFO, and there are some great examples on this site.
    Unfortunately this doesn't help with non FPGA devices.
    I have also dabbled in event based serial reads but it is diabolical on vxWorks devices.
    Any Help is appreciated
    iTm - Senior Systems Engineer
    uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
    Solved!
    Go to Solution.

    Sometimes Talking to yourself is helpful.
    I hope this is a useful Nugget for someone in the future
    iTm - Senior Systems Engineer
    uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

  • How can I get the "text" field from the actionEvent.getSource() ?

    I have some sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.ArrayList;
    public class JFrameTester{
         public static void main( String[] args ) {
              JFrame f = new JFrame("JFrame");
              f.setSize( 500, 500 );
              ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
              buttonsArr.add( new JButton( "first" ) );
              buttonsArr.add( new JButton( "second" ) );
              buttonsArr.add( new JButton( "third" ) );
              MyListener myListener = new MyListener();
              ( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
              JPanel panel = new JPanel();
              panel.add( buttonsArr.get( 0 ) );
              panel.add( buttonsArr.get( 1 ) );
              panel.add( buttonsArr.get( 2 ) );
              f.getContentPane().add( BorderLayout.CENTER, panel );
              f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              f.setVisible( true );
         public static class MyListener  implements ActionListener{
              public MyListener() {}
              public void actionPerformed( ActionEvent e ) {
                   System.out.println( "hi!! " + e.getSource() );
                   // I need to know a title of the button (which was clicked)...
    }The output of the code is something like this:
    hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
    border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
    flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
    disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
    right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
    rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
    I need this: "first" (from this part: "text=first" of the output above).
    Does anyone know how can I get the "text" field from the e.getSource() ?

    System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
    In a real-world application, no.
    In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
    In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
    All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
    Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button).

  • How can I get the edited pictures from the thumbnails to full size?

    I upgraded to iPhoto 11, the thumbnail photos show my previous edits, but when I click on the photo to make it bigger, it reverts back to the unedited, original picture.  How can I get the edited pictures from the thumbnails to full size?

    Verify you are using iPhoto11 ver 9.5
    if not run the >Software update or check your apps folder and make sure the correct iPhoto is launched,  not an older ver.

  • How can I get the XML structure from a flat structure?

    Hi all,
    in my XI SP 12 I use a JMS adapter to read information using the WebSphereMQ transport protocol.
    The structure that I receive have this format:
    <Name_A.KeyFieldValue><Name_A.fieldName_A1_Value>...<Name_A.fieldName_AN_Value>
    <NumberRecordType_B><NumberRecordType_c>
    <Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>
    <Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>
    <Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
    <Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
    the problem is that in this structure each line is not separated by a carriage return or a comma, I have all the information in a single line:
    <Name_A.KeyFieldValue><Name_A.fieldName_A1_Value>...<Name_A.fieldName_AN_Value><NumberRecordType_B><NumberRecordType_c><Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>...<Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value><Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>...<Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
    and the customer don't want to insert a line separator.
    Then, the question is:
    How can I get the XML structure from this structure?
    If possible, I don't want to develop new Module and add it in the JMS Module Sequence.
    PS I have already read the article "How to Use the Content Conversion Module with the XI 3 J2EE JMS Adapter.pdf" and it doesn't seem to help me.
    Best Regards,
    Paolo

    To get context parameters from your web.xml file you can simply get the ActionServlet object from an implementing action object class. In the perform (or execute) method make the following call.
    ServletContext context = getServlet().getServletContext();
    String tempContextVar =
    context.getInitParameter("<your context param >");

  • How do I get text to flow from one page to the next in Pages 5?

    How do I get text to flow from one page to the next in Pages 5 with the Maverick system?

    What may be overlooked in Pages v5 is the notion of combining Text Boxes via the Menu > View > Show Arrange Tools. When you select two Text Boxes, an extra panel unfolds at the bottom of the Arrange Tools window. Uncheck one Text Box and this panel abruptly disappears.
    One can achieve text flow effects between Text Boxes differently based on how one positions the Text Box overlap, and choice of effect above. Though not the accustomed flow found in Pages ’09 v4.3, flow does occur. Consider the possibilities of combining a Shape and a Text box to cut an irregular Text box.
    If I create two Text Boxes and position them side by side with outline touching and choose Unite, this creates one larger Text Box and text flows across and down. On the otherhand, if I overlap the upper left corner of a lower Text Box over one above and to the left, then choose Union, pasted text fills the first Text Box and then flows across and down into the other box. Here is a Union example:
    Intersect will leave a small Text Box where the two overlap, so not much value there. Subtract will cut a chunk out of one Text Box that is the size of the overlapping piece of the second Text Box:
    And Intersect will leave an island in the center where the two Text Box overlap, with flow jumping over this bridge.
    Clearly, this is not what we were accustomed to in the past, but with imagination, style, and layout tuning, it does offer alternative Text Box creativity and layout. Of course, there is the option of simply returning to the previous Pages version for true Text Box linking that most will want to use.

  • How do I get my UDID number from my ipod if I can't plug it into itunes?  Apple took it back because it was broken and gave me a new one but I have games and apps that can only be moved over with the UDID from the old pod.

    How do you get the UDID number from your ipod if you don't have the ipod anymore.  The apple store took it because it wasn't working so I can't plug it in to get the number.  Some of my apps are associated wtih that number and I can't move them to my new Ipad without that number.  Any ideas?

    Hi KT. I restored my information back to November 10th and the one app that I need the info on is still empty like I just downloaded it. Do you have another suggestion? I was able to track down my serial number but can't get the UDID without plugging it in and I no longer have it. Suggestions?

  • How do I get home video clips from iMovie Mac to iMovie iPad?  Surely there is some degree of cross-compatibility?  I have a load of clips in iMovie on my MBP that I wanna download to my iPad2 so that I can edit movies on the move.  Any ideas?

    How do I get home video clips from iMovie Mac to iMovie iPad?  Surely there is some degree of cross-compatibility?  I have a load of clips in iMovie on my MBP that I wanna download to my iPad2 so that I can edit movies on the move.  Any ideas?  (The clips are in a .mov format, they have been imported / converted into this format in iMovie, original files were from a JVC camcorder in some other strange format.)

    I copied the iTunes file from the external drive and it's in both places.  I thought all I would need is the iTunes program (which I downloaded to new computer) and my iTunes library file.  There must be something else that's missing.  My iTunes library looks the same on the new computer as it does when I open it on the external drive.  If I click on an iTunes library song from my new computer, it will only play if I have the external drive plugged in.
    My back-up drive is a mess.  I have multiple copies of music, video, photo, and document files and I don't know how that happened. ={  Obviously, I don't know how to back up stuff properly and there are back-up files extending over a 6- to 8-year period.  I think all I did was just drag and drop the main folders from the back-up drive to the same main folders on the C: drive.  Also (and I'm kind of fuzzy on this) Windows used to automatically save music files in a folder within my document files (which makes no sense to me).  As my Jewish friends would say, "Oy Vey!" 

  • How can i get an duplicate invoice from my MacBook which I bought in an independent Apple retail store

    how can i get a duplicate invoice from my MacBook which I bought in an independent Apple retail store in poland

    Call the store & ask the sales staff to send you one if you are no longer in Poland.  If you are still there, what is stopping you from visiting the store? 

  • I had an iPhone 4 with all my music on it. Got rid of my desktop when I got an iPad. Now I have iPhone 4S. How do I get my music transferred from old phone to 4s and iPad without a desktop with iTunes on it?

    I had an iPhone 4 with all my music on it. Got rid of my desktop when I got an iPad. Now I have iPhone 4S. How do I get my music transferred from old phone to 4s and iPad without a desktop with iTunes on it?

    Restore the device from the backup created.
    If no backup exists, there is nothing to recover.

  • My webhost had me delete my TBird account, and create a new account. How do I get my folders & files from my Hardrive back to TB? THANKS!

    My webhost had me delete my ThunderBird POP3 account, and create a new ThunderBird IMAP account.
    This took all my folders and files out of Thunderbird!!!
    I know where all my folders and files are located on my hard drive.
    How do I get my folders & files from my hard drive back to TB?
    Any help will be much appreciated.
    THANKS IN ADVANCE!
    Jeff

    When you delete a Pop mail account, it disappears from the Account Settings and Folder Pane, but fortunately it still exists in the Profile folder unless you had removed it.
    Ideally, you should have moved all the emails into 'Local Folders' before removing the account.
    You could use this addon tool to import messages into 'Local Folders' account.
    '''ImportExportTools: '''
    * https://addons.mozilla.org/en-US/thunderbird/addon/importexporttools/
    Download the .xpi file and save to desktop or Downloads folder.
    '''To install addon:'''
    In Thunderbird
    'Tools' > 'Addons' OR 'Menu icon' > 'Addons'
    * click on the gear wheel icon and select 'Install addon from file'
    * Locate and select the .xpi file you downloaded and click on 'Open'.
    * After installing you will need to restart Thunderbird to activate.
    In 'Local Folders' create some folders with suitable names.
    Right click on folder > ImportExportTools
    There are a couple of Options on importing
    See image below as example aid.

Maybe you are looking for

  • Need a process to update BSO Planning Web form into an ASO Cube

    Need a process to update information from the BSO Planning Web form into an ASO Report Cube every (5) five minutes. Please advise

  • Missing Web Service Input Parameters

    Hi, I am creating a form on web services. The source of the webservice is BEPL. When I register the webservice, I see the in and the out parameters. Operations       Operation Name     process Input Parameters Operation     Parameter Name     Paramet

  • Combining movies in one flash movie

    I have an assignment, teacher wants us to take all of our projects(5), add buttons to them, and put them into another Flash project, as a slideshow. She refuses to show us how to do this. I am at wits end. All she ever wants to show us is how to make

  • Ipod Nano lost all music after sync

    I sync'd my nano last night and now I find no music on it?? WHat I have is a strange menu options... I have now, Music, Artists, all, all..... then nothing..... Normally you would have Music, Artists, All / Listed of Artists!!! I have reset the nano

  • Teststand 2012 temp file

    Hello  In teststand 2010,  I am able to re-directed temp file to a different location by issue this expresion in the PostUUTLoop Calback: ThisContext.Report.TempFileDirectory= "C:\\tmp" It does not work with Teststand2012 when I set a similar express