Quantcast
Channel: LabVIEW topics
Viewing all 68924 articles
Browse latest View live

NI VISA

$
0
0

I am using NI VISA  to detect my USB device (which is ATMEL ASF Board) ,so  i create driver following this  and when i open ni max to use my usb device it show1.PNG(bulk in pipe  = no pipe present)... any suggestion why ? beacuse it is causing an error.

 

i used usblyzer for same device and it shows correct bulk in pipe at 83h as it should be.. 


How to make pane resolution fit the screen resolution?

$
0
0

I am trying to paste picture from clipboard to a front panel, but when I do this they appear larger on the screen than I expected. VI property (Windows size) tells me that my current panel size (it is in full screen) is 1259x670 pixels. But that is not actually true. My physical display size is 2560x1600 pixels. Therefore, Labview zooms both the background image and the image I am inserting from clipboard. Therefore, it appears bigger than I expected on the screen.Of course,  I can manually decrease the picture size, but I loose the details of the picture because I intentionally decrease the pixel size of the picture in this case. How do I make Labview front panel pixel resolution coincide with the resolution of my monitor?

How to End a VI Sequence

$
0
0

Hi. I am fairly new with Labview and I need help regarding my sequence. As you can see from the attachment, i was able to ramp up the voltage from an initial value to a target value using a predetermined step rate. What I am unable to do was to make this sequence run one time only. The program keeps repeating itself every time the ramp sequence is completed. 

 

I know this is possible with a "while" or a "for" loop structure but i am not yet sure how to implement this in my VI.

 

Ramp Voltage.pngScope.png

DLL call problem

$
0
0

Hello! I'm looking for help.

Following situation: We have a product with an USB chip from FTDI (ftdichip.com) with VCP/D2XX driver and years ago we made LabView VIs for the customers. These VI call DLL functions from a DLL file which in the same folder as the VIs, because you have to specify a rigid path in the LabView DLL call VI. This was easier to distribute. Back then, it worked on Windows XP and 7, also in the older LabView versions. Even without the DLL being registered to the system.

 

When doing the same today, on Windows 10 and let's say Labview 2015 or 2017, it doesn't work anymore. It means, the call does not return anything where it should. But the call also doesn't show an error, so I can only guess. The DLL is available as 32 bit and 64 bit, both are installed. The USB driver itself seems to be installed as 64 bit. So it may be necessary to use the 64 bit DLL on a 64 bit system. But on Windows 7 the system was also 64 bit, using the 64 bit driver and the 32 bit DLL function call and it worked.

 

What's your guess?

How to solve that for the future? Rather import the DLL as VI?

Would the imported DLL work on both, 32 and 64 bit OS, or would we have to make two VI versions?

Would the "DLL VI" work on older versions of LabView and if so, down to what version?

 

NI distributed system manager stops working after windows 10 update KB4056892

$
0
0

Helow,

I have been using NI distributed System Manager to read OPC variables from NI OPC server. The system was operating perfectly for years untill the last windows 10 update KB4056892. After that update the OPC variables of the OPC I/O server in the NI distributed System manager stops updating.

The solution is to uninstall that windows 10 actualization. By the moment I have deshabilitate the automatic windows 10 update (just disabling the windows update service, in services).

 

I hope this info will be usefull for others.

Regards

Miguel

 

Accumulation of Data

$
0
0

Hello everyone

I am trying to write a new file every day but what is happening is that every new file has the new data as well as the previous day's data. How do I stop that?

JSON parsing error (Variant To Data in i3-json.lvlib:Get Object Parameter - String.vi)

$
0
0

Hi,

 

I'm using the i3 json toolkit for LabVIEW : https://forums.ni.com/t5/JSON-Toolkit-for-LabVIEW/gp-p/8520?start=0&view=discussions

 

I'm facing an error when using the json below and trying to get the "cmd" value :

 

{"cmd":{"module":"test1","name":"Session"}}

 

Get Object parameter VI returns :

Variant To Data in i3-json.lvlib:Get Object Parameter - String.vi->RS_GetJsonElement.vi

 

This case seems basic so I might be mistaking somehow.

 

Does any one get the same issue using this library, and is there a way to fix it?

 

Thanks in advance for your support,

 

Bim

 

 

 

TCP/IP Fail

$
0
0

I have a manufacturing application that runs a production rig.  I also have a 24/7 logger application running on the same PC, the logger records temperatures and other data about the supporting plant.

Both apps can run independently, but when running at the same time, a TCP/IP link allows the sharing of data between the 2 apps.  They normally always run together, but I want them to be robust to the other not being open.

I have a bug, if the logger is not running for a long time, the manufacturing app freezes.  This is because the TCP/IP listen is somehow eating up a resource.

The reason for the freeze is that TCP/IP comms with another connected instrument fails.  I know this because if I try to open a connection to that instrument using it's dedicated from end software, I get this error:

20180125_ErrorWhenOpeningEnsembleAfterFreeze.jpg

When I close the frozen LabVIEW app, I can then open the front end without a windows error.

One explanation of this windows error appears to be "OS runs out of memory for TCP buffers".

 

Have I implemented the TCP/IP incorrectly? I figure I should check I've not failed to close a TCP/IP related resource?

 

20180125_LabVIEWcode01.jpg

 


Text file from a EMG to a XY Graph

$
0
0

Hey. I have a text file with an EMG signal and i have to put it on a xy graph. I have some errors. 

this is what I made : 

EMG1.jpg

 

I upload the text file.

Could you help me? Smiley Very Happy

Labview VISA USB RAW Communication

$
0
0

 

I have a system with a USB RAW communication with PC.

 

When I use Java USB interface to communicate with my device. It works perfectly. But with same sources and bulk in and out parameters I lose some data on Labview VISA. 

 

I used FX3 interface for USB and VISA can get most of data(app. 80%) but cannot get 20% of data which java can get. 

Are there any suggestions for this situation in Labview?

MathScript for LabView NXG 2.0

$
0
0

Hello,

 

I have downloaded and installed the new LabView NXG 2.0. I could activate the version with my Serialnumber from LabView NXG1.0.

If now I want to open a project, which is created with LabView NXG 1.0 and include several MathScript-Node, a get an error message. The message said, that the plugin "MathScript" isn't installed.

How can I installe the MathScript-PLugin for LabView 2.0? Or do I have to activate something else that I can use the MathScript Nodes. With my licened LabView NXG 1.0 I could use the MathScript Node without any problems.

 

Thanks for your help

Basil

PXI8431串口卡通讯过程中出现误码现象

$
0
0

使用PXI8431串口卡进行通讯的过程中,发现存在一帧报文的第一个字节会偶尔出现增加了80H的现象(例如:一帧报文的第一个字节固定为00H,则通讯的过程中偶尔会变成80H)

软件版本:NI VeriStand 2016
运行环境:Windows7 旗舰版 SP1
宿主机配置:i7处理器,8G内存,固态盘
仿真机配置:i5处理器,4G内存,固态盘
实时仿真机的系统:PharLapETS实时操作系统

 

硬件环境:PXI8431串口卡(安装在实时仿真计算机上,通过Labview 程序驱动驱动方式参考资料
发送周期:2ms
报文长度:50字节
通讯波特率:非标准波特率(400000)
 
我尝试过发送固定的(0x00 0x01 0x02 0x03)同样出现(0x80 0x01 0x02 0x03)的现象;
波特率和发送周期是事先规定好的,没法改动!

For loop parallelism on single core

$
0
0

I use array of notifiers (let's say size n). There is a watchdog code which waits for every notifier from array with 10 seconds of timeout. If any of them times out, it runs a function. At this moment, i have no for loop and these notifier waits run simultaneously, so they all finish after 10 seconds max. I would like to do the readings programatically, so when I add new watchdog notifier, I don't have to add new branch of notifier waits. If I use for loop, there is no parallelism and it is finished after n * 10 seconds. On dualcore, if I turn parallelism on, it takes n * 10 / 2 seconds. I need something to run in parallel on single core, is there any option?

 

Thank you.

 

Výstřižek.PNG

Pass fixed array size of U16 Values to FPGA target from Host

$
0
0

Hi ,

I'm using a kintex 7 FlexRio for some project.

I have 8 registers on the target which i want to write to them from the host.

at the final stage i need to build an dotNet interop assempbly.

How i can initialize 2 input arrays of 4 length, to pass the data from them to 8 registers ?

 

thank you.

Holding parallel loops until a certain state is reached - what is best practice?

$
0
0

I can think of a few ways to make this work, but none of them seem particularly elegant: 

 

If my program consists of a state machine, and several parallel While loops outside of that state machine, how can I ensure that those While loops don't start until I've passed completely through the "initialization" state of my machine? 

 

I feel like wiring an event structure up to the front of all of the other loops is a really inelegant way to get them to wait. It seems better to wire an error, or something, out of the initialization state and over to each loop so they wait on that terminal - but then I'd have to wire that terminal up for every single state and etc. 

 

Is there a better way?


Append New Element to XML File

$
0
0

Novice to labview and XML here, and I don't seem to understand the flow well enough to Open an XML file, remove some data, replace with some new data and save. I've gotten as far as opening, parsing and deleting, but appending new data eludes me. 

 

I created the VI below as a test. I can delete "ConfigTable" in Index 1, but I dont understand what the flow should be to replace it with new data. I'd think I could append a new child just after removing the old child, but to add a new XML string in requires a reference in, and I don't know where that reference should come from? 

 

Is there a way I can spell out the exact path that I want to add data to (I.E. cfg_root/cfg_records/ConfigTable[1]) and then starting adding new children at that point? Thank you. 

 

Problems communicating with motor using LabVIEW

$
0
0

Hi

 

  I have three motorized actuators that are connected to the computer via USB through the TDC001 controller. I am trying to control the motors using the ActiveX control through LabVIEW. When I use the APT software and even another python code that communicates with the motors, they are recognized and can be operated from the computer. However, when I try to establish a connection through the LabVIEW code, it fails, and I get return code 10109 (basically meaning the device is not connected). Can anyone help on this?

Thanks

Missing Samples in NI 9219

$
0
0

I created following VI to measure sensor (own developed) output (in voltage), the excitation voltage given to my sensor and temperature at the same time to compare it with my sensor. I m using cDAQ 9172 and module NI 9219. I need measurement in micro seconds. So, I use no.s of samples as 100K and sample rate as 100k. But I m missing samples after every 100K samples. I checked this error for different no.s of samples and found that, I miss samples after every cycle (no.s of samples) i.e. if I give 10k no.s of samples then I miss it after every 10K samples. If time at 100000 sample is 0.99999 seconds then I get directly 2.07751 seconds at 100001 sample. (I attached screenshot for this.) Please see this and give me suggestion what should I do.

building exe for windows xp using labview 2015 sp1 in windows 10

$
0
0

Hello 

 

I am trying to build an application to be installed in windows xp sp1 using labview 2015 sp1 since it stills support windows xp. 

 

when I build the exe and the installer I found that it uses automatically LV runtime engine 2015 sp1 which is not compatible with windows xp, so when I try to install the application in windows xp it gives me the error 998 fail to lad the lvrt.dll. 

 

so I have uninstalled LV runtime engine 2015 sp1, and installed instead the 2015 version. 

 

but the error presists. 

 

can anyone please tell me what are the considiration to took when building a 32 bit app for windows xp 32 using windows 10 64 bit system but labview 2015 sp1 is 32 bit; 

 

thank you 

Modbus serial communication

$
0
0

Hi everyone,

I am trying to read holding registers values off an Omega USB DAQ device using a virtual serial port that uses Modbus RTU protocol. First, I have, what I think is a timing problem. I have attached the portion of VI in question. The error I keep getting, which comes from the "Read Holding Registries VI," is: Error 56, 

RTU Data Unit.lvclass:Read ADU Packet.vi:5030001

 

Can anyone help me resolve this? I know that the serial port configuration is correct because I can read the registers with the software provided by Omega. 

 

One additional question: The DAQ manual states that the Modbus query delay be 0ms and the response delay be 3ms. It is not obvious to me if this can be set using the Modbus VI library. Is this a standard setting, or can I change the values?

 

Thanks for any help.

Viewing all 68924 articles
Browse latest View live


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