Set VISA read sync globally

Hi,
From an LabVIEW application that I am working on, I need to set the Visa Read to be syncrhonized.  From the context help file, I learned that I can right click on the Visa Read VI icon and set the attribute.  But, I want to ask if there any way to do it globally so that every VISA Read is behaving this way?
I am using LabView 8.5
Thanks.
Peggy

Hello PeggyC
Once you have placed the vi on the block diagram and right click on it select the Synchronous I/O mode to the one you want and then select the vi and copy and paste it wherever you want it and it will have the same properties for this mode. I am not really sure you can do it programatically to all of the VISA read vi's that you have on your application. 
"everything is achieveable through technology'

Similar Messages

  • How to set "VISA Read" as a event source?

    I want to made the VISA Read as one of the event source.
    For instance,  whenever the "VISA Read" read one byte, it can creat a event, so the event can process it.
    How to realize it? Thank you.

    hi there
    please try the attached vi (not testet cause i don't have any serial device at hand).
    it uses a string indicator as the data buffer. if there is new data the vi sets the "Val(Sgnl)" - property of the control which itself raises the "value changed" - event. i don't see a possibility to connect user events and VISA. there are the VISA - events (see the VISA advanced palette, but they also can't be connected to a event structure)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    event_ValSignaling_7.1.vi ‏53 KB

  • Visa read object difference parity setting for PC and TPC2012 device

    Hello,
     we found some difference between application running in PC and runing in TPC2012 device.
    We tested modbus communication via RS485 (9600b/s, 8bits, parity even) between PLC(master) and TPC2012 (slave). We used Visa read object and set parity to Even via property node. From the PLC we sent request to device and in our application we only read the data from PLC and displayed it (8bytes) on sreen.
    If we tested the application on PC everything worked fine. But if we compiled application and ran it in TPC2012 device  the data was different (for example if I sent request from PLC to slave 05 03 00 01 00 01 crc crc on the TCP I saw 00 03 00 01 00 01 crc crc. The  crc on TPC wasn't equal to crc on PLC.
    We found that problem was in VISA read setiing for read data in TPC device. If we set parity to SPACE (instead of EVEN)  then we read data correctly.
    Modbus - Parity set for VISA read object:
    Master PLC (even) - PC (even) -> visa read - data are equal
    Master PLC (even) - TPC (even) -> visa read - data aren't equal
    Master PLC (even) - TPC (space)-> visa read - data are equal 
    PC: Win XP SP2, LabView 8.5 with LabView TP module 8.5.
    TPC2012: WinCE 5.0, NI visa 4.2, NI TPC Service 1.0.
    Best regards,
    Pavel Rucka.

    I just found out that the VI for the currentmeasurement with the keithley 6517a has the same error but still works fine. Now I also tried to adjust the serial data bit and parity settings via the VISA configure serial port function but still no improvements.

  • Why do I get a "termination character was read" warning with VISA read and TCPIP?

    I am using VISA Reads with TCPIP raw sockets without issue with NI-VISA 3.0.1 but when I moved to NI-VISA 4.4 I was getting timeout errors.   The timeout errors went away when I set the termination character enable property to true (which seemed to be default in NI-VISA 3.0.1), but now I get a warning stating that the "termination character was read".   
    Can I disable this warning?   Can I set the termination character enable to default?   How can I get rid of this annoying warning?
    Solved!
    Go to Solution.

    Hey Dagwood,
    Unfortunately there isn't a way to globally change the attribute VI_ATTR_TERMCHAR_EN to VI_TRUE.  I spoke with R&D about possible use of the registries and they say it's not accessible through that.  To address why this change was made, the developer who made the switch isn't around anymore so I can't find his reasoning as an explanation for you.  The best this for you to do in your code would be while initializing, use the VISA Property Node to make the change and until that VISA Resource is closed, this change will remain set to the value you assign.  I'm sorry we cannot provide any other solution for this inconvenience.  Also, if you feel this is a large burden on your programming practice you can definitely submit a product suggestion for the ability to change global default values for VISA attributes.
    Thanks,
    David Pratt
    AES - Test Side Products
    NIC

  • Visa Read Timeout Occurs with multiple Reentrant VI Calls

    I have written a test application in Labview (6.1) which will be used to test (burn-in) up to 15 serial instruments through a 16 Port USB->RS232 Hub. Here's how it works:
    When the App loads, I am transmitting a Connect command to each of 15 com ports (one-at-a-time) using VISA. If I receive the proper response from the unit on that port, I add the port to an array and continue on to the next system. Once I've found all systems on the hub, I wire my array of active Visa references to a for loop in which I open up to 15 reentrant VIs which will run in the background in parallel. Each of these reentrant VIs (all are idential with the exception of the Visa Resource they use) running in the background are sending commands to the the respective instrument and receiving a response. One Function in particular "Get Unit Status" is important and the response determines whether or not the instrument is functioning correctly. Here's the problem -- In my Main Loop, I am continuously acquiring indicator values from each of the reentrant VIs that are running in the background. After a period of time (not consistent) I will lose communication with a port (the symptom is no response from the unit). I've looked closely at the COMM engine I created and found that the Visa Write function is completing without error, then when I perform a Visa Read I immediately get the "Timeout occured before operation completed" error (please keep in mind that this occurs after 100-5000 successful attempts at writing/reading). Eventually another port will drop out, followed by another. This seems to stop occurring and the remaining systems run to completion without a problem.
    Some background on what how I'm setting up my Visa Sessions...
    When I originally scan for systems (before I load and run the Reentrant VIs)
    - Init Visa Port
    - 19200, 8, N, 1
    - Use Termination = True
    - Timeout = 400mS (I've tried larger values already) 400mS should be plenty
    - Termination Char=13 (/r)
    - Open Visa Session
    - Visa Write "CONN18/r" (the command required to connect to my instrument)
    - Visa Read with 1 for requrested byte count to read 1 byte at-a-time, concatenating the results until /r is received (or 1000mS timeout occurs -- this is not a VISA timeout) I've also tried 16 for requested byte count and just waiting for Visa to timeout -- both methods work.
    Once all 16 ports are scanned I Close ALL of the ports using the Visa Close Function.
    It is important to know at this time that I "AM" using proper wiring flow to ensure open occurs before write, write occurs before read, etc.
    I'm assuming at this time that all of my Visa sessions are closed.
    On to the Reentrant VIs:
    Inside each reentrant VI I first Initialize all of my variables and Init/Open a 'New'? Visa session using the same parameters mentioned above.
    Then I enter the "Run" case structure where all of the communication begins.
    I am using the same Communications Engine to operate the instrument as before (the only difference being that all of the VIs in the comm engine are now reentrant and operate at higher priorities) I have actually saved two different versions of the engine (one for the reentrant calls and one for when I first scan for systems from my Main GUI).
    When I init the reentrant VI, I am placing the Duplicate Visa Resource output of my Visa Open Function on a shift register. When I enter the Run case, it takes the Resource from the register on the left, wires through any Comm Engine Vis then back out to the shift register on the right and keeps going for a 12-hour period or until "Get Unit Status" has returned 60 naughty results.
    On my Main GUI I am continuously (every 500mS) I am Getting certain Indicator Values from each reentrant VI AND I am also setting some control Values on each reentrant VI. There is no VISA interaction between each Reentrant VI, and the Main GUI.
    As I said earlier, up to 15 systems will run for a time, then one will stop responding, followed by another, and another until a few remaining systems will run to completion.
    Any advice as to why I'm encountering the timeouts with the VISA read fucntion as I have metioned would be appreciated. I managed to find one suggestion which uses the Bytes at Port function to ensure there is data at the port before doing a Read otherwise, skip the read and retry the whole operation -- I haven't tried this yet.
    Sorry for the wordiness of my question. If anyone would like some screen shots of portions of my code (I can't submit the actual code because some of it is confidential) I'd be happy to post them.
    Doug.

    Hi Doug,
    The first thing I would recommend is the solution you have already found, to check and see if there is data at the port before attempting a read. I would be interested to see if this will solve the problem. Does there seem to be any trend to which ports have this timeout error? How many ports does it cut down to before operation seems to continue as expected? Does this number vary, or is it always the same number of ports? I think the best thing to do will be to identify constant attributes of how the error is occurring so that we can narrow it down and see what is going on.
    John M

  • I have itunes set up to sync with my Ipod Touch and my Ipad.  As of today, it keeps looking for an iPhone to sync with and give me an error message.  I don't have an iPhone and don't know how to stop it from popping open with this error message.

    I have Itunes set up to sync with my Ipod touch and Ipad.  As of today, iTunes has started searching to sync with an iPhone, which I don't have and pops open with an error message stating it cannot locate the iPhone to sync.  I have looked in devices and only the iPad and iPod Touch are listed.  Any ideas on how to stop iTunes from searching for any iPhone it is never going to find? It is annoying to have it popping up all the time with the error message.  Thanks in advance for any suggestions.

    You should really read the manual.
    "How do you restore from backup? "
    Restore.  When given the choice, choose to use backup.
    "And how can I check to see if the pics and videos are on my computer somewhere first??"
    They would only be where you put them.  What program did you use to import them?  Pics/vids taken with ipod are not part of the sync process at all.  You should be importing them just as you would with any digital camera.
    If you did not import them, then they are not on your computer.

  • My touch died and I got a replacement from Apple.  I restored from backup, and it installed all my apps.  My iBank and Docs to Go will not set up to sync.  In both cases, when I enter the numbers it says they are incorrect.  They aren't.

    My iPod Touch died, and I received a replacement from Apple.  I restored it from my last backup, using iTunes.  This reinstalled my apps as well.  These included iBank Mobile and Documents to Go.  I have the desktop versions on my MacBook.  When I attempted to sync I was directed to install the device.  OK.  In both cases, I get to the point where I am instructed in type in the numbers from the iPod screen into the desktop to set up the sync.  When I do, i get an error code in Docs to Go, and "the number is incorrect" from iBank.  I tried deleting and reinstalling the mobile app for iBank with the same results.  Help please.

    When you restore one device from a backup of another device, keychain items like passwords are not restored unless you used an encrypted backup.
    Try logging into the two apps. Next I would try deleting the apps and redownload resetup the apps.

  • I no longer have access to the computer to which my iPod touch is synced.  Can I de-sync it without accessing said computer and set up a sync with my new computer without losing all my purchases?

    I no longer have access to the computer to which my iPod touch is synced.  Can I de-sync it without accessing said computer and set up a sync with my new computer without losing all my purchases?

    You can transfer Itunes purchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    You can transfer other stuff with the info provided in this previous discussion:
    Best iPod to PC
    You can also redownload apps at no additional cost:
    How to redownload purchased apps from the App Store
    Once you get the stuff in the iTunes library of you new computer let iTunes erase your iPod and replace its contents with what is now in your iTunes library.

  • I set up Firefox sync from my old computer. This has had its hard drive replaced and been sold. I now want to retrieve the information and got my bookmarks on my new computer. I can't see any way to do this!

    I set up Firefox sync from my old computer. This has had its hard drive replaced and been sold. I now want to retrieve the information and get my bookmarks on my new computer. I can't see any way to do this!
    Help please

    To build on the second option provided by The Edmeister make sure that you have your Sync Key, if this is not the case Firefox Sync will not help you (data is encrypted with that Key).
    Finally, if the last sync happened long time ago, it may be the case that your data is not on the servers anymore. Firefox Syn wasn't designed as a back up service.

  • Unknown error when trying to set up Firefox Sync

    I try to set up Firefox Sync but as I fill in my e-mail address on the first line i first get the message "invalide e-mail account" (or similar) but then when I continue to complete it with [email protected] it just says "unknown error". I have tried several different e-mail addresses on two different computers but the same annoying unknown error message keeps coming up.
    What am I supposed to do about that?

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • TS3198 After doing the backup and restore how do you know if the phone is unlocked if you do not get the message: "Unlock Complete. Congratulations, your iPhone has been unlocked. To set up and sync this iPhone, click Continue."

    After doing the backup and restore how do you know if the iphone is unlocked if you do not get the message: "Unlock Complete. Congratulations, your iPhone has been unlocked. To set up and sync this iPhone, click Continue."

    If you don't get the message, your phone is NOT unlocked.

  • I set up firefox sync on two desktops; setting it up on a third fails with "unknown error" after I input the key. All other add-ons are disabled. What should I do?

    I followed the same procedure in adding a device for the second and for the third. The second one worked, but not the third.
    As far as I know, all software is up to date.

    ok.. I tried this three times and kept getting that access denied thing when I clicked post my questions. So now maybe I wont have to typ this a fifth time....
    I have a MAC computer with Sync. Was set up under sync Beta. I have an Android phone synced to it that was synced using the pair this device function. It works perfectly. I just got a new Android Tablet and am trying to add it to my sync and it does not seem to have the pair my device function. It insists I log into my sync account. So I try it and it tells me invalid userid/password. I verify and it is the exact email address userid that shows as being my sync account on the MAC. I verify the password on the MAC and it tests out fine. Try the tablet again and invalid.. So I try to reset my password on the tablet and am told my email address/account name does not exist. I just verified it AND Synced my MAC using it!! I have my recovery Key but there is no place to input it into the tablet. There is no place on tablet to enter the link device codes. How can my account be valid and in use on two devices but invalid and nonexistant on the new one? And How do I get the New one to sync with other two?

  • Is there any way to set direction of syncing? I mean from desktop firefox to mozzila's servers or vice versa

    Hi
    Imagine I have a desktop Firefox and an Android Firefox. I create an account and sync desktop Firefox with Android Firefox. Now I disconnect sync in my Desktop.
    For one week sync is disconnected and I changed my bookmarks a lot. After a week I want to sync them again. But if I sync desktop I will lose my bookmarks! actually they return to last week.
    What can I do? I must create another account? Is this way reasonable?
    I use Firefox 32.0.3 and there is no pair device and other thing that were in previous versions.
    Thanks

    HI i.akbari,
    Thank you for using the new Firefox Sync. The new feature of this sync has a few changes.
    Yes, there is only one status for syncing between devices. All of the content is merged and each setting will only sync what you select. It is also not meant to be a back up service, just to sync data between devices.
    Please may a local back up of your profile. [[Back up and restore information in Firefox profiles]]

  • VISA read in exe file is not working

    Hi all,
    I am having problems with VISA read in an exe file created.
    I am trying to write to and read from a programmable power supply via RS232. The VI writes a command to the instrument to set the voltage level. It then writes another command, requesting the resulting current value. This value is then read by VISA read
    The VI is working fine on the development PC, which has LabVIEW installed. The exe file is also working fine on this PC. However, when I try to run the exe file on another PC (I've tried several) everything seem to work except for the VISA read functions. The voltage level command is sent, as well as the On and OFF commands, but the current is not read back.
    I guess there must be something I have missed in the installation. I am working in LabVIEW 8.5. I have created an installer and included
    Runtime Engine 8.5.1
    VISA runtime 4.5
    Is there something else I should do? I am really running out of ideas here...
    I hope someone has a clue about this!
    Clara 

    Clara-
    1. Have you verified that the COM port settings in Windows (check under device manager) are matching how you initialize them (Baud, bits, parity, and flow control) and that these match the power supply's settings?
    2. Also, are you trapping an error message after the attempted Read command (this will make it a lot easier to diagnose).
    3. Do you programmatically close the VISA session at the end of the program?
    4. You can always post the code to see if the forum members will catch the porblem.
    ~js
    2006 Ultimate LabVIEW G-eek.

  • What setting will make sync make my iPhone and MacBook Pro contact cards alike?

    What setting will make sync make my iPhone and MacBook Pro contact cards alike?  I've been having to key in changes to both devices because sync doesn't sync. 

    If you really are running Mac OS X 10.7.5 and iOS 6.1.3, you should be able to sync through iTunes, but in current releases you need to use a central contact service like iCloud.
    Did you have it working and then not working, or have you never had it working?
    Are you trying to use iTunes, iCloud, or something else?

Maybe you are looking for

  • I cannot click on flash objects such as youtube, bbc iplayer and 4od, plus the mouse will not autohide.

    When visiting sites that play videos using flash, I am able to start the videos playing, but then am unable to interact with options such as fullscreen and pause. I am not encountering this problem in safari/chrome. When starting videos to play in fu

  • How to change the QueryRowSet in early access 2?

    hi everybody, I do know how to change the query but I want to add a condition on a variable got from a text field, and use by button action. I don't know where to initialize this variable exactly? provided that the query is created in the session bea

  • Output as WebDynPro

    Hello! [SAP Note 950492|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=950492] says that Compiler Options: If the option, "Deploy with PAR" is choosen, then one must specify the values for the Model properties,

  • JDBC + Mandrake Linux + Mysql + netbeans

    I'm trying to conecto to a mysql server using the following code of netbeans. It compiles, but I got a java.lang.NoClassDefFoundError on execution time. Does anyone have any clue of how to solve it? (I got the netbeans+sdk package, is it complete? Ma

  • Event ID 10016 - DCOM Error | Source - Microsoft-Windows-DistributedCOM | Level: Error

    Hi there... I am getting the above mentioned error with the Description: dows-DistributedCOM cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or rep