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

Read real time (pressure) data from CPC6000 and plot on graph using GPIB

$
0
0

Hi, 
I'm trying to read real time pressure data from a Mensor CPC6000 in LabView using GPIB. 

I've tried a basic program using LabView VIs 'GPIB Write' and 'GPIB Read' The CPC has two channels and I would like to plot the pressure readings specifically onto a chart. Manual of CPC shows a range of commands, but as I'm new to this level of labview programming, I'm not sure how they are used.

See preliminary circuit. 

 


Where can I find NationalInstruments.NI4882.dll version 8.1.20.119?

$
0
0

Hello!

I have failed to find that version of dll on ni4882 drivers page. There are lot of drivers from major version 1 to 17 but no 8 at all. I try to use old dll that compiled with connection with NationalInstruments.NI4882.dll version 8.1.20.119 and i can't recompile it. So i need exactly 8.1.20.119 version dll.

sbRIO-9607 DIO Serial Interface and CLIP Generator

$
0
0
PowerPoint Slide for ASRLx..INSTR.png

 

tannerite wrote:

This presentation covers what a CLIP is, how to navigate through the sbRIO CLIP Generator, and how to import a socketed CLIP into your LabVIEW Project.

Hi,

 

I have a very related problem with upper slide in my project, my hardware is NI sbRIO9607. I want to use the RS232 serial interface provided by Labview Clip Generator and I have also done all the necessary assignments written. But I could not find any way to access to the created port (serial nor parallel created by Clip Generator), with VISA or MAX. All DIO pins are working correctly without using in a Clip Generator serial port. However, only the ASRLx::INSTR ports could be accessed via MAX or VISA. According to the quote from publication which I put to the beginning, I understand that ASRLx::INSTR ports are the corresponding Serial Ports. However there is no data communication sensed while I am testing the pins by this assignment (i.e. I considered Serial2 is ASRL2::INSTR , and all of the other ASRLx::INSTR ports are also tested whether one of them might be the Serial2 port or not). I put screenshots below.

 

How could I access this Clip Generator ports, could you please help me?

 

Thank you very much,

Best Regards,

 

Onur YILDIZ

RT VI CodeRT VI Code

Clip Generator ConfigurationClip Generator Configuration

 

Clip Generator SummaryClip Generator SummaryRMC Socket Properties ConfigurationRMC Socket Properties ConfigurationProject ExplorerProject ExplorerRT VI InterfaceRT VI InterfaceNI MAX InterfaceNI MAX Interface

PCI-GPIB for newport ESP300

$
0
0

I am not able to find the ESP 300, by instrument scanning. I am using PCI GPIB card for communation. 

pxie-5160 issue using IVIScope driver

$
0
0

I am having issues getting my PXIe-5160 4-ch scope to work with the IVIScope drivers.  I am taking a measurement over 400us with a min record length of 10,000.  When I prepare a reading on channel 0, this works fine.  But then when I go to do the same thing on channel 1, it gives me the attached error message.  I do want to be able to capture data on both channels, or even all four maybe.  I do not see anywhere to set the sample rate.  This seems to be a read only attribute that the device should be figuring out itself.  I do not see the problem as at 400us long, 10,000 samples, that's only 2.5e7 rate needed which is way slower than the max of 1.25e9 it can do.

Version conflicts between NationalInstruments,Visa and IVI.Visa in NI-VISA 17

$
0
0

A version conflict exists between NationalInstrument.Visa DLL revision 17.0.0.0 and the ivi,visa DLL revision 5.8.0.0.  Based on the AsmSpy output shown below, it seems that NI Visa was compiled against ivi.Visa 5.6.0.0 where ivi.Visa 5.8 is delivered with NI VISA 17.

 

Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Users\David>\\Fig\i\Pub\Applications\AsmSpy\AsmSpy.exe "C:\Program Files (x86)\IVI Foundation\VISA\Microsoft.NET\Framework32\v4.0.30319\NI VISA.NET 17.0"
Check assemblies in:
C:\Program Files (x86)\IVI Foundation\VISA\Microsoft.NET\Framework32\v4.0.30319\NI VISA.NET 17.0

Reference: mscorlib
4.0.0.0 by NationalInstruments.Visa
2.0.0.0 by NationalInstruments.Visa
Reference: Ivi.Visa
5.6.0.0 by NationalInstruments.Visa
Reference: NationalInstruments.Common
13.5.40.173 by NationalInstruments.Visa
Reference: System.Core
4.0.0.0 by NationalInstruments.Visa

 

Please advise.

 

 

 

F240 writing problem

$
0
0

I have a problem when I write F240.
My F240 board is a 4MHZ crystal oscillator, using DOS to writing with the default and the 10MHZ crystal oscillator setting.
Now I know that I need to modify the C240_CFG.I file. However, the minimum frequency of the file is PLL_MF_10. The contents of the file are as follows:

 

; Only ONE PLL Mult factor should be selected (set to 1). If more than one is
; selected only the last on the list will take effect. If none selected then
; default is PLL MF = 1.0


PLL_MF_10 .set 0 ; 1 : Select PLL Multiply value of 1.0
; ~
PLL_MF_15 .set 0 ; 1 : Select PLL Multiply value of 1.5
; ~
PLL_MF_20 .set 1 ; 1 : Select PLL Multiply value of 2.0
; ~
PLL_MF_25 .set 0 ; 1 : Select PLL Multiply value of 2.5
; ~
PLL_MF_30 .set 0 ; 1 : Select PLL Multiply value of 3.0
; ~
PLL_MF_40 .set 0 ; 1 : Select PLL Multiply value of 4.0
; ~
PLL_MF_45 .set 0 ; 1 : Select PLL Multiply value of 4.5
; ~
PLL_MF_50 .set 0 ; 1 : Select PLL Multiply value of 5.0
; ~
PLL_MF_90 .set 0 ; 1 : Select PLL Multiply value of 9.0
; ~


;NOTE: The Flash Programming algorithm assumes an internal cycle time of 50nS
; (i.e. 20MHz CPU clk) Value selected above should take this in account.

 

So, how do I configure it? Thank you so much!

 

CP210x UART bridge in TH1941 multimeter

$
0
0

Hello,

I'm trying to connect my digital multimeter with labview 2016, i downloaded the driver for the UART bridge in silicon labs website and all is working OK, in the MAX, VISA test panel  > Input/Output i send the IDN command and its working its sends the model and version of the multimeter.

So, i need to connect the multimeter with labview, for collect data and start working on my experiment. What i need to do for start capting data from multimeter? I need to do instrument driver? or i need to do a program in labview to read serial port?? 

The multimeter es Chinese and in labview i cant find the driver of my multimeter.

The multimeter is a TH1942 USB with cp210x USB UART bridge for pc connection.

Thank you for help!!!


How to count the no. of packets received

$
0
0

Hi,

I am interfacing a weighing scale to LabVIEW through VISA serial.

When weight is placed on the weighing scale ,it generates the string "[xxxxx]"  where 'xxxxx' is the weight in grams.

The simple serial read VI that I have attached can read & display the weight very easily.

But I also need to count the number of readings with date/time stamp for recording & report generation.

I tried event based programming without success. 

Any pointers please ?

Disconnecting Hardware between VIs in multi-VI application

$
0
0

Hello,

 

   I am currently putting together several VIs (to run as sub-VIs) to run in succession in a master VI. The first VI in this series accesses some hardware and then is supposed to disconnect once the VI has completed its run using the 'close all references' and 'close communication'. However, when the program reaches the next sub-VI in the series which requires the same hardware, the VI will not execute because it's hanging up on the hardware. I have tested that VI separately and verified that it works stand alone which leads me to the hardware conclusion.  Please advise.

 

Thanks,

 

Emma

Problem of run block labview ultrasonic for Arduino uno R3

$
0
0

I'm student in Asia.I going to make project.I can't run labview for altrasonic sensor with arduino uno r3.Why program don't run? Ask me pls!!! I'm until wisdom. tell me a code labview for run program pls.This is a my code in attached file.

 

Read bytes problem in RS232

$
0
0

Hi everybody

 

I have a device. This device has been designed to send a data stream which is 47-byte in every 100 mSec without any command.

 

When I begin to read the datas, I read 47-bytes data stream at the bytes read terminal of VISA Read function. But a few seconds or minutes later, it goes crazy. I mean it is raising up to for example 230 byte or falling to 17 byte.

 

Any idea or help please??   (By the way, I am using "Bytes at port" proporty node before read function)

 

RS-422 over NI 8431

$
0
0

Hi everybody,

 

I'm using the NI-8431 to communicate with an instrument from a PC.

The instrument uses 4 channels - 3 RS-485 half duplex at 1 Mbit/Sec and 1 RS-422 at 2 Mbit/Sec. On the RS-422's channel the PC sends 150 byte at 30 Hz and the instrument sends two messages, one of 231 bytes and the other of 150 bytes at 60 Hz (total of 120 messages/sec). I have problem to receive the incoming message whenever the outgoing message is transmitted. When I inspect it using Port Monitor application, I see that whenever an outgoing message is sent, I receive only partial (about 150 bytes) out of the 231 expected bytes. Any information/suggestion about the issue?

 

thanks in advance,

Nir Gil

 

Controlling MS40 series leak detector (by VIC)

$
0
0

Any one successfully setup communications with this device?  I seem to be able to send it commands, but I cannot decode the response it is returning to me.  It doesn't seem to be in the format they specify on the data sheet.  Plus I am getting framing errors when I try to read the data back.

MAX crashes OS when a RS-422 PCI card is installed

$
0
0

I have an RS-422 PCI card installed. It is not an NI card nor is it a third-party card intended for use by any NI software or hardware. But, when I open MAX and try to select 'Devices and Interfaces' The entire OS freezes. On XP it just sits there until you do a hard system power On/Off. On Windows 7 and Windows 10, it literally crashes the OS and causes a reboot. If I disable the card in device manager,  'Devices and Interfaces' opens fine. 

    Is there a way to tell MAX to not look for that card?


Labview and K2600 Series Driver

$
0
0

To whomever,

I am trying to write a labview script using the K2600 series driver for labview. The script is for producing an IV transfer curve (drain current vs gate voltage at a constant drain voltage) and IV output curve (drain current vs drain voltage at constant gate voltages) for an OFET. I have looked over the advance sweep example; however, I am having some issues and would like to get some clarification. Find attached my VI and a tsp that I am emulating into the script. My issue is how to incorporate the following Lua code using the driver triggers into the transfer_curve script:

 

 -- overwrite some value setup in the configSweep() function
    -- no current measurements on gate, but measure voltage for use in printData()
    gatesmu.trigger.measure.v(gatesmu.nvbuffer1)
    -- gate sources after drain sources the Vds bias
    gatesmu.trigger.source.stimulus = drainsmu.trigger.SOURCE_COMPLETE_EVENT_ID
    -- measure drain current after each gate voltage is sourced
    drainsmu.trigger.measure.stimulus = gatesmu.trigger.SOURCE_COMPLETE_EVENT_ID
    -- output on, run the sweep and then turn the output off.
    drainsmu.source.output = drainsmu.OUTPUT_ON
    gatesmu.source.output = gatesmu.OUTPUT_ON
    -- start the gate first, so that is armed and can detect drain source complete event
    gatesmu.trigger.initiate()
    drainsmu.trigger.initiate()
    waitcomplete()
    drainsmu.source.output = drainsmu.OUTPUT_OFF
    gatesmu.source.output = gatesmu.OUTPUT_OFF

and how to incorporate the following codes into the output_curves script:

 

smu.trigger.source.limiti = smu.LIMIT_AUTO
smu.trigger.source.action = smu.ENABLE
smu.trigger.endsweep.action = smu.SOURCE_IDLE
smu.trigger.endsweep.action = smu.SOURCE_HOLD
smu.trigger.source.set()

I do realize that SMU needs to refer to a specific SMU; however, in this case I am just generalizing the code.

 

I emphasize that I am not trying to upload a tsp script, but rather use all driver capabilities to do the same routine with labview. I have initiated the sweep on the gate channel; however, I do not know how to proceed afterwards. Any information would be greatly appreciated.

searching for instruments with NI MAX

$
0
0

I have 2 LAN busses on my system.  One connects to most LAN instruments on the test station while the other connects to a small local network.  I believe MAX is searching both lines and taking 5-10 minutes to complete its search.  Can I restrict MAX's search to the instrument busses of my choosing?

 

Thanks.

Ni 488.2 connection error in Windows 7 LabVIEW: Error connecting to GPIB driver or device.

$
0
0

I am using a SpinCore PulseBlaster LabVIEW Extensions

It gives me the message below,

 

Error 0 occurred at an unidentified location

Possible reason(s):

LabVIEW: Error connecting to GPIB driver or device. The NI-488.2 driver may not be installed.
=========================
NI-488: Error connecting to driver or device. The NI-488.2 driver may not be installed.
=========================
VISA: (Hex 0x0) Operation completed successfully.

 

Captured.JPG

 

In the past, maybe before some updating, it works quite well. I uninstalled and reinstalled it again both the NI 488.2.15.0 and SpinCore PulseBlaster driver, the problem is still there, it still gives the same error messages. I have checked the SpinCore PulseBlaster Card, PCI interface installed, the card install has no problem, use their original C code can generate pulse sequences. 

Can anyone help me with this issue?  Thanks a lot!

 

Dewen Duan

leer / escribir datos por solo un COM # de algun puerto serial de la PC en tiempo real

$
0
0

 

¡Hola!  para todos los que colaboran

Tengo la gran necesidad de desarrollar una aplicación a través de un VI, por el hecho de que me gusta programar en LabVIEW.   

Solo que tengo el reto de como programar lo siguiente:

Requiero de estar leyendo de manera continua sin interrupciones una señal análoga y al mismo tiempo poder escribir una string en la misma instancia del mismo puerto COM  para encender un led. "OJO" sin que se interrumpa la continuidad de lectura de mi señal análoga. 

Aun me resulta imposible por este medio llevarlo acabo.

Espero su ayuda!

write multiple data serially in arduino

$
0
0

Hi everybody,

              I made a vi to send a multiple data serially to the arduino and my task is to send the swept step frequency manually to the arduino and the code is already uploaded in the arduino just i need to send values we wanted, got through the vi and send me the feedback and when every time you enter the values in control you need to press the enter button, so that the values can write into the arduino.

Thank you

 

Viewing all 5664 articles
Browse latest View live