Is there a way to get several serial data lines to poll and respond quickly?

I have a PCI-485/8 card where I need to use all 8 ports. Attached is the vi that I�ve developed so far. It works well when there are only 1 or 2 ports. But it really slows down the calling vi when I get up to 8 ports. The Read Delay is intended to set the polling pace, which is used to set the data logging rate. The calling vi is a timed while loop where dt = 0. Due to constraints of the polled device, I cannot set the delay less than 1200 mSec, so it�s set to 1500 mSec as a safety margin.
The poll string is !!SS0n where n is the address number and must be followed by \r\n. Because the poll must be terminated with \r\n, the termination character (for the VISA Configure Serial Port function) cannot be A or D (hex). Otherwise it sees it�s own poll, terminates, and then ignores the responding string. (The polled devices works from RS-485, 2-wire.) As a secondary question, I�d like to know if there is a way to have it ignore its own poll string. But the bigger issue is that it�s dreadfully slow (i.e. around 10 seconds) with all 8 ports configured. The goal is to have this thing run at a consistent 1500 mSec.
Please note that I may be approaching the program from a wrong direction and I�m certainly open to use a better way. For example, it may be more appropriate to obtain the data continuously instead of using a polling scheme. The devices being polled is capable of sending data continuously. However, I choose to use the polling method for three reasons. 1) The device does not send data at a continuous rate. (They are slow and not particularly stable.) 2) The provided data string is not consitent. The string varies in length, which may be the cause of the first problem. 3) There is a project scheduled where I will need to poll at least two devices on each port. (I realize that will really slow things down, but I�ll cross that bridge when I get there.) In other words, I�m open to set the devices on the ports in continuous mode if that�s the only way to get a fast and consistent system.
The application is for an off-shore oil rig where they want to monitor and log data from 8 winches that operate the anchor lines. I�m using LV 7.1, Win2000, NI-Serial v1.6. Please advise�
Attachments:
SD41_PR292_Poll_Data_8_2.vi ‏561 KB

Split this into 3 VIs. The first configures and opens the ports (everything to the left of the VISA Writes). This VI executes before the timed loop starts. The second is in the polling loop with the Error lines passed via shift registers. This includes the Writes, Bytes at Port, and Reads. The VISA Close and the analysis are in the third VI (outside the timed loop). This prevents the program from initializing and closing the ports repeatedly, which may take much longer than you think.
Also, I would put the Reads inside a Case structure that only calls the read if Bytes at Port > 0. Some devices do not like zero byte reads.
In the end product you amy want to analyze errors programmatically and attempt to close and re-open a port with an error rathe
r than having the Error Handler holler at the user.
With Bytes at Port do you really need the delay?
Lynn

Similar Messages

  • HT4061 It looks like I've only backed up my iphone, not my ipad. I believe I registered the ipad when I bought it. Is there a way to get my serial number from that?

    It looks like I've only backed up my iphone, not my ipad. But I know I registered it when I got it. Is there some way to get the serial number that way?
    My ipad was stolen and the police have requested the serial number.
    How can I find it?

    My Support Profile

  • I had to trade in my iPhone for an android, I did not unencrypted the back up on iTunes, i no longer have access to the phone, is there a way to get to my data?

    I had to trade in my iPhone for an android, I did not unencrypted the back up on iTunes, i no longer have access to the phone, is there a way to get to my data?

    The difficulty is you have to unencrypt during the restore process, which you cannot do with an Android device.
    See: http://support.apple.com/kb/HT4946

  • Is there any way to get back my data if I had not restored it from time machine before reinstalling Mac OS X on my comp from utility. PS - My OS version has downgraded from Mountain Lion to Mac OS X 10.75  . Pls. help

    Is there any way to get back my data if I had not restored it from time machine before reinstalling Mac OS X on my comp from utility. PS - My OS version has downgraded from Mountain Lion to Mac OS X 10.75  . Pls. help

    Look at the blue box on this link:
    http://pondini.org/TM/19.html
    Ciao.

  • I have an iPod whose contents I want to transfer to a newer Ipod.  At some stage I lost the music files from my library.  Is there any way to get them back from the older iPod and put them onto the newer one again?  I stupidly synced the wrong one.

    I have an iPod whose contents I want to transfer to a newer Ipod.  At some stage when I thought I was syncing correctly I wasn't so I lost the music files from my library.  Is there any way to get them back from the older iPod and put them onto the newer one again? 

    Have you not got a backup of your content on, for example, external drives ? If not then you could have a look to see if any of the utilities mentioned in this old post still exist and work : https://discussions.apple.com/message/11014893?messageID=11014893#11014893

  • Is there any way to get specific app data from iCloud so that when you redoes load an app, you can restore its data?

    Is there any way to get specific app data from iCloud so that when you redoes load an app, you can restore its data?

    no.
    the backup is only for the purpose if you need to wipe the device.

  • 1TB is missing from my hard drive. Is there a way to get them back without wiping my drive and reformatting everything?

    I installed Windows 8 on my 3TB Fusion Drive, now about 1TB is missing from my hard drive. Is there a way to get them back without wiping my drive and reformatting everything?

    No, I assigned 100GB to the Bootcamp partition. So my Macintosh HD should be still about 3TB but it only shows 2.2 TB. And when I try to put the Bootcamp partition back, it also shows that I would have about 2.3 TB combined. So almost a TB has just disappeared. It doesn't show up anywhere.
    Also when I installed Windows 8 I saw about 800GB (which is most certainly my missing space) show up as Free space. Now my question would be If it is possible to get them back without wiping the whole drive.

  • Using iPhone 5c as an ipod, has been used on our itunes account, is there a way to get the serial number?

    Using iphone 5c as an ipod (not hooked up for phone service) has been hooked up to our computer and used on our itunes account.
    Does anyone know how I can get the serial number?  It has been stolen.

    The following has information: iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • HT1766 If you had already restored your ipod touch without backing up, is there any way to get your old data back?

    Somehow, all my ipod touch's music was deleted so I restored it but forgot to back up. Now around a term past but I still don't how to get my old data back. Now the music thing still doesn't work so I don't know what happened. Maybe my itunes is stuffed??

    i wanna know if my warranty covers it
    No. The warranty covers manufacturing defects and faults that develop after purchase. Your dogs' mauling is neither of those.
    if it doesnt how much it will cost
    A Google search for "ipod touch 2g parts" returned this. There are others you can find yourself.
    $50 for back panel
    http://www.rapidrepair.com/shop/4405-chrome-backing-ipod-touch-2g.html
    $90 for glass panel
    http://www.rapidrepair.com/shop/4421-digitizer-glass-ipod-touch-2g.html
    do not reply to this unless u have an answer
    Yeah, 'cos people often do that...

  • Is there a way of getting a list of upcoming alerts/alarms and their times?

    I'd like to get a list of alert times, so that I can see if I have any that will be going off in the middle of the night!
    Many months back, I purged those pesky midnight alerts by scrolling through week by week and looking for the all-day events and checking each one. It was a chore.
    Now, due an odd synching issue between iCal and an app, I'm a tad concerned that some late night alerts may have been set, or PMs may have changed to AMs, or other oddities introduced. I'd like to scan a list of alerts for the next several months to ensure that none are set to go off during the sleeping hours!
    Just browsing events (say week by week) doesn't help me because they could have alerts set for all sorts of different times (or no alerts at all). If there isn't a way of listing the alerts, then I'll have to go through each individual event/to do to check its alert and time-- and there are hundreds!
    Hope this makes sense.

    Try this in Script Editor - the list of alarms will be in the result pane.
    AK
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "iCal"
    set Alarming to ""
    set MyCalendars to every calendar where writable of it is true
    repeat with ThisCal in MyCalendars
    set MyEvents to events of ThisCal
    repeat with ThisEvent in MyEvents
    repeat with ThisAlarm in (display alarms of ThisEvent) & (sound alarms of ThisEvent)
    set AlarmTime to (start date of ThisEvent) + (trigger interval of ThisAlarm)
    set GotOne to ((name of ThisCal) & ": " & (summary of ThisEvent) & ": " & (start date of ThisEvent as string) & " alarm " & trigger interval of ThisAlarm as string) & " minutes."
    set Alarming to Alarming & GotOne & return
    end repeat
    end repeat
    end repeat
    end tell
    Alarming
    </pre>

  • The computer that my itunes library was on has died.  Is there a way to get the music off of my ipod and on a different computer?

    My computer died.  Can I get the music on my ipod on to my new computer?

    See this older post from another forum member Zevoneer covering the different ways to copy content from your iPod back to your PC.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Is there a way to get the highest audio peak to display (and hold) in PPro CS4?

    I have to deliver my projects to a client with the audio mixdown at a specific level, namely, no greater than -6db. It would be great if, while playng back the sequence, the Master level would show, and hold to peak audio level reached. As we know, the peaks do indeed display, but disappear almost as fast as they appear, so it doesn't do me any good. There are two problems for this: 1. I must be blind, or something. 2. My mind doesn't work fast enough to notice where the little yellow bar appears, and then remember it at the end of the clip. HELP. Thanks, Steve.

    Steve,
    I do not know of any Hold feature on the meters. To my knowledge, only the red (overload) will "hold." Maybe I am about to learn something.
    One could Normalize to -6db, but then I am NOT a fan of Normalizing in either PrPro, or Audition.
    In Audition, the Waveform Display is more accurate than the representation I see in PrPro. There, it's pretty easy to graph the peaks and see where they fall (or "rise"). Do not know how SoundBooth displays, and if it's any more accurate, than PrPro. Now, PrPro is not bad, I just find it a bit more of an emulation, than what one has in Audition - maybe it's just my eyes... ?
    Good luck and hope that someone knows of a display Hold.
    Hunt

  • Is there a way to get a different browser on my iPad AND do it through a sync form my MacBook

    I need a different browser on my iPad so it will go through my firewall, I use Sonic Wall.........I can't get on the Internet with the iPad to download anything so I would have to download something to my MacBook and sync to the iPad, sounds like a nightmare right?? Any suggestions.

    No really, just use iTunes to find another browser in the App Store for the iPadm, and then sync it over.
    With that said, I{m not sure a different browser is going to do any good. Perhaps your firewall can be configured to let the iPad through?

  • Is there a way to get ONLY UNREAD mail on my iphone and ipad and ALL mail into Outlook on my computer?

    When I'm out and about, I pick up my mail on my iPad and/or on my iPhone. I HATE having to sift through the duplicates. I know I can delete the emails from the server as they are being downloaded, and that would solve the problem between the iDevices. But I still want a copy of them downloaded into Outlook on my desktop for future reference, so deleting them from the server before Outlook gets ahold of them does not seem like a good idea.
    I currently have a POP3 account, but I could move onto an Exchange Server or into iCloud or something else if that would solve the problem.
    Suggestions gratefully accepted.
    Thanks.

    You need an Exchange or IMAP account to do what you want. This will keep mail in sync on all of your devices.

  • HT4528 Is there any way to get rid of the recent iphone upgrade and revert back to default settings? Since upgrading I have experienced nothing but problems with Siri.

    Since selecting the prompt to upgrade my iphone4s, I have experienced significant problems.  The "old" Siri disappeared and the new one is slow, ineffective and unavailable much too frequently.  The faded colors on my iphone screen are also troublesome.  I wish that I could revert back to the default settings
    on my iphone4s.  Has anyone else experienced the above problems?

    Apple does not support downgrading to a previous iOS.
    You might first try a reboot:
    press and hold the home and power buttons until the Apple icon is displayed, then let go.
    If it doesn't help,  try
    Settings>General>Reset>Reset all Settiings.

Maybe you are looking for

  • Parked Document Item Text disappered after Posting

    Hello experts. Our system has a bug that : Enter an invoice verification document with MIRO, in the Customer Line Item Text(BSEG-SGTXT) we input some info, and than save as complete. The manage approval the parked document with FBV0, when he open the

  • Script to SaveForWeb with different file name

    Can someone direct me to a script that can take the file and SaveForWeb in different versions and append different text to the filename? For example, say I've got a file called "myPhoto".  I need a script that saves it as  JPEG called "myPhotoPOWERPO

  • Do not automount firewire or usb disk at startup

    Hi I do have a Xserve with Xraid via (fiber link) Xraid do have 2 partitions MailStore and FileStore. I do use external disks (usb/firewire) to do a quick backup,one is called FileStore and the other MailStore. when mounted OSx mount them as 'FileSto

  • DBMS_ERROR_TEXT failure with Headstart Utilities Admin form

    I have installed the Headstart Oracle Designer for Designer/Developer 6.0, following instructions found in the patch for 6.0. Whenever I try to start the Headstart Utilities Administration form, I get an error stating that DBMS_ERROR_TEXT failed. Has

  • Unable to paste any file on External Hard Disk in OS ver 10.9.5

    I'm using iMac 2011 model with OS Ver 10.9.5. The sharing and permissions option in the get info in External Hard disk shows "you can only read". Kind suggest how to change it to read & write.