Hello, Guys
I wanna send two difference Variables (ٍSensor Data & time) Via Serial port from Arduino to LabVIEW (NI-VISA).
I worked on the Code but receives one variable
VI in Attachment
Regards.
Hello, Guys
I wanna send two difference Variables (ٍSensor Data & time) Via Serial port from Arduino to LabVIEW (NI-VISA).
I worked on the Code but receives one variable
VI in Attachment
Regards.
Hello friends,
I am need of programming in NI VeriStand. I have simply created a dll file with three input and two output. Now when I deploy the program in VeriStand, Im getting a error regarding VISA error. Kindly Help me!!!!
Thanks in advance.
hello
i want to use CAN BUS WITH PIC18F4550 for communicate with others devices using protocol CAN , i i want to use interface labview,
so it is possible to use NI-CAN labview with microcontrollers ? and how ?
thank youu
I'm trying to install usb6002 on a new pc.
The device is recognized by NI-MAX and self test completes successfully. However, it is not recognized by NI Device monitor (tried to unplug and replug).
It is recognized the NI Device monitor on another pc.
What can be the issue here?
Hi everyone,
I hope someone could help me.
Well, I have a problem when calling the dll. Every time I launch my program I am geeting this error: 1097
It is the first time I am using a dll in a VI.
I have attached to this message, the dll file and the header .h
Thans in advance,
Feriel
Hello All,
I have written labview code to control two ESP301 controllers simultaneously via USB using flat sequence structure. But when I run the VI, the initialize block in the first flat sequence frame generates an error :-1073807339 labVIEW error whereas the second frame runs without any error and could establish communication when the logic is the same.
NOTE: both the controllers are connected via USB separately and both the controllers have the same controller address 1.
I have a Modbus instrument (VP Flowscope) that I am trying to interface to and I've never worked on Modbus before. I wanted to see if anyone here had some advice for getting this working quickly.
I've written code using the NI DSC toolkit, the code on the NI-Lab (which is pretty much the same as the NI DSC), and another download that can be found here:
http://www.ni.com/example/29756/en/
All of them fail with my setup, although I think I can see a response from the slave device.
Attached are a couple snapshots of my code and a screenshot of what I see on the oscilloscope. On the oscilloscope plot, I believe the second transaction is a response from the slave because if I change any settings (address, parity, etc) then I don't see this transaction.
Hi,
I have GPD-4303s power supply and i want to control this device by using Labview. I use USB port for connection.
However, its own Labview example doesnt work in my pc and it gives me an error. It is given related screenshot as follows.
I read some forums to handle with this problem and i changed baund rate of the port binding. But, i gave the same error.
Can you help me to solve that and uderstand the main reason of the problem?
Thanks in advance for your helps.
Aslıhan
Hi, I haven't used LabVIEW in several years.
I have downloaded numerous third party drivers and saved them locally on my C:\.
Where should I move these .lib files so that I can use them throught he functions Palette?
Is there a certain structure I should use when saving these?
Also what is the difference between user.lib & instr.lib files?
I have tried to find the folder as outlined in the following tread but I cannot seem to find the folder:
How Do I Install My Third Party Instrument Drivers?
This is what is at the recommended loaction:
Can anyone help?
Regards,
Seamus
I have two serial write/reads running through some USB ports on my computer. Sometimes after about 2min of running the computer/program will appear to pause, the LEDs on the usb-serial connectors stop flashing (they flash rapidly when in use) and the program hangs for a second or five, then resumes as if nothing happened. This happens at random intervals it seems, and my data is lost for that time period on the graphs and in the data file. there is no error thrown or anything like that. Why could this be happening and how can i prevent it?
hi everyone,
my project is about connection usb between pic18f4550 and labview. all it's work good.
now i want to store all data of my program labview in EEPROM of pic18f4550 for reason if i disconnect USB, the pic18f4550 continue to exécute my program normally.
for exemple :
i send values of PORTB to labview,
in labview if(PORTB.F0 >" value (x)") send "1" to PORTD.
so i want if i disconnect connection usb the pic18f4550 stay remember all program and conditions defined in labview.
it's possible ? and how ?
please some help
thank's
Hello everyone.
I'm currently trying to establish a communication between a Superflow SF1020 bench and Labview thought a Modbus protocol and I'm meeting a few troubles...
First of all, the device can be seen by MAX properly only when i just rebooted the computer. At this moment, I can open the VISA panel and see on his attributes that "Is Port Connected" has an "Invalid Property Value" on his current value. I have attached some photos so that it helps you understanding my problems.
At this point, I tried some examples found on modbus library or on topics given by labview community and It always starts the same way : I just have to choose "Com 1" for the visa ressource name before the system detect the instrument and so I can finally choose "ASRL1::INSTR". At this moment, MAX can only see that the interface name is "unknown". As the device is "reserved" by the program, I can understand that it is not usable anymore, but as I'm not an expert, I prefer to explain all the details, in case it could help.
Among all the examples I found, most of them end the same way, with the famous visa read error -1073807298 that I've never succeed in overpassing it, even with the help of many older topics :
http://digital.ni.com/public.nsf/allkb/0C2ABA463217342686256E2E006DF187
http://digital.ni.com/public.nsf/allkb/60DDFED7EFEFE7188625705700750821
and I just quoted the official solutions ...
Besides, I also tried to do a Modbus I/O server to see if there was any piece of informations that was transfered by the bench and there was none. As a result, the attribute "CommFail" was on true state...
As I'm not used to Modbus protocol or serial instruments, I'm not even sure if the communication was well set or if my problems come from the SF1020 or my lack of modbus communication knowledges. In that way, if any of you know how to solve my problems or at least one of them, help will be warmly welcomed
Hi
I tried to add VISA support on a small program on Windows 10, compiled with mingw (C++). But I have a problem with the linker who failed to link all the functions(error undefined reference to `LeaveCriticalSection@4')
My code (simplified)
#include "C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Include\visa. ..... ViSession defaultRM; ViStatus status = viOpenDefaultRM(&defaultRM); if (status == VI_SUCCESS) { status = viOpen(defaultRM, "GPIB0::2::INSTR", VI_NULL, VI_NULL, &instr); } .....
The makefile
CXXFLAGS += -I/C/Progra~2/IVI~1/VISA/WinNT/Include LDLIBS += -L/C/Windows/System32 -lvisa32
The error message:
g++.exe -Wall -g -I/C/bin -I/C/Progra~2/IVI~1/VISA/WinNT/Include -shared -o libUserCode.dll nivisa.o prologix.o qpx1200sp.o usercode.o -L/C/MuTest/bin -lmttnative -lDSP_Library -L/C/Windows/System32 -lvisa32 Warning: resolving _GetModuleHandleA@4 by linking to _GetModuleHandleA Use --enable-stdcall-fixup to disable these warnings Use --disable-stdcall-fixup to disable these fixups Warning: resolving _GetProcAddress@8 by linking to _GetProcAddress Warning: resolving _viOpenDefaultRM@4 by linking to _viOpenDefaultRM Warning: resolving _viOpen@20 by linking to _viOpen Warning: resolving _viClose@4 by linking to _viClose Warning: resolving _Sleep@4 by linking to _Sleep Warning: resolving _VirtualQuery@12 by linking to _VirtualQuery Warning: resolving _VirtualProtect@16 by linking to _VirtualProtect Warning: resolving _EnterCriticalSection@4 by linking to _EnterCriticalSection Warning: resolving _TlsGetValue@4 by linking to _TlsGetValue Warning: resolving _GetLastError@0 by linking to _GetLastError Warning: resolving _DeleteCriticalSection@4 by linking to _DeleteCriticalSection Warning: resolving _InitializeCriticalSection@4 by linking to _InitializeCriticalSection c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../libmingw32.a(tlsthrd.o): In function `_mingwthr_run_key_dtors': C:\MinGW\msys\1.0\src\mingwrt/../mingw/tlsthrd.c:117: undefined reference to `LeaveCriticalSection@4' c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../libmingw32.a(tlsthrd.o): In function `__w64_mingwthr_add_key_dtor': C:\MinGW\msys\1.0\src\mingwrt/../mingw/tlsthrd.c:59: undefined reference to `LeaveCriticalSection@4' c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../libmingw32.a(tlsthrd.o): In function `__w64_mingwthr_remove_key_dtor': C:\MinGW\msys\1.0\src\mingwrt/../mingw/tlsthrd.c:93: undefined reference to `LeaveCriticalSection@4' C:\MinGW\msys\1.0\src\mingwrt/../mingw/tlsthrd.c:93: undefined reference to `LeaveCriticalSection@4' collect2: ld returned 1 exit status make: *** [libUserCode.dll] Error 1
Several functions was linked, but not all.
Any ideas ?
Thanks in advance
According to http://digital.ni.com/public.nsf/allkb/2BFCEE471BECB95F862574020059117E the last version of NI-488.2 that is compatible with LabVIEW 8.5.1 is 2.8.1 but I can only find 2.8.0
Is 2.8.1 available for download ?
I have an ancient 183617G-01 PCI-GPIB card pulled from a PC running XP.
It is presumed that the card was working when the PC was taken offline, but I can't be certain since I wasn't here at the time.
I installed the card into a Dell Optiplex 7010 desktop PC, and the PC will not boot.
I have even updated the BIOS to the latest version on Dell's website.
I have NI-488.2 version 2.8.0 installed and per the ReadMe file, this card is supported.
Anyone get this card working in Windows 7?
I saw another post on this forum about this card, but not resolution.
hi,
Trying to communicate with a new Agilent Keysight 34980a using TranEra HTBasic and an NI GPIB-USB controller.
The 34980a is being used to upgrade an aging 30 year old HP 3497a unit in an existing measurement system.
The HP3497a system software was HP Instrument Basic(a Rocky Mountain Basic, on a 386 box), and was sucessfully migrated to TransEra HTBasic on a Win 7 box using an NI GPIB-USB. That all works fine.
The Issue:
GPIB Communication problems to/from the Agilent Keysight 34980a using TransEra HTBasic:
-- Using the new 34980a I am not able to communicate via the NI GPIB-USB using the existing HTBasic software ( via antique OUTPUT, INPUT, nor ENTER, nor CLEAR commands and ASCII "text strings" as is used in the TransEra HT BASIC for the old HP 3497a).
-- Is there some different software sysntax required ?
-- Are there different <CR> <LF> or <EOL> or <FF> or <EOI> command structures, or syntax or placement required ?
-- or their "\r\n" or ASCII "13" or "10" equivalents { both or individual or none ?}
-- Are there possible LOAD BIN libraries (Agilent or NI) that are required to be placed directly in the HTBasic program ?
-- Is it possible that the old HTBasic can not make use of (a conflict) with the new GPIB-USB drivers (both NI & Agilent) already installed on the cpu ?
-- { is it possible that the TransEra HTBasic is a non-DDL language & thus unable to function with the new drivers or IO Libraries ? }
I am unable to get any response from "*IDN?" nor "*RST" nor other 34980a commands "MEASure", etc... using HTBasic.
All Agilent Utility independent software (Connection Expert, BenchLink Data Logger, etc.) does work fine with the NI GPIB-USB & the 34980a.
Voltages can be correctly measured, etc.
I am constrained to using the TransEra HTBasic for this hardware upgrade project.
Experienced thoughtful help (programing code examples) to try would be appreciated.
thank you,
LabVIEW 2014
MAX 15.3.0f0
SCXI-1166 32 SPST card
PXI interfaced via MXI, PXI-4072 card is interface to SCXI chassis
I have my channels and routes aliased in MAX for use in TestStand. The problem I am having is that I can connect a route and any of the channels used in the route, but I cannot disconnect them unless I use the Disconnect All button. I have watched the activity in NI I/O Trace and see the disconnect message being sent using the Disconnect Single Channel button, but the switch is not opening. Clicking the Disconnect All button sends the disconnect all message and the swtich opens.
How do I get the single disconnect function to work?
Hello community,
I am quite new to the LabVEIW world and would like to ask you for an advice concerning my school project.
As a part of my work, I need to communicate via LabVIEW 2014 (using Windows 7) with a power supply (Hameg 4040, USB port) and be continuously setting new values of calculated current to all 4 channels of the power supply. I need to change the current value as least once per 100 ms.
I have installed the latest third party driver for the HAMEG (https://www.rohde-schwarz.com/us/driver/hmp4000/) and use the VI’s to set the current/voltage values to the device. The problem I am facing is the speed of the setting of the current. I made a simple counter, which tells me that it takes 3,8 seconds to the VIs to execute (hmp4000 Configure Channel, hmp4000 Configure Combined Voltage And Current). Is there anything I can do to speed it up?
Thanks for your patience with a beginner and chemist.
O
Dear Colleagues
I probably have a problem with my GPIB-RS232 converter. For some time all lights on its front panel lit in yellow and I cannot communicate with my power supply. I tried to reset the converter but I do not see any reaction. After swiching off and on again all lights lit pernanently in yellow (see atached photos). How do you think, is the converter damaged?