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

Devices work in MAX, not with VISA calls

$
0
0

Hello,

 

I'm currently attempting to control a pair of CSW5550 power supplies and having all sorts of problems.

 

On LAN, I have installed the devices as a TCPIP device to send SCPI commands to, as here:

 

LANsetup.png

 

Everything works great from the MAX window. I can send most queries with no problems, in particular the *IDN? query.

 

When I pop over to running a vi on the same VISA resource, however, I get very inconsistent results. Sometimes a read error, sometimes a write error, and sometimes I get a reading. Most often no error, but an error from the device and no data returned. Same thing for trying to perform other read operations, and it's clear from the response of the device (often 'invalid parameter', others) that the instrument is getting somewhat garbled commands.

 

The same thing goes if I try to run it over serial USB. This is what I'm running in the vis:

 

readvi.png

 

readvis.png

 

I mean, this is really basic stuff. I've tried varying the timing, newline termination, setting up and flushing the buffer.

 

So ... what is the difference between the queries MAX is executing and what I'm doing, and how can I troubleshoot it?

Thanks in advance,

C


ArduinoとLabVIEWを熱電対モジュール用いてSPI通信し温度を表示させたい。

$
0
0

ArduinoとLabVIEWをSPI通信し温度を表示させたいと考えております。

 

【Arduino】Uno

【LabVIEW】2014

【プラットフォーム】LINX

【熱電対モジュール】MAX31855

 

自分なりにVIを組んでみましたが、動作いたしません。

 

VIを添付いたします。

 

宜しくお願いします。

8452 master to TI 28xxx slave

$
0
0

I can't seem to communicate to a TI piccolo (2806x) SPI slave bidirectionally (full duplex) in any of the 4 possible SPI modes.

The only way I can communicate is half duplex and to switch the 8452 clock phase to "second edge" when receiving data.

The TI clock phase is set to 1.

 

 

In the 8452 manual in section 1.8 it states "When the phase is 0, data is latched at the clock transition from
idle to asserted. When the phase is 1, the data is latched at the clock transition from asserted to idle."

Which data is it talking about, the MOSI or MISO or both?

 

I've attached a SPI timing diagram of the 2806x.

9870 in Scan Mode on NI9146

$
0
0

My ports show in MAX, but are not available in my lvproj chasis using Scan Mode?

All other modules work as expected.  I have used this module in scan mode in another chasis, but the 9146 is new to me.

 

I made a serial loopback connector and ran a serial loopback test as attached.

 

Any help and insight is appreciated!

- P

 

System Web Server at 100% CPU

$
0
0

(Apologies if this is the wrong board for this issue).

 

We have several Windows XP systems in our production environment, most of which have NI-VISA 5.4.1 installed on them.  (We can't use 5.14 as it isn't compatible with some PXI modules that we use).  Recently, the systems have been locking up, with the service "NI System Web Server" taking 100% of the available CPU.  Disabling the service doesn't seem to have any adverse effects, but I was wondering if this is a known issue (possibly with a solution?), and if disabling the service permanently will cause any problems.

Detecting 24V switch signal

$
0
0

Dear all,

 

I have a PXI-1052 chassis with (among them) the following modules:

- PXI-6289 with a SCB-68 connection block.

- SCXI-1161 switch module.

 

What do I want?

I want to be able to switch solenoid valves that operate on 24Vdc.

With the SCXI-1161 module I can switch this solenoid but I want more!

I also want to detect if the solenoid is really switched (if there is a 24Vdc loop or not).

My intention was to use the PXI-6289 with SCB-68 (or SCB-100) to detect this signal.

 

The problem.

I have the switching part up and running but I can't get the control loop working.

Currently I'm testing with a 5V-10mA signal to see if I can get the 6289 working but I don't seem to be able to create a stable signal.

The next step is to find out if the SCB-68 is capable of handling 24Vdc.

 

Solution?

Yes please ;-)

 

With kind regards,

Jeroen Kluft

continuously check Keithley 6517A to REL instantly after Z-Check completes and first measurement is made

$
0
0

I am using a Keithley 6517A to measure charge (Coulombs) via an IEEE 488 connection to LabView. Before a measurement can be taken, however, I need to zero-check (Z-Check, Zch) the instrument and set the relative (REL, Key 30) as soon as the first reading is displayed. If the instrument is still measuring the initial zero-value to which all other values are taken relative to, activating REL will return an error. So I need to send the commands:

 

: Syst : Zch OFF;

: Syst : Key 30       (without spaces, this dumb setup turns the script into emoticons)

 

Where the second command (: Syst : Key 30) is not activated until the instrument has measured it's first reading. In other words, I need to continuously query the divce to tell me when the instrument has made it's first reading, then turn on the REL. Any advice on the matter is greatly appreciated! I have attached the Keithley 6517 vi's for reference.

NiVisa serial connection: howto process unsolicited message?

$
0
0

With GPIB I can process SRQ with an eventHandler.

 

How do I process an unsolicited serial message? I image I'd also need some sort of handler for it too?

 

I can send the equipment a message and process the reply but it seems I'm missing any messages initiated by the equipment

 

Thx.


how to record more than one waveform which has been triggered for tektronic oscilloscope DPO3024

$
0
0

I am a beginner in labview.

I want to fetch the overvoltage of adapter output and record the waveform by tektronic oscilloscope DPO3024.

In normal condition, the output voltage is  stabilized  DC voltage.

But the output voltage will appear  pulse voltage unexpectedly.

The test will keep several hours and the pulse voltage appear several times.

I want to count and record the pulse voltage waveform.

 

I download the offical driver of tektronic oscilloscope 3000 series.

I can set the appropriate trigger level to fetch the pulse, but I don't konw how to record more than one waveform.

I check the configer trigger VI but can not find any output to remind me that the waveform has been triggered.

So,  is there any method to only record the pulse waveform.

Is Labview The Right Program?

$
0
0

I’m trying to decide if Labview is the right system for my project and I would appreciate any input from the community.

 

The project is an automated power supply DVT program, and it’s a fairly large one. The UUT can have up to 20 outputs, each one with different voltage output and loading requirements. In addition to whole unit tests I’ll also need to perform 5 tests on each output. Those tests would be the standards: regulation, ripple, stepload, and turn-on/off overshoot. I plan to communicate with my various instruments over GPIB.

 

After poking around with the Labview evaluation program for a week or so I have no doubt that LV can perform all the tests I require. My concern is how big the VI will have to be to accomplish this, and how to structure the program. The whole-unit tests like inrush current and efficiency aren’t a problem, but 20 outputs x 5 tests each = 100 tests and each has to be done at three different input voltages and three different temperatures. Finally, the whole thing has to be fire-and-forget. That is: start the test and go home.

 

I believe that once I have the basic test written I can simply loop the whole thing after I change the input voltage and temperature parameters. But 100 tests are a lot of subVIs! The other option might be to use one set of 5 subVIs and loop that 20 times while changing test parameters from an array preloaded with the various ‘scope and load settings as required by the particular output under test.

 

So I’m wondering if LV is up to this task, and if so, does anyone have any suggestion/comments on the program structure.

 

Thanks for any help.

Lake Shore 211

$
0
0

Greetings,

 

    I have two LS-211 that I am getting a timeout on the VISA read from.  The curious thing is that they work fine in MAX with IDN?\n however when I open a VISA session and preform the write and read (write with term charactors CR/LF appended) the read times out.  I get the same behavior from my 121's and my Keithly 2200.  I am first trying to deal with the 211's first.  Any ideas why it works on MAX and not with VISA?

Winows cannot recognize NI GPIB card

$
0
0

Hi, 

 

Recently I removed a GPIB card from an old computer and installed it in another computer but it seems that the computer cannot recognized this GPIB card. There is nothing shown in device manager and nothing in MAX. The card is PCI-GPIB 183617G-01 (of year 1998). It's a pretty old card but it worked fine with the old XP computer. I followed instruction of how to completely uninstall and then install the card but it doesn't work. I also tried plugging it in different PCI slots and even in another working computer. Nothing showed up. Then I found another similar card 183617K-01 (year 2001) and tried installing it but still no good. I think the chance that both cards and all PCI slots I tried are bad is pretty low. There should be something wrong during the whole process. Does anyone have any ideas what might have gone wrong? So far the only thing I'm suspecting is that all the computers I tried use 64bit Win7. Is it possible that these old cards are not compatible with Win7?

 

Thanks!

build error but do not show the error code

$
0
0

hello guys,

    I was wrote a vi to control Agilent 34401DMM through NI GPIB-USB-HS, the program was work profect in the labview 2012 , but when i build it to exe program, the labview build show the build errors, but the "Possible reasons" message was null, and the "Details" message was " 

Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:

". I was do it again at another computer, but the Build Error did not disappear.

    Can anybody tell me to deal with this problem?

ni 9234 SNR

$
0
0

Hi,

 

We have developed a system to measure acoustic noise (LAeq, Fast, Slow... ). The system consist in:

 

NI 9171+NI 9234+ Labview+ Sound and Vibration toolkit

The data rate is 25.6 kHz

 

We have been asked about some acoustic parameters and we don't  know how to obtain them from the data sheet.

 

We need the following parameters:

 

- SNR (Signal to noise ratio) of the antialiasing filter and how is calculated.

- Is the Dither applied by default in the NI 9234? if yes which is the probability distribution of the added noise and the aplitude of such noise?

-  SNR of the Delta-Sigma

 

Thank you very much

Remove USB device and reinsert. Won't respond until a system reboot

$
0
0

I am talking to a TI Launchpad board with some custom code.  It appears as a serial device when connected to the USB.  If it gets unplugged, then plugged back in, LavVIEW can't communicate with it until a system reboot is performed.  I don't have any problems reconnecting to it with a new RealTerm window, but LabVIEW goes silent.

 

Windows Manager shows it is there. 

 

This is on a large test station where multiple fixtures may be connected one at a time.  Rebooting is not a good option

 

 


IVI Shared Components

U-Blox 6-H

$
0
0

Hello,

 

I am trying to connect U-Blox 6H GPS to LabView using VISA. I am using examples provided by National Instrument for U-Blox 5 Series GPS and that doesn't work.

 

I used U-Center to verify if I have satellite connection and verified my co-oridnates from the provided software. I just don't know how to send my location information from U-Blox 6H to LabView. Shouldn't the example for U-Blox 5 series still work for 6 series?

 

Please help.

 

Thank You.

visa resource name as avariable

$
0
0

Dear All

 

I have a program with different VIs. I want to configure the VISA Serial port only one time and use this configuration where ever I want. How do I do this.

Now i have to configure the VISA parameters (such as: Bouad rate, VISA resource name, Parity, ...) every time i want to read or wirte a variable on serial port.

is there somthing like a global variable which i can save the configuration on that and use it when ever i want in different Sub VIs?

 

Thanks in Advance

smu 236 incorrect output

$
0
0

Hi 

 

I am using a Kiethly 236 SMU to measure IVs this normally works fine, but appears to have an intermittent fault.

 

Sometimes when performing a series of measurements the first outputted current file is correct, however all subsequent files give the same dataset with a random offset. Restarting the pc seems to resolve the issue.

 

I have recently discovered that a colleague has been altering the pc date and time settings, could this somehow account for the incorrect data?

 

Any help or ideas would be gratefully received.

 

Thanks

Cannot install PCMCIA-232/4

$
0
0

Hello;

 

I have and older machine and I am trying to get a PCMCIA-232/4 card to work and have tryed many things with no good results.

 

I am running Windows XP 32 bit, Labview 7.0, with MAX 4.5, NI-VISA 4.5, and NI-SERIAL 3.5.

 

The PCMCIA Card slot works on the machine and I know that because my DAQCard-AI-16XE-50 works fine.

 

NI-SERIAL 3.5. installes fine but it cannot verify the presence of the hardware.

 

When I look at windows device manager it says there is no driver installed for this device (Code 28).

 

What do I need to do to get a driver for this card.  I looked on the NI page and nothing comes up?

 

 

Viewing all 5680 articles
Browse latest View live


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