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

agilent 856x series

$
0
0

Hi All,

I am new to this group. I am using labview to trace the data from 8563EC signal measurement. I am using Query TraceArray.vi to trace the data from the instrument. But it seems like it is tracing the data with respect to 600 data points as shown below. But in the instrument, the graph is always amplitude versus frequency instead of amplitude vs data point. Here as shown in below screenshot, I am getting the amplitude with respect to data points upto 600. But I need to collect the frequency value too from the instrument. It seems, when the program trace the data it only trace amplitude. I want to know if their is any way to get the corresponding frequency value too?

Please help me out ASAP!!

 

8563ec.png

 

 


visa write unsuccessfully

$
0
0

Hi there, 

 

Currently i integrate the ft232r usb uart ic chip with labview platform.

 

I am conducting a basic test to check if the chip can communicate well with labview.

 

The chip is set to send a feedback signal once it successfully recieve the command. eg. I sent "ST0201;" to the chip then get a feedback signal "535430323031"

 

I test it succefully on a third party serial communication software (attached the capture pic below), but it seems doent' work on labview.

 

But when it is connected with labview " continuous write and read.vi", my command seems cannot sent succeffully to the icchip.but the signals in the  first row "nRF24L01 USB Dongle" means labview can recieve initial data from chip. So i can conclud that my chip actullay connect ok with labview

 

I check for a long time then found that my chip is only supportable for byte command.

 

Is it the problem that the command type sent from labview is string so that my chip cannot recognize that ?

 

Or is it any other problem?

 

Thanks

 

Regards,

Newbie from singapore

 

 

sbrio9636 VISA Error -1073807202

$
0
0

Hello

 

I have a sbRIO9636 and the test instruments. I just want to connect sbRIO and Test instruments(with RS232).

 

I am trying to connect RS232 (9 pin) via serial ports..I also have Measurement & Automation Explorer (ver 5.1) to monitor and configure Serial/parallel connections.

 

The problem is that when I query, it looks like my device is not properly recognized. I only get time-out errors.  VISA Error -1073807202. But when I connect the Test instruments directly to PC, NI Max shows COM 1 and can get the data from the test instrumnets. That means, I can get the data from PC , but I can't do the same with sbRIO9636.

 

How can I ensure that my device is properly recognized? Is my COM1 port activated at all? I can't see COM Port in NI Max for sbRIO9636.

 

thank you!

How send numerical values through VISA Serial Write... because VISA Serial Write only sends strings???

$
0
0

Hi folks,

 

I want to send "numerical values" (0 - 255) through the VISA Write (Serial) the problem is that this VI only lend me to send "strings"... and I need to send numbers. Check below please!

 

!:D.png

 

Thank You!

Measurement and Automation Explorer gets different Visa resource names for serial ports each time I run it.

$
0
0

Hi I am trying to run some old software on an XP machine.

 

The Measurement and Automation Explorer gets  different Visa resource names every time I run it

eg it starts off with ASRL15:INSTR, ASRL16:INSTR and the next time I run it it says ASRL21:INSTR and ASRL23:INSTR (not sure of the exact nubmers)  and the numbers keep getting bigger.

 

Any clues?

 

Thanks

Paul

PX statistics example displaying 0

$
0
0

Dear NI community,

 

I was trying to connect remotely to LeCroy WaveRunner 104MXi-A oscilloscope in order to get statistics (sdev etc.).

I run the examples for Lecroy (Acquire and Read MyMeasurements.vi) and it is working only when I choose PX(it displays the correct value), but not when I choose PX Statistics. In this case, it displays 0 at the Values and MEASUREMENTS ARE TURNED OFF at the labview StatusDescription.

I did some debugging and I receive the string HEP at some point, which redirects it to the "Measurements are turned off".

 

Please, any help is very welcome.

 

Regards,

 

How to assign step numbers in Watlow Profile?

$
0
0

Hi,

 

I need to write watlow profile using LabVIEW. I need to create profile, Wirte steps, load profile, Run profile etc. with LabVIEW.

I did most coding and have few questions about adding new steps in Profile.

1. Now Suppose if I created Profile1 which consists of 6 steps and numbered as 1, 2, 3, 4, 5 & 6.

If I want to create New profile should I start step numbering from 1 or 7?

 

2. If I delete profile how step numbers will be affected? Profile Created will get least available numbers (1 to 40) but step number we need to assign.

How to keep track of step number count? Can we read it from controller?

 

Please let me know if have any answers. Refer Watlow manual for reference.

 

Thanks

VISA 1073676294 , aber no data come

$
0
0

 

Hello !

 

I have a sbRIO9636 and the test instruments. I just want to connect sbRIO and Test instruments(with RS232).

 

I am trying to connect RS232 (9 pin) via serial ports..I also have Measurement & Automation Explorer (ver 5.1) to monitor and configure Serial/parallel connections.

 

The problem is that when I query, it looks like my device is properly recognized and no Error, but no data from test instruments come.

But when I connect the Test instruments directly to PC, NI Max shows COM 1 and can get the data from the test instrumnets.(shows like in pic)

 

Can you help me ? I don't know realy what to do?

 

Thank you!!!

 

 

 

 

Aufzeichnen.PNGAufzeichnen2.PNG


communication with a USB RAW Device

$
0
0

Hi everyone, I am new with programming VISA.  As part of my first few tasks, I am learning to establish a USB communication with instruments. From the little research I have done so far, I found that there are two classes of USB devices, the USB INSTR and USB RAW. I have no problem communicating with the USB INSTR device I have got. However, I have not been able to establish a successful communication with my USB RAW device. My first attempt to communicate with this device after installing the driver was by means of the NI MAX. ON querying the device to get its identity, the NI MAX returned an error that reads “VISA: (Hex 0xBFFF0015) Timeout expired before operation completed”.

Can anyone please advise me on what to do to clear this read problem? I have attached a snap shot of the NI MAX window showing the error message.

Use NI-8452 be a Slave device in SMBUS , NI-8452 will be interrupted in Communication.

$
0
0

Use NI-8452 be a Slave device in SMBUS , 8452 will be interrupted in communcation.

 

Ni 8452 is to simulate a slave device like as Battery, and Master (like Charge) always ask slave device(8452) status(charge voltage,Temp)

 

Like below the vi Structure, when 8452 detects command from Master device, i will send the Low Byte and High Byte back to Master.

 

while i start this vi, NI 8452 will work to wait command and the LED of NI8452 will always blink.

in this time, let the Master to trun On and the Master Device will poll to ask slave continuously,and 8452 will response specific date back to Master continuously.

but in some time, NI 8452 will be interupted himself no any reason.

and i use a machine to measure the clock and data line, i found the Date line be High and NI 8452 is interrupted and stop blinking.

 

If you have Similar experiences, let me know,  i don't want to stop the communication and i want to know why the LED stop blinking.

 

labview code for multiple source meters

$
0
0

Hi all,

 

I have developed a code to interface a keithley 24xx instrument but now i have a doubt that if i want to interface some 10 instrumets at a time so how can i write the logic for that.

please suggest me its an urgent requirement. multiple instrumrnts in the sence like 24xx,26xx like that.

How To Setup viOpen Sessions Limit

$
0
0

I want to alloc some buffer to buffering DMA data from PCIe FPGA, my idea is create 512KB * 2048 buffer about 1GB, and i want to use the buffer by virtual address(VI_ATTR_WIN_ACCESS = VI_DEREF_ADDR), it looks like the max times of viOpen is 500, i tried use many Resource Manager. can I break the limit ? Or some kind of other method ? here is my code. thx.

 

int main(int argc, char **argv) {
	const UINT size = 0x80000;
	ViSession          rsrcManager;
	ViSession          vi;
	ViBusAddress       viBusAdr;
	ViAddr             viAddr;
	ViUInt32           viUint32;
	ViPUInt32		   viPUint32;
	list<ViBusAddress> viBusAdrs;
	ViUInt16           viUint16;
	int                nBlockIndex;
	int                nRsrcMgrIndex;

	list<ViBusAddress>::const_iterator iter;
	EmptyAllSet();
	viOpenDefaultRM(&rsrcManager);

	nRsrcMgrIndex = 0;
	while (1) {
		viOpenDefaultRM(&rsrcManager);
		for (nBlockIndex = 0; nBlockIndex < 100; nBlockIndex++) {
			if (viOpen(rsrcManager, "PXI::MEMACC", VI_NULL, VI_NULL, &vi) < VI_SUCCESS) {
				printf("Open Error %d %d\n", nRsrcMgrIndex, nBlockIndex);
				goto print_result;
			}
			if (viMemAlloc(vi, size, &viBusAdr) < VI_SUCCESS) {
				break;
			} else {
				if (viMapAddressEx(vi, VI_PXI_ALLOC_SPACE, viBusAdr, size, VI_FALSE, VI_NULL, &viAddr) < VI_SUCCESS) {
					printf("Map Error\n");
				}
				if (viGetAttribute(vi, VI_ATTR_WIN_ACCESS, &viUint16) < VI_SUCCESS) {
					printf("Get Attribute Error\n");
				}
				if (viUint16 != 3) {
					printf("Map Result Error\n");
				}
				viBusAdrs.push_back(viBusAdr);
			}
		}
		nRsrcMgrIndex++;
	}
print_result:
 	printf("%dK * %d = %dM\n", size / 1024, viBusAdrs.size(), size * viBusAdrs.size() / 1024 / 1024);
 	getch();
	return 0;
}

 

controling a DC power supplies (hp 66000 Mps mainfram)

$
0
0

controling a DC power supplies (hp 66000A Mps mainfram) via labview by using GPIB- USB. so I will do project to control 8 power supplies by using Labview programme:

1-how to connect power supplies with PC by GPIB - USB?

2- how to start in Labview programme?

3- please give me some advices you see that is important for my project?

 

 

 

thank you.

GPIB-USB-HS Fail

$
0
0

I have a  GPIB-USB-HS S/N 18526B6 but I can't use I plug  to my PC and just turn on  green led after that turn on amber led after that both leds turn off and the NI Max can't find it something can help me?

manage requests between acquisition and control program using agilent 34970A

$
0
0

Hello
I realized a program for data acquisition with labview and agilent 34970, acquisition in real time works very well with a time you sampling from a second ... there is no problem
to complete the program and control the valves installed in a photovoltaic pumping system
jai realized a second program for the controlit is well functional
but the problem is when I merge the two program in real time
This error is present during the execution of two program at the same time, that is to say they are launching two request in the same time to the instrument 34970A
(the agilent 34970A labview poster hangs)
-------------------------------------------------- --------------------------------------
what I want is to find a little programming trick to manage two outgoing REQUESTS at the same time in LabVIEW to the instrument, and create a sort of delay between two REQUESTS

Sorry for the bad English
thank you


VISA write buffer

$
0
0

How do figure out what hex values to write in the write buffer?

How can I communicate with RS232 on RTtarget

$
0
0

Hello,

 

Unfortunately I am not very experienced using Labview and need your help.

 

I am trying to commuicate with an massflowcontroler (MFC) with cRIO9074 respectively cRIO9870.

 

It is working well using VISA, but only if my VI is running on hostPC. Now I tried to copy this into my RTtargetVI and couldn´t find the COM Port using "VISA configure serial port".

 

Do I need to install driver, so it is working on real-time target?

 

 

Why does UDP Write Pass 3's as Hexidecimal Placeholders?

$
0
0

HI everyone.  I'm having trouble making two machines communicate via UDP protocol.  I have one computer (Host) which is attempting to pass a specific message to another computer (Receiver)  via UDP communication.  I have the right ports open and Wireshark shows that the communications are passing, but the values that I'm trying to communicate are not.  Both Wireshark and the MB computer show that the values are being written differently than the initial string.  

 

For example, when I try to write a value to the a value of 0065, Wireshark and Receiver both show that a value of 3635 is being written.  I've been struggling with this error for a while, trying to unflatten, reflatten, and convert strings with no avail.  Does anyone know how to fix this to only pass the specified hex values?

n6700 query max current is timing out

$
0
0

I have the N6700 chassis and have installed the IVI driver for it.  I have two different modules in the chassis.  Both exhibit the same issue.  I initialize them, which works fine.  I disable the outputs, and then query the max voltage level.  All this works and retunrs good data.  Then I try tyo query the max current.  I have tried with both the IVI function as well as the driver specific function.  Both timeout.  I have tried passing 0V, 20V, and the output from the max voltage back into its voltage input.  It doesn't like the 0V, the other two options just timeout.  I use this same routine to querya couple E363x supplies and it works fine on them.  Any thoughts on why this specific VI isn't working?

How to use "GPIB-USB-HS" on MacBook Pro

$
0
0

Hi, all:

I have a "GPIB-USB-HS" and I have install "NI-VISA-5.4.1" on my MacBook Pro.

How can I connect to a device which has connect to my "GPIB-USB-HS"?

 

Viewing all 5674 articles
Browse latest View live


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