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

My Yokogawa WT500 power meter does not show up in NI MAX.

$
0
0

Hi,

 

I'm trying to communicate via USB with a Yokogawa WT500 power meter but it won't show up in NI MAX under "Devices and Interfaces". I'm running LabVIEW 2013 on Windows 10. I have NI-VISA 16.0 installed as well. When I plug in the device, it shows up in Device Manager under "Other Devices" as "WT500".

 

It should show up under "USB Test and Measurement Devices".

 

How can I fix this?


Boolean for activation of a pixel on a sensor

$
0
0

I have a sensor that takes measures the thermal environment. It is a 4x4 pixel array. I have a working VI file that outputs values that was given to me.

 

I would like to add a light that shows if a each pixel array is being activated by radiation, so it must slow down the time delay for this to be noticeable. I have no idea where to start with this, I have the internal address of the voltage generated from each pixel, so I was thinking that if this is greater than zero then it would activate a light. I've been trying for several hours and since I am new I am struggling to get this working.

 

How to use Flush Event Queue Function with static events

$
0
0

Hi,

I would like to flush all unhandled events after my event structure loop is closed. In example: I have a VI with string control and boolean button. All these controls have its own event case for value change which closes the loop. If I type something in string control and update its value, not by pressing enter on my keyborad, but by clicking boolean button, I will have two events: one for string value change (which will close the loop) and second for button value change, which will not be handled. 

 

I solved this issue with dynamically registered events for these controls, but based on help for Flush Event Queue Function, I assume it is also possible to flush static events somehow... and this is my problem - how to do this?

 

Sorry I did not include my code, but I can't do this.

add the cid property to the attachment object before sending the email

$
0
0

I want to send an e-mail with an attachment but I need to include a content ID (cid) in the attachment properties (cid=myfilename). This content id will be referenced later from the body of the html email. How can I add the cid property to the attachment object before sending the email in LabView 2014?

Reason behind Robotic Arm in Robotics Environment Simulator vibration

$
0
0

I have managed to design my robotic arm using LabVIEW's Robot Model Simulation Builder and have included my robot in the Robotics Environment Simulator and I'm controlling my arm in the simulation by manually controlling the servo sensors on each joint, I noticed that my arm vibrates a lot when it should be standing still in it's position. I need to fix that, what can I do to fix this issue. I have attached a screen shot of my program's front panel. I can show my program if that would help with finding the issue. 

 

PS. I have added the actual masses of each link in the robot model, I'm thinking that it could be an issue with the dynamic parameters of the model that i could be missing. 

GigE camera with cRIO-9068

$
0
0

Hi everyone!

I have short question regarding the possibilities of my cRIO-9068. I want to use my GigE Mako G camera with it, plugging it into secondary ethernet input. But I can't see it in MAX, although I tried some steps with IP settings..

I have read somewhere on this forum, that there may be a problem with cRIO's using GigE cameras. Is it really no possibility at all to use this camera, or should I just change some settings of it? Maybe change the settings from GigE into normal Ethernet? 

I would be grateful for any help!

Jola

 

Waveform of timestamps

$
0
0

I have an application where it would be very (Very) convenient to be able to store a timestamp array in a waveform.  I'll admit, it's a bit weird to want to do this, but it would greatly simplify my handling of TDMS channel storage and post processing to be able to treat timestamp data in exactly the same way I treat other data channels (Everything treated as a WFM).

 

Specifically, these timestamps represent the actual sample times of some special data that comes in on UDP packets.  I normally treat the UDP packets as regularly sampled data (With a fixed dt), but the time stamp channel represents the precise time of receipt of each packet (Jittery).  The total jitter is < about 10% of the dt under normal circumstances.  Since the timestamps correspond 1:1 to each sample I would like to carry that along with the channel data as if it were just another channel.

 

So, is there a reversibly store 128 bit (I64,U64) LabView timestamp data in a single waveform compatible data type that can be written and read from TDMS?  CDB? EXT?  I know I can just write an array of timestamp but that defeats the desire to make these generic in terms of handling.

 

Thanks,

XL600

VI Server terminating VI

$
0
0

Hi. I am trying to load a vi from Python. (the .vi will build a specific executable).

To do this I have used the below python code. The VI Server seems to be terminating my attempts to open a vi. is there anyway of stopping this?

 

 

 

C:\> pip install pypiwin32
C:\> py
>>> import win32com.client>>> LabVIEW = win32com.client.Dispatch("Labview.Application")>>> VI = LabVIEW.getvireference('<path_to_vi>')>>> VI.Call() File "C:\...Python\Python36-32\lib\site-packages\win32com\client\dynamic.yp", line 516, in __getattr__ ret = self.oleobj_.Invoke(retEntry.dispid,0,invoke_type,1) pywinterypes.com_error: (-2147352567, 'Exception occured.', (5010, 'LabVIEW', 'LabVIEW : VI execution terminated by the server.', None, 0, 0) None)

 


Installer without administrator privileges

$
0
0

Hi,

I have wrote a program with labview and built an installer. The destination is C:\Program Files\my app.

Because of IT department policy i don't have administrator privileges on my pc to install anything.

Every time i must call IT college for a help to run my installer.

Is there any way i can run the installer without admin rights?

I have tried to change the destination C:\Users\xxx\AppData\Local\my app. But it doesn't work.

I hope you can help me. Thanks in advance.

Lei

 

Importation DLL et définition préprocesseur

XNET flexray Frame Input Single point problem

$
0
0

 

Hello

I use sessions to read frames from an ECU over flexray.

Somehow I never get a frame using the Input Single point.

But If I instead use the Frame Input Queued I can read all frames since last time I read using the queued version.

Although I am only interested in the last "Event" based frame.

 

Any ideas? 

Here are two pictures from the config of the sessions (both use the same port 2). 

 

Flex_FrameInputSinglePoint.png

 

And the Queued version

Flex_FrameInputQueued.png

 

/Mats

How do i get NI-DAQmx for Labview 2011 sp1 when i also have Labview 2014 sp1

$
0
0

I am trying to find some vi's that are located in the DAQmx library for LabVIEW 2011 SP1 but i also have LabVIEW 2014 SP1. How do get the DAQmx library for LabVIEW 2011 sp1?

DELETE EMPTY ROWS FROM A 2D ARRAY

$
0
0

How can we delete the empty rows  from a 2d array...?

Can I use an OPC server to connect a VFD to Labview?

$
0
0

I am having trouble communicating to my Durapulse AC drive using Modbus. The idea of using an I/O server seems like it would make the process much easier. I don't have the money for a DSC module.

 

I was wondering if there is a free OPC server floating around that I can use to communicate to my VFD so that I can have an easier time integrating Labview with Modbus. 

 

Thanks.

IMAGE NOT ACQUIRING IN THIS.. WHAT IS THE ISSUE

$
0
0

Look at the vi... the video in the front panel is not working properly.. i used a sub-vi in this. code.pngsub-vi used :

 

subvi.png 

what could be the error in this.???


Send message from one PC to another via TCP/IP.

$
0
0

Hello,

I need to connect to PC's. In the first, I will have a VI receiving data from two RF antennas. The same messages are received containing several data and a CRC. Each line is checked for their consistency and the one with no errors is selected and saved in a text file. If the two messages have no error, then Antenna 1 have priority.

Now I want to transfer this lines to another computer, to be processed in another VI that displays the data from the message.

Let’s say that the first computer and VI acts like a server after checking for the “best” message.

For this data transfer I am thinking about using TCP/IP connecting the two computers via cable.

I saw some examples of VI’s for sending and receiving but I am not very familiar with this protocol and procedures.

Can I have your help please?

Thank you.

Duarte

Should I delete all other versions of a library I decide to use?

$
0
0

I have decide to use NI Modbus Library version 1.1.5.39. I have a few other Modbus libraries downloaded so I was wondering if these libraries will in any way interfere with the Library I plan on using.

 

Thank you.

Display incoming data in log window.

$
0
0

Hello,

I am asking for help doing this:

  • I receive messages via Serial Port, each 500ms.
  • I need to display this messages line by line in a window/indicator in my front panel, creating a kind of text log.

Can I have your help on how to do this?

Thank you.

Duarte

FPGA to Host Data Aquisition Trouble with FGPA I/O Items

$
0
0

Hi everyone - 

 

I'm having an issue where I can't seem to get my FPGA code to read data channels. My goal is to pull data using FPGA, push it to a DMA buffer, and then have my host computer pull data from the DMA buffer and save it. The goal is to take pressure and temperature data at 2000 Hz. 

 

Current Issue

I've used the FPGA wizard to create an FPGA VI and a host VI. While I'm in the FPGA VI, I need to tell it to read in which channels (from the NI 9201) and to write them to the buffer. I can add a Read I/O Method item, and it shows three options. I/O Item, Timeout, and Timed Out. I believe when I click on I/O Item I should be able to select Mod2/AI0, for example. But instead it just says "No FPGA I/O Selectable". I'm not sure what I'm missing. I've attached the screenshot of the error, my two VIs, and a screenshot of my project. 

 

Troubleshooting

I tried to use an I/O node instead of a Read I/O Method item. For this one, I am able to select I/O items without issue. However, when i try to take in data and then display it on the FPGA front panel (for debugging purposes), the data remains at 0.00000. I'm expecting it to read 0.0000 , -0.0001, 0.001, etc from jitter. If I try to pass it to my host VI and save the data, the resulting data text file is empty. It's possible that I'm not passing or saving the data correctly, but my suspicion is that I'm just not reading in data from the start, and so I'm not passing anything through the buffer. Also - if I try to create a Reset I/O method, I get the same error where it says there are no selectable FPGA I/O items. So I'm not sure why I can select them for a node but not for method(s). 

 

Please note that I'm using an expansion chassis, so I don't have Labview Real-Time. After reading Labview material, it says that I should be able to pass the FPGA data directly to the host, but it might not be an expected method of data aq. 

 

Hardware

 

  • NI 9146 with 4 slots that have:
    • NI 9213 with 6 thermocouple channels
    • NI 9201 with 8 pressure transducer channels
    • NI 9472 empty
    • NI 9472 with 5 valve command channels
  • Lenovo Desktop computer, with Windows 7 64-bit

 

Software

  • Labview 2011 SP1
    • Development System, Professional Development System
    • Application Builder, FPGA Module (and FPGA Development), Real Time Module, Touch Panel Module
    • All available toolkits
    • NI LabVIEW Signal Express 2011
    • NI LabVIEW System Identificaiton Assistant 2011

 

Any ideas where I'm going wrong?

Autopopulating folders lead to broken EXE

$
0
0

I have an old project that I am trying to build and this behavior is driving me nuts.  Is this a bug or is there some hidden behavior I am not seeing.  It is a large complex project but here is the guts of the issue.

 

I have a Main.vi, which I open and run.  No issues.

I build that VI into an exe, it is the only include source file, however there are 3 shared variable libs that it calls and are deployed.  No fancy project settings.  I immediately go to run it on the same machine that built it and broken arrow in the EXE, full development environment needed. 

 

Now, to the Issue\solution.  The project has auto populating folders which Main resides in, and some of the VIs in those folders are broken or missing.  Now the main VI is not broken, it runs fine.

 

So I go to the project, change the auto populating to stop auto populating.  Go to the exe and rebuild.  Run the exe and SUCESS.

 

So my question is this.  The source VI to the exe is Main.  I didn't make any changes to it.  The only change that leads to a successful RUN (not build) of the exe is to stop auto populating.  There is no build error when the folders were auto populating.  It may be related but there are diagram disable sections that have broken areas in them. 

 

So.... bug?  And in which component?  I get that a broken VI would lead to a broken exe, but in this case the VI was never broken, the "project" was, and the build "succeeds"

 

 

 

Viewing all 69019 articles
Browse latest View live


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