Can't get timeout to work as expected for USB VISA
Hi,
I'm using VISA in LabVIEW (7.1) to talk to a custom USB device. My program transmits a request and waits for the response (See attached block diagram). The response may take a long time and my program then sits in the Read vi and becomes unresponsive, which is not ideal. I would prefer to set a short timeout and call the Read vi repeatedly, but my problem is that whatever I set the timeout to,eg, 500ms the VISA read vi waits for about 10 seconds if no response is received.
Where am I going wrong?
Thanks,
Mike
Attachments:
VISA USB Timeout Test.JPG 48 KB
Is there a particular reason you don't want to wait for a response? I'm looking at the picture and it would seem that waiting for a flash write to complete would be extremely important before doing anything else. (Like stopping the VI for instance). I'd make a VI with a front panel that says "WAITING...", call it right after the command to flash as a dialog, make the cursor busy, then close the VI nd "un-busy" the cursor when VISA returns a response (with appropriate error handling on timeout, of course).
Bill
Bill
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Similar Messages
-
I have Norton's security suite under the old version the Idenity protection worked. I kept all my passwords under this which used a master pasword I did not save my passwords any were else and now can not get it to work supplying passwords for my logon site.
Symantec need to correct a mistake they made with their add-ons. They originally updated their add-ons after quite a delay to work with Firefox 4.0 as shown here - http://community.norton.com/t5/Norton-Internet-Security-Norton/Firefox-4-compatibility-hotfix-is-now-available/td-p/428894
They made an error with the update in only listing it as compatible with Firefox 4.0, so they will not install on Firefox 4.0.1 and subsequent Firefox security updates. Symantec have indicated they will be releasing an update to correct their error soon, for details see http://community.norton.com/t5/Norton-Internet-Security-Norton/Norton-Toolbar-not-compatible-with-FF-4-0-1/td-p/442788/page/12 -
Can't get ch2 to work with tktds1k2k for Tek TDS 1002.
Why won't the tktds1k2k "Getting Started vi" display ch2? I modified it so that the Vertical.vi gets the same channel source as the "Read wvfrm to array vi". I am using a tds1002. When I set the source to ch2, the Read waveform to array vi times out. It works fine with source set to ch 1. I am using LabView 6.1 and GPIB-USB-B.
Hey Ed,
Looking at the code for the Getting Started vi it doesn't look like you should change any code for the example to work for channel 2. All you have to do is change the control on the front panel when you open the example from Channel 1 to Channel 2. The Source should look like the screen shot.
If the application doesn't work after making this change then I suggest you redownload the instrument driver incase some of the source files were modified or damaged.
http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/20152aede3a9e06786256bfe005ff2df?OpenDocument
I hope this helps out.
JoshuaP
National Instruments
Attachments:
panel.bmp 1040 KB -
I use incredimail for my email and can not get it to work with foxfire for sending links etc
i will try to email a link and at first it went to outlook but i use incredimail so i need to know how to make it launch incredimail
== This happened ==
Not sure how often
== everytime i try to send a linkSee this KB article.
[http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox] -
Hello
I added content to a document in Pages on my Mac last night, which was saved to icloud and this morning the additions were gone. Can I get my precious work back? ThanksJust thought I'd add my solution, I decided to go with WebDAV and I think it actually works better than the iTunes way, the steps are pretty much the same but avoiding the iTunes interface just makes things easier and faster.
I followed this guide but it does have a small mistake in the httpd-dav.conf file, on line 2, where it's WebServer/WebDAV">, it should be <Directory "/Library/WebServer/WebDAV">.
The tricky part is setting permissions which if wrong will give you errors when connecting with the iPad, I opted to set all to Read&Write since my home network has a hardware firewall. Another convenience was to add an alias to the webdav share on the Desktop.
I'm still expecting the call from Apple but even if they fix the iTunes I'm sticking with WebDAV, atleast until I see what's new with iOS5 and iCloud this fall which should bring true sync for documents (I'm hoping that they will offer encryption with my own keys, if not, then I'll probably keep using WebDAV). -
Cdemu - can't get it to work (can't connect do dbus, no cdemu module)
Hi all! As the topic subject says, I can't get cdemu to work.
I'm trying to use it to mount some .mdf images (wanna play Diablo 2 again, and I really don't wanna use the CDs for this).
So here goes. First I tried mounting the .mdf image with cdemu, like this...
cdemu load 0 01.Install.mdf
I get an error message:
ERROR: Failed to connect to CDEmu daemon: org.freedesktop.DBus.Error.ServiceUnknown: The name net.sf.cdemu.CDEMUD_Daemon was not provided by any .service files
ERROR: Failed to connect to daemon (bus: 'session')!
So I found somewhere that I should compile the cdemu-daemon and cdemu-client...
yaourt -Sb --noconfirm cdemu-daemon cdemu-client
now, cdemu-daemon compiles fine, but cdemu-client doesn't seem to compile. what I get as an error is this:
Byte-compiling python modules...
__init__.pycdemu.py File "/usr/lib/python3.1/site-packages/cdemu/cdemu.py", line 128
except dbus.DBusException, e:
^
SyntaxError: invalid syntax
The full output is in the pastebin.
So anyway, cdemu client installs (althought the success of this is obviously questionable at best), and when I try mounting an image, I (probably as expected) get this:
Traceback (most recent call last):
File "/usr/bin/cdemu", line 23, in <module>
import cdemu, cdemu.cdemu
ImportError: No module named cdemu
A little more digging revealed that cdemu-client is still compiled against python2 rather than python3, so that would probably be the reason why my compile fails.
I would be very grateful if someone could tell me how to get this thing to work. And if I can help compiling this package properly, please do tell me how.
Thanks in advance!Primoz wrote:First: Try to compile it to python2.
How exactly do I do that?
Primoz wrote:Second: Did you add cdemud to your Deamons array; or did sudo /etc/rc.d/cdemud start, before trying to load ISO file with cdemu?
Third: Do you have vhba-module installed and is it added to modules array?
Yes and yes.
defears wrote:
Try this from terminal. Took a long time for me to get this working too.
cdemu load 0 /path/to/file.cue -b system
Thanks! This worked. I can play Diablo 2 now, yaaaay -
Can't get X to work properly (ATI AIW 9800)
Hello,
I have a few problems. My first problem is this. The dpi was messed up when i first install, so i thought no big deal, I'll just go and configure the defaultserverargs setting in the startx script to "-dpi 75". This does not seem to work. Secondly,I can't get gnome to work as my default window manager. I put this line in my .xinitrc file in my home directory:
exec gnome-session
I also tried this:
exec /opt/gnome/bin/gnome-session
My last problem is that when i try to install the ati fglrx drivers with the stock kernel arch package but whenever the fglrx module is called, it says that the module doesn't exist. One thing i might mension which might be of importance is that i compiled a custom kernel during install without SMP and preemtivity so i could use my rt2500 wireless card. Thanks in advance for the help
cheers,
-Lukassinisterguy: You're going to need to build your own kernel module, afaik you can't just symlink a module built for another kernel and expect it to work.
As root, run
abs
Once that's done (it'll check out a bunch of stuff from cvs), change to your normal user and either make a directory for the new package, or cd to some temp directory, then:
cp /var/abs/extra/modules/ati-drivers-arch/* .
vim PKGBUILD
then make the following changes:
pkgname=ati-drivers-arch
to
pkgname=ati-drivers-custom
(or whatever you want to call the package)
depends=('ati-drivers' 'kernel26')
to
depends=('ati-drivers')
source=(https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/fglrx_6_8_0-$pkgver-1.i386.rpm fireglcontrol.desktop)
to
source=(http://www2.ati.com/drivers/linux/fglrx_6_8_0-$pkgver-1.i386.rpm fireglcontrol.desktop)
(for some reason I can never get the source from the https address through makepkg.)
and
_kernel=2.6.15-ARCH
to
_kernel=`uname -r`
Save and quit, then run
makepkg
- this'll make you a brand new kernel module package that you can install with
pacman -A ati-drivers-custom-8.22.5-2.pkg.tar.gz
You'll need to update this package every update to the ati-drivers in the same way you originally built it.
If you need more information, ABS is a good place to look, as well as man makepkg.
</abs tutorial> -
Has anyone used reMIDI as a plug-in for Garageband ('08)? The program allows MIDI instruments to be strummed or arpegiated. I have a trial version, but can't get it to work in Garageband. Wonder how to set it up.
Thanks, Doctor MarkPort Forwarding.....or Port Mapping....as Apple calls it is a difficult and complex configuration method for most users. Because there are so many variables involved in this type of setup, it is not possible to provide a step by step guide that will work for everyone with all devices.
It is possible that a setup guide exists for the the WD drive and AirPort Extreme, but you will have to go looking for it on the Internet. Even if you find one, it may not be tailored to your specific situation or needs.
Sometimes, you can do everything right....at least according to someone's article or "how to" guide, and things still will not work correctly.
In situations like this, when you really don't know what to do, you need to enlist the aid of an IT pro, who will know what to do based on your particular products and unique circumstances. Sometimes....they won't be able to get things working either due to particular circumstances.
But, before you do this, I would strongly recommend that you use a Static IP address for your Internet connection with your ISP. If you do not have this now, contact them to ask them if they offer this type of connection. Expect to pay more for this type of service, of course. -
All,
I am trying to configure simple load balancing to 4 servers on a ACE (ver 3.0.0A13B), but I can't get it to work.
See config below. I have L3 vlan interfaces on my Cat6513 for vlan 22, 29 and 121.
Can anyone spot the issue?
Thanks, Pieter-Jon
probe tcp TCP
description TCP PROBE
interval 2
faildetect 2
passdetect interval 2
connection term forced
open 2
parameter-map type connection IDLE
set timeout inactivity 600
rserver host INFO-Realserver-1
ip address 38.22.175.1
probe TCP
inservice
rserver host INFO-Realserver-2
ip address 38.22.175.2
probe TCP
inservice
rserver host INFO-Realserver-3
ip address 38.22.175.3
probe TCP
inservice
rserver host INFO-Realserver-4
ip address 38.22.175.4
probe TCP
inservice
serverfarm host INFO2008
predictor leastconns slowstart 15
probe TCP
rserver INFO-Realserver-1
inservice
rserver INFO-Realserver-2
inservice
rserver INFO-Realserver-3
inservice
rserver INFO-Realserver-4
inservice
class-map match-all L4_VIP_ADDRESS_CLASS
2 match virtual-address 38.29.250.250 tcp any
class-map type management match-any MGMT-Class
2 match protocol icmp any
3 match protocol ssh any
4 match protocol telnet any
class-map type management match-all SNMP_ALLOW_CLASS
2 match protocol snmp any
class-map type management match-all TELNET_ALLOW_ALL
2 match protocol telnet any
policy-map type management first-match MGMT-Policy
class MGMT-Class
permit
policy-map type management first-match REMOTE_MGMT_ALLOW_POLICY
class TELNET_ALLOW_ALL
permit
policy-map type management first-match SNMP_ALLOW_POLICY
class SNMP_ALLOW_CLASS
permit
policy-map type loadbalance first-match L7_VIP_LB_ORDER_POLICY
class class-default
serverfarm INFO2008
policy-map multi-match L4_LB_VIP_POLICY
class L4_VIP_ADDRESS_CLASS
loadbalance vip inservice
loadbalance policy L7_VIP_LB_ORDER_POLICY
loadbalance vip icmp-reply
loadbalance vip advertise
interface vlan 22
description Info Servers vlan
ip address 38.22.1.250 255.255.0.0
no shutdown
interface vlan 29
description Info Front End vlan
ip address 38.29.1.250 255.255.0.0
service-policy input L4_LB_VIP_POLICY
service-policy input REMOTE_MGMT_ALLOW_POLICY
no shutdown
interface vlan 121
ip address 38.121.6.1 255.255.0.0
service-policy input REMOTE_MGMT_ALLOW_POLICY
service-policy input SNMP_ALLOW_POLICY
no shutdown
ip route 0.0.0.0 0.0.0.0 38.121.1.1> I have L3 vlan interfaces on my Cat6513 for vlan 22, 29 and 121.
That is your problem first of all.
If i get it right from your config.
VLAN 121 is your transfer network / or client side vlan
VLAN 22 and VLAN 29 are Server VLANS?
What you should keep in mind is that you define the server side vlans only on the ACE contexts with L3. You don't define them on the supervisor.
If you use the ACE in routed mode you have to assign networks exclusive to the ace like routing networks to a layer 3 device in your network. If you use those vlans (22,29) on other parts of your net you should subnet them or take another network.
Your setup should look like this.
6513
L3 ~ VLAN 121
L2 ~ VLAN 22,29,121
ACE Module
L3 ~ VLAN 22,29,121
You assign the 3 vlans or any other to a vlan group and assign this group to the ace module.
Create a new context -> assign the vlan 22,29 and 121 to this context.
6513(L3) <-- vlan 121 --> ACE (L3) /Admin Context
6513(L3) <-- vlan 121 --> ACE(L3) / Server Context --> VLAN 22,29
ACE Admin Context (VLAN121)
ACE Server Context (VLAN 121,22,29)
After you have a working L2/L3 setup start troubleshooting the ace config itself. :)
Hope it helps
Roble -
Can't get OCITransStart() to work
I am calling OCITransStart() to start a new transaction, however it returns an INVALID HANDLE error, when I am sure the handle is valid as it has been used elsewhere successfully.
rc = OCITransStart(svchp, errhp,
60, OCI_TRANS_NEW|OCI_TRANS_READWRITE)
Also tried
rc = OCITransStart(svchp, errhp, 60, OCI_DEFAULT)
Also tried without a timeout (timeout is zero).
The svchp handle has been used successfully in a OCIStmtExecute() and was initialised as per documentation/samples.
Do I have to do anything extra to the service context to be able to start transactions?Re: Can't get Mic to work? I'm using the Steelseries Siberias headset, with a standalone Zalman mic. I never unplugged them, I only reformatted from a cracked verion of Windows 7, to a legit version of Windows 7. The versions were actually the exact same, and now I regreat Formatting.
Here are some of My PC's Specs
http://img9.imageshack.us/i/specsq.png/
I'm using the ATI Radeon 4870
Creative XtremeGamer
http://img704.imageshack.us/i/sound.png/
http://img684.imageshack.us/i/drivers.png/
I've just gottren really frusterated. I'm about ready to go back down to XP just to get this to work, I use my microphone for so many different things.
I've searched this problem, it seems there are numerous people with the same problems, and I just find that sad, I've been using creative products for a long time now, and have never had a problem like this before. -
Have entrourage and want to use Mail. Can't get it to work.
I had a macbook and purchased the Microsoft office for Mac which included Entrourage.
I have now purchased a new macbook Pro and want to begin to use Mail rather than Entrourage.
I have Entrourage on my new computer but i can't get it to transfer my information to the the Mail program
I am on Charter.net at my office and sbcglobal.net at home.
How can i get this to work. I can receive on Mail, but i can't send.check your outgoing port settings and make sure it's using a specific port and not the default port, also you might want to check to see if it is using SSL, TLS or any other encryption. Verify the setting from your old machine setup.
-
got my password wrong twice and my mini is disable. I connected to iTunes, but can't get it to work. Can some one guide my through?
If it's showing the red disabled screen due to incorrect passcodes then you may need to put the iPad into recovery mode : http://support.apple.com/kb/ht1808 - you should then be able to reset the iPad via your computer's iTunes and restore/resync your content to it
-
HT1151 i have a new apple external dvd drive, and i can't get it to work with my iMac?
I have a new apple dvd drive, I was told it will work with my imac, but when i plug it in ...nothing... iv been for update... still nothing. How can i get it to work???
If it is this drive, note that it is for MBA's and Mini's only:
http://store.apple.com/us/product/MC684ZM/A
Ciao. -
Is there a way to reset my messages account, I can't get iMessage to work on IPad nor Mac osx. Help please this is really frustrating.
Hi,
Is there an iPhone involved ?
If not, what happens if you remove the Apple ID on the iPad and then set it in Airplane Mode (allow a couple of minutes at this point) followed by re-adding the Apple ID ?
What, if any error messages are appearing on the Mac when you try to launch the App or Login to the iMessages server ?
Is the Apple ID linked to an iCloud account ?
In Messages 7 (Mountain Lion) this did not seem to be important but it seems it is in Mavericks/Messages 8
9:14 pm Friday; April 11, 2014
iMac 2.5Ghz i5 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
I bought an IR receiver and an Apple Remote, and I can't get it to work. What am I doing wrong? The receiver is a Lenovo eHome OVU430006/01 USB IR Receiver.
Hello,
You would need to pair the Apple Remote with the receiver. So I would use the generic Mac/PC receiver and follow these instructions:
http://support.apple.com/kb/HT1619
If that doesn't work then check in System Profiler to see if the IR receiver has been recognized by the PowerBook's hardware. You may require the install of drivers for this device to be recognized.
Best of luck
Maybe you are looking for
-
R/3 users Authntication to LDAP?
Hello, I have configured the LDAP Conenctor using Tx LDAP from R/3 4.7 running on AIX Server to MS-ADS LDAP Server. After making all the settigns i have run the report RSLDAPSYNC_USER for synchronizing the users between R/3 amd LDAP. Then the Users a
-
How do I make adobe bridge work with canon rebel t2i camera?
I have photo shop cs3 and never had a problem with Bridge before. Now I purchased a new canon rebel t2i and it will not recognize adobe bridge. Anyone know how I can make this work?
-
please help me with msi installer file for 11.6.8.* as this is our standard version which we use for all machines in our organization
-
What are the blue dots on certain apps on my iPhone5?
What are the blue dots on certain apps on my iPhone5?
-
DB wait time in daily basis.
hi , i am using 10.2.0.4.0 version of oracle. I want to get total DB wait time for comparing since last two weeks of DB perfromance , in daily basis. I have AWR report but i have go through each and every report for comparing results of each day. But