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

strange serial write problem in labview 8.5

$
0
0

I'm having a very strange problem with simple serial port write in labview. I'm running the 'Advanced serial write and read.vi' program from NI examples. I connected a microcontroller board on the device side. The board has been programmed simply to blink an LED fixed number of times. For example if I want my LED to blink 13 times, that is specified in the labview 'string to write'  field. I ran the program in hyperterminal window. It runs successfully. But whenever I'm running it in labview it is giving strange response, for example if I give input in 'string to write' field 18/13/15, it blinks 11 times, similarly if I try to run it 21/26/29 times every time it runs 22 times. That is the controller only acknowledges the MSB and duplicates the other bit with it. Since it is running fine in window's hyperterminal, There must be some adjustment need to be done in labview. And that I cannot figure out. Please anybody give some solution.Any suggestion is appreciated.

 

With Regards,

Tapabrata


Syncing Voltage Reading Acquisition Start on Multiple Instruments

$
0
0

Hello,

 

I'm doing a lot more work with intrument control lately so please forgive the uptick in questions.

 

I'm dealing with a unique issue I haven't encountered before and I could use some advice. Previously when I asked about multiple instrument control it was always one instrument running continuously while the others would have their parameters dynamically updated; for example voltage readings with an NI-DAQ with adjustable DC power supply voltage. For such instances, I was recommended looking into the Producer-Consumer Architecture. In other cases, I've used multiple channels of a single instrument with no problems.

 

Now I am trying to monitor voltage on two seperate devices; a Keithley 6517A Electrometer and an NI USB 6212-BNC. I'm trying to take a finite number of samples over several seconds so the start time of reading acquisition needs to be synchronized. I didn't think the queuing of the Producer-Consumer would be helpful here so I tried configuring both instruments and then splitting the error wire in two. Predictibly this caused a lag in the acquisition time of the instruments as can be seen in the attached .jpeg. I know that the way I am doing it leaves me at the mercy of the instruments' timing but ths is the first time I've had to do this kind of setup and I am having some trouble.

 

Would very much appreciate some advice for this and future applications.

 

Hope to hear from you,

Yusif Nurizade

LeCroy wavesurfer acquisition loop slowdown

$
0
0

Hello,

 

I am trying to acquire waveforms from a wavesurfer 434 over ethernet, and I am running into a problem where the scope triggers and then displays a "Processing... " message for multiple seconds before the scope is ready to trigger again. Timeout errors occur even though I am feeding the scope a 10Hz signal (the timeout is set to 10 seconds). This only happens once every 2-3 triggers, and I do not have any of the math, measure, or averaging features enabled on the scope, so I am not sure what is being processed. When I do not have the VI running, this does not occur in either normal or single trigger mode (ie, this does not occur if I manually press the "single" trigger button on the scope multiple times).

 

More information:

- I am using the example vi, "LeCroy Wave Series Acquire Waveform In Loop.vi," from the 3.2 revision of the driver package and have not modified it.

 

Thank you in advance for any tips/suggestions.

fastcom ESCC-PCI driver

$
0
0

Can anyone please help me in finding the serial interface driver for Fastcom ESCC-PCI RS422 card.?

NI-845x

$
0
0

I’d like to use an NI-845x to capture 6 channels of 14 bit data from an LTC2351 ADC. I get errors using the NI-8451 in conjunction with the SPI streaming API and CVI. A trawl on the internet infers that the SPI streaming API doesn’t work with NI-8451. The same internet sites suggest the NI-8452 “might” work. It has to generate the CLOCK (< 25MHz), the CONVERT strobe and read the resultant 6 x 14 bits out of the ADC on the SPI lines. It seems very straightforward but is the NI-8452 up to the challenge that the NI-8451 failed.

The LTC2351 data sheet is easy to access on the internet; the timing is attached

setting up a DS345 with GPIB-USB-HS

$
0
0

Quick guide to how to set up a Stanford Research Systems (SRS) DS345 synthesized function generator.

 

1) Ensure you're not going to shock anything (i.e. having the computer and device on two different grounds), then plug in the GPIB-USB-HS cable to device. 

2) On the front panel of the DS345 set gpib to on (address default should be 19). 

3) Open NI's Measurement and Automation Explorer, and ensure the device shows up. 

4) Open NIvisaic.exe and send a query "*IDN?\n". You should get the device info back.

5) Using NIvisaic, write "FUNC\s1\n" this should change the function type generated to Square Wave type.

6) Use Labviews VISA library. For still unknown reasons, I could not get the normal GPIB library to control the DS345 over GPIB-USB-HS. This means the entire driver library for the DS345 didn't work for me. This means you'll have to do some more work learning the DS345's communication protocol (see http://www.thinksrs.com/downloads/PDFs/Manuals/DS345m.pdf). But I only needed to change 2 things on the DS345 so that fit my needs. 

acquisition analog voltage Ni USB 6259: inverted signal

$
0
0

Hello,

I have aUSBNi6259BNC
I createdan analogvoltageacquisitiontaskwithNiDAQMXon waysfrom AL0 toAL8
I dealwithDasyLab(acquisitionI /O->displayChartRecorder)

MyPBis that theBNCsignal (coming hereaGBF) shall be reversedon the plugofUSB-6259, else, all channelsdisplay the samesignal(seescreencapture)

-BNCmass on theoutside,soulon theBNCcenter->all channelsposters the same signal.

-BNCmass becomesthe center andthe soulbecomescoaxaileoutside->Al0thewaythat displays thesignal, the others way stay at 0  level

 

on the housingUSB6259cursorstechnique areallonFS,

NIDAQmxtask ismassdifferentialmode (see attachedNIspot).

 

Where ismy mistake?

thank youfor yourexpertise

GPIB USB HS keithley 6487

$
0
0

Dear All

 

I would like to us NI GPIB HS to control keithley 6487. Can I use the software supplied by the manufacturer Excelinx, which is I think written in C++. Is this possible or I need a LabView drive?


Type and size of memory

$
0
0

Need to know the type and size of memory in a GPIB-485CT-A, spec only shows buffer RAM not anything else

WindowsXP support for GPIG%2FPCI%2FDOS

$
0
0

I have 21 GPIB instrument control programs which run perfeectly on a PIII with an  NI  ISA  PNP board. They also run on a PII IBM laptop in a dock with an NI ISA GPIB board.

 

I have a P4 with  a NI gpib/pci board installed along with the 488.2  3.1.2  drivers etc. The software finds and I can set up the PCI board and all the instruments so that I have complete write /read capability and the control  commands are executed and responses correctly received in the "communicate with instrument" box.

 

DOS support is enabled and the rest of the setup for DOS seems to have executed properly,  however attempting to run any of the progams in the "dos box"  results in a "dos error" and an "Ibfind error"  once the program executes beyond the "on screen"  instrument control option menu and tries to access the instruments..

I have set up  the PCI-GPIB board and each each instrument with exaxctly the same  instrument # settings and aliases as used for the ISA-GPIB board.

 

The necessary GPIB "include" files are in the NI folder as are the runtime files.

 

What am I missing here???

 

Thanks for your help,

 Ted.

a program for an oscilloscope GDS-840C

$
0
0

hello,

i need a program for an oscilloscope with his caracteristiques ( frequency, off set..)

i'm using an: oscilloscope GDS-840C

labview 8.5

us232

NI sbRIO Ethernet connection

$
0
0

Just start using NI sbRIO-9642. The problem is occured when connect with PC as following:

mmexport1396602718860.jpg

The card is always can't be configured by PC.

Am I missing some steps of setting?

Thanks

Configuring termination character for Instrument I/O assistant

$
0
0

Hello,

I am configuring an instrument using "Instrument I/O assistant" to read and parse incomming data, but the data coming out of it utilizes a "/n" termination character twice, I want to terminate on the second instance of it.

 

1) If I set the termination character to "none" I can see all of the data (termination = 0D 0A in the middle of the data and at the end).  But the system times out (makes sence since I didnt set a termination ch)

 

2) If I use "/n" as my termination character the first chuck of data is displayed but not the second.

 

Below you can see the data collected from "Advanced Serial Port Monitor".  In one data capture you can see that there are two lines, I want to terminate on the second LF.. any ideas?

 

<20140404161850.899 RX>
00000,0,1.511e+03,3956,0.0041 [len=29]
<20140404161850.899 RX>
<LF>00000,0,1.511e+03,0.3854,0.3888,0.2236,0.5075 [len=46]
<20140404161850.899 RX>
<LF>

New Drivers For Very Old Board

$
0
0

I have a PCI-GPIB/+ board. Need drivers for Windows 7 and 8.1. Board is dated 1997. WIll current drivers for PCI-GPIB+ work?

The Assembly number is 183617C

Why do i get this error trying to access Hokuyo URG LiDAR on myRIO?


AK Protocol

$
0
0

I have  O2 analyzer ( model 600p) from CAI. They use AK protocol. I use labview 2013. I would like to through RS232 or TCP/IP sending commands to control the analyzer.  I want to use their two control command: _SMGA_K0 ( start measurement)  and _SATK_Km_Mn (start automatic calibration). But i don't know how to use labview to send the command to analyzer.  If you can send me the examples will great help. Thanks.

Reading Large data from serial port

$
0
0

Hello,

 

I'm trying to read data from an instrument using serial port.  for my test file I'm using labview example, I attached its block diagram, the file name is "Basic Serial Write and Read_1 bit.vi".

 

as I said this is built it Labview example.

 

when reading small data such as temperature it works great.

when reading large data such as log set - not so great.

 

the default delay time between write and read is 500. If I reduce it I read less data then available. if I Increase it - I'm able to do this up to 580 - when I go to 600  I get an error:

 

"VISA:  (Hex 0xBFFF006C) An overrun error occurred during transfer. A character was not read from the hardware before the next character arrived."

 

what is the problem and how to solve it? this is happens at LabView Example file...

 

 

hp 3311 A function generator GPIB

$
0
0

Hi, I've a Hp 3311 A function generator and I'd like to control it by GPIB. I'd tested with the example in labview "GPIB.vi" but when i send it a command, pej "APPL:smileyfrustrated:IN 1.0E+3, 3.0, -2.5" it doesn't work (It makes only a sound "Bip" ).

 

Does anyone knows why the function generator doesn't generate the signal?

 

Note: When i send it the command IND?, the instrument returns the name "Hp 3311A", but when i send another command it doesn't work.

 

 

Thanks. Regards, peliasrojo.

JavaScript GPIB Communication using a COM ActiveXObject

$
0
0

Is there a way to preform GPIB communication using JavaScript?  Perhaps by creating an "NiVisaCom" object?

 

There are about 20 different progid's for the NI VISA VXIPNP dll registered on my computer after installing the GPIB drivers, however all of these seem to return an empty object when created using "new ActiveXObject()" 

 

Looking at the documentation I would think this would work:

 

gpib = new ActiveXObject("NiVisaCom.NIGpibIntfc");

 

gpib.viOpenDefaultRM(session);

 

The first line "works" but returns an empty object.  The second line throws an error.

 

Another route would be to create an html page with an <object> tag with the CLSID assigned to match the progid, but this has not worked for me either.

 

Has anyone had luck with GPIB in JavaScript?

IO Trace attribute

$
0
0

Hi,

 

I got the following suspicious row in IO Trace.

 

16.  VISA Set Attribute ("ASRL10", 0x3FFF01BF, 128)
Process ID: 0x000013EC         Thread ID: 0x00000938
Start Time: 14:53:54.455       Call Duration 00:00:00.000
Status: 0 (VI_SUCCESS)

 

But I can't find any mapping table of the 0x3FF01BF VISA attribute name. In LabVIEW there is only the attribute names available as property nodes and not the actually number that shows up in IO Trace.

 

Can anyone tell me what 0x3FFF01BF is and where to find the VISA attribute mapping table?. In using LabVIEW 2009 (32bit) on Windows 7 (64-bit).

 

Best regards,

Mattias

Viewing all 5661 articles
Browse latest View live


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