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

Threaded application with signal on Solaris + GPIB-ENET/100 driver version 1.4

$
0
0

Hey y'all.  I got myself into what's known here in Texas as a "sitiation".  That's a bad thing.

 

The problem is that I've inherited a rather elaborate system on Solaris 9 that makes use of three technologies

 

    libthread.so

    GPIB API ibsgnl()

    GPIB-ENET/100

 

In English, I have a threaded application (makes use of  /usr/lib/libthread.so.1) connected to a GPIB-ENET/100 box.  In the application I'm calling ibsgnl() so that when an SRQ occurs on the bus, a SIGUSR1 signal should be delivered to my application.  I am using version 1.4 of the GPIB-ENET/100 driver for Solaris 9.

 

The driver comes with a Readme file containing this statement:

 

1. MULTI-THREADED APPLICATION ISSUES
   GPIB signal (ibsgnl) functionality does not work correctly when
   linked with a thread library, for example, libthread or libpthread.
   It is the act of linking that causes the problem, whether you use
   any exports from the library or not.  Standard signal functionality
   not related to GPIB works as expected.

 

Well it appears that the statement is true.  My application makes use of libthread.  It calls ibsgnl() but it never gets the SIGUSR1.

 

Undaunted, I tried installing a later version of the GPIB driver (v2.4) but it didn't seem to work.  Verison 2.4 appears to be for PCI cards, though the page describing the version seems to say that it works with all devices, including ENET boxes.  Actually the page is a bit schizophrenic because the top part of this page

 

http://www.ni.com/download/ni-488.2-2.4/818/en/

 

says "Supported hardware" includes a whole slew of stuff including the ENET/100 hardware, but the "Description" section says that it only applies to a few GPIB cards.

 

I ran across this forum entry which says in "later versions" the GPIB ENET and PCI drivers can live together

 

http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/PCI-GPIB-with-GPIB-ENET-100/m-p/461655/highlight/true#M21417

 

however, Solaris is not mentioned there.

 

So my question is: is there any Solaris driver that supports GPIB-ENET/100 and overcomes the ibsgnl / libthread interference problem?

 


serial comunication with Fluke 743B

$
0
0

Dear all

 

i have to communcate with a Fluke 743B process calibrator. I have search on the net and there is no information about it. I would like to know the communication parameters and seriasl interfaces commands.

Does anybody have work on this device?

 

Thanks for your response. 

tektronix DPO 7000

$
0
0

Hi

I have a Tektronix DPO. I am trying to write a vi that does continous acquisttion and give me a time average of the signal after each every 10 second. And it then proceeds. Can anyone help me in that. I can acquire the signal but not able to get the time average.

Thanks

I'm getting a type mismatch

$
0
0

 

 I have an HP3330B and 3570A under GPIB control user an original program and an NI GPIB card.

This program operated properly until the cmos battery died when the computer was not used for 12 years.

The computer is up and running (Win 95) and the program ran properly one time. But I had no drive voltage because

of a missing cable, so the data was garbage. Now the program gets as far as setting the frequency of the 3330B and then

says 3570 type mismatch, the message is a little longer but I don't have my note and my memory is poor.

 

I have went through a section in the original program manual,  ( by original, I mean we had a company write software to run the machines and collect data)
"Verifying Communication"
 ibdev 0 4 0 11 0 0
Turns on the Remote lights both machines
and it presents with a ud0 : Prompt
Entering;    ibwrt "L12.3="  causes the display on the 3330B to read 12.3 Hz
entering  exit  causes the remote lights to turnoff.

So Far So Good.  The next commands test the HP3570A

Type     ibdev 0 15 0 11 0 0      (enter)
This presents the ud0 : prompt
ibwrt "%"    should TURN ON the Amplitude Offset light
It Does Not.
It returns    [8100] (err cmpl)
                  error : ENOL
                  count : 0

The next command is to TURN OFF the Amplitude Offset light
 Returns the same error.

 

 Now just like the original program, these tests worked one time out of 25 or 30 tries.

 

  Any ideas how to approach this problem?

arduino in Hybrid test system

$
0
0

Hello- 

 

How can i include arduino In a hybrid test system (PXis,PCIs,USBs,GPIBs)

 

thanks

Jis

GPIB-USB-HS for Agilent B1500A

$
0
0

Hi,

 

I am using a GPIB-USB-HS on my PC and i wan tto connect Agilent B1500A instrument with it. But when i run MAX, it says that insturmen tis not found.

 

Could you please help me out with it.

 

Thanks 

Rajesh Agarwal

NI-Scope driver C function niScope_errorHandler

$
0
0

Hi,

I have a question about  niScope_errorHandler declarated in niscope.h header

ViStatus _VI_FUNC niScope_errorHandler (ViSession vi,
                                        ViInt32 errorCode,
                                        ViChar errorSource[MAX_FUNCTION_NAME_SIZE],
                                        ViChar errorDescription[MAX_ERROR_DESCRIPTION]);

 

Parameter errorSource is a array of char (string) and it inserts to errorDescription. For simulation error of absenting device, I used one of CVI example and it returned correct description with inserted errorSource.

I created bindings for Pascal and function looks

 function niScope_errorHandler(vi:ViSession; errorCode:ViInt32; errorSource:string; errorDescription:string):ViStatus;cdecl;external External_library name 'niScope_errorHandler';

 and errorSource returned unreadeable string (should be niScope_init) and of course insert unreadable part of string to errorDescription

 

From function description I understand that one array of char (errorSource) inserted into another array of char (errorDescription) = ANSI string.

I don't understand why errorSource part is unreadable (CVi example returned readable) because errorDescription is good, after inserting it stil ANSI string.

It's looks that errorSource have different codepage, but it not make sence. :manfrustrated:

Without knowing of how function internally work, I probably can't solve it.

Simple Actuation Pulse to an analog device

$
0
0

Dear LabView Community, 

I am relatively new to LabView and I have a simple task I am tyring to accomplish. I have outlined what I have so far: 

 

TASK: To use LabView to send a 5V actuation signal (via a DAQ; NI USB-6008) to an instrument (a controller for a small pump). All I want to do is to eliminate the need for manually pressing a button ("foot pedal") on the instrument to make it run, by automating the process such that LabView is sending the start signal to the instrument as I specify in my code.

 

INFO:

At the back of the instrument, there is are two slots + and - for me to attach jumper cables to. These two slots are under the "INIT" lable which stands for initiate. When a voltage (voltage difference, to be precise) of 5 to 20 volts is supplied to these terminal, it initiates the instrument to "run a cycle" with the pump it is attached to. 

WHAT I KNOW:

I need to create a simple code wherein LabView sends a 5V signal via the DAQ (through one of the analog output channels) to the instrument when I hit the "start" button. (Being a total beginner, even this simple task seems hard!)


If anyone can provide a high level set of steps I can follow for this, I would really appreciate it. A similar example or a template would be awesome!


Problema con displayado de datos / Problem with data display

$
0
0

Hola a todos.

Quisiera consultarles sobre un par de inconvenientes que estoy teniendo con un proyecto.

El proyecto consiste básicamente en muestrear una señal (por medio de un microcontrolador con conversor A/D de 12 bits) a una velocidad de 8 KHZ, transmitir los datos através de la UART del PIC a un módulo de transmisión bluetooth, recibir los datos en una PC (estoy usando un dongle bluetooth que la PC ve como si fuera un puerto serie) y visualizar los datos en tiempo real (o lo mas cercano a ello) en una aplicación (estoy usando un waveform chart).

He logrado lo que comenté anteriormente, aunque se presentan dos cuestiones:

1) por un lado la aplicación muestra los datos con un retardo importante (unos 10 segundos), con lo cual dificulta su seguimiento (la aplicación está configurada para leer y refrescar cada 1ms, el puerto serie está configurado a 115 Kb/s).

2) por otra parte, transcurrido un determinado tiempo de funcionamiento la gráfica (waveform chart) muestra picos que llegan hasta los extremos de la gráfica, lo cuales no son reales (lo he comprobado revisando archivos de logeo que demuestran que los datos se reciben bien).

Como comentario final agrego que estoy usando una versión de prueba (30 días) de labview 2010 y mi PC no es de última generación.

Agradeciendo desde ya sus comentarios, les dejo un saludo cordial.

 

*****************************************************************************************************************************

Hello everyone.

I wouldconsult them ona couple of drawbacksthat I am havingwith a project.

Theproject consists essentially ofsampling a signal(by meansof a microcontrollerwithA / D converterof12 bits)at a rate of8 kHz,datatransmittedusingthePICUARTabluetoothtransmission module,receive the datainPC(I'musing abluetoothdongletothePClookslikea serial port)and visualize datain real time(oras closeto it)in an application(I'musing awaveform chart).

I have achievedwhat was previouslymentioned,although twoquestions arise:

1)on one hand theapplication displaysdata witha significantdelay (about 10 seconds), whichmakes it difficult tofollow(the application is configuredto readand refreshevery1ms,the serialport is setto 115Kb/s).

2)On the other hand,after a certainrunning timegraph(waveform chart) showspeaksthat reachthe endsof the graph, whichare not a true(I'vecheckedreviewingfileslogeoshowing thatthe data is receivedwell).

As a final commentI addthat Iam usinga trial version(30days)labview2010and myPCis notart.

Thankingfrom andyour comments, I leavesincerely.

 

 

 

 

 

 

Tektonix DPO continuous acquisition

$
0
0

Hi

I have a Tektronix DPO. I am trying to write a vi that does continous acquisttion and give me a time average of the signal 

I need to have a real time continuous waveform acquisition of my experiment. From time t=0 to time the whole experiment is finished (with respect to magnetic field), for a complete sweep. can you help me with a vi that enables a real time sweep (like t=0,1,2 sec etc)

The details are the magnetic field is ramped up with a step size of 0.05 Tesla in every 1sec, and the response is measured in the photodiodes as a setting for the expt. The signal of the photodiode is measured by the oscilloscope(which should change as a response to magnetic field every 1 sec ). So I need the average value(or the resultant signal averaged over the number of points) of the signal for each field value.

Hope I am clear in explaining.

 

I t will be great if anyone can help me in this,

Thanks

keithley

$
0
0

hello 

can you help me with keithley

 

 

Serial RS232 directly to a USB DAQ?

$
0
0

Hello,

I have a question regarding serial communication: is it possible to directly hook a device via RS232 serial to digital pins of a USB-6211 DAQ? (Or maybe even a USB-6008?)

If so, where should I wire the pins to?

If not, could you recommend me a not too expensive, yet functional RS232 to USB adapter which could work fine? (I am planning to interface a Datex capnometer or a Fresenius Pilot C infusion pump first, however if I could find a relatively well-priced multi-port adapter I would go on with both. BTW, can I include more NI-VISA queries in parallel in LabVIEW?) 

 

Thanks

Can an old PCI data aquisation card be operated with an adapter to PCI express

$
0
0

Are there any problems to operate an old PCI data aquisation card with an adapter to PCI express ? Where can I find more information about this topic or is just plug and play and it will work ? In the new computer we have only one PCI slot, but two PCI data aquisation cards...

 

Thanks for help.

 

Cheers, Matthias

String is Rounding off

How to read large blocks of data as quickly as possible in Labview?

$
0
0
<p>&nbsp;Hello friends,</p>
<p>I meet a problem in reading visa &nbsp;data. It's a usb-raw device, it needs a indepent thread to read the data without any delay(Thread priority Critical). I can do this in both CVI &amp;Labview. The difference is, in CVI, I can exchange the buffer data(read by Visa-read) by exchange the pointer of the buffer, this could avoid data copy. But in Labview, how can I do this to avoid data copy which would delay the Visa-read loop?</p>
<p>PS. the data block(Buffer length) is big,512KB. And the length could not be small since it would make data loss. I have tested this. The program attached could work wihout problem, but if I try to show the data, there would be a data loss. How can I get it ?</p>

Failed GPIB0 AT-GPIB/*****

$
0
0

I have a fresh reinstall of NI 488.2 While going through the Troubleshooting Wizard

I get the following;

GPIB0    AT-GPIB/*****    Failed

GPIB1    AT-GPIB/*****    Failed

GPIB2    PCI-GPIB          Passed

GPIB3   AT-GPIB/*****    Failed

GPIB4   AT-GPIB/*****    Failed

 

All of  the AT-GPIB/***** Failed, 

The Device Status is;

This Device is not present, Not working properly,

or does not have all the drivers installed. See your Hardware documentation (code 24)

 

I'm not sure if I should have this many devices, I have two instruments I'm trying to control

an HP 3570 and an HP 3330B.

 

Also, what is the difference between a PCI-GPIB and an AT-GPIB/*****?

This is an old system running on Windows 95.

VISA Reading too fast?

$
0
0

Hi everyone!

 

I am using Arduino from 2 zigbee. Ive attached my program. 

When I highlight the execution I get a correct reading which is:

31.2

30.75

30.50

 

in both node A and B.

 

But when I turn off the highlight execution I get a reading like: 

3

30

31.

 

I dont know why it is like that. Im quite new to LabView and I based my program through research.

Oh and if you have any suggestion to improve my program please feel free to tell me. Especially on the part of if it is equal to A or B, I dont know other way for it.

 

 

If possible are there function like if else statement.

 

 

Thank You!!

define default file extention

$
0
0

I have a "save as" button in my front panel and when I press this button a dialog apears which asks me a path for savaing a file into a "xls" format. In this case every time I press the "Save As" button I have to type the file extention ".xls" along with the file name.

Now how can I predefine the format ".xls" as default then when I press the "save as" button it wont be necessary to type the extention (.xls) too?

 

 

V. S

How to Plot number and string in one row (data logger counter via MODBUS) ?

$
0
0

hi all i made data log quantity using Digital Counter via modbus (RS-485) to monitoring quantity and reject that has and Name Operator, Machine and Part Number.

i have problem about plot the number & string in one row, as shown on the picture below :

:

Tabel.jpg

how to move that string on one row ? i attach my vi.

Thanks~

how to connect data dashboard labview app with phone ? i have wifi connection in my laptop.

$
0
0

how to connect data dashboard labview app with phone ? i have wifi connection in my laptop. 

Viewing all 5662 articles
Browse latest View live