NI-VISA driver wizard and SCPI command
Hi,
I had a go with a NI-VISA driver wizard. I wanted to create a driver for MH3114 DAQ. Wizard went trough very smoothly, and the driver has been installed.
However when I did *IDN? under MAX I've received an error.
Does it mean I have to create/implement any SCPI command?
How the wizard is intened to work?
Solved!
Go to Solution.
Hi MimiKL,
As Dennis has said, instruments are either designed to work with SCPI commands or not. If the user manual does not state the device is SCPI compliant then SCPI commands aren't going to work.
All the driver wizard does is generate a number of VIs which will send the standard SCPI commands to an SCPI compliant instrument. Depending on how you are communicating with the instrument (which bus) you may need to modify these VIs subtly to work with different instruments. But, as mentioned, if the device you are trying to communicate with isn't SCPI compliant then this is never going to work. For future reference, when using the driver wizard, all of the generated subVIs will have comments in them telling you exactly what you need to replace and change to get the driver working for your instrument.
If your device isn't SCPI compliant and you have a dll which works then you should continue using it.
Best Regards,
Chris
National Instruments - Tech Support
Similar Messages
-
我安装了Labview2013,和ni visa540_full.exe,现在我想用NI VISA driver wizard做一个usb的.inf文件,可是我找不到NI VISA driver wizard这个程序啊!
能给个下载链接吗
还是现在现在Labview2013合并了这个功能
已解决!
转到解答。你好!
正确安装了VISA5.4版本驱动后,选择开始》程序》National Instruments》VISA》VISA驱动程序开发员向导,即可打开 -
我在使用NI VISA driver wizard生成了一个USB设备的驱动,例如叫devicedrv.inf,然后在下一步的过程中如果选择直接安装这个驱动,driver wizard会调用DriverWizardInstallInf64.exe(我的电脑是64位的,如果32位的最后就是inf32)去安装这个drvier。安装成功后就能在电脑上识别我的设备了。
我的问题是,我现在想把这个驱动部署到另一台没有安装NI-VISA的计算机上。我做过的尝试是,直接把这个inf文件和拷贝到目标计算机上,右键单击后Install;拷贝winusb.sys至系统驱动文件夹下。但是这样操作之后插上设备并没有正确识别 。然后我又尝试过去使用DriverWizardInstallInf64.exe这个程序,但是发现它并没有任何可以跟的参数设置,也没有帮助文档,无法安装这个inf。
求助NI工程师及各位高手,请问大家是如何解决这个问题的?多谢
已解决!
转到解答。您好,
您在开发机上生成的USB设备的驱动已经调用了NI VISA的底层函数,简单的拷贝到另外一台PC上是行不通的。需要在另外一台PC上安装NI-VISA Run-Time Engine
详情请参考http://digital.ni.com/public.nsf/allkb/EF7934DAC49B4FAD4825723D00089627 -
NI-VISA Driver with Interrupt detection
Hello everyone,
I am new to PCI and PCI driver, encounter an problem when use the NI-VISA to program a PCI driver with the interrupt detection.
Here is the situation:
This PCI card is made of two chips : the PCI9030 pci bridge chip and ET1100 chip (the local chip that connected to PCI9030). The memory of ET1100 is mapped 1:1 to the PCI9030 memory starting at BAR2. Now I want the PCI card generates an interruption when the content of register at offset 0x221 changes.
I add the interrupt detection (see the figure above or the attachment), interruption removal and disarm following the guide "Using the NI-VISA Driver Wizard and NI-VISA to Develop a PXI(e)/PCI(e) Driver in Windows". However, when I completed and installed this driver in the LabVIEW RT OS, the system can recognize the card, but cannot generate the interruption when the register at offset 0x221 changes, therefore does anyone tell me the reason ? Or tell me how to program this driver using NI-VISA?
Any suggestions is welcome.
And Thank you in advance!Duplicate post here: http://forums.ni.com/t5/PXI/NI-VISA-PCI-driver-with-interrupt-detection/m-p/2618341
Bobby Breyer
Applications Engineer
National Instruments -
USB Visa driver stops responding
I have currently developed a production test for a USB device but am coming across a very strange bug. I go through a test sequence via case structure (i.e. Test 1 = Button 1 test, Test 2 = send command to device and read response back, Test 3 = button 2 test, etc). I send commands through a control transfer and/or read data through report 8. Also when the button is pressed, I read it through the interrupt endpoint. I am using a VISA driver for this USB device that I created through the NI-VISA driver wizard. Of course I open the VISA when I start the test and close the VISA once the test sequnce is completed (whether it passes or fails).
However, I sometimes get a strange issue where the USB device stops responding between test sequences. For example, test 1 passed but when it gets to test 2, the dongle does not seem to respond to the command and therefore, test fails within a certain amount of time that I specified. But, if I leave the device plugged in and I restart the test, it will go through the sequence just fine.
I have used a USB sniffer (i.e. CatC) to monitor the USB traffic on the USB line. When I press buttons, I can see that there is still data transferring wirelessly (this is a wireless joystick) via an LED that blinks on the dongle whenever it recieves data from the joystick, however, I see no USB traffic on the sniffer. If I leave the dongle plugged in and I simply restart the test sequence, I see USB traffic again.
This is very strange to me and I suspect that Windows is somehow losing the USB dongle and then reenumerating it (but I am not sure). However, when this is done, the VISA session is now lost in the middle of my test sequences and I cannot recover until I open up the VISA again. Has anyone ever come across this type of issue before? It is strange because most of the time it works, but sometimes it does not and it is giving me false failures. I am not sure if the dongle is "reenumerating" during my test sequence or if some reason, the VISA session is getting lost.Is it possible that the device is getting reset? I have seen some devices that do no reset themselves correctly and Windows does not detect that they have been reset. The net effect is that the 2-way communication becomes a 1-way pipe. One experiment you can try when you see this happen is to unplug and plug the device back in. If you begin reading data again then Windows and the device are getting out of sync for some reason.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot -
Driver wizard does not allow USB to be selected
I am trying to control a Keithley 2230-30-1 Tripple Channel DC Power supply with NI-VISA through USB.
When I connect the power supply and go to VISA interactive control, there are no options for a usb device. I know that the USB port I am using works, and that the PC recognizes that the device is manufactured by Keithley (using the lsusb command).
In addition, when I attempt to use the NI-VISA Driver wizard, the option to set up a USB device is grayed out.
So far I have had no success with this device. However, this PC and this version of NI-VISA has been able to sucessfully connect to and control a GPIB device using both LabVIEW and PyVISA.
I would appreciate any help I can get on this matter. Thank you.
Useful Information:
PC: Dell Optiplex 755
OS: Cern Scientific Linux 6 (SLC6) x86-64 (a distribution based on and
VISA version: Version 5.4 (32-bit version as there is no 64 bit Linux VISA yet)
I can post additional information if required.There is no need to run the wizard to use a USBTMC instrument with NI-VISA on any OS. Specifically on Linux, there is no need to run the wizard for any USB device. The reason is that NI-VISA will be able to find and use any USB device that is not claimed by another driver. I believe this is the root of the issue you are seeing. On some distributions, there is a default usbtmc driver that claims all USBTMC instruments and hence NI-VISA can't see them. To test this, just run 'rmmod usbtmc' as root and then launch NI-VISA interactive control to see if it shows up now. This will confirm if that is the issue. As long as the driver is present, it will claim the device any time it is unplugged and replugged the instrument (or you restart the machine). One way to prevent it is to black-list the usbtmc driver (echo blacklist usbtmc >> /etc/modprobe.d/blacklist.conf) and this may be an acceptable solution if you want to always use NI-VISA for your USBTMC instruments.
There could also be the problem related to permission in addition to the above problem, and the document linked in the above post has information on how to add permissions so that a non-root user can access the USB instrument. -
Visa driver wrong endpoint descriptors
Hello,
I am trying to communicate with a custom-made HID device with LabVIEW using the NI-VISA Driver Wizard. The device can be used with the standard windows driver with C#, but now I will use it with LabVIEW.
The device has the following endpoint descriptors:
Endpoint Descriptor 81 1 In, Interrupt, 1 ms
Offset
Field
Size
Value
Description
0
bLength
1
07h
1
bDescriptorType
1
05h
Endpoint
2
bEndpointAddress
1
81h
1 In
3
bmAttributes
1
03h
Interrupt
1..0: Transfer Type
......11
Interrupt
7..2: Reserved
000000..
4
wMaxPacketSize
2
0040h
64 bytes
6
bInterval
1
01h
1 ms
Endpoint Descriptor 01 1 Out, Interrupt, 1 ms
Offset
Field
Size
Value
Description
0
bLength
1
07h
1
bDescriptorType
1
05h
Endpoint
2
bEndpointAddress
1
01h
1 Out
3
bmAttributes
1
03h
Interrupt
1..0: Transfer Type
......11
Interrupt
7..2: Reserved
000000..
4
wMaxPacketSize
2
0040h
64 bytes
6
bInterval
1
01h
1 ms
There are two endpoint descriptors for communication in Interrupt mode. But after creating a driver with the Driver Wizard this driver doesn't have these two endpoints. Instead it recognizes the descriptor with 0x1 as Bulk In Pipe and the Descriptor 0x81 as Interrupt In Pipe (a screenshot is attached, because the values cannot be copied).
A communication with the LabVIEW examples which uses the Interrupt In Pipe does work, but everything else failed because of the wrong out endpoint.
Is there any way to correct the descriptors?
Thanks,
Chris
Attachments:
usb wrong descriptors.PNG 63 KBcschwarz wrote:
Hello,
I thought it would be much easier to communicate with the device from LabVIEW with such a driver. Are there any good examples to communicate with HID devices with the standard Microsoft dll?
I was searching a lot but I didn't find any good material...
Regards,
Chris
You mentioned C# in a previous post. Look at that example. -
HI, I am having query regarding; Does LabWindows/CVI: IVI Instrument Driver Development Course contain subject like Communicating with Instruments(SCPI commands)
LabVIEW: LabVIEW Instrument Control Course Day 1 coves subject like Communicating with Instruments This lesson describes how you can use LabVIEW tocommunicate with instruments. You will learn how touse NI-VISA, NI Spy, SCPI commands, and theInstrument I/O Assistant to perform instrument I/O. My question is to you,Does LabWindows/CVI: IVI Instrument Driver Development Course covers similar kind of training like Communication with Instruments? I am more interested in learning How to use SCPI commands to perform instrument I/O. Will you please guide me? So I can choose correct training course. Thanks & Regards,Jay +91 90110 62790EXFO Electro Optical Engineering India Pvt. Ltd.701, 7th floor The Ceribrum IT Park,Kalyani nagar. Wadgaown Sheri India, Maharashtra, Pune 411014stick to the original thread.
-
VISA Driver Development Wizard
I found a reference to this great document called
Using the VISA Driver Development Wizard and NI-VISA to
Register-Level Program a PXI/PCI Device under Windows.
As I described in another post, I am having performance problems
using AccessHW to talk to a legacy ISA board under XP compared to
Win2k where performance was decent.
To rule out AccessHW as the problem and confirm that it is an
XP/hardware issue, I'd like to try another method of
reading memory at address 0xE0000-0xEFFFF.
Since the legacy ISA bus on my motherboard is actually
bridged from the PCI bus, is there anyway to hack with the
VISA Driver Development Wizard to do memory reads
on the ISA bus?
Perhaps making a fictious PCI card with a VISA driver?
any thoughts?
mlewisHi Graham,
Which version of the NI VISA drivers are currently installed on your system?
Thanks,
Applications Engineer -
I have LabVIEW7 and VISTA, it's ok, but I can't install VISA driver and USB GPIB driver on my pc... it's necessary to connect my pc with instruments? Or LabVIEW7 have this files??? Thanks,
Vanny.
Thanks,
Vanny
Sweet, Beautiful and Young Female Physicist (SBYFP)
(I speak a not very good english, so If U are Italian LabVIEW expert speak in Italian, if U speak in Eglish... please speak easy )
My e-mail for personal contact: [email protected]_NO_SPAM_PLEASE
Solved!
Go to Solution.You need Administrator privelages to install drivers on Vista
David
www.controlsoftwaresolutions.com -
ok i get this error when hooking my dvd drive up and tring to use my windows 7 cdNo Bootable device. Insert boot disk and press any key. i have tried to use command key i see the cd icon and hit that and i get the error
Wiley207 wrote:
Believe it or not, it was the FireWire drive that was the problem! I managed to successfully install Windows 7 using an external USB DVD drive!
Well I am truly staggered, I have tried this on two different MacBook Pros, with three different external USB optical drives. Don't know if you googled as I suggested but you would find hundreds of others who have found same thing. The exception is MacBook Air which works with the Apple writer, but I don't know much about this.
Were you doing any of the special workarounds with refedit etc?
What model USB DVD drive? -
NI VISA TekTronix RSA3408A "Free Run" and "Stop" Commands?
Hello
Is anybody clued up on the "FREE RUN" and "STOP" commands for TekTronix devices? Particularly the RSA3408A, if not, I'll try anything.
Thank you in advance!well, Have you read the manual for that device?
Tektronics (for some reason) requires you to register to download the manual I'll leave that to you I get enough spam from Tek
http://www.tek.com/spectrum-analyzers/rsa3000/rsa3303b-manual/rsa3000b-series
Jeff -
Hi.
I've found an instrument driver for keithley 6221 on keithley.com.
Here is a question: I wana to control this model directly by using SCPI command instead of instrument driver. But, I don't know how can I do this in Labview 8.0.
Tnx.An instrument driver written in Labview, is not the same as a instrument driver used by say Windows. A Labview instrument driver uses standard Labview functions to send SCPI commands to the instrument. You can learn a lot about the instrument by looking into the Labview instrument driver, and how it sends the commands to the instrument. But having the instrument programming manual at hands is also important.
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far) -
How to send SCPI commands to a VXI instrument
I am using a VXI Interface tech SR2510 LVDS card with teststand and keep getting the following error when the intial diagnostics test trys to run. "Device I/O Driver error" I tried to use the Visa Interface and the interactive control in NI MAX but was not able to send SCPI commands. What can I use to communicate with this card. The resource manager does successfully execute and I see my instrument in the devices list so I am confident it is not a VXI problem.
Hello DF1963,
Can you communicate with the card through its driver/interface? Also, please review the following NI-VISA Help topic: Introduction to Programming VXI Devices in VISA to ensure that correct commands are being sent. If your device is correctly configured in MAX, I would also recommend verifying with the card manufacturer as well.
Best regards,
Ali M
Applications Engineer
National Instruments
www.ni.com/support -
SCPI command to set the frequency for power measurement on Agilent 53147A?
Hello,
I am trying to automate some measurements which require me to use an Agilent 53147A Freq Counter/Power Meter/Digital Voltmeter. The instrument has an option of setting the frequency of the signal we intend to measure. This is done by clicking the "FREQ" button on the instrument and entering the frequency value of the signal whose power we intend to measure. This way the power meter uses the appropriate calibration factor for that frequency for providing accurate signal power level.
I have been trying to set the frequency of the signal whose power I intend to measure through remote control but have not met success as I have not been able to find the SCPI command associated with this task in the operating manual. Does anyone know what SCPI command is to be used for this purpose? Any comment in this regard is highly appreciated.
Thank You,
VivekHi vivek.madhavan.13,
Try using the drivers for this device found here:
http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=834204A36619504AE04400144FB7D2...
Then, by going to the lowest level that the VIs permit, you may be able to find the SCPI commands your application needs.
Regards,
Joel I.
Applications Engineer
National Instruments
Maybe you are looking for
-
Hi, I'm using a NI USB 6009 device. I am using the analog output to drive very small currents (less than 1 micro Amp) through a 1 MOhm resistor. I find that the output often changes significantly when I begin to acquire data, or if the computer is
-
I installed firefox on my new computer (Win XP). So how can I move all my firefox bookmarks from my old computer to the new one and use them?
-
Hi All, We have the requirement to Create multiple segment which is under one header if header change it create new idoc else it should add new line item in same segment of idoc. Please suggest me Mapping Logic. Regards Laxmi Bhushan
-
Unpairing and pairing keyboards between two iMacs
Hi, There's plenty of discussion on these matters over here, but I decided to start a new thread specific to my situation and to see if I've understood what I've read so far. - I just got a new iMac ( 2.7GHZ i5 --- OS 10.6.6 ) which came with the
-
Creating a 3d shape-rectangle having x,y,z coords
I wish to create a simple rectanlge 3dimensional with the knowledge of x,y,z coordinates . Can this be happen?Where can i find relative source or examples on how to do that ? Thanks.