Hi,
I would like to know if there is a way to disable the PoE on IC-3173. When I plugg my camera on one of the PoE-compatible Gigabit Ethernet ports, the PoE is set on automatically but I want to supply power to my camera externally.
Thank.
Hi,
I would like to know if there is a way to disable the PoE on IC-3173. When I plugg my camera on one of the PoE-compatible Gigabit Ethernet ports, the PoE is set on automatically but I want to supply power to my camera externally.
Thank.
Hello!
I would like to use the INA219 DC Current Sensor in a circuit for my project, using the cRIO 9025. The sensor uses I2C communication.
I have used an Arduino Board until now, using LabVIEW VISA, I could read the data Serially into LabVIEW.
Is it possible for me to connect the sensor to the cRIO? If 'yes' or 'no', how? What are my alternatives?
Thanks in advance.
Hello Everyone,
I am trying to read a serial port continuously (frame by frame) but VISA is freezing after a random number of reading cycle.
Let me explain my operation -
1. I have programmed an Arduino DUE board to send data through it's "Native USB port" which works on CDC protocol ( acts like a serial port).
2. My control loop is set to send a character one "1" to signal an acquisition operation. The Arduino then sends 40448 bytes of data through the port.
3. This operation supposes to happen indefinitely. But the problem is after a while (sometime after ~500 frames, ~6000 frames or sometime ~3000 frames) the Labview Code is freezing. If I reset the Arduino then it's working fine.
The LabVIEW code is same as continuous serial read with slight modification.
As far I have read the code is freezing because of the read operation. When it's getting an insufficient amount of data it's waiting for all the data to come through and getting stuck. There are few solutions that I have tried already. They are-
1. Change the read to Asynchronous/synchronous. -> didn't work.
2. Validate bytes at the port before reading -> here some interesting facts that are happening, before the read I am getting no bytes at the port to read but after the read,( if I read 40446) if I place Bytes at port property node then it's giving me there are two bytes left( as I was supposed to read 40448). If bytes at port worked before the read I could be certain about the read amount and the problem would be solved. -> so didn't work.
3. I tried to reinstall the NI-Serial driver-> didn't work.
Please help me if anyone has any Idea about this. ( I have attached my code below)
Thanks for reading the long post.
Hello everyone,
I´m trying to communicate my pc to a Instek power supply, the psp 405. Unfortunately it doesn´t use a standard rs232, it is as follows:
I created my own cable with this specifications, and power on the DTR (pin 4), but since it didnt output 12 V I had to use a external power supply, set the serial settings as it is specified at 2400 baud rate, 8 data bits, etc.
I tried to solve it as they did in this thread: psp 603 serial communication
It has never responded but before the power supply my usb-232 mark it as : —Port is open, but no valid signals detected, But after it , it marks it only as:—port is open
I can also see that is sending the signal.
So all appears to be working but in NI MAX it marks it as (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.
No error appears if I use it in this VI: ni example program I´m using. but nothing happens with any commands, It doesnt read or affect the supply.
Maybe my wiring is incorrect, there´s no enought information so I connect the 12 V towards the supply and united the ground as follows:
I dont know what else to do.
So thank you for any input you may have.
I am new to using NI controllers. I have a PXIe- 8130 controller installed in a PXIe-1062Q chassis. The controller was working fine two weeks ago when we did some experiments. When I checked it back, we were not able to connect to the controller from the host.
I get a blank screen and controller does not even go to the bios. The “DRIVE” led is always lit and it does not blink when I restart the controller. I am not sure how to troubleshoot the controller.
Thank you
Dilshan
I try to read a gauge (instrument) via GPIB under win7 and win10.
I used the outdated library NI-VISA-NS in the past.
Now I'm trying to migrate my program (under VB.NET) to the library NI-VISA and get a lot of mistakes.
Old version (works):
I upload an image file from the meter to the computer - NI-VISA-NS:
mbSession.Write ("0; MMEM: Data? 'PRINT9.WMF'")
mbSession.ReadToFile ("d: \ PRINT9_.WMF", 310442)
New version under NI-VISA. The command "ReadToFile" is no longer available.
mbSession.RawIO.Write ("0; MMEM: Data? 'PRINT9.WMF'")
How is the file read now? How ti read binary data?
What is the difference between the NI Deivce Driver and NI 488.2?
I tried to download the driver.
However, NI488.2 and NI Device Driver have separate menus.
Are they different? What is it different?
Hello everyone
I have been struggling for a couple of days now trying to solve an issue but could not resolve it. It would be great to get some assistance.
I am trying to use the Instrument Control Toolbox of Matlab 2018 on CentOS7 Linux together with NI-VISA 17.0 and the NI GPIB-USB-HS adapter to communicate with some power supplies.
However, as mentioned before it does not work so far.
This is what we tried so far.
We run Matlab 2018 on our CentOS 7 Linux system successfully.
I connected several power supplies with the computer via a national instruments GPIB-USB-HS converter.
(this on http://www.ni.com/de-de/support/model.gpib-usb-hs.html)
Then I installed the Linux-GPIB 4.1.0 driver https://sourceforge.net/projects/linux-gpib/?source=navbar and configured the adapter.
After that I have been able to successfully communicate and control the power supplies using “ibtest” in the console. Also the console command lsusb yields the proper usb information: Bus 001 Device 002: ID 3923:709b National Instruments Corp. GPIB-USB-HS
However, next I we installed NI-Visa 17.0 and followed the instructions of the readme:
So I installed all necessary 32 bit software libraries which have been missing
Then I used this trick https://forums.ni.com/t5/Linux-Users/kernel-3-10-0-693-2-2-el7-x86-64-update-centos-7-4/gpm-p/3693281
to run the script “updateNIDrivers” for connecting the driver with my kernel. Then I gave the users write accress to the USB subdirectories in “/dev/bus/usb. Hereby I used the AddUsbRawPermissions.sh script as suggested in the readme.
Finally, I blacklisted other USB drivers as suggested here: https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Driver-wizard-does-not-allow-USB-to-be-selected/td-p/2918872
However, so far NIvisac does not recognize any USB devices and the driver wizard does not even allow to select USB. Using the Matlab proper commands to search for VISA or GPIB devices yields nothing.
It would be really helpful if somebody has any suggestions where to look next as I am currently a bit at a loss.
Thanks all in advance
I am not new to LabVIEW, but I would not call myself a GPIB expert either. We have a NI PCIE GPIB 488.2 board installed in our computer. I understand the high-level calls, but I don't know the difference between what LabVIEW VISA or GPIB calls are doing and NI MAX other than EOS and EOI which are not obvious at the higher level VISA and GPIB LabVIEW calls.
Our LabVIEW software has always worked with this external device. Recently, the vendor completely rewrote their software and now we see hang ups right after startup where we cannot communicate with this external device. We have to use NI MAX to send an *IDN? query to "wake" the external device up before we can use our software. After that all of our legacy VISA commands (including the *IDN?) work. I tried sending the *IDN? query from LabVIEW at startup, but I get a VISA Write timeout with an EABO (6) error which is not very helpful. What is strange is after I send the NI MAX *IDN? query once, the LabVIEW *IDN? query works every time.
I tried simplifying things by using just the LabVIEW GPIB and VISA examples and sending just one *IDN? query, but I get the same timeout error. I tried extending my timeout and playing with the expected read bytes, but no luck. I tried changing my Open VISA setup parameters (VISA Defaults, Loaded Configuration, etc) with no luck.
I switched from VISA to GPIB and played around with the GPIB Write Mode parameter for EOS and still had no luck. We are supposed be using the default NI 488.2 board settings with just EOI (no EOS). In case the vendor was trying to use EOS, I tried Codes Display and sending \r and \r\n with no luck.
Why does my *IDN? query always work in NI MAX, but not LabVIEW until after I run the NI MAX query ? I am using the LabVIEW examples (VISA and GPIB). I can send them, but anyone that has LabVIEW can drop a VISA Write or a GPIB Write block and right-click on them and go to the Examples to see what I am using.
Hello Guys,
Now I have Lake Shore model 475 dsp Gausemeter and it has LabVIEW Driver. I use serial port to communicate with it, Then I build a VI using the getting started example SubVI it provided:
Then I double click on the example subVI and click on initialize VI and find it has the error on the VISA read, anyone knows how to solve this?
Hi,
I'm very new to all this so apologies if this is a useless question!
I'm trying to use the Keithley 2450 to continuously supply a voltage and once externally triggered, rapidly sample small currents till the next trigger. It should then transfer the buffered data and do this in a loop. The trigger is a 1kHz pulse signal and ideally it should start sampling on the falling edge and stop on the rising edge(i can introduce delays to fix that if need be) . The current is around 100 nA, and i don't need auto-range or auto-zero, just as fast a measurement as possible in the 900 uS between the two pulses.
So the questions i have are;
Can the 2450 sample that quickly?
What would be the easiest way to program/script that can run this scheme. I've never used GPIB commands or Visa before but willing to learn!
What is the pin mapping for NI's serial cable 182845 ? I can not find a diagram. I would like to know if it is the correct mapping before I buy it. Looking for info along the lines of:
RJ50 pin1 --> DB9 pin 6
RJ50 pin2 --> DB9 pin 3
..., etc
Hi,
I've been working on making all the electronics for a universal testing machine in labview. I'm basically going to use labview to control the motor on the machine and also take the data simultaneously (loading and displacement). We are using an HX711 amplifier for the load cell and I'm using a NI-DAQ6003 board to control everything. We plan to find the displacement by keeping track of the ticks on the encoder in the motor.
I'm a little lost because I'm unsure of how to take the measurements from the amplifier and encoder. I don't know what the output is exactly from them and can't seem to find anything that explicitly says what it outputs. If I knew what it output and its relationship to the load cell's current loading, I would be able to set up the VI to do the math and everything. At least, this was my idea.
If anyone knows anything about this or has done this before, I'm very open to hearing any advice.
I'm new to labview and i'm trying to operate the source sink device with both channel. Can someone help me to identify and improve it? Please guide me through. Thanks!!
Hi All,
I am in the process of converting a DOS 16 bit application that used IOTech PCMCIA GPIB Card to NI PCMCIA GPIB Card.
The software is written in Turbo C++ 3.0 and is using a command called RESUME (see page III-345 in the attached manual) that is not listed in the NI documentation.
It is my understanding that IOTech card was using 488 version of the protocol and that the NI is using 488.2 version of the protocol.
In the code I see that the developer is calling as follows:
Local(ieee); Resume(ieee,0);
Where ieee is the handle to the GPIB card.
Can someone explain what is the functionality that is being achieved here and is there a matching command in NI for resume ?
I have a new installation of the latest Instrument Manager software but when I click on Configuration Manager and try to edit a driver I am receiving the following message, "Configuration Properties-BioRad QC to edit Driver Properties settings you must be logged in to Windows as a user with administrative privileges." I have elevated several ordinary user's right to local machine administrator equivalent but I am still receiving the same message. Has anyone seen this issue with IM and Bio Rad and is there a known fix? Thanks for any and all suggestions.
Can I use the USB port on cRIO-9025 to read serial data from an arduino?
I have been able to serially read the data into LabVIEW using VISA, I would lke to read it into the cRIO, is it possible?
Soliciting a quick reply.
Hi,
I try to make an interface for Ni-8452 on a visual studio with C# but i cannot use directly ni845x.dll and i need to convert it to C# project. I tried to create a new dll, by using extern "C" method, i tried to convert it but i cannot make it. I use this method by using ni845x.h and .lib.
could anyone help me?
Thanks
I have searched for an answer for this and cannot find anything. Does the GPIB-USB-HS+ adapter have memory that would require a sanitization procedure. I need this information for a hardware baseline on a classified test stand.
Hi,
We have an SR510 Lock-in amp in our lab that doesn't have a GPIB port. I am trying to communicate with it via its RS232 port but with a GPIB-USB-HS+ to the computer end. Therefore we've got a GPIB-RS232 converter in hope to work. So far it is not working at all.
Since I am using the converter just to convert I've set it at D mode. I cannot query its "*IDN?" with Max, neither "*IDN?\n" or "*IDN?\r" works. I've also tried it with G mode. query function only works when the converter was set at configuration mode but not at normal mode. I've made sure the switches at the back of the lock-in matches the setting during the configuration. At least to my best knowledge...
I'm at the end of my rope here. Anyone who knows how to set this GPIB-RS232 box so I can talk to the lock-in? Thank you so much in advance.