Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all 5674 articles
Browse latest View live

DIO NI 9381 to drive a third party stepper motor

$
0
0

Hello,

I am using a third party 1.26Nm stepper motor with 4.5A Stepper motor drive(SMD). I have interfaced the Stepper motor and SMD with cRIO 9064 and using a DIO NI 9381 to send the pulse signals.

 

Currently, I am using the code attached below. The code gives 1.8deg/step step size by default. Can anyone suggest me a way to modify the code so that I can vary the speed and step size of the stepper motor?


Visa Serial Communication via Serial port COM# is unreliable

$
0
0

Hi! Guys,
could you please help me with a recurrent issue?. I think it's very interesting . Well, I'll try to explain it clearly.
I work with a master's project, where I'm using a Arduino Mega Atmega 2560 and Labview to valide a GUI to working with a serial communication via VISA read and write funtions. Using a specific serial port COM. I have found several answers about this issue in the Web. But I do not have yet a clear solve of this. The reccurent issue is the follow: When I run my application do not problems with open sesion serial port, and reading/writing way is correct. but after a time, the communication is not stable because there are slow iterations in moments or iterations frozen, even there are interations with a communication broken finally. I have tried with enable events, termination caracters (line feed and carriage return), Bytes at serial port and etc...
I think all hardware by NI have a excellent performance with the transference of data using GUIs by Labview, but using different hardware is not. I attach the VI's used.

DMM6500 connection to LabView

$
0
0

Hi, I have DMM6500 for my project, which I used for measurement of Voltage and Amperes.

I used to record data manually, but wanted to do automated record for my pile of LEDs and wanted to use LV.

 

I want to use the readings of DMM6500 as input for some VI (which I will make) in LV 

 

I am having trouble in connecting DMM6500 as "Device I/O" in LV with a normal cable, and it seems to be more difficult than what I anticipated initially.

 

Could you give me instructions in how I can connect DMM6500 such that its reading can be used as input for LV's VI?

 

Thank you so much.

 

CNT-91 via USB disconnecting after ":SYST:TALK ON" SCPI command

$
0
0

Hi everyone!

 

I am using NI VISA drivers to manage my lab tools via USB. If I am using FormattedIO interface everything is good excepting speed. Now I am trying to put my Pendulum CNT-91 counter to the "talk only" mode. But when I send the command "Smiley FrustratedYST:TALK ON" my computer beeps warning me about disconnecting of my counter.

I am using CNT-90 programmer handbook and VISA documentation but I am failing again and again.

Please find my SCPI code below:

***

:CONFSmiley TongueHAS (@2),(@1)

Smiley Very HappyISP:ENABLE OFF

:FORM REAL

:ARM:COUN 1

:TRIG:COUN 1

:INIT:CONT ON

Smiley FrustratedYST:TALK ON

***

After this code computer beeps but in windows hardware manager counter does not disappear. So, after it I can not do something with device.

Do you have any advices for me?

 

USB 8452 mixing basic API and script

$
0
0

 Hi,

 

 I'm trying controlling RHS2116 chip (Intan tech) with SPI.

 

 For now, it was able to get some response from the chip but response is sometimes weird.

 

 I think the problem is short delay between SPI commands. So I want to add 1 microsecond delay between commands.

 

 However, I made labview code with basic SPI which is made for USB 845x series, and it seems like to add microsecond delay between commands, I need to do it with script.

 

 Is it okay to just mix script API with basic APIs?

 

P.S. I attached my codes. "Bio_RHS2116.vi" is main.

Trouble reading from FTDI FT232R chip

$
0
0

NI community, 

 

I am having issues reading data from an FTDI FT232R USB UART chip (in a dyno controller).  I don't have much experience with VISA or USB protocol so please forgive me if this is a trivial matter.  

 

I have LabVIEW 2017 installed on a desktop and on a laptop.  The desktop is running Windows 7 SP1 and the laptop is running Windows 10 Pro.  I have no issues reading from the FT232R when using the laptop but I continue to get error -1073807246 at the VISA configure serial port (The resource is valid, but VISA cannot currently access it) when using the desktop.  I bring the laptop home with me every night to program so I don't want to have to use it our test cell.  I've researched the error for the last two days but I cannot figure out why it will not work on the desktop.  I have the latest drivers from FTDI installed on the laptop and desktop.  I've uninstalled/reinstalled the drivers, tried the NI VISA driver wizard (but then saw a post from Dennis K. urging not to use that option), checked the cable, tried to figure out if the VISA resource is being use by another application on the desktop...but I just keep going in circles. 

 

Can anybody send me down a better troubleshooting path?  I've attached a WORD file with extra details.  I'm assuming it's a COM issue but my low level computer skills are limited. 

 

Thanks in advance, 

Mike   

VISA Limitations : Number of Instruments / Type of GPIB Talker

$
0
0

Hey Y'all,

 

I figured I'd bug the community to get some additional input. I am also going to apologize in advance, because this is going to be a jumbled rambling with no code attached.

 

Background:

I'm a test engineer in a lab that mostly plays with network analyzers and switches. Occasionally we have our DAQ's, DMM's, MUX's, and other goodies but our bread and butter are those network analyzers. We speak mostly GPIB (VISA) to them.

 

I've also inherited quite a bit of legacy code. Some started development in LV6. Most of the executables that we have to modify are coming from LV2014 though. When a program crashes and requires the exe to be modified, we're upgrading them to LV2017 in the process.

 

In the past, the lab mostly used Agilent Technologies 82357B USB/GPIB Interface. We started noticing that when upgrading to LV2017 for the exe's, the network analyzers would no longer communicate with them. It was a squirrely timeout issue where in the end we just decided "white = bad, blue = good" and swapped to NI GPIB-USB-HS on all of our "critical stations."

 

Then for kicks and giggles, I got my managers to purchase me a new toy of the GPIB-ENET/1000 for the places where we had a really long separation between equipment and computer. I also have a few GPIB-ENET/100 that we plan on re-purposing for a few test stations as well.

 

Oh, I should also mention half of our computers are Windows 7, the other half are Windows 10.

 

tl;dr: Our lab is hodgepodge'd together with whatever I can scavenge in order to speak GPIB.

 

Current Frustration: 

On a Windows 7 computer, I keep having my VISA instruments drop out unexpectedly. Ideally, I would like to have all eight of my GOM-804s and my single GOM-802 on a single GPIB bus.

 

(Sidenote: I'm using NI Max to sleuth my GPIB instruments. This is code independent, but it is verified by when I run my code and it tells me the instruments don't exist)

 

Here are the rules I've found: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8slSAC

 

And I feel like I'm following them:

  • I am under the requirement for 15 instruments (9 + 1 board < 15)
  • I am under the requirement for total cable length ( 10 m cables < 20 m)
  • I have tried multiple GPIB interfaces
    • The Agilent crapped out on me with any more than four devices
    • The NI GPIB-USB-HS seemed to work with 6 devices, but upping it to 9 caused all instruments to not work.
    • The GPIB/ENET 1000 appeared most stable. But then during a power cycle, all instruments dropped out. They have yet to return.

My current solution is to just have the single GOM-802 running on what I've dubbed "evil PC" and I plan on bringing up an entirely different computer for my eight other GOM-804's.

 

Question for Y'all:

Have any of y'all ever run into these limitations?

 

What's the max number of GPIB instruments that you've been reliably able to keep on a single bus?

 

I seem to remember at my previous job I was able to link up 12 DMM's on a single bus with no issue. I don't know if this is an issue with "evil PC," my GOM's, or how I'm hooking them up.

 

cannot download the control panel

$
0
0

Dear Sir/Madam,

 

I'm using web of the control panel, but it cannot download the control panel. Is there some drivers or plugins I need?


VISA read

$
0
0

Hello.

 

I've been working on a project where I deploy multiple nodes w/ Arduino and XBee. The nodes sends a string to the base station every 8 seconds. I am using the VISA function in LabVIEW. If the sent string is matched, a boolean indicator will turn on. This shows that the node is still connected on the network. However, I dont know how to implement such troubleshooting where if LabVIEW hasn't detect the string of the node after 8 seconds, it will automatically prompt the user to check the specific node.

 

I really need some help in this situation. Thank you so much!

Control USB-Temp device with LabView

$
0
0

Hello,

I just learned LabVIEW last week, and I want to control a USB-Temperature device with LabVIEW via USB.

does any one knows how can I connect and communicate with USB device?

thanks in advance,

  

GPIB mixing between two equipements

$
0
0

I'm facing trouble getting GBIP address from two exact the same equipment's (Lambda power supply) at the same time.

 

When I run the test application with both power supplies ON I didn't get reading, on VISA it will show only one instrument with address 6 and without the part number and it is only listed as Instrument 1, I confirmed that the test command sent to both when running test application (power supplies both wake up and start suppling power) when it need to be send to one of them at the time of testing.

 

When I turn either one off I will get reading and on the VISA it will show the model and the serial number without any problem and the issue will show up again as soon as I turn both on, not sure what causing that because I have other set of the test setup exactly the same hardware and wiring but never have problem on it.

 

I tried to change the cables and reinstall the programs but still the same, I'm using GPIB-USB-HS

I'm running out of time and any help is highly appreciated, thanks in advance.

LabVIEW 2011 and Agilent 82357A

$
0
0

My job is to control a multimeter (Agilent 3458A) with an Agilent 82357A GPIB controller. The 82357A is connected to a PC with Windows 7  & LabVIEW 2011 installed.

 

1) After Keysight IO Library installed, 82357A can be found in Windows Device Manager.

2) I can communicate (sending commands or query) with the multimeter in NI VISA Interactive Control.

 

When I program the multimeter in LabVIEW with VISA, VISA write (sending command) is fine, but VISA read failed (the return string was empty and 0xBFFF0015 error occurred).

 

Any suggestion?

 

 

 

Tektronix TDS3052, get the detection status and saturation status

$
0
0

HI,

I'am currently working with a TDS3052 oscilloscope from tektronix.

I use it for voltage measure with labview (VISA commands).

I can't find any command on the manual to check if there is a signal detection on a channel or not. So if i don't have detection, the oscilloscope sent me the same last measure.

I also want to know if it is possible to ask the oscilloscope if there is a saturation or not.

 

Thanks for your help.

 

Bonjour,

J'utilise l'oscilloscope TDS3052 de chez tektronix pour éffectuer des mesures de tensions.

Existe t-il une commande pour demander a l'oscilloscope si il y a un signal détecté ? (Si on demande une mesure et qu'il n'y a pas de signal l'oscilloscope retourne la dernière mesure effectué)

Est-il possible également de savoir via une commande si il y a saturation du signal ou non ?

 

Merci pour votre aide.

Document Writer for Microsoft Office - Word & PDF

$
0
0

Description:
+ Create and Edit Rich Text Documents on your iPhone or iPad.
+ Create and Edit Spreadsheets
+ Scan documents and convert to PDF
+ Create Hand-Written notes and Drawings
+ Annotate PDF Documents, Fill out PDF Forms, Sign & Send Documents
+ Create Voice Memos
+ FAX Documents
+ Transfer files to or from your PC or Mac WIRELESSLY or through USB
+ Works in OFFLINE or ONLINE mode. Work on your documents even when you are not connected to the internet
+ Send documents as EMAIL ATTACHMENTS
+ Synch your documents with DROPBOX, GOOGLE DRIVE, BOX or SUGARSYNC.
+ View Word & Excel files (Office 2007/2008/2010)
+ VIEW PowerPoint, PDF, iWork, Text, .RTF, and more!
+ Open & Edit files created through this app from any 3rd party app that supports the “Open In” feature
+ Create or Download Documents from anywhere and carry it with you wherever you go
Download from Appstore :
https://itunes.apple.com/US/app/id595073719
feedback is highly appreciated !
Thank you

 

DOCUMENT EDITOR :
+ View/Edit/Create Rich Text Documents
+ Fonts, Styles,Font Sizes
+ Bold, italic, Underline, Strike out
+ Text Color, Background Color selection
+ Text Alignment
+ Import Pictures from your Photo Library and paste in the documents
+ Take Pictures from Camera and insert in the document
+ Various bullet styles/formatting
+ Auto bullets/numbers
+ Undo Changes
+ Easy Copy and Paste

 

PDF EXPERT :
+ Annotate or draw sketches in your PDF documents.
+ Write hand-written notes or comments or highlight text in your PDF documents.
+ Fill out PDF Forms and send through email.
+ Sign & Send Documents - Receive documents through email, sign them using this app and send back through email.

 

SPREAD SHEETS :
+ Create & Edit Spreadsheets that can be opened or edited in Microsoft Excel
+ Editing features including colors, fonts, sizing etc
+ Multiple Select operations copy, paste, cut etc

 

DOCUMENT SCANNER :
+ High quality document scanner included
+ Scan documents and convert to PDF
+ Scan Images and convert to PNG, JPG or PDF
+ Document / Image cropping and size adjustment
+ Easily sharing through email attachment, Whats App, Dropbox, Google Drive and Microsoft Drive

 

VOICE RECORDER :
+ Record Voice Memos and save on your iPhone or iPad
+ Easily transfer your recordings to PC or Mac

 

PDF CONVERTER :
+ Convert Microsoft Office and other document types to PDF
+ Annotate converted PDFs and write your notes, drawings, signature on PDF

 

FAX:
+ Fax documents from within the app.
+ This feature is provided through Interfax.Net and involves a fee of few cents per fax.

 

PDF To Go VIEWING :
+ Thumbnail, Fit to Screen, Fit to Width, Actual Size & full screen views
+ Go to/rotate page
+ Multiple Bookmarks
+ Wireless Printing
+ Email Attachments

 

SHARING :
+ Send and Receive Documents as Email Attachments
+ Dropbox
+ Google Drive
+ Box.Net
+ SugarSync

 

FOLDERS & SUB-FOLDERS :
+ Create Folders & Sub-folders
+ Delete, Rename files
+ Drag and Drop files across folders

 

USABILITY FEATURES :
+ Smooth User Interface
+ Drag & Drop Files
+ Creates files that can be opened and edited in Microsoft Word, Apple TextEdit, Notepad, Openoffice, Browser & other office suites.
+ Works anywhere online or offline

 

DOCUMENT TEMPLATES AND SAMPLES :
+ Resume and Cover Letters
+ Meeting Minutes Template
+ Business Plan for Small Businesses
+ Weekly/Monthly Planner
+ Contract for the Sale of Goods
+ Resignation Letters
+ Power of Attorney
+ Weekly Time Sheet
+ Agenda Sample
+ Statement of Services
+ Budget Sheet
+ Blog Post Sample
And many more....

Error: Unexpected I/O data termination

$
0
0

Hello,

I am utilizing Visa with the Keysight 34980A. I can communicate with the device and send many commands but when I try and send a simple clear or reset command (lead by an asterisk) like "*CLS" or "*RST" I receive the error: "Error: Unexpected I/O data termination". The command does not work either. This can be seen in the attached image.

 

Does anyone know what the issue is or at least an explanation of the meaning of this error?

 

Thank you.


Intermittent Timeout error during DAB

$
0
0

Hi NI Community.

I have been experiencing intermittent timeout during the sending of binning results from the IC tester to the SE Probe PC through the hprintf() command.

NI Spy shows that the error is encountered on the SendDataBytes which took 16 sec. Input buffer seems find.

On the other hand, GPIB analyzer shows that in the second character of my data byte, NRFD^ was expected but was not sent. Instead, ATN^ was delivered which should not be the case as the data to be sent is not a GPIB standard command but a device specific string. ATN^ also took 16 sec. As observed, ATN^ is only called before and after the DAB. After the ATN^, UNL followed.

 

I am attaching the photo of the GPIB Analyzer to paint you the whole picture.

 

I am hoping for your help.

 

Capture.PNG

to control SC10 and SH05 with VISA serial

$
0
0

Hi,

 

I am having a problem of communicating with the hardware.

I trying to control shutter controller(SC10, thorlab) and shutter(SH05/M, thorlab) by Labview.

I partly succeeded in communicating between Labview and SC10(with VISA serial function), but I don’t know how to open/shut the SH05.

 

The node of SC10 has four inputs, like an attached jpg file. How can I apply it?

SC10.jpg

 

 

 

 

Files to include for Visual Studio 2017?

$
0
0

I wrote several programs in VB6 in which you must include two files: niglobal.bas and vbib-32.bas. We have gotten a new Windows 10 Pro computer, a PCI-e IEEE488 card and downloaded Visual Studio 2017. I tried a simple program to get started and those two files are NOT the ones to include. So I get the error: BC30451 'ibdev' is not declared.

 

So what do I have to do to get the references into the project? I have added a reference to the ni4882.dll and did Project>>Add Reference>>COM>>Type Libraries>>National Instruments System API. Neither helped.

 

Thanks!

PCI-8433 receiver drops data when USB Drive is inserted/removed

$
0
0

I’m using a PCI-8433 card at 1.8432M Baud on a Windows 7 PC and it normally works great. My VB.NET application uses System.IO.Ports.SerialPort. However, if serial communication is in progress when I insert or remove a USB drive, part of the PCI-8433 receive data fails to transfer. This problem does not occur at 115.2KBaud. The receive buffer size for the SerialPort object is 1K bytes which is greater than my expected receive data length. This appears to be a problem with the PCI-8433 FIFO. I used the Windows Device Manager to change the FIFO buffer levels but it didn’t help. How can I get this card to work reliably at higher baud rates when USB drives are inserted or removed?

Old Version of 488.2

$
0
0

I believe I need a download link for  NI 488.2 Version 3 please?

 

Added information:

Setting up a Windows XP machine to run pre-written Labview Runtime ATE code  that requires Labview 2011 Runtime or compatible to Run.

That communicates to instruments through GPIB and USB, already have a NI GPIB-USB-HS.

So believe I need to install 488.2 and windows xp requires version 15.5 and older, but unclear on 488.2  and Labview interaction, concluding Labview 2011 is around NI 488.2 version 3 release and my best bet.

 

Thank you Very much for any support,

David C

Viewing all 5674 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>