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

Tektronix TDS 220 Oscope not found by MAX using USB GPIB HS


HART_LOOPBACK_ISSUE

$
0
0

I am using EVB HART MODEM QFN and facing the issue of loopback after connecting it to UART.Is there any solution to this?? 

At present I am using single modem and getting the correct wave forms for transmitter which means that there is no issue with the Transmission side but we want to do the loopback and check the receiver as we are not getting any data on receiver side.

 

Since we have not connected anything to the evaluation board and just evaluating the HART evaluation board by doing loop back only.I mean checking the communication of Evaluation board only.


Is it possible to have a loopback with the single modem or we require more than one modems for it?


Connections that we have made are :-

 


1.From PC we have connected USB to TTL converter.


2.From TTL converter we are connecting Signals like Rx,Tx,RTS,Vcc and GND(all parameters are for IDC1).


3.We shorted two pins TxA and RxA(that belongs to IDC 2,pin no 7 and 3)

 


In Terminal Emulator we have selected BAUD rate-1200,PARITY-EVEN,Handshaking-RTS on Tx.

 

Secondly for sample master implementation they have specified OPAMP U1(Page no 17 in attachment) but there is no part number for it so I need that part number.

 

Regards 

Sidharth Khera

 

VI_GPIB_REN_DEASSERT_GTL in C# .NET

$
0
0

Hi Guys,

 

Can anyone help me too understand how I would implement "VI_GPIB_REN_DEASSERT_GTL" interface command in C#? without having too wrap VISA32.DLL to extract viGpibControlREN(). 

 

 

Many thanks

Nigel

Understand ReadStatusByte return values in VBIB32, VB6

$
0
0

Hello,
When I perform the below function GetData, Call ReadStatusByte(0, GPIBAddress,
spr%)  returns many responses.  I would like to understand what these number
mean.  Can you expand on this?

The definitions of the Hierarchy is found below. The final call,
ReadStatusByte32,  is within the VBIB32 Module.

 

I get values such as 128, 4.....and am looking for a list of what these all mean.  

 

Thanks,

********************************************************************************
***
Public Function GetData(GPIBAddress, sendstring) As String
ErrorLocation = "GetData"
On Error GoTo errorhandler
    Dim ReadThis As String, spr As Integer, ReadTemp As String
    Dim ReRead As Integer
    Dim ReReadCnt As Integer
    'Dim ErrorLocation As String
    ErrorLocation = "GetData"
    ReReadCnt = 0
    ReadThis = ""
    ReadThis = Space$(200) 'space$(180)
    spr = 0
resend:
    Call Send(0, GPIBAddress, sendstring, NLend)
    Call ReadStatusByte(0, GPIBAddress, spr%) '144= ok, 208=ok,
128=trouble(empty), 148= ? , 132 = ? 20 = ok 16 = ok 4 = ?
   
    Do While (spr% <> 208 And spr% <> 144 And spr% <> 148 And spr% <> 16 And
spr% <> 20 And spr% <> 132 And ReReadCnt < 20) ' 0 ' give readstatusbyte a
chance to switch
        If ReReadCnt > 10 Then ' if readstatusbyte does not correct clear the
device and resend to retrieve data after 10 tries.
            Call DevClear(0, GPIBAddress)
            Call ibclr(GPIBAddress)
            Call ErrorLog("Error Tracker: Read Status Byte returned a " & spr%
& ". DevClr/ibclr handled the error. " & FormatDateTime(Now, vbLongDate) & " ,
" & FormatDateTime(Now, vbLongTime))
            ReReadCnt = ReReadCnt + 1
            GoTo resend
        End If
        Call ReadStatusByte(0, GPIBAddress, spr%)
        ReReadCnt = ReReadCnt + 1
    Loop
   
    Call Receive(0, GPIBAddress, ReadThis, STOPend)
   
    GetData = Trim(ReadThis)
   
Exit Function

errorhandler:
    Call ErrorLog(Err.Number & " , " & Err.Description & " , " & ErrorLocation
& " , " & FormatDateTime(Now, vbLongDate) & " , " & FormatDateTime(Now,
vbLongTime))
    Select Case Err.Number
        Case 13
            msgbox (ErrorLocation)
        Case Else
            msgbox (Err.Number & ", " & Err.Description & " , " & ErrorLocation)
    End Select
    Resume Next
 End Function
************************************************************************


*********************************************************
Sub ReadStatusByte(ByVal ud As Integer, ByVal addr As Integer, result As
Integer)
    Dim tmpresult As Long

' Check to see if GPIB Global variables are registered
    If (GPIBglobalsRegistered = 0) Then
      Call RegisterGPIBGlobals
    End If

' Call the 32-bit DLL.
    Call ReadStatusByte32(ud, addr, tmpresult)

    result = ConvertLongToInt(tmpresult)

    Call copy_ibvars
End Sub
*******************************************************
Declare Sub ReadStatusByte32 Lib "Gpib-32.dll" Alias "ReadStatusByte" (ByVal ud
As Long, ByVal addr As Long, result As Long)

Camera attributes do not show (sometimes)

$
0
0

I am aiming to configure a webcam (Trus Exis) so that the camera attributes can be configured in labview. This followed in a program (see attatched), however it sometimes does not work (camera attributes return empty and cannot be written). I am not totally sure of the problem as it appears quiet random, however after playing around a bit it appeared that it works better if I quickly stop and then start the vi again. To test this I placed the vi in a while loop and added a wait function. If this wait is 10ms the defect disappears, at 1sec it works about half the iterations, and at 10sec it occasionally works.

 

One thing I also noticed is that in IMAQdx Configure Grab VI the check if session in exists always returns true (so path isn't found) and the standard path (cam0) is sent. Now however, this is the same path that is inputted. So I suspect this might be a couse of the problem too.

 

Anyone have any ideas on how to solve this? Help is greatly appriciated.

 

step incrementation of agilent 3631a DC power supply via gpib based on a changing variable

$
0
0

I am trying to increment voltage using Agilent 3631a via gpib in labview 8.6. i can control it through the instrument assistant but that does not allow me to manipulate it through changing variables in the block diagram, when i try to use the gpib write or send function i get " Error connecting to GPIB driver or device. This is usually due to a required driver not being installed on the system." however when i try to install the driver from the ni site it says it is already installed. Also if the driver was not installed how could i control it from the instr assist? The agilent is displayed under gpib with no errors in max.  My end goal is to compare 10 logic pins to a desired arrangement and increment the power supply slowly until the logic levels match the desired states.  thank you for your time and information. 

0xBFFF0015 - Agilent N9010A - TCPIP Driver Issue

$
0
0

Im attempting to run the example VIs from the 4.13 driver version for the N9010A on my Mac. I've been able to set up the N9010A on NI-VISA as seen below. (I'm running Labview 13)

 

NI-VISA Configuration.jpg

 

I've also been able to read and write to it using nivisaic:

 

VISA Interactive Control.jpg

 


TCPIP0__192.168.1.221__5025__SOCKET.jpg

 

But as you see from above it still times out even though I recieve valid data.

 

I get the same message when im attempting to run the examples. I also attempted to add Termination Character support but it makes no difference.

 

NI I_O Trace Property Sheet_ VISA Read.jpg

 

Is there something I'm doing wrong? Or something obvious that i'm missing?

 

Thanks,

 

Jared

Ethernet to GPIB vs PXI to GPIB

$
0
0

Hi,

i am in a process of building a test system , i have a requirment to add a GPIB interface to the system.

i have nailed down to ethernet or PXI solutions for al instruments.

i find there are both ethernet and PXI option for this.

can any one please justify the advantage/disadvantage(ethernet to GPIB vs PXI to GPIB) on using one over the other.

 

Thanks in advance

Bharathi

 


VISA HEX 0x BFFF0000 Error code

$
0
0

Hai Everyone

 

I feel difficulty in fixing the particular error in serial communication explained below.

 

I am using NI PXI-6221 for Digital I/O and Analog I/O. Along with this i am using serial ports for communication with two embedded based systems.

At starting i can able to configure the serial ports and able to establish communication between PXI and the another hardware. After a certain periodof time,i am getting the error code attached below.

If i do the same process in Laptop its working fine without DAQ operations. While using the same PXI without doing any operations through DAQ, the serial communication working properly but not 100%.

If i get some support from you, I can try to solve this error.

 

Thanks and Regards,

Sakthimurugan

32 bit integers transported over gpib

$
0
0

Hello,

 

I am currently writing a controlling and data aquisition software for an Instron testing machine with a GPIB Bus with Labview. The machine isn't the youngest, so I can only use the 488 commands, not the VISA commands. My controlling software works this far, but with the data aquisition I encountered some problems for which I couldn't find a solution this far. I just taught Labview to myself two months ago, so sorry if my questions seem silly to you. I searched the forum and the internet and couldn't find an answer to them.

 

So here's my problem:

I am Reading out data from my Machine with the command "GPIB-Read", it gives out a string, so I gues it automatically assumes that the data is encoded in ASCII. The machine though uses its own coding, described in its manual! I can read the header of the measurement (it is "#I" in ASCII), after that there is a 32-Bit signed Integer representing the length of my data block. Then there is a 16-Bit Byte and after that many 32-bit signed Bytes that represent my measuring data. There are no seperation marks.

When I read it out, I just get a string of crazy ASCII code (besides the "#I" at the beginning)

 

My approach to decoding the message this far is this:

I convert the ASCII code to binary code (not with Labview yet, I couldn't find out how it works either. is there an easy way to do this?) , then I ignore the first 64 Bits (2x8Bits of the header+ 32 Bit Integer+16 Bit Integer) and then I try to split up the string in an array of 32 Byte  long strings and see if the data is right. In my measurement, i had three values which where constant, so it should just be three alternating values. I always get wrong data and I am mostly not working with Labview, but I have to later on, because I want to display the data in real time.

 

It's a lot of work and I just wanted to know, if I'm on the right track or if there is an easier solution. Later on, it shouldn't be a problem to display an integer array as a wave, right? Are there any hints or advice you can give to me?

 

Sincerely,

Simon

 

VI works only when NOT including "VISA Configure Serial Port (Instr).vi"

$
0
0

I have been integration of many devices through USB and have started communication on all of them with the VI

"VISA Configure Serial Port (Instr).vi." Then I use "VISA Open Function" .. send commands "VISA Close Function" and I'm done. I am basically copying the example VI "Simple Serial.vi." That worked until I recently included a RIGOL waveform generator. This had an IVI driver which I installed. With this device, serial communication only works if I do NOT use "VISA Configure Serial Port (Instr).vi." and just skip straight to "VISA Open Function." This is actually very nice because with all of my other devices, I had to go to the hardware manager, figure out which device was on which COM port, then go into "VISA Configure Serial Port (Instr).vi." and set all the baud rates correctly and asign each device to the appropriate COM port. With the RIGOL device there is no COM port, you just select the device by name from the pulldown menu of available resources. Also, I never set the baud rate anywhere. How does the computer know which baud rate to use? Why can't I use "VISA Configure Serial Port (Instr).vi." wth this device? How do I set up the other devices to work like this one?

PCI-GPIB for Mac firmware downgrade

$
0
0

Hi everyone.

 

My question to you is: How can I get back to my old firmware on my pci-gpib controller after updating it?

 

I just purchased a vintage, late 90's, colorgetter drum scanner that runs off the pci-gpib on a mac. It did not come with a mac so I picked one up for $60. It was loaded with os10.4. With the drivers installed it would crash on boot. The forum said to upgrade firmware. I did. Boot problem solved. However, after the fact, I learned the scanner software only ran on os9.0 and earlier. After loading os9 the software cannot see the scanner. I need to get back to the old firmware that used drivers NI-488-2 ver. 7.6.6.

 

Any help would be greatly appreciated.

Pyromether Optris CS

$
0
0

Hello, I'm beginner in LabView - I have just begun a LV course, but paralell I have to create a LV project on my studies. I got a pyrometer Optris CS LT with COM to USB converter -it works with dedicated software - works perfectly fine.
My job is to create VI, which does the same thing as Optris software - reads temperature and draws a plot of it.
Can any of you tell me how to begin ? My only success is connecting device to LV - after its update - Measurement & Automation Explorer reports that my pyrometer is ready as Infrared Sensor Adapter on COM5 port - but what next? Can you recommend me any literature or tutorials how to use this type of external data source in my project?

Best regards,

Strykul

Problem with wavelength using HR2000

$
0
0

Hello everyone,


I'm using Labview 2010 professional development system with academic lite license with HR2000 from Ocean Optics to get Spectra data.

 

 

But when I run the example from driver package, the vi displays spectra data but it cant't get wavelength data.

 

The PC is very old. The os is Windows XP SP3 in German. I only install Labview 2010, NI-VISA and other requird software.

 

I think the problem is that "Read from EEPROM.vi" didn't come out the right data. What ever the input "EEPROM Index" is, the output "ASCII Data" is "□□0.00000".

 

But I don't know how to fix it. And it seems that other users work just fine with "Read from EEPROM.vi". Could you help me with that?

IO Trace backwards compatibility

$
0
0

Hi,

I was working on an outdated system which uses an old version of NI MAX (I'm afraid I don't know what version, but we are talking Windows NT, so it's going to be pretty old).  

I ran a few captures using NI Spy and kept them to review later.  I've installed MAX and IO Trace on my PC in order to look over the captures and am having an issue; I go to open the file, and I get no data, there is no error message or anything, but the data isn't displayed.  

 

Is there a limit on how backwards compatible IO Trace is? Is there a way I can have an old version of NI Spy I can use to look at my data?  I need to see what is in the capture files and it's not a simple plain-text file.  

 

Alternatively, does anyone know an easy way of reading these file types?  I can see the data I want is ASCII mixed in with a whole bunch of other stuff.  

 

Kind regards,

Dom

 


What would I need to use if I wanted to enter a bunch of data and then push multiple serial writes to VISA in succession

$
0
0

I am building an automatic liquid handler and I would like to create a vi that can take in a series of commands and write them in succession in Visa.

Eg 

Aspirate from port 1, Inject to port 2

Aspirate from port 3, Inject to port 2, etc

 

In serial form, it would break down to

Set Valve 1, Aspirate 30 ul, Set valve to 2, Inject 30, set valve to 3, etc


I was thinking of having an array to have the user input the parameters but arrays just take in numbers. Could anyone point me in the right direction?

Thanks

 

 

Poor reflective memory read performance

$
0
0

I'm having some trouble with the GE 5565 PIORC reflective memory set of VIs for use with our reflective memory setup. I need to copy a pretty sizable chunk of memory out of reflective memory and into a DLL I've written, but the performance on the "GE 5565 PIORC:GE5565 Read (Cluster).vi" is not where I need it. I need to copy somewhere in the realm of 12k out of reflective memory at a high frequency, but the call to read those 12k takes longer than the period I need to gather the data at. I apologize in advance for the image-heavy post, but I think it's worth it to show what I've got.

 

Here's a picture of my setup to benchmark the Read call runtime: 

 

Here's a graph of runtimes of that Read call, in microseconds:

 

I need it to run in way less than 16 ms, which doesn't seem unreasonable to me for only 12k. I did fool around with the DMA version of the Read (which I don't really understand, and the documentation is nonexistent as far as I can tell). Here's my test setup:

 

And here's a chart similar to the one above:

 

Way better, though I have no idea if it even does what I think it should ;) So, I have a few questions. First, is there any way to get better performance out of that Read VI? Some other library I should be using, some setting I should be setting, some other way I should be benchmarking its performance, maybe even some way of doing this with another DLL? Second, if the Read can't achieve the performance I need, what's up with the DMA version, and how would I use it properly? Is the performance advantage that it appears to be giving real, or just an artifact of some mistaken way in which I'm using it? Thanks!

Where can I find: AT89S52 or AT89C52

$
0
0

I am looking for a simulator that has a AT89S52 or AT89C52 IC. I have tried the following:

  1. Proteus 8
  2. Multisim 13.0
  3. LogicCircuit 2.13
  4. CoolCAD CoolSpice 1.0

And none has the Atmel AT89S52 IC. I'm a student and new to simulator software. I need it for an automatic light switch with 2 sensors, for a project.

Axis como configurar RPM NI-SoftMotion

$
0
0

Hola.

 

Estoy intentando configurar un servomotor (Kollmorgen AKD) mediante el sistema NI-cRIO 9022 (utilizando Ethercat), la conexión y el control de movimiento ya lo tengo implementado pero lo que me falla es la configuración para RPM, es decir quiero poder controlar las vueltas del servomotor como lo hace el usuario en el programa: Kollmorgen WorkBench 1.6.0.26478 (lo ciento es que no intento hacer algo tan sofisticado y pese a que ya puedo hacer girar el motor no entiendo que valor debo colocar en la configuración de Axis en la sección de "Encoder" -> Counts per rev para poder asegurarme que el giro del servomotor verdaderamente esta en RPM tal como he comprobado con el programa del provedor del servomotor). Desde la interfaz gráfica de usuario estoy dejando la opción al usuario para que controle la velocidad (de acuerdo con esta idea el usuario podra modificar las revoluciones por minuto del servomotor y por ende el motor aunmentara o disminuirá sus revoluciones por minuto). De antemano muchas gracias por cualquier sugerencia.

Difference between PCI GPIB card 778-032 and 777158-04

$
0
0

Hi,

 

A supplier is proposing me a software with a PCI GPIB card 777158-04.

As I already have a PCI GPIB card (reference 778-032), I'd like to know if this one would be suitable. The supplier can't give any guarantee as he hadn't tested this card.

Would could help me finding the difference between these 2 GPIB cards?

 

Thanks,

Sylvain

Viewing all 5662 articles
Browse latest View live


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