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

Communication with LPM01A power consumption measurement board

$
0
0

Hello,

 

ST offers a power consumption measurement board which can measure very small current: 1nA .. 200mA

X-NUCLEO-LPM01A:  https://www.st.com/en/evaluation-tools/x-nucleo-lpm01a.html

 

My Question: Is there a LabView driver for this board? Has anybody implemented the communication in LabView or heard about?

(It needs communication over USB VCP (Virtual COM Port) with 3,6MBit/s.

 

It can be used stand-alone but can also be used as an instrument, controlled by commads.

 

Document about communication with the board:
https://www.st.com/resource/en/user_manual/dm00418905-getting-started-with-powershield-firmware-stmicroelectronics.pdf

 

----------------------------------------------------------

 

Implementations with the board:

 

Python implementation script:
https://github.com/JerryShen1995/Power-Monitor

 

Python and C implementation of tests:
https://github.com/mjosaarinen/pqps

 


NI-488.2 not recognized by Visual Studio C++

$
0
0

I originally posted this in the NIPM forum but I was told it would be more appropriate here. 

 

I'm attempting to run the power step up example code included with the NI-488.2 package, however whenever I attempt to compile it in Visual Studio I always get the same issue. First the compiler doesn't can't find the ni4882.h header, but even when I attempt to fix this by using the entire directory for the include at the top instead of the file name, it still doesn't recognize any of the functions from the header file when they're referenced in the body. I'm at a bit of a loss as to how to resolve this issue and I haven't found any help online. Does anyone have any suggestions?

MPC with cRIO 9064 for control application

$
0
0

Hello, I am working with cRIO 9064 and using it to command a NI stepper motor as a part of model ship setup. I have presently implemented PID and LQR controller in real time with scan engine. Can anyone please help me on how to / is it possible to code MPC in LabVIEW for real time application? Please suggest.

Testing connection to MD-CC4 USB RS422 for a mdrive stepper motor made by Schneider

$
0
0

I am new to LabView and I am trying to fix a script that hasn't worked in over a year at my university. I have a stepper motor that I would like to control via LabView. The LabView version I have is LabView 2013. The stepper motor is an mdrive 23 motor driver plus made by Schneider. I was able to successfully establish a communication with the IMS Terminal that came equipped with the motor via a MD-CC4 USB to RS422 Comm Converter. However, I am having trouble establishing communication with LabView via the same USB.

I am using the following two links as references: link 1 and link2

 

I went to MAX and was able to see the communication link ASRL[board][::INSTR] (which is shown in the screenshots attached below which in this case it is COM6) however I don't see any option where for the Open VISA Test Panel. Thus, I am unable to test the communication and not sure how to proceed? I am using LabView 2013, any suggestions or help will be extremely appreciated. The script worked over a year ago but I was tasked to fix it and not sure what my next steps are.

I have attached my VI and screenshots of the MAX terminal that I have. Also, I am unable to find the NI-VISA app, is that app necessary?

Tektronix MSO 5 Series is communication error

$
0
0

Hello .

 

I programming Visual Studio 2015 c# with Tektronix Scope MSO 5 Series

 

I send and receive data through the oscilloscope and LAN communication.

 

After about a day of testing that loads data into the scope at 0.2 second intervals, the communication ends automatically and does not reconnect with the scope.


It communicates through Ivi.Visa.IMessageBasedSession and executes Clear whenever waveform information is loaded.

 

If the communication is dirty, the connection will not work even through NI-MAX, but the scope will work fine.

NI-VISA driver wizard problem with USB 3.0 USBTMC device

$
0
0

For SS device, bMaxPacketSize0 = 09h (2^9 = 512B). However, NI-VISA failed to detect SS device and showed error that this value should be 8, 16, 32 or 64 bytes.

NI 9269 Module Detection Issues

$
0
0

Hello,

 

we are having some issues with some NI modules, we have been calibrating multiple DAQ modules using CalExecutive 3.6, we connect the modules via USB with a NI-cDAQ-9171. It looks like every fourth or fifth unit the system (NI MAX) will not be able to see the DAQ module, in this case it is a NI 9269, it can see the 9171 but not the 9269. We have swapped 9269 modules and it detects those just fine but the one with the error, it will not.

I installed NI-DAQmx 20.1 on a different PC that does not contain CalExec, and the NI MAX software is able to detect both the 9171 and the 9269 that has the issue, so thinking it might have been a driver problem, I attempted to install NI-DAQmx 20.1 on the calibration PC, however it wants to uninstall my calibration software CalExec and a bunch of other options that will put us in a situation were we will not be able to calibrate any units.

 

Can you throw some light in to what may be happening?

We have multiple units of the same model and one or two will not get detected by NI MAX on the calibration PC but it will read on another.

.

Thank you.

Instrument Detection Issues

$
0
0

I have an HPLC instrument connected via an NI GPIB-USB to the computer and am getting issues on my HPLC software. 

 

I tried to troubleshoot and I can find the device in NI Max (it pops up whenever I plug in my USB). However, when I click "scan for instruments" it says "instrument scan completed normally." I could've sworn this wasn't happening until now. And my NI driver is green under ready but no light under active. 

 

I'm having a hard time even figuring out what the issue is. I don't see a USB connection related to the driver show up in Windows Networks and Sharing Center (not sure if it should or not). Is there a way for me to ping the driver? I am not sure where to find the name of the driver or IP address to ping. 


781524-01 still available

In my IVI switch driver created in LabWindows/CVI, how do I set certain channels as "configuration channels"?

$
0
0

For an IVI switch driver created with the "IVI Instrument Driver Wizard" capability of LabWindows/CVI (2017) accessed through the "Tools -> IVI Development... -> Create IVI Specific Driver..." menu item, the functioning of the generated code for finding routes is very dependent on some channels being configured as "configuration channels". But I haven't been able to find ANY way to control that and make some channels actually be recognized as configuration channels. I've certainly looked in MAX to see how I could, and I've tried calling Ivi_SetAttributeViBoolean(vi, <chan name>, KTSS575_ATTR_IS_CONFIGURATION_CHANNEL, 0, VI_TRUE) toward the end of DefaultInstrSetup(), but can't find any way to make the channel be seen as a config channel when GetConfigChannelInfo is then called while the driver is in operation. If I was calling the driver from my own code, I could easily set those attribute values. But I need this driver to work when accessed by NI Switch executive. I have checked "reserved for routing" for the channels that need to be config channels in Switch Exec, but that doesn't help.

 

Thanks for any ideas!!

 

Thanks in ad

Download data/data logging Keithley 2636A

$
0
0

Hi, I have a GPIB-HS+ cable connected to a Keithley instrument, 2636A. 
I am trying to 1. download a data trace from the instrument buffer. 2. do some real-time sampling from the instrument to LabView on my computer. 

 

I understand that the sampling limit in real time with LabView (when you're not just downloading data but doing real time data logging) is limited to 5 samples/second (or sth), is that correct and has anyone found any way around it? 

 

Secondly, I use this program to attempt a download from the instrument 2636A buffer to a CSV file, but it doesn't work. Are there any suggestions as to what I should edit to make this work?  It's a simple program and it should download whatever data is already in smuabuffer1. 

 

lodhi33_0-1613061657272.png

Thirdly, for the real time data logging program, I am trying to edit the resistance measurement example for 2636A. I want to put the measurement block in a loop (for loop or maybe a time loop) instead of triggering the instrument in a loop. Am I on the right track? And how do I store the values that I am getting into a buffer in labview (before I write to an excel file)? 

Thank you very much! Any help/guidance is appreciated as I am very new to labview. 

lodhi33_1-1613063678549.png

 

 

 

 

 

Keysight DAQ970A not found by NI MAX

$
0
0

The DAQ used to be recognized my MAX and found in Labview, but after a restart of Labview the DAQ disappeared from both NI Max and Labview but Keysights own software still works (BenchVue and Keysight connection expert). When I checked the device manager the DAQ shows up twice: Once as "DAQ970A" without a driver associated and once as a generic test and measurement device (IVI) with a driver associated, see below:

 

unnamed.png

I have tried removing and reinstalling the driver (KtDAQ970-IviC-x64_1.0.0.0) and the other Keysight control software (BenchVue and IO Libraries Suite). I have also tried the steps outlined in this knowledge article but it hasn't changed anything so far.

 

Any help or idea will be much appreciated!

configuring keithley 2460 with labview

$
0
0

Hi All,

I'm trying to configure Keithley's 2460 source meter with LabVIEW.

I can find the instrument in LabVIEW but if try to configure that, I can't find the model.

I doubted that Keithley 2460 will work in LabVIEW or not.

please, anyone, help me with this.

Thanks in advance

Request for Packaging information

$
0
0

Hi,

This is Prashant Dhavale from Flex.

We are currently working with one of our manufacturing plant to collect Pin 1 orientation, Tape pitch and width, Package for below MPNs.

Site: Senai medical          

                            

MFRMPNTape Width (mm)Tape Pitch (mm)Pin-1 Orientation
NATIONAL INSTRUMENTSNAT7210BMF-9   
NATIONAL INSTRUMENTSNAT7210BPDF-9   

 

Note: Pin-1 Orientation is the position of pin 1 on component placed in Tape and Reel.
Below image given for more understanding on Pin-1 in General Orientation in T&R.

Prashant111_0-1613567092819.png

 

 

Prashant111_1-1613567092823.png

 

 It will be of great help if you can provide us the info at the earliest as this information is required very urgently.

How to send commands and data upon request

$
0
0

Hello guys, 

I have gpib-usb-hs+ module and I am required to send the following commands and data in the following sequence:

MLA18

{DATA} (6 BYTES)

UNL

MTA18

{DATA} (5 BYTES)

UNT

 

I need this exact sequence with no UNL or UNT at the beginning or the end where they are not a must.

Currently each time I send MLA my program sends automatically send UNL.

I have tried to use c# library and ATEasy programming.

 

Would be very glad to hear your opinion on this issue).


Siglent 1202X-E VI Building Tutorial

$
0
0

Ok. So I want to make a VI that can record data from my oscilloscope and store the waveform data into a txt file. Preferably with only numbers and nothing that would make Matlab annoyed... not sure if that is too much to ask about..

 

Channels 1 and 2, trigger from external event. Continuous data saving to multiple files.

 

For context, I am trying to get waveform data from my voltage controlled oscillator to determine the fundamental and harmonic frequencies (channel 1). Then I will plot them against voltage (channel 2) 

 

For a beginner, is this doable? Thanks for any feedback!

RHEL 7 drivers for PXIe-8234, PXIe-5413 and PXIe-8238

$
0
0

Hi. Could someone tell me, please, if I be able to work with PXIe-8234, PXIe-5413 and PXIe-8238 on RHEL 7 OS? Didn't found any information about compatibility of this modules and linux.

Cant load GPIB-32.dll

$
0
0

I am trying to connect by NOVOCONTROL Impedance analyser using a GPIB-USB cable. I have also installed GPIB-488 version 2.3. But i am getting the error saying "cant load GPIB-32.dll". I am a beginner.

Please help. 

Before I had NI-488.2 installed on my system. Still the error showed then.

 

Please help!!

Accessing VI_PXI_BAR0_SPACE of PXI device

$
0
0

Hi,

I am trying to read/write VI_PXI_BAR0_SPACE of PXI device using with VISA library. Here is sample C code how read data from BAR0 memory.

 

ViStatus res;
ViSession defaultRM, vi;
ViUInt32 oldData, newData;


viOpenDefaultRM(&defaultRM);
viOpen(defaultRM, "PXI0::CHASSIS1::SLOT3::FUNC0::INSTR",VI_NULL,VI_NULL, &vi);


//READ DATA
ViAddr addr = 0x8000;
viIn32(vi, VI_PXI_BAR0_SPACE, adr, &oldData);
printf("Addr: %04x Data:%08x\n", adr, data);

//WRITE DATA
newData = 0x7FF7;
res = viOut32(vi, VI_PXI_BAR0_SPACE, adr, newData);


This reading part is working without any issue. oldData = 0x7FFC.

I try to write newData = 0x&7FF7.

 

Something unexcpexted happen.I read data back i got = 0x7FF4.

looks like oldData and newData is logical AND somehow.

 

Does anyone have experience with reading/writing register BAR0 register map?

 

Thanks

 

 

Daqmx causing STM Virtual com port to disapear from device manager.

$
0
0

I have come across an issue where by installing  Daqmx to run a USB-6001 device is causing a connected (USB to serial) STMicroelectronics Virtual com port to disappear from device manager.

 

If i disconnect the USB-6001 the STM VCP to return.

 

All Devices are connected to USB3 ports on an intel chipset.

 

I am running this on a dell latitude from around 2015 running windows 10.

 

any help on this is apricated.

 

 

Viewing all 5680 articles
Browse latest View live


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