Why can't labVIEW communicate simultaneously with all of my six RS 485 devices ?

Hi everyone,
i'm writing a VI that is able to read out 8 sensors from 6 devices connected by RS 485. I'm using the VISA subVI for that. 
My trouble is, the more devices I connect at the same time, the slower the 8 sensor readings are coming in. One device takes 5 seconds and all six take 18 seconds, when they really should take 5 seconds, too. It seems to me, that labVIEW, the way I use it, can only read and/or write one device at the time. Is there a why to make labVIEW faster ?
To be more exact about my diagram. I simply have open/write/read/close structure in a subVI which is called by a subVI that handles progression of the commands and the output strings. This subVI is called 6 times in a one while loop in my main program.
I experimented with putting all device-work flows in one sequence structure, but there it became very obvious that more devices slow down the "rhythm" of my VI. 
Any help is appreciated.
cheers
I attach the middle subVI
Attachments:
CallSensors.vi ‏19 KB

PI-Control wrote:To be more exact about my diagram. I simply have open/write/read/close structure in a subVI which is called by a subVI that handles progression of the commands and the output strings. This subVI is called 6 times in a one while loop in my main program.
You open/write/read/close each time you communicate?  That will wreak havoc on your performance.  You should open the port once at the start of the program and then close it once at the end.  You can read/write as much as you want in between.  Opening and closing ports repeatedly can really slow you down.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

Similar Messages

  • Why can't I communicate with both of my GPIB devices?

    I have 1 NI PCI GPIB board in my computer
    I have 2 identical devices (keithley 237) connected one at address 15 one at address 16
    and 2 different programs one program to connect with 15 and 1 to connect with 16
    after I tell the 1st labview program to communicate with 15 then I tell the 2nd labview program to communicate with 16. then both communications come back with error device timeout. one at a time, I can communicate find with either device.
    Why can't I communicate with two different GPIB devices at the same time?

    Hi mrutter,
    first I would try some other addresses, e.g. 5 and 11. 15, 16 could be
    a special address used by the controller.
    Are there any other devices on the GPIB? If so then there could be
    another instrument with the same ID. Do both (or all) devices show in
    MAX, and can you communicate with them in MAX (e.g. query a *IDN? )
    And are you sure that you *have* setup the correct addresses in the
    Keithley instruments (look in the manuals if you don't know how to
    change their addresses)? Some Keithley instrument are in local mode by
    default, and you must explicitely set them in GPIB mode.
    Sometimes, GPIB message termination can be an issue (although both the
    GPIB cards and the instruments seem to get more tolerant of this).
    Also, you must be very careful not to mix different versions of
    LabView drivers and LabView version. I once had three different
    LabView versions on a PC, it was terrible. We had to format the
    harddisk and start afresh since we couldn't remove all of the older
    versions.
    I first try all GPIB instruments in MAX. If all devices appear there,
    and I can query commands in MAX, then I usually write my own LabView
    drivers with the standard GPIB-read and -write VIs. I write them with
    my oldest LabView version (say 5.1), then I am sure they will work
    with all versions up to 7.1
    Actually I once had a project where *no* GPIB instrument worked 100%.
    We could never really find out what was the problem (it was probably a
    bad PC <-> Win98 <-> GPIB card <-> LabView 5.1 constellation).
    Good luck.
    Johannes
    On Fri, 12 Nov 2004 13:49:31 -0600 (CST), "mrutter@contech"
    wrote:
    >I have 1 NI PCI GPIB board in my computer
    >I have 2 identical devices (keithley 237) connected one at address 15
    >one at address 16
    >and 2 different programs one program to connect with 15 and 1 to
    >connect with 16
    >after I tell the 1st labview program to communicate with 15 then I
    >tell the 2nd labview program to communicate with 16. then both
    >communications come back with error device timeout. one at a time, I
    >can communicate find with either device.
    >
    >Why can't I communicate with two different GPIB devices at the same
    >time?

  • Hard drive failure (why can't I start up with boot disk)?

    Running OS 10.4.6. I was getting flashing question mark at startup. Tried starting with Disk Warrior holding down "C" key. Got Apple logo, but then screen frooze with horizontal lines across screen.
    Rebooted, held mouse to eject disk. Tried TechTool Pro disk. Would not boot from that either (got circle with slash logo I think).
    Finally was able to boot with Tiger install disk.
    Ran disk utility from Tiger disk. My internal hard drive showed up in red letters and said "failing"
    OK.....I can understand that.....I guess my hard drive crashed (on my 2 year old Powerbook...oh well)
    But, why can't I start up with any of my boot disks (Disk Warrior, TechTool) only the Tiger install disk. Also the Panther and Jaguar disks will NOT start it...only the Tiger disk works. One more thing I'm wondering....I connected my external firewire drive that has a boot partition on it that I have started up with in the past....and it won't boot my laptop either.
    Any ideas? Thanks for any insight. Guess I'll head to the genius bar tomorrow. At least my extended warranty is still good (I think).
    Powerbook G4 17 1.5 ghz   Mac OS X (10.4.6)  

    Here is what the outcome was:
    I took my Powerbook into Apple Genius bar (still under 3 yr. AppleCare), he determined that my hard drive had crashed. He shipped it for me to be repaired.
    It came back with a message attached saying that the source of the problem was my 3rd party RAM, which was a 1 GB module. The note said that the memory had been removed...and that in some cases like this the removed memory will be sent back to the customer and will be in the box somewhere. I checked and it wasn't there. The "Get Info" for my system said I was now running on 512 mb instead of the usual 1.5 GB. The note said that this 3rd party RAM had caused the hard drive to fail, so the hard drive had been replaced.
    I ordered a new 1GB RAM module from Apple for $300, didn't want to take a chance on 3rd party again. But....when it arrived, I went to install it....and my 1GB 3rd party module was in the slot....it just wasn't pushed all the way in I guess. I pushed it in firmly, closed up the computer, started it, and the "Info" read 1.5 GB again. I ended up removing the 512mb module and replacing that with the new 1GB one I bought from Apple. So now I have 2GB of memory and and extra 512 that I can't use. It has been running fine ever since (more than 2 months)
    Can bad RAM really make a hard drive go bad?
    I wonder why they said they had removed the RAM, but it actually had not been removed (at least not completely)
    Powerbook G4 17 1.5 ghz   Mac OS X (10.4.7)  

  • Why is my iMessage not working with all iphones ?

    Hi can anyone tell me why my iMessage isn't working with all iPhones? When it dose it sometimes sends message as a text

    Hey Mgpr,
    There's an article that helps with troubleshooting steps for issues activating iMessage that I think is worth a look. See if any of the suggested steps work for you:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Sincerely,
    Delgadoh

  • Why can't I record calls with the iPhone?

    Hi,
    Why can't I record calls with the iPhone? Every other mobile can! That's quite pitty ...!

    Nonsense. There are many places where you are not allowed to take photos or video but those functions are included. Apple assumes no responsibility for them. Apple would not be responsible for managing the recordings on the phone either. It's most likely because Apple is located in California and in THAT particular state, both parties have to be informed of the recording. Most states do not require that. If Apple were located in another state (e.g. Alaska) there would be no restriction.
    All the apps that record calls store those recordings in their servers and charge you a fee. It would be preferable to have the calls stored only on the phone so no one else could access them. The iPhone has the technological capability; we have just been restricted from having this functionality without paying a 3rd party.

  • HT1904 Why can't I purchase music with my iTunes gift card on my iPhone4S

    Why can't I purchase music with my iTunes gift card on my iPhone4S

    That could hardly be more vague.
    What happens when you try?
    Any info at all about your issue?

  • Why can't I contact You with ACTUAL FEEDBACK

    Why can't I contact You with ACTUAL FEEDBACK? Why does Firefox Vers 28 allow me to download complete webpage files but Vers 30 does not? Plugins, Addons, Internet Security are all the same on both systems. I can download the files in IE but not Firefox. What gives? I use NoScript, Better Privacy, Ghostery, and Kaspersky Internet Security configured the same on both systems. The only reason I checked is because on certain sites, I can't download files and the view completely. Firefox Vers 30 will download but not create a complete html link in the directory so that I can open and view the file.

    Wow I logged into my account here & could not find anywhere to help everyone with the Firefox 32 update patch or whatever that was.
    The update failed over & over & was just trying to tell anyone that if you download a fresh copy of Firefox & run as administrator install it overwrites the files & updates.
    I don't see why there is not an easier way to contribute like "A BUTTON" that says help Firefox or "Report a problem" or give help whatever. I'm outa here this is ridiculous. I even wanted to be a beta tester & there contact and communication with the team is WOW impossible !

  • Why can't I use PayPal with Family Sharing? Have a US Visa card but foreign address, and Apple does not seem to be able to cope with that (even though it is a multinational corporation). Could we lean on Apple to change this policy?

    Paypal for Family Sharing - Why can't I use PayPal with Family Sharing? Have a US Visa card but a foreign address, and Apple does not seem to be able to cope with that (even though it is a multinational corporation). So I set up payment with Paypal, and it worked fine. Now I want to take advantage of Family Sharing, but Apple won't allow it. Could we lean on Apple to change this policy?

    If you are not in the US then you cannot use the US store, the store's terms say that you have to be in a country to use it - if you are using the US store then you are risking having your account disabled.
    In terms of feedback for Apple : http://www.apple.com/feedback/

  • If I put my I tunes library in my external hard disk can I still share it with all the accounts of my Mac?

    If I put my I tunes library in my external hard disk can I still share it with all the accounts of my Mac?

    Hello there, Gnorra.
    The following Knowledge Base article reviews how to share your music in iTunes with multiple users on the same computer:
    iTunes: How to share music between different user accounts on a single computer
    http://support.apple.com/kb/ht1203
    If you're using Mac OS X, follow these steps:
    Quit iTunes.
    Go to your iTunes Media folder. By default, it's in ~/Music/iTunes. (This folder may be named iTunes Music if you created your iTunes library in iTunes 9 or earlier.) 
    Note: "~" represents your Home folder. Other users on your computer can't access these locations.
    Drag the iTunes Media folder to a public location. For example, you could move it to the Public folder in your Home folder (~/Public) or to a location outside your Home folder that other users can access (/Users/Shared).
    Important: Don't move the iTunes folder, the iTunes library file, or the iTunes library.xml file.
    Open iTunes.
    Choose iTunes > Preferences.
    Click Advanced.
    Click the Change button.
    In the window that opens, go to your iTunes Media folder.
    Click Choose or Open.
    Repeat these steps for each user that you want to share music with. If multiple users on your computer are storing music in the same public folder, duplicate song files may appear if a user imports music from a CD that another user already imported.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Why can't I find events with cmd-F? I can see the appointment I am searching for, but the search cmd-F function does not find it. Why is this. It used to work...

    Why can't I find events with cmd-F? I can see the appointment I am searching for, but the search cmd-F function does not find it. Why is this. It used to work...

    Why can't I find events with cmd-F? I can see the appointment I am searching for, but the search cmd-F function does not find it. Why is this. It used to work...

  • I am from Canada, why can't I purchase iTunes with my PayPal? I want to request that iTunes works this out for Canadians.

    I am from Canada, why can't I purchase iTunes with my PayPal? I want to request that iTunes works this out for Canadians.

    sodafox wrote:
    I am from Canada, why can't I purchase iTunes with my PayPal? I want to request that iTunes works this out for Canadians.
    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    Good Luck.

  • I just updated my MAC operating system and when I went to open a recent document in numbers, the document that opened had none of my data and was formatted differently.  Can I get my document with all my information back?

    I just updated my MAC operating system and when I went to open a recent document in numbers, the document that opened had none of my data and was formatted differently.  Can I get my document with all my information back?

    I suggest the easy stuff first:
    1) quite Numbers and restart Numbers
    2) reboot the computer
    After that try opening the same document in another user space

  • Why can't I attach files with my hotmail account on my mac pro since I upgraded to lion?

    why can't I attach files with my hotmail account on my mac pro since I upgraded to lion?

    i can' t believe it but after 3 hours of reading everything i could find on this subject i discovered the answer on accident: IT'S THE CLOCK!!!!! I know that it sounds crazy but go to settings and go to date and time and set it to the automatic date and time, even if it's the wrong time. after i did that, everything worked perfectly! aldiko accepted my adobe id and imported my purchased book happily.  i hope it is that easy for everyone, best of luck.

  • Why can't I minimise itunes with mouse double click?

    why can't I minimise itunes with mouse double click?

    I do not know if you can ..
    Try -
    Command + M .

  • Why can't I open anything with adobe reader

    why can't I open anything with adobe reader I need help getting to open things  dam  it
    Thank You:
    Mark Mayfield

    Hi markndi56,
    Can you please let us know exactly what task you are trying to perform with Adobe Reader?

Maybe you are looking for