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

Issue setting up rs232 communication

$
0
0

I have been having trouble setting up rs232 communication using the port on an sbRIO9607 (the process should be the same as for a cRIO). 

 

I have a program that works fine on the computer but when i try to run it on the sbrio i am having some issues. I think the problem is with setting up the com port. When running on the computer, choices for the serial port are generated automatically as COM1 and COM2, which i can see when i go to MAX>my system>devices and interfaces. When i go to devices and interfaces for the sbRIO i see ASRL#:INSTR where the # is 1-8. 

 

From what i have seen online i need to have the visa drivers and server installed which i do. I have also read that i should be able to right click on devices and interfaces to add a new serial port. However when I try this I get the error "internal MAX Error. Could not get interface to MAX database"

new serial port error

 

Any ideas on how to create or connect to the com port? I believe when it is correctly set up it should look like the figure in this post:

 

http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/how-do-i-read-from-a-RS-232-to-cRIO/td-p/1116125;

 

Additional info: 

labview 2015 32 bit

sbRIO 9607

ni RT 15.0.1

ni RIO 16.0

ni VISA 16.0

windows 10 64 bit

Capture3.PNG


Add gpib-enet\100 with python

$
0
0

Hi, I'm trying to create a python program that gets a gpib-enet ip and adds it.

It should be similiar to the "gpib ethernet wizard".

I can't find a way to do it programmatically without actually lauching the wizard GUI.

How can I do this?

Unable to create create INF file for third party USB device

$
0
0

Hi,

I'm trying to establish usb communication to a microchip controller,which has its own drivers built on WINUSB.dll. I've tried to create an INF file on NI-VISA but I get the product discriptor error.

So I've downloaded an already created INF file for the same product and installed it. although it installes successfully MAX is unable to detect the same as a VISA device.

Kindly let me know if you could help me about this.

 

Thanks

Sunayana

Acuity Laser AR1000 Serial communication

$
0
0

Hi,

I am hoping someone has got one of these lasers and is using with Labview and would be kind enough to share their VI, I am a novice to Labview and struggling with basic communication and VISA commands  with this laser if anyone could show me how to simple turn the laser on and show a reading i would appreciate it greatly.

Attached is the manual section 5 explains basics of how to connect the laser but i have been unsucessful.

 

Cheers

Martin

Agilent 33220 Arb Waveform remote control issue- Error -220, Data out of range

$
0
0

Hello,

 

I am controlling one Agilent 33220A through one CVI application using the USB port, thanks to the API :

Ag33220_InitWithOptions, Ag33220_ArbitraryWaveformSetData,Ag33220_SystemWaitForOperationComplete...

I am performing a loop where my waveform is changing. THis waveform is sent in the volatile memory of the device.

This wavefom as 2000 points.

 

What i observe is that it works for 4 iterations, then an error -222 Data out of range happens when i try to set the waveform with 

Ag33220_ArbitraryWaveformSetData(session, WAVEFORM_SIZE, fWaveform, &iActual)

 

 

It is as if the Volatile buffer size has reach the end. But impossible to clean it or raz it in order that i can update a new waveform.

IS there any proper way to do this?

 

Thank you

Regards

 

 

LOOP 

GenerateDampedSinus ( fWaveform) ;


status = Ag33220_reset(session); //Reset the function generator
// Download data points to volatile memory
Check(session, Ag33220_ArbitraryWaveformSetData(session, WAVEFORM_SIZE, fWaveform, &iActual));
Check(session,Ag33220_SystemWaitForOperationComplete(session, 80000)); 

Check(session,Ag33220_ArbitraryWaveformCopyData(session, "VOLATILE")); // Copy arb to non-volatile memory
Check(session,Ag33220_SetAttributeViString(session, "", AG33220_ATTR_ARBITRARYWAVEFORM_USER, "VOLATILE")); 

Check(session,Ag33220_SetAttributeViInt32(session, "", AG33220_ATTR_OUTPUT_FUNCTION, AG33220_VAL_OUTPUT_FUNCTION_USER)); 
Check(session,Ag33220_SetAttributeViReal64(session, "", AG33220_ATTR_OUTPUT_FREQUENCY,PATTERN_FREQUENCY_HZ)); 
Check(session,Ag33220_SetAttributeViReal64(session, "", AG33220_ATTR_OUTPUT_VOLTAGE_AMPLITUDE,Signal_type.Amplitude_v)); 
Check(session,Ag33220_SetAttributeViReal64(session, "",AG33220_ATTR_OUTPUT_VOLTAGE_OFFSET,Signal_type.DcOffset));

Check(session,Ag33220_SetAttributeViBoolean (session, "", AG33220_ATTR_BURST_STATE, VI_TRUE)); // Turn sweep on
Check(session,Ag33220_ConfigureTriggerSource (session, "",AG33220_VAL_EXTERNAL));
// Check(session,Ag33220_SetAttributeViBoolean (session, "",AG33220_ATTR_OUTPUTTRIGGER_STATE,VI_TRUE));
// Check(session,Ag33220_SetAttributeViBoolean (session, "",AG33220_ATTR_OUTPUTTRIGGER_SLOPE/*AG33220_ATTR_OUTPUTTRIGGER_STATE*/ ,VI_TRUE));
Check(session,Ag33220_SetAttributeViInt32 (session, "", AG33220_ATTR_OUTPUTTRIGGER_SLOPE ,AG33220_VAL_TRIGGER_SLOPE_NEGATIVE));

Check(session,Ag33220_StateStorageSave(session, 1)); // Store state in memory location 4
Check(session,Ag33220_StateStorageRecall(session, 1));

Check(session,Ag33220_SetAttributeViBoolean(session, "", AG33220_ATTR_OUTPUT_STATE, VI_TRUE)); // Enable output, s
Check(session, Ag33220_StateStorageDelete ( session, 1));

 

END LOOP

Is big and small endian still around?

$
0
0

Hi fellow members;

 

Linking with the modern days gpib-32 or the ni488 library/obj, do ones still need to be concerned with the small and big endian conversion in board level or device level calls or they are obsoleted with platform independence implementation nowadays?

thanks

Driver for Cole-Parmer Pump 775211-70

$
0
0

Hello all, 

 

We are looking to control a Cole-Parmer Digital Gear Pump Drive (Model #: 75211-70) for an automation project. The pump will be controlled with LabView (Version 15.0.1)  to turn it off or on.  We have an RS232 cable for the connection but do not have the driver for it. There does not seem to be a third party driver offered for it on the NI website so I was wondering if anyone has created one. Or if not, what are possible resources to create one for ourselves. Thank you for your help!

RAW shows up but not INSTR

$
0
0

Hi all,

 

I'm using LabVIEW 2015 on a Windows 10 machine. Previously had a program working just fine, it would connect to the NI-VISA USB Instrument and display a continuous graph, but when I came in today the INSTR option was gone, and only the RAW option remained (which doesn't work for this program, unfortunately). Any suggestions for what to try to fix this? I've already tried the absolute basics (turning it off and on again, unplugging it and plugging it back in, reinstalling the driver, etc) but am lost as to where to go from here.


NI-Serial 15.0 Installation Induced Havoc

$
0
0

Attempting to use the NI-USB USB-to-RS232 adapter, I downloaded NI-Serial 15.0 and installed the software suite. Upon restarting, I received a Windows Genuine Advantage error stating my copy of Windows is not genuine (it is), my touchpad driver was damaged - I'm limited to basic functionality and the driver icon doesn't display in the system tray, as well as my Intel wireless drivers, and finally Skype for Business errors upon launching.

IMAQdx Internal Error

$
0
0

Hello!

 

I'm quite new at this, and not very familiar with this software, so pardon my ignorance if I'm asking a silly question. I'm using the Measurement and Automation Explorer (NI-MAX) software to communicate with a ccd camera (Basler avA2300) and until recently, could communicate with the camera fine. However, upon trying to Snap or Grab, I abruptly began to receive an error message from IMAQdx (version 14.5.0) with code 0xBFF69001 "Internal Error", and probing the forum hasn't pulled up a solution.

 

I can still see the camera in the configuration tree under "NI-IMAQdx Devices" when I connect it, but I can't record anything.

 

So far I've tried rebooting everything, changing cables, deleting the .xml, .icd, and .iid files, and none of this has helped. Same error.

 

Anyone experience this before? Any help would be much appreciated!!

Read data from 2 serial port and forwarding to single port

$
0
0

Hi,

 

I am trying to write a vi which can read serial data from 2 com ports and write to the single port one by one.

For example:  Read VISA 1 o/p--- > 1 string 

                       Read VISA 2 o/p--- > 1 string

 

How can i write the 2 strings of serial data one by one @ single port with the help of Write VISA?

 

Thanks

 

 

How can I control a Lecroy WaveRunner 6100A?

$
0
0

Hi,

I have a Lecroy WaveRunner 6100A (the OS is Windows XP) and I'm struggling to connect it to my computer in order to acquire data with Labview 10. I have no GPIB on my computer; I downloaded the drivers from NI website but I'm quite inexperienced and I'm not sure about the steps to connect and configure it via ethernet (especially, how to configure the ethernet connection on Windows XP).

Otherwise, is it possibile to connect it with USB?

Thank you,

Elena

Framing Error with PCI-8433 and MAX at 921600 baud

$
0
0

We can successfully communicate with an instrument using the PCI-8433 interface card with the Microsoft VB.NET COM control. But we get a framing error if we try to read more than 44 bytes with MAX at 921600 baud. We get the same error using the Measurement Studio VISA interface in VB.NET (NationalInstruments.VisaNS.SerialSession).

 

At 115200 baud, MAX lets us read any length with that card. But at 921600 baud, MAX only lets us read up to 44 bytes (45 including the termination character). Note that the failed SCPI command requests 45 bytes but we read 46 to get the termination character.

 

We can read any amount with the VB.NET COM control. Both MAX and VB.NET COM are set to 921600 baud, 8 data bits, 2 stop bits and no parity. See the images below for the MAX error and settings.

 

VB.NET COM lets us reliably read any length at any rate up to 1843200 baud.

 

PCI-8433 Framing Error.png

Getting the data from HMR3500 Magnetic Compass Module

$
0
0

the hmr-3500 is placed b/w six BLDC(brush less dc motors).when the motors are off it gives us the value of 200(azimuth) and when in on state the value shifts at 220.and when again it is off it gives us new value.kindly tell us the solution of it.

regards usman 

HMR3500 Magnetic Compass Module

$
0
0

1-another problem that i am facing is i am unable to compensate/isolate/deviate the HMR-3500.

2-when the value of azimuth is between 270 and 290 it gives us two values either 270 or 25.
kindly guide me through it.

 

regards

USMAN


spectrum one CCD3000 needs some kind of post processing?

$
0
0

hello,

i used the labview drivers set to adquire a spectrum from a CCD 3000, no matter monocromator position or slit aperture i always get some kind of this. my question is, this signal requires corrections such as dark current, QE, etc or the CCD gives the signal  corrected.

other ideas?

 

thanks

 

Problem with USB-3488A

$
0
0

I have a probleme with USB-3488a and labview.

with the adlink driver the usb-3488a work bu i not see in n-max, i have a lastest version of labview and Ni-max

Is it anybody have the same problem ?

XY-Stage control and xy-coordinates

$
0
0

Hi everyone,

I'm using a 2-axis linear stage from Zaber technologies, and I want to be able to input xy-coordinates to dictate where the stage moves. The problem that I'm noticing is that the stage doesn't wait until it has reached one set of xy-coordinates until it starts moving towards the next one. Can anyone give me some tips on how to improve the timing?

Image of the block diagram here: http://imgur.com/a/9lcwY

Thanks for your help!

problem whit initializing and updating the PCI-7354

$
0
0

hi

I have a pci 7354 motion controller, connected to tribometer nanovea, when i wanted to initialize it and update it, i have had errors i can't solve them.

here is some pictures to help you understand my problem.

thanks. 

Love controls 16b communicate with labview 2012

$
0
0

Hi,

 

I need to investigate the way to communicate temperature controller 16b (Modbus) with Labview. I have looked at many topic in forum and found out the Modbus library (http://www.ni.com/example/29756/en/) but it has many thing in here so i do not know what specific example i need to look at. My task is very simple: Use labview to change the set value of the temperature controller.

I am pretty new with Labview so if someone knows the answer, please give me detail instruction. It would be good if you can send me an example Vi. 

 

Thanks,

Viewing all 5663 articles
Browse latest View live