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

Labview crashes on calling some APIs from dll

$
0
0

Hi Team,

I am facing some problem while trying to call dll from VI. Some APIs in the dll work fine but some APIs crashes LabView while running and i get the following error message

LabView 2014 encountered a problem and needs to close. You can help us diagnose and fix this problem by sending this report directly to National Instruments.

Exception: Access violation (0xC0000005) at EIP= 0x07050980

Version: 14.0 (32-bit)

I faced the same issue in LabView 2015 as well. The parameters passed are correct. 

Can anyone elaborate this error message and help me find a solution. I want to know the cause behind this. Is the API responsible for this or some mistake in the VI development.

I have attached an image of VI and the crash report. If more info is required please let me know.

Awaiting for further communication


Are two host vi can communicate with FPGA target ?

$
0
0

Hi

Im using FPGA FlexRio Kintex 7 with 6585B adapter.

i designed a Host panel to download the bitfile to the FLEXRIO , the panel works fine , and the file is download without errors .

Now , im having 2 different Host Vis that i want to run at the same time , to communicate with Target ,

Is it possible ? if Yes how can i implement it ?

 

Thank You.

cRIO 9035 RT

$
0
0

Hello everyone, I'm running my RT project on cRIO 9035, my timed loop delay execution like two and half minutes after I click run. I couldn't figure out why. The second thing is that when the program running for 8 hours, the available physical memory drops to 10Mb, but it still running smoothly, I could not figure out where the memory leaks come from. I'll be very appreciated if anyone can give some suggestions. Thanks. Code attached.

Strange issue - myDAQ (or perhaps DAQmx) works, but only kind of

$
0
0

So! Here's a fun one. I have a myDAQ connected via a SEH INU100 serial-to-ethernet adapter, and work using the  USB device server software. It gave me some issues that I solved once I updated to DAQmx v18.0, at which point it showed in MAX as a typical NI DAQ device. I tested it by setting +10V DC to the AOs to switch some components in a diagnostic I'm working on. All was good.

 

Well, all was good until I tried using the AI digitization functionality, at which point DAQmx Start Task.vi hung up (pic attached). Restarting LV doesn't release the task, as subsequential runs cause the "Resource is reserved" error. Rebooting the myDAQ releases the task, but does not fix the issue - DAQmx seems to hang when starting the task.

 

I cut LV out of the picture and used NI MAX tasks - same issue.

 

Here's the weird part: it records data just fine from TestPanels! I see my signal just fine. TestPanel uses the ELVIS module, right? Which driver is loaded in this TestPanels application?

 

Any thoughts from the community? I've included a snip of my currently installed software to help.

 

Thanks,

Alex

Set IP Address Request Mode for cDAQ-9189 programmatically

$
0
0

I would like to be able to set the IP Address Request Mode (static, DHCP/Link Local, DHCP only, etc) for a cDAQ-9189 programmatically. I know I can do this for network adapters on my IC-3172, but since the cDAQ does not read as a network adapter, I cannot use these property nodes. This setting is editable in MAX, so I figured it would have a counterpart in the LabVIEW environment. Please see my attached code for what I am trying to achieve. Any feedback would be appreciated. Thanks!!

 

Note: Attached code is intended to run on an RT controller connected to the cDAQ. See system setup below.

 

Hardware Setup:

My PC (LabVIEW 2017) -> IC-3172 Ethernet Port 1

IC-3172 Ethernet Port 4 -> cDAQ-9189 

 

Software:

My PC: LabVIEW 2017

IC-3172: LabVIEW Real-Time 17.0.2

 

Disabled control

$
0
0

Hello! 
The issue that i'm publishing may be obvious to you but i was struck with it
I have a sub VI that reads data from excel to get at the end the content of each sheet, when calling this sub VI in the main VI, I didn't understand why the control " Select a sheet" is disabled and can not display the sheets list in the excel file, although in the Sub VI they are displayed with no problem,
Please any hint would be helpful for me, you will find attached the VI
Thank you in advance

Split 10 bit words into two parts

$
0
0

Hi all

 

I have 10 bits word and I want to split the word into two parts .The first  part is  bits (0-7) and the second bits(8-10).

Thanks

Sattam

Making one VI from two

$
0
0

Hey guys,

 

I am very new to labview, have never used it to interface with devices like the ones I am using here.

 

The project is to measure and control the position of a microscope and to capture images from a camera. I have a VI that controls position, and I have a VI that gets an image. Each of these from different sources. However, I would like to make one comprehensive VI that does everything the two individual VIs do. I tried "Merge VIs", but that gave me a lengthy list of errors in the new VI.

 

My question is: What is the best approach to doing this? I do not have to knowledge (yet) to rewrite either of these VIs because they seem complicated, so is there a way to combine these two Vis?

 

Working on windows 10, microscope is an Olympus, camera is X-Cite 120LED Boost. Please let me know if there is any other information that would be useful.

Thanks for any and all help, it is much appreciated.


NI FM-RDS Toolkit

$
0
0

Hi everyone,

 

I using NI FM-RDS Toolkit in a project but I'm having some problems. I use this to create a IQ files of WAV audio in fomat FM/RDS.

Whith the toolkit I already modulate some wav audio, but when I playing the sound in a radio, I only can listen the first second or two of the song in loop. Anyone know the reasons for that? Can you help me to solve it?

 

Attached code.

 

Sort File path x.x.x

$
0
0

Looking for the forum thread on sorting strings/file paths of the numeric format x.x.x.x

(where the number of x's was probably known) and there was a requirement to sort them.

I thought it would be faster to find the thread with the good code than try to re-engineer some inferior code myself.

(trying to find the latest version of a file by file name, version number and extension in a folder)

 

Thanks in advance to whoever remembers the location or can think of better search terms than I've been trying for the last 45mins.

 

James

Add attributes to root XML Node

$
0
0

I have seen this discussion, and the methodology doesn't seem to translate: https://forums.ni.com/t5/LabVIEW/XML-Attribute/td-p/791406

 

I'd like to set the attributes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" and xsi:schemaLocation="/path/to/schema" in the root node. The original XML is here:

 

 

<?xml version="1.0" encoding="utf-8"?><root xmlns="http://example.com/XMLSchema/schema.xsd"><child/></root>

The desired XML is here:

 

 

<?xml version="1.0" encoding="utf-8"?><root xmlns="http://example.com/XMLSchema/schema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="C:\path\to\schema http://example.com/XMLSchema/schema.xsd"><child/></root>

My attempt (one of many, definitely wrong) is here:

 

xml root node add.png

Remote Front Panel via Web Publishing Tool - PXI RT

$
0
0

Hello,

 

I am very surprised by some strange "phenomenon". Namely, we use multiple PXIs working in a network. For diagnostic purpose, we network publish the Front Panels via HTML generated by the Web Publishing Tool. Basically we follow the procedure described here: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7YuSAK

 

First, we use the Web Publish Tool to create a HTML file based on the Main VI which will be the executed instance on the PXI. The HTML file by default gets created and saved here: C:\Program Files (x86)\National Instruments\LabVIEW 2015\www

We named it for example as: PXI_target.html. Ok, now we have to add this HTML file into the RT project. After this, we can go to the RT build properties, and start to configure it. Since we got some problems reaching the network published front panel (from the same laptop, which is in the same local network -isolated local network, same subnet- as the PXIs), we started to change things and deviate from the explained settings in the above link. For example, we do not include the HTML in the "Source files" --> "always include" field. We also deviated what was described in the above white paper, regarding to the "Source File settings" option: we did not set the "www" (alias for c:\ni-rt\system\www, we have PharLap) as the destination for the "PXI_target.html" file, but we just selected "Same as caller".

 

I repeat, with the recommended settings, I could not reach and load the 192.168.2.100:8000/PXI_target.html page (IP and format/port number is 100% correct!) using Internet Explorer (LV and LV RTE present, and Silverlight too), that is why I started to "play with the Build settings". Besides, I double checked, the PXIs have Web server installed, enabled and running after startup/reboot.

What is strange, I realized, Internet Explorer has a kind of strange behaviour, and even with these different settings, I can make it work. I I try to load 192.168.2.100:8000/PXI_target.html, I only get some error msg of the browser. However, if I attempt to load first the page as 192.168.2.100/PXI_target.html, I get an empty html "frame" and some error msg like the VI is not reachable. Strange enough, if at this point, I attempt to load the page 192.168.2.100:8000/PXI_target.html, I get the VI front panel loaded, and i can see it is live, and running, I can interact with it, etc...

From this point, I can reopen this page any time, no problem. However, if I close IE, I have to go through first the step which is trying to load the page without the port number! Smiley Happy

 

Now I am lost a bit:

  1. Why IE does this strange behaviour?
  2. Why the remote front panel works, even if I configured the RT build NOT following the recommended settings (the html file is not in the "always included", and the destination is set to "same as caller" instead of "c:\ni-rt\system\www")???

I can test later, what happens if I use the recommended settings, but keep doing the trick with the silly IE. Actually the IE fooled us, that is why we ended up changing the build settings, which in turn still work actually Smiley Happy

 

 

 

Usb camera works in labview 2015 but not in 2017

$
0
0

I just upgraded from labview 2015 to 2017. Usb camera (microsoft Lifecam) which used to work, is not being detected now. I open NI MAX, it shows usb devices connected to MyRIO, but not a camera. When i disconnect the camera, the items disappears from NI MAX. However if i plug the same camera in my laptop, the camera is correctly detected in NI MAX. Does it means my laptop have the proper driver and MyRIO does not? 

 

I have the 2015 version still on my laptop. When i try the camera on my old MYRIO with Labview 2015, on the same laptop, everything works fine. Anyone have an idea what is going on? Any advise is much appreciated.

Creating an "Abort" state in a state machine (used for a state machine sending digital output signals in sequence)

$
0
0

Hi,

 

I'm making a VI used for data acquisition and it needs to be able to send out digital output signals to certain valves in a timed sequence, as well as send signals from manually pressing switches. I set up a state machine to accomplish this and it works for the most part, but it also needs to have an abort state that the state machine immediately goes to upon pressing the abort button. The problem is, I'm not sure how to interrupt the sequence (especially during any of the wait x milliseconds frames) and immediately proceed to the abort state without having to wait for either the current state to end or for the sequence to end. Any help on how to do so is appreciated.

 

I have attached a model VI of the situation as well the relevant portion of the full VI I'm making.

NI-9402 can't run with cRIO-9039

$
0
0

Hello,

I am using the cRIO-9039 and created a project as shown in the image below.  Connecting to this cRIO-9039 are two NI-9402 modules.  I can run a VI called "I2C_NI940_One I2C Port with Multiple Commands Sent v12 - Multiple Slaves.VI" fine when this VI is located in the "FPGA Target" folder, and I select "Labview FPGA Interface" in the "Chassis Properties" (see image below). 

 

1 - 9039 cRIO project file.png

 

However, when I tried running the NI-9402 under the cRIO-9039 project, tons of errors popped up. How do i fix this problem? Here are some info on these errors:

  • I've dragged the 9402 VI called "I2C_NI940_One I2C Port with Multiple Commands Sent v12 - Multiple Slaves.VI" into the cRIO folder and tried running, but it's giving me errors (see errors below). 
  • None of my I2C block seems to exist in the cRIO-9039 folder, but it does exist in the FPGA folder.  See the 3rd image below.

2 - errors.png

 

3 - I2C blocks.png

 

 

 


Is Labview C generator supports intelx86_64?

$
0
0

Is Labview C generator supports intelx86_64?

Auto-populating folder in labview 2017

$
0
0

In my labview project,  auto-populating folder changes to virtual folder sometimes. THen i have to convert all the folders back to auto-populating manually. 

Why this occurring in the project? isn't it suppose to remain in the auto-populating after restart of the project?

Weird Tool Tip issue

$
0
0

I just had this weird toll tip issue where the tool tips suddenly started only displaying on LEAVING the control they were attached to.  Even weirder, it even affected executables built before I had this issue.  So, you think maybe fooling with the options concerning tool tips might help, but nope.  The issue also survived computer reboots.

 

To see if it happened to new tool tips as well, I created a tool tip for a control that never had one before and it worked fine.  Then all the other tool tips in all my other projects and executables starting working properly again.  What's THAT all about???

 

LabVIEW 2014.

Soft motion SolidWorks

$
0
0

Dear LabVIEW users, 

 

Actually i have been stuck for a couple of days seeking to synchronize solidworks with Labview using the soft motion module, unfortunately i couldn't see any rotary axis under the solidworks assembly in the project explorer window. well i found out that i need to synchronize solidworks with Labview but i didn't find any clue or icon to click on. 

 

Please check the screen captures below. 

Looking forward for your kindly helps. 

 

Data Processing- Filter data in tdms using Labview

$
0
0

Hi,

 

I had wrote a program that save all the raw data in a tdms file. 

But I am facing problem to filter out those data that I wanted. (Please refer to tdms file attached) I need to filter out those rows that 'At Position' is 1, and save those data in another sheet in that tdms file for further data processing.

Can it be done in Labview?

 

I had also attached the Labview Code. Please go to the 'Data Collecting and Processing' Loop.

 

Appreciate your help.

 

Regards,

Lie Theng

 

 

Viewing all 66855 articles
Browse latest View live


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