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

sbrio-9627 serial rs485 write speed is slower than sbrio-9626

$
0
0

Since sbrio-9626 is obsolete so i am migrated the code to sbrio-9627. 

After migrating the code from i found out some issues with serial write. Serial write is not working as expected its not throwing error but i couldn't get the right data from the serial port. after several trouble shooting i found serial write speed in sbrio 9627 is much slower than its predecessor sbrio 9626. Increasing the baud-rate is fixing the issue but in my case 38400 was as default. i have attached the test vi which i used it for testing on both 9627 and 9626. The below screenshot shows the write performance. For the same string length 9626 can write at 22Hz while 9627 writes at 18Hz. I knew both are running different OS but i don't think its because of that. Is there any minor tweak to increase the performance of sbRIO 9627.

 

sbRIO-9627 Test.pngsbRIO-9626 Test.png

 

Thanks in advance Smiley Happy

 

Regards,

Sam


NI Max PCI-GPIB Name Not recognized, I have to use VISA Resource Name instead.

$
0
0

Upgraded to LabVIEW 2015 from 2013.

Have been using Name in NIMax to name my instruments rather than used the VISA Resource Name.

ie. counter instead of GPIB0::3::INSTR

This has been working fine until I upgraded.

I still see the name in NIMAX as 53132A"Counter" with VISA Resource Name as GPIB0::3::INSTR

If I search or refresh for the Name 'counter' in LabVIEW it does not appear. However, I do see GPIB0::3::INSTR in the drop down.

There are about 60 vi's in my code I will have to change to read the VISA Resource Name instead of using Counter. This is not the only instrument this is happening with. Any ideas?

"Error -363011 occurred at myRIO v1.0 Write I2C.vi"

NI VISA

$
0
0

Hello. I hope this is the correct board.

I've this problem. I bought a Siglent SPD3303C (rebranded RS-components).

It is not recognised as IVI USB TEST and Measurement Device with Labview 2016 and NI-VISA 16.0 or later.

It works with LV2012 and NI-VISA 5.4.

The NI-VISA driver wizard returns this error.

I'd really appreciate every suggestion.

 

 

Novice Programmer With Functional Code. Looking For Feedback on Organization/Improvements

$
0
0

Hi everyone. I'm a Test Engineer for a small company and have no coding experience prior to a few months of what I taught myself in a physics lab. I have no background with any coding software besides LabVIEW and am seeking feedback on my code and what looks good as well as what could also use some improvements. I hope to use 'PM100D Measure Power.vi' in the near future and it is working, but I would like to take the time to review my first project so I can limit my mistakes next time I build a project like this.

 

Currently, the file is in PM100D.llb because the driver would not function for me outside of the library of drivers. I modified the 'Measure Power' VI which is what I will be using to do measurements. Essentially, I can control a DC power supply while simultaneously using an optical power meter. I can save data and also have over voltage protection incorporated. 

 

I would like to be able to control more than 1 channel of the power supply at a time, but feedback is the main goal of this post. If you see a way in which I can improve my VI please let me know. Thank you in advance for those who respond!

 

P.S. I added a simpler version of the optical power meter that is able to function outside of the llb file and it is the same exact thing as the 'PM100D Measure Power.vi', however, no power supply is integrated in the while loop so it executes MUCH faster.

Driver for GPIB-USB-HS

$
0
0

Trying to use my 34970A data logger over GPIB, appears drive for USB GPIB cable is missing again.  I am trying to frind driver on NI, I only see windows downrev (really downrev).  Is there a current driver (for windows 10)?  I dont see it in search  list.  

NI USB-232- not able detect

$
0
0

Hi,

 

I am using NI USB-232 (188345C-02) is not able to detect in NI MAX and even in device manager.

Do I need to install any driver to use it?

Thanks

Best regards

 

Communication with Smart Tweezer LCR Tester 1707

$
0
0

Hello, this is my first attempt at posting a thread so i just hope this is the correct board.

I have a project where i need to measure the inductance of an inductor with this instrument from RS PRO, and i'm just asking how could i transfer the data i read from it to process it in Labview. Do exist drivers or som procedure to achieve it?

thanks


Is there any way of USB communication calling DLL directly.

$
0
0

Hello everyone.

 

I'm software engineer and try to write a program to control power supply unit Keysight E36106A supporting USBTMC communication.
That unit have no GPIB terminal.

Is there any way USB communication like GPIB communication calling API from DLL(gpib-32.dll).
Namely, not to use NI-Visa class, and the way of calling directly API function from DLL to control power supply.

I installed NI-Visa 17.5.

 

Thank you for your cooperation.
Mizuta

Using NI OPC server with other hardware

$
0
0

HI,

     I am using an AIS Mitsubishi plc for a project that I am doing at the moment. As this is an old plc can i connect to labview with this plc by using opc server.

 

Thank you.

GPIB hangs for a couple seconds then resumes

$
0
0

I have an issue on one of my test sets where the GPIB is hanging for a few seconds and then resumes.  This happens intermittently and only on one of my 7 test sets (all of them identical).  I have 6 instruments connected with GPIB and all of the instruments hang during this time.  I'm running WinXP Pro and LabVIEW 8.6.1 (I know, it's a little out dated).  NI_VISA version is 4.4.  I've been using this test set for years and now all of the sudden, I'm getting this issue.  I've swapped PC, did not fix it.  I've swapped several instruments thinking it could have been one of them, but that did not fix it either.  I've run NI Spy and it confirms that there are no GPIB calls made during this freezing issue.  I'm at a lose, any suggestions?

Sending data from myrio to arduino UNO

$
0
0

Hi everyone!

 

I'm trying to send data via Serial communication to my arduino Uno. The labview code is in the attached image.The arduino code is the following:

 

void setup(){
Serial.begin(9600);
}

void loop(){

data=Serial.Read();
if(data==1) digitalWrite(12,HIGH);

}

Myrio and arduino uno GND are connected together.TX myrio pin is connected to RX arduino Uno pin and the RX myrio pin to TX arduino Uno pin.

 

Now my problem is that i send a string from myrio(i send character "1") and not a number, how arduino Uno code expects.

From ASCII table the character "1" is 49 in decimal.So in the arduino code should I put the number 49?

 

The labview code is right?

 

Thanks to everyone!

Sending data from arduino uno to labview

$
0
0

Hello, i have a GY 85 sensor that includes a gyro, accelerometer and compass, i am reading the data on arduino and i want to send it on labview. I am using the vi attached below, i feel like i did something wrong and i dont want to store the data in a file, i want to use the values in the same vi (real time).

i would really appreciate an answer!!!

P.S: should i send the data to labview or Myrio?

NI-VISA (USB Zebra Printer) installation is not in Windows 10?

$
0
0

I have been using NI-VISA for Packing Application (OS- Windows 7 -32 & 64) for last many years. Basically, it is used to send "Printing commands" to Zebra Printer via "Ni-VISA USB Address".

 

But in Windows 10 (32 & 64), we are unable to install same USB Printer by "NI-VISA Driver Wizard".

We tried some alternative way to install it but it is not getting detected in NI Interactive control. (as per attached link)

Message: Insufficient Location.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019KvOSAU

 

Note:

Software: LabVIEW 17

NI Visa: 17

TMO from ag3352x_init (see my IO Trace log) Help

$
0
0

33520B.png

 

Both from ag3352x_init and ag3352x_InitWithOptions. Any clues ???


Sample VIs for controlling power supply etc.

$
0
0

 

Hi everyone,
I have a question that I am hoping this forum can help me with.
I am very new to LabVIEW and have been asked to write a labview program for a lab test. I have been asked to measure and record the output of a certain DC-DC converter for a range of input voltages.

I have a Keysight N5752A DC power supply that I will be using to supply the input voltages. I am not sure of what instrument I will be using to measure and record the output voltages yet, most likely it will be a Tektronix oscilloscope.

I was able to discover the N5752A using NI MAX and was able to communicate with it over ethernet using SCPI commands. I've attached the VI I used for that purpose.

Does any one here have sample VIs that I can repurpose? Ideally I would want to be able to specify the output voltages of the DC power supply from Labview and then record the output voltages.

Thanks,
RJ

I need to find a commercial board to load digital data from protective relays.

$
0
0

I need to learn how to load digital data into a computer.  Is there a board for loading such data that is commercially made?  I presume so.  Can anyone give me some ideas of the what this equipment is called?  Who makes such boards?  What I want to do is put 5 Volts on one trip contact of a relay, and then wait for the protective relay to close the two trip contacts indicating it has tripped and needs to trip a circuit breaker.  At that point, the computer needs to send a trip signal over a network.  I am still wondering how I can find an interface between the relay signal ( a five Volt TTL output) and the computer.  I presume I'll have eight such inputs at each location from eight separate relays, so there will be two, four bit words to read in.  The computer will broadcast both the location and the bit sequence it has read.  That will be looked up remotely based on the location, and the appropriate circuit breaker will be tripped.  Also, I need to output a trip signal.  That signal can be fairly low level, if I feed it through a power transistor.  Again.  I'd like to keep this all commercially available, so who makes the output boards?  It needs to have enough outputs to go to a variety of circuit breakers from the computer.  

N1470A high voltage power supply: Serial communications through USB VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.

$
0
0

I have a Caen N1470A high voltage power supply.

I get a Visa time out when i send *IDN? or a Read command.
Writing to it seems not to be a problem.
I use the  National Instruments Measurement & Automation Explorer (NI-MAX).
My NI-MAX settings are as follows:

Port settings (Hardware):
Baud rate: 9600
Data bits: 8
Parity: None
Stop bits: 1
Flow control: XON/XOFF


Serial Settings:
Baud rate: 9600
Data bits: 8
Parity: None
Stop bits: 1

Flow control settings:
XON/XOFF
Software control:
Xon Char x11
Xoff Char x13
Output State:
Ready To Send (RTS): asserted
Data Terminal Ready (DTR): asserted

I/O settings:
Timeout: 2000 ms
I/O Protocol: Normal
Termination Methods:
Supress End on reads: unchecked/unselected
Send end on Writes: checked/selected
Enable termination character: unchecked/unselected
End mode for reads: Termchar
End mode for writes: none
Termination Character: Line feed \n, value: xA
Error replacement character: x0

 

The above settings are shown also in the uploaded photos.

I have also uploaded the manual of the source.

 

Any ideas??

Thank you very much for your help and time!!

TDS 420 A

$
0
0

Hi all,

 

I am new to Labview.  I want to connect  tektronix TDS 420A to a computer and want to get information from both channels (CH 1 AND CH 2) as an excel file.  I have GPIB USB-HS.  Can anyone tell me a good starting point? I have downloaded tktds4xx driver from national instruments.  I have it on the computer which is connected to TDS 420A via GPIB USB HS.  I also have Labview installed on the computer which is connected to scope.

Ethercat from ordinary Ethernet port?

$
0
0

Our small company is, for the first time, acquiring  EtherCAT driven hardware to go in our product.  As I start reading messages on these boards, it seems that people are using special controllers as the EtherCAT master. Oh really? So my question is, is it possible to drive EtherCAT from an ordinary ethernet port, such as one might find in a laptop, provided that port is dedicated to this and no other use? Is it feasible to drive EtherCAT from a laptop at all? Or do we need special hardware on the computer end?

 

Viewing all 5665 articles
Browse latest View live


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