Prevention and management of concurrent access to the same port VISA

Hello

I currently have a VI with three parallel loop: a loop for the UI with a structure of the event; a loop for the collection of data; and a loop for data tracing.

The loop of data written to the serial port to put the camera to send a probe reading update. The device sends the sensor updated playback and loop bed devices response data collection.

I have a situation where the user interface loop must also 1. write to the same device (via the same port), 2. read the answer, then 3. write using the response data and user input. My problem is that the user interface loop is reading the response of devices in the loop of data collection rather than the response to the user interface loop.

So the problem looks like:

loop data collection: how hot is?

device: 30 degrees Celsius

loop data collection: how hot is?

device: 30 degrees Celsius

loop data collection: how hot is?

loop UI: what color is the sky?

device: 30 degrees Celsius

user interface loop: Ok! the color of the sky is 30 degrees Celsius.

device: Blue

I'm tempted to look for a solution where the user interface loop interrupts somehow the other two loops while it is writing and reading on VISA port, but I doubt that it is the appropriate solution. My code is big enough, but I can try to view if necessary. I remember seeing messages from people with similar problems, but it seems impossible to find today. Thanks in advance for the help!

Advertisement

Famous engine Action Nugget of Ben is always a good read. http://forums.NI.com/T5/LabVIEW/Community-Nugget-4-08-2007-action-engines/m-p/503801

Now that you've been through that we will develop a specific EI style that I call a Module on resources.  A RM exposes only the functions required by a given application to using an external resource while protecting sections of code of "criticism".  In your example even if the VISA operations block several appellants to write simultaineously, you did not protect the operation "Request" critical so readings were responses to the caller of evil.  The 'query' is essential and must block access to other operations until the query is complete.

Look at this "Very basic" RM implementation that does not protect the critical query operation:

Tags: NI Software

Similar Questions

  • Best way to extend the network of Apple using Cat5 and wireless, but with access to the same network

    Appreciate any help here.

    I need to extend my network coverage for the part out of my house where the current signal does not cover.

    I have a Time capsule in the office connected to my Modem and then created a wireless (XXXX) network that connects to the extreme in my front room... .well when I'm in my room before the signal does not increase when I go near the extreme... and maybe it's that I'm still picking up XXX to my Time Capsule wireless network.

    I'm just a Cat5 cable around the House and I was wondering if I can connect the TC to the extreme via CAT5 and therefore the extreme would be able to stream my network wireless XXXX?

    If I then want to connect to another airport (explicit / extreme or even TC) in the part of my house which currently gets no signal... then do cela via Cat5 to the EXTREME at the 3rd device... or must it come directly from the TC?   (and again... the 3rd device will also be able to broadcast the network XXXX?

    Ideally, I want the network to be possible STB and flavours around the House, and I think that the connections between Ethernet devices would accomplish that... but I also need the i-devices, streaming boxes etc. around my house to then access the XXXX wifi network I have printers, VPN, etc all together towards the top on.

    Oh... and 1 other point, I have a cisco 8port 10/100POE switch managed... which I would also like to include in the network to connect to the servers and devices IP etc... is - it possible... and that has to be directly connected to the time Capsule and could I still use it to take place between the TC and the 3rd Apple Airport device... as above?

    Hope that makes sense... but please let me know if you need more details.

    I'm just a Cat5 cable around the House and I was wondering if I can connect the TC to the extreme via CAT5

    Yes. Hate to be picky here, but I hope you'll use CAT5, CAT5e cabling being quite a bit obsolete.

    wireless network and if so the extreme would be able to stream my XXXX?

    Yes

    If I then want to connect to another airport (explicit / extreme or even TC) in the part of my house which gets currently no signal... then do cela via Cat5 to the EXTREME at the 3rd device

    Yes, but it would be preferable to cables to connect the 3rd to the main TC, if that's an option.

    or does have to come directly from the TC?

    No, but it would be better if she could, if this is an option.

    and once again... the 3rd device will also be able to broadcast the network XXXX?

    Yes

    and I think that the connections between Ethernet devices would achieve this

    That is right. Ethernet is always the best choice in terms of performance.

    but I also need the i-devices, streaming boxes etc. around my house to then access the XXXX same wifi network I printer, VPN, etc all together towards the top on.

    That should work well.  However, you may not aware that most of the PC and iOS devices not 'automatically' between different wireless access points as they move from one place to the other.  For example, you have your iPhone near the time Capsule, so he'll be looking for a strong signal from the time Capsule. If you move the close AirPort Extreme iPhone or any other device 3rd... the iPhone usually will stay connected to wireless Time Capsule... even if a stronger signal may be available in another wireless access point. Nature of the beast with IOS devices.

    Thus, with most of the PC and iOS devices, you will have to get used to temporarily turn off the WiFi on the iOS device when you move from one place to the other, then re - turn on WiFi once the device is close to the other wireless access point. The iOS device then generally will pick up the strongest signal from the nearest access point.

    Portable Mac computers will generally do a good job of automatically 'switching' to pick up the best signal of different access points in you walking the laptop around the House.

    I have a cisco 8port 10/100POE switch managed... which I would also like to include in the network to connect to the servers and devices IP etc... It is possible.

    Yes, but the Time Capsule and AirPort Extreme Gigabit Ethernet ports or 10/100/1000, then the switch is going to limit the maximum speed on the network at 100 Mbps when the devices are capable of much higher speed.  If you plan to invest in the installation of Ethernet wiring around the House, then you also want to invent a new Gigatibit Ethernet 10/100/1000 switch, because it will allow up to 10 times faster compared to a 10/100 switch network connections.

    can do this via Cat5 to the EXTREME at the 3rd device... or need to come directly from the TC?

    Yes, but it would be best to connect the switch to the time Capsule if it is an option.

    and could I still use it to take place between the TC and the 3rd Apple Airport device... as above?

    Yes

  • How can I download the drivers for a processor that crashed and does not have access to the internet

    How can I download the drivers for a processor that crashed and does not have access to the internet.  The drivers seem to be the problem.

    How can I download the drivers for a processor that crashed and does not have access to the internet.  The drivers seem to be the problem.

    First of all, please note that you mean a computer, not a cpu.  "CPU" means "Central processing unit". In modern personal computers, the CPU is a relatively small chip, an integrated circuit. It is located on the motherboard inside the computer case. It is not the case itself, nor is it the total computer, which includes the case and what it contains.

    Download drivers on another computer and put them on CD or thumb. Bring them to the computer in question, and then copy them there.

  • Termination of the client PIX VPN and Internet access from the same interface

    Hello

    VPN remote users connect to PIX (7.2) outside interface, but need to have these clients to access the Internet through the PIX outside interface as well. Need this because PIX IPs is registered and allowed access to some electronic libraries. One way would be to set up a proxy within the network and vpn users have access to the Internet through the proxy, but can it be done without proxy?

    Yes, public internet on a stick

    http://www.Cisco.com/en/us/products/HW/vpndevc/ps2030/products_configuration_example09186a00805734ae.shtml

  • Hello. I bought creative suite and it downloaded on my computer, however, a few days my computer crashed and I got of him having wiped, and so I lost access to the creative suite. I was wondering if there is a way I can re - download the NICU programs

    Hello. I bought creative suite and it downloaded on my computer, however, a few days my computer crashed and I got of him having wiped, and so I lost access to the creative suite. I was wondering if there is a way I can re - download programs using my serial number?

    Other downloads

  • How to play stereo mix music and sing in my microphone at the same time?

    Hi guys, need help with Realtek HD audio driver

    I want to play stereo mix music and sing in my microphone at the same time... not for registration but in chat room, say.

    I'm using XP... Toshiba Satellite S4747 laptop
    In the Realtek software "Realtek HD audio input" microphone and two stereo mix... but I can only select one at a time...

    All solutions please thxxxx

    On a different note... a friend of mine using a non-Toshiba laptop with win XP has an older version of the Realtek audio driver and select the mic and stereo mix at the same time... I downloaded this version in my laptop, but still, I can choose only one at a time...

    Check that the audio settings of Windows and don t forget in the Realtek HD audio Manager. You can find it in the control panel.

    I think that your microphone is on Mute check so this.

  • RDP Web Interface and connection broker proxies on the same port on 8 MR1

    Hello

    By reading the whats new document for version 8 MR1, I saw this:

    vWorkspace Secure Gateway role Consolidation

    All roles in Secure Gateway (RDP encryption, encryption of Internet access and Connection Broker encryption) can now be combined on the same server using the same IP address, port number and certificate server.

    .. which made me think that I might have RDP, web and broker any proxy if a gateway using port 443. This would be useful.

    However, in the secure gateway proxy configuration tool it has always down:

    NOTE: Either the Web Interface can be configured to the same address and the port that RDP proxy proxy or Broker for proxy connections.

    Am I misunderstand the information contained in the new document what, or if the text on the gateway configuration tool has not been updated? I share all of the 3 proxies on the same port?

    Scott.

    Scott, my apologies for the confusion. The text in the dialog box should be removed when the new feature has been added. It was an oversight that has not taken until after the product has been released. We intend to publish a fix that removes the misleading text when we release our next server important side fix.

    Marc

  • I have windows server 2008 R2 and windows 7 32 bit on the same network. But I couldn't see the server on the network.

    I have a windows server 2008 r2 server and windows 7 32 bit on the same network.

    I couldn't see the server on the network and

    also I could not access the workstation to the server.

    not more than one device must perform NAT

    Hi Bruce,.

    Given that you are working on Windows server 2008 R2, please post your question here:

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

  • I currently have a creative cloud with an e-mail account, however I have a behance with an e-mail account that I have had for many years (even Adobe and Behance made before part of the same group). Can I combine these two accounts into one?

    I currently have a creative cloud with an e-mail account, however I have a behance with an e-mail account that I have had for many years (even Adobe and Behance made before part of the same group). Can I combine these two accounts into one? I want to use the account that I pay cloud Creative if I can use the new portfolio feature.

    Thank you.

    This is an open forum, not Adobe support... below to connect with Adobe personnel to help

    While the forums are open 24/7 you can't contact Adobe support at any time

    Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • Impossible to have exceptions to access to the usb port?

    When you try to use VMWare group policy to disable access to the USB port, we are unable to add exceptions to certain devices. We have added the VID/PID in the peripheral "include VID/PID" parameter and the device will be mapped is no longer up to the user vm session. If we close this group policy setting off, the user is then able to use the usb device?

    The include parameter is case-sensitive and the value must be entered in hexadecimal format, I know who gets people.

    https://www.VMware.com/files/PDF/Techpaper/VMware-horizon-view-USB-device-redirection.PDF

  • Transaction and transaction AppModule Taskflow both are the same or not?

    Transaction and transaction AppModule Taskflow both are the same or not? or what are the differences between these two operations.

    Workflow transaction is different from the transaction data base (I mean the transaction returned by am.getDBTransaction ()). Each workflow is associated with a data control framework. A data control framework is the container that is associated with a workflow that contains several instances of data control. The ADF Model layer exposes the DataControlFrame interface to manage a transaction involving data controls in the framework. DataControlFrame interface exposes methods such as:

    • beginTransaction()
    • Commit()
    • Rollback()
    • createSavepoint () - Note that it is the backup point maintained by the controller of Oracle ADF and it is similar to the point of backup of database
    • isTransactionDirty()

    Task Transaction flow

    There are four transaction options that a stubborn workflow can use (notice that unbounded flow task does not support transactions):

    1. No Transaction controller: delimited task called flow does not participate in the management of transactions any controller ADF.
    2. Always Begin new Transaction: A new transaction begins when the stubborn workflow is entered, regardless of whether a transaction is in progress. The new transaction ends when the stubborn workflow stops.
    3. Always Use Existing Transaction: When it is called, the stubborn workflow participate in an existing transaction already underway.
    4. Use the existing if Possible Transaction: when it is called, the stubborn workflow is involved either in an existing transaction if there is, or starts a new transaction when the entrance to the stubborn workflow, if one does not exist.
  • How can I upgrade my Photoshop CS5 to my new computer laptop of my older imac. I want to have access to the same tools, preferences, brushes, etc. on both computers

    How can I upgrade my Photoshop CS5 to my new computer laptop of my older imac. I want to have access to the same tools, preferences, brushes, etc. on both computers

    Hello

    You can install Photoshop CS5 on your new machine from this link: Download Adobe Creative Suite 5 products

    See this article for the location of the predefined settings that you can transfer manually on the new machine: functions of file Photoshop CS6 preferences, names and places

    In addition, you can check this link: Migrate presets in Photoshop CC

    Kind regards

    Claes

  • How to take a column of duplicate names and fill a different column with the same names, excluding duplicates?

    How to take a column of duplicate names and fill a different column with the same names, excluding duplicates?

    I find easier to use this copy separate Automator Service (download Dropbox).

    To install in your numbers > Services, double-click menu just the package downloaded .workflow and if necessary give permissions in system preferences > security & privacy.

    To use, just:

    1. Select the cells in the column with duplicate names.
    2. Choose separate copy in numbers > Services menu.
    3. Click once in the upper cell where you want the deduplicated values appear.
    4. Command-v to paste.

    SG

  • j105el envy: envy of hp can not right and made a left click at the same time

    my hp touchpad cant hp envy envy cannot not right and made a left click at the same time. I don't know if it's a driver. because of this I can not play games like GTA cause I need do a right click to aim and left click to shoot. is there a solution to this

    @gwatanaj ,

    Hello and thanks for the display on the HP support forums.  Here is a link that may be useful.

    HP laptops - use and troubleshooting of the TouchPad and ClickPad (Windows 8)

    What you are trying to do may not work with your touchpad.  Normally when it is best to use a mouse.  The hardware is built to be different and you might find it easier to work with.

    If you need help please post back.  First of all, check out this link.

    Tips for the "very best question.

    So, please indicate your model full and product number.

    I hope hear from you soon.

    Thanks again and have a great day.

  • How is it that a computer which works very well with a direct Ethernet connection won't work with a switch, however any other computer using the same port, cable, ect, and so on, can?

    Switch issues. Help, please.

    How is it that a computer which works very well with a direct Ethernet connection won't work with a switch, however any other computer using the same port, cable, ect, and so on, can? We already checked the firewall as a question, that it was not, and now, we are puzzled.

    Well, I know that the issue is long-term... believe me, it's a long, but as they say, the devil is in the details. Anywho, the question is, my grandfather has a HP laptop, which for two years has been able to run through a Linksys switch to his router and connect its printers to his laptop. About two months ago it suddenly doesn't work like that. Now, it works fine if it plugs directly into the router/Ethernet. My uncle suggested that the switch was bad, but after testing the same port, cable and all, the switch worked well for him. ' GRAMPS really needs this answered, but someone else, it is called can not understand and now I, in turn, ask you all for what you can offer. Here are the ideas that we have already discredited.

    -Switch bad: as above, is that this particular laptop, even under identical conditions, the works of my uncle very well.
    -Bad NIC: debunked through the fact we connected to the computer directly to the router and it worked fine.
    -Bad configuration of the firewall: we have disabled the firewall (please do not notice, he wasn't the smartest idea, we already know) and even if she recorded the switch exists, the internet is always triggered when you are connected with the switch.

    Thanks in advance for any assistance that you can provide and Merry Christmas to you all.

    It would be useful to consult the results of the ipconfig/all command both when it is connected to the switch and when it is connected directly to the router.  In addition, what is the model of the switch?

    To save the manual copy and the new hits of the ipconfig/all command output-

    First connect through switch.
    Open a command prompt window (start > run > cmd > OK)
    Type the following lines in the black command prompt window and press ENTER after each line

    echo "Connected via the button" > "% UserProfile%\Desktop\ipinfo.txt".
    ipconfig/all > "% UserProfile%\Desktop\ipinfo.txt".

    Now connect directly to the router, type the following lines in the command prompt window and press ENTER after each line

    echo "Connected to the router" > "% UserProfile%\Desktop\ipinfo.txt".
    ipconfig/all > "% UserProfile%\Desktop\ipinfo.txt".
    Notepad '% UserProfile%\Desktop\ipinfo.txt '.
    output

    Copy the contents of the Notepad window in your response (if you use the laptop when it is connected directly to the router) or close the Notepad window, and then copy ipinfo.txt of the laptop to the Gramps in a USB FlashDrive you can connect to any computer allows you to answer.

    You can delete ipinfo.txt on the desktop when you are finished.

Maybe you are looking for

  • 8610 all-in-one printer: I can't download the firmware update to remove the dynamic security

    "For not original hp ink users an update of the firmware option to remove the dynamic security is now available for select Officejet, Officejet Pro printers Officejet ProX." I have bee patiently for the "fix".   Following the posted signs: http://sup

  • Satellite A350-how to disable the speaker internal while external speaker jack

    Hi all Anyone knows how I can cut the House speaker while connecting to the external speaker?I want to use my laptop in libuary, but when I plug in the headphones, the speaker still his, when I put in muted, the speaker and the headphones the two sil

  • SyncManager Enqueue in Labview

    Not sure if this should go in the jury TestStand and Labview, so I'll try TestStand first... I'll build a TestStand testbed that uses the model of parallel processes. I want to replace the standard dialog use with a custom dialog generated using Labv

  • Keyboard/mouse Lenovo z510 problems

    A few days ago I bought a Lenovo idea refurbished z510 and the keyboard and mouse are defective wildly. When I'm typing anything, after a variable amount of words the cursor either high point / return back/moving/crush, which led to delete me sentenc

  • EA6500 Remote Desktop connection

    Very simple requirement. New EA6500 (Win7Pro) server on local network (Win8Pro) PC on LAN You use Remote Desktop connection to connect PC to the server. The old LinkSys WRT54G worked well. Also tried searching on the web and speaking to support a few