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

Camera link serial communication programming method

$
0
0

now i useing  ni 1433 frame grabber,i  want to achieve External Trigger  control through the serial communication function realization of Cameralink , I know is achieved by Windows API, the API is provided Ni company or a camera manufacturer? Does it have header file? Are there functions and interface definitions for each function?


GPIB-ENET Autopolling

$
0
0

Autopolling on GPIB-ENET boxes does not behave the same as other interfaces. I would like to understand what is happening when autopolling is enabled and disabled. It appears that no matter how autpolling set, that it is disabled. You have to manually serial poll to unassert the SRQ line which means it must not be autopolling. Also there are not multiple response's waiting in the queue. This appears to be the same for both the GPIB-ENET and ENET/100.

USB communication with sartorius balance

$
0
0

We are trying to communicate with a Sartorius Practum 224-1s scale.  The scale only has one USB output. The laptop we are using only has USB inputs.  It appears that all of the drivers rely on serial communication.

 

Is there a set of drivers that will allow LabVIEW 2016 communicate with the Sartorius Practum 224-1s scale directly through the USB port?

 

Thank you,

jrhappe

Setup GPIB controller on a PC and GPIB listner on PXI

$
0
0

Hello everybody, I was advised to repost  my original question  from the PXI board, to the current board to get more exposure. 

So here is the question again,

 

I have a PXI system on PXIe-1078 chassis, with PXIe-8821 controller (win7, 64bit).

The NI-VISA and NI-488.2 installed. 

I have to pick up text messages, or send/receive short text files using GPIB communication.

"Text Message" represents sort of a command to do stuff with my PXI system, then return results to the host.

The communication is synchronous - meaning, the "Host" sends a text command. The listener picks up, performs the action, and return result. Meanwhile, the "Host" waits for MY application to finish the job.

 

Now, I'm trying to recreate this scenario. Set up a "GPIB listener" on PXI controller, that picks up incoming GPIB  events, handles that event, then sends data back.

For now, I'm doing the following:

Simple CVI application to trigger GPIB events on my PC, and other application that picks up these events on PXI PC(the controller).

Here are some of my code details:

GPIB "events" Sending side:

setupFunction()

{

   glGPIBdevice = ibfind ("GPIB0");

   if(0<glGPIBdevice)
  {
     ibsic (glGPIBdevice);
     ibsre (glGPIBdevice, 1);
     ibdev (0, 0, NO_SAD, T30ms, 1, 0);

     found = 1;
   } 

}

sendFunction()

{

      status = ibwrt (glGPIBdevice, "HELLO", 5);

}

 

RECEIVING SIDE (PXI)

main()

{

        glHnGPIBDevice = ibfind ("gpib1");
       ibrsc (glHnGPIBDevice, 0);
       status = ibInstallCallback (1, EVENT, ProcessGPIBEvent, 0);

}

void CVICALLBACK ProcessGPIBEvent()
{
        MessagePopup ("GPIB Event", "GPIB event recieved.");
}

 

For now, that scheme doesn't work for me. 

Any ideas what do I miss?

 

Thanks for the support Smiley Happy 

PCI-CAN HS 2Ports

$
0
0

The PC that we were using crashed. I have to build up from scratch. Need XP drivers for this card. No listing at NI support for this card.

 

Thanks in advance....

 

tom

Multiple PCI-GPIB cards - issue with addressing/handles

$
0
0

I have 3 PCI-GPIB (IEEE 488.2) cards on a machine running Windows 7 (6.1).  I see an intermittent issue (that I'm not able to consistently reproduce yet) where GPIB1 and GPIB2 appear to swap (communication with 1 goes to 2 and vice versa - it appears the serial numbers swap in NI MAX so I'm assuming calls to these two get the wrong handles to the card).  

 

I've noticed after a restart of the system, the INI file created (I'm assuming by NI software or driver) sometimes has the serial numbers for GPIB1 and GPIB2 swapped as well (although we produce our own INI before use to setup for our needs and are able to get the correct serial numbers with an ibask call from the gpib-32 library).  Our GPIB0 (which we specify as controller-in-charge via the INI) has had no problems.  Even with our INI file, the issue has been reported to happen.

 

The cards always remain in the same physical PCI slot so I'm assuming the PCI bus driver enumerates the devices consistently.  

 

My only guess as to the root cause of the problem is that we are using an older version of NI 488.2 (v 3.1.2) - however I'm unable to prove this.  Has anyone seen anything similar or have any insights/suggestions?  I'll be happy to provide more information if needed.

SMAC Actuator: PuTTY works but LabVIEW VISA Write fails

$
0
0

Hi All,

 

I am trying to control the SMAC LCA8-010 actuator with LCC-10 controller. I wrote my functions in LCC-10 as macro functions with SMAC provided "Control Centre" software, and used LabVIEW VISA Write to call them.

 

I tried PuTTY first and it runs smoothly. But when I tried to run them in LabVIEW ("Control.vi" attached), for most of the time, the motor doesn't move, and the Property Node "Byte at the Serial Port" returned a 0, which means the "Write" function does not write anything to the controller.

 

What is strange is that it succeeded for some time (~10% of test runs). So the input format is correct. I am thinking about if the difference in mechanism of PuTTY user input and LabVIEW VISA Write function could make a difference. 

 

Can anyone help me with that? Thanks a lot!

 

Copy GPIB ENET box config to another computer.

$
0
0

Is it possible to copy the GPIB Config in NIMAX from one computer to another.     All of our GPIB/ENET boxes have the same ip, and we would like to deploy our setup on at least 50 computers and it would be nice to automate the configuration of the ENET box since they are all the same ip.

 


GPIB-USB issue

$
0
0

Hello,

I am using Labview 2016 and windows 10. I have a problem using a GPIB-USB-2 adapter from ines. I have installed its driver and windows recognises it in the "device administrator".

If I try to connect to the GPIB via labview it does not work, and give an error (see screen shot attached). What should I do to let Labview see my GPIB-USB device?

 

Thanks for the help

VISA error in NI MAX

$
0
0

No devices connected, getting a visa error in MAX

0xBFFF003A (VI_ERROR_INV_SETUP)

viFindRsrc returned 0xBFFF003A (Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state).)

Please make sure VISA is properly installed on this system.

Possible causes for this error:
1. More than one Passport may be attempting to claim the same resource. You can try disabling Passports to figure out which Passport is causing the error.
2. You have connected multiple unconfigured plug-and-play devices that have the same resource name. For example, the vendor ID and serial number may be the same.

 

Any help is appreciated!

PSU40-38 control wiht pc

$
0
0

if someone has an idea how to realize the communication between the PC and gwinstek PSU40-38 via Ethernet. I would like to control the PSU using their own applications but can not find the appropriate syntax for instructions?

greeting

tds 794d driver issues

NIDmm returns -1074118639 on Init

$
0
0

Hello,

i am executing the generic IVI functions for IviDmm.

For my NI PXI 4070 i installed the NIDMM-Driver.

When executing under TestStand the Init returns 0 and all other DMM functions are working.


But when executing the testplan in a custom GUI then the Init returns -1074118639.

When asking the driver what the error means then it says "Unknown status code".

Does someone now what can be the problem here?

 

My IviSwtch instruments are working without problems direct in teststand and also under the GUI.

Thanks for all ideas.

 

BR

 

Windows 7 64bit

TestStand 2016 f1 32bit

Ni Max 16.0.0.f0

ICP 16.0.1

 

NI GPIB-USB HS - Error during scan for instruments from NI MAX

$
0
0

Hi all, im trying to comunicate with some instruments: Waveform Generetor HP 33120A and Oscilloscope TEKTRONIX TDS 694C through a National Instrument GPIB-USB HS. I have an evaluation labVIEW version and I'm waiting for the valid version. I have NI VISA 16.0 and NI 488.2 16.0 installed. My problem is that when I scan from instruments from NI MAX there appears an error:

 

" VISA: (Hex 0xBFFF0015) Timeout expired before operation completed".

 

Opening Visa test panel, in the section INPUT/OUTPUT there is no error writing a command and MAX recognize the GPIB primary address of the instruments. The problem should be while reading from instruments. It's like if it doesn't answer to the *IDN?\n command. I read about the file NiVisa tulip.dll and I enabled it. But there is always the same problem. Can you help me? Thank you and best regards.

Francesco Soriano.

RS485 Communication with multiple devices problem

$
0
0

Dear all,

 

I have been working on creating a software to communicate with multiple devices with RS485 protocol. I have created my own VIs to only use VISA Open, VISA Write, VISA Read and VISA Close and no additional driver.

 

As the devices require different configurations (Baud rate, Parity, etc.), I need to open and close the COM Port each time I want to send or read something. Everything seems to work fine but after a random time of execution (may be 5 minutes, 15 minutes, 20 minutes,...), the line seems to be busy and no device can then give a positive answer until I turn off everything and restart.

 

I am using a temperature sensor (Tecon), two pressure sensors (Keller), one MFC (Bronkhorst), one gauge (Pfeiffer) and eight RS485 Relays and I am running a loop every 2 seconds to make measurements.

 

I will try to insert an error detector in each device's VI but if someone has already experienced such an issue, I would be very glad to hear some advice !

 

Thanks in advance for your answer !

 

Bests

Mathias


Using UART TX and RX at the same time

$
0
0

Dear,

 

I am trying to read a sensor which can communicate with TX and RX. With the code I have now it is possible to read from the sensor but not transmit data to the sensor.

What am I doing wrong?

Is it possible to run more than one instance of NI IO Trace?

$
0
0

I would like to compare two logs recorded with NI IO Trace side by side, but it seems I am not able to start two independent instances of the tool. Am I missing something or is it really so that only one instance can run at a time? And why is that so?

Thanks in advance for any reply.

RS485 Timing Control

$
0
0

Hi All,

 

I have some concerns with the way of RS485 data transmitted through NI USB to RS485 cable. Following are the list of specifications for communication,

 

1. 9-bit mode of operation (1st byte of 9th bit is 1 and 2-8 byte of 9th bit is 0).

2. Baud Rate - 230400

3. Parity - None

4. Flow Control - None

5. Stop Bit - 1

6. Data Bits - 8

 

I used the parity bit Mark (1) and space (0) for the 9th bit. I used for loop with Mark for 1st byte and space for remaining bytes as shown below,

 

123.png

 

The scope waveform is as shown below ~10ms to transmit the data,

 

tek00017.png

 

I'm not sure why there's a delay between 1st byte and the other bytes? Is it because of the parity change?

I also need to send all the data within ~1ms as the waveform shown below.

 

12.png

 

Kindly comment your queries so that I can add more information.

 

Thanks in advance.

VISA Serial read issues

$
0
0

Hi,

I am using LabView to read the resistance values from an AC Resistance bridge using the VISA commands basically copied and pasted from the Basic Serial Read and Write.vi and am currently running into an error:

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

I was wondering how to fix this as well as turn the outputs of the RVAL command into a double.

Cheers

Serial Communication with arduino

$
0
0

Hi Everyone,

Software:Labview 2013

Hardware:Arduino UNO

Problem description:

 

So try to establish the connection between Arduinoboard UNO and  Labview .It seem to send me the same response everytime i send a message.

E.g if i writeor send "hello," "hi" or "gut", then the response would be "power on".

 

Does anyone here already saw this problem?

 

you can see my VI just under the text and tell, if something is wrong.

 

Thank you for your response.

 

Kinds Regard

 

Tagni

 

 

 

Viewing all 5662 articles
Browse latest View live


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