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

waveform labview FPGA

$
0
0

Hello,

I work with Labview FPGA

I send a sinussoidal signal on the AI0 module, on the oscilo I see the complete and perfect signal, but on the graph of labview I do not visualize my signal!


Producer/Consumer Best Practice

$
0
0

So I have been using LabVIEW for a few years now and still have a relatively simple question. I have posted three examples below and am wondering what is the best practice when it comes to using the Producer/Consumer with a Message Queue architecture. My gut tells me to always do it like Example 3, but I don't know why exactly. Maybe they are all the same until you get to a certain level of complexity. Any documentation you can point me to is much appreciated.

 

EXAMPLE 1 - Control Outside Event Structure, passing message only and use the control to update the indicator. 

 

Example1.PNG

EXAMPLE 2 - Control INSIDE Event Structure, still only passing a message and updating with Local Variable.
Example2.PNG

EXAMPLE 2 - Control INSIDE Event Structure, Passing message AND value from Control, unpacking it inside the consumer loop to update the indicator.

Example3.PNG

Query Interrupted After Every Other Run

$
0
0

I'm debugging a program that outputs a voltage to an Agilent 3633A power supply. The program will run fine, then the next run it'll report "-410,"Query INTERRUPTED"", then run fine again the next time. I've tried *RST, *CLS, and even manually turning off and on the power supply between each run of the program to try clearing the query, but the problem still persists. I've been looking through the discussion boards all week but can't find anybody with the same problem or a solution. Does anybody know what might be causing this problem?

 

I've attached screenshots of the program.

 

I'm very new to LabVIEW and would appreciate any help, thank you!

NI-CAN frame API ncWriteNet with a DataLength greater than 8

$
0
0

Hello to all,


I am using NI CAN frame API to write and read data from a CAN device , I have no problems with all frames except a frame than has a length of 10 bytes and the problem is that the DataLength of the ncWriteNet function can't be greater than 8 bytes, I would like to have a solution for this problem to send my data,Any suggestion? for example can I divide the frame to 2 parts and send it in two attempts. I am using pci-can/xs2 series 2 as hardware.


Houssemeddine Snoussi
Certified LabVIEW associate Developer | Certified TestStand Developer

live imaq video crop

$
0
0

Hello,

 

I am working with a thermal camera and I am constantly displaying a live feed.

Does anyone know how to crop the video and display it with a width x height set up by the user? Basically, the camera displays the logo and some other features that I would like to get rid of by cropping the edges out.

Thanks,

Attila

Open Large TDMS File Results In File Deletion

$
0
0

I have a large TDMS file that gets logged to by code running on an embedded Linux RT controller, cDAQ-9136.  It logs this data to a USB drive formatted in NTFS.  The resulting TDMS file size is roughly 4.2GB and the index file is 14MB.  After the test was done we pulled the USB drive out, plugged it into our Windows computer and went to do some data processing. 

 

Using a normal blank VI I can call the TDMS Open function followed by the TDMS close.  The Open generates an error 6 Generic File I/O error immediately.  After generating this error the TDMS file is gone!  Using some undelete software we were able to recover it and from that point on we decided it would be best to copy this 4.2GB of data to our local hard drive then run post processing code there.  The result is the same with this recovered log, and other new logs.  Calling the TDMS open generates an error and then the file is deleted.  In one case I noticed that a .tdms.log file was generated with the following text in it:

 

 

***************** New logfile section *******************
TDMS: ERROR: TDS Exception in Initialize: Tds Error: TdsErrFileCouldNotBeOpened(6):

I assume this was generated by the TDMS API.

 

 

I opened the TDMS file in a hex editor, and then deleted roughly the second half of the file, stopping at a chunk (a section starting with 0x54 44 53 6D).  This first half of the log appears to open just fine and regenerates the index file and can be processed.  This leads me to believe that there is some TDMS limitation that I am hitting which is causing an error and file deletion.  From what I've read the file size shouldn't be the issue because it is on an NTFS drive both on the USB or when copied locally. 

 

Looking at the number of samples in a channel I see that the first half of the file has 2,242,727,592 samples, meaning the full file has roughly 4,485,455,184 samples.  The offset and length inputs to a TDMS read are I64 so I assumed that meant I could address the full range of I64 positive values (9,223,372,036,854,775,807).  All my searching on TDMS limitations say I'll be limited to the harddrive size before anything else but clearly this isn't the case.

 

So first, what limitation could I be hitting, and is there a way to avoid it?  And secondly why is my file being deleted on a File I/O and can if this is a bug in the TDMS API can this be fixed?

 

LabVIEW 2018 32-bit is used on Windows 7 x64, with all other toolkits and sofware coming from the 2018 developer suite DVDs.  I don't mind sharing this 4.2GB file but obviously it will take a while to upload, and download it.  Does NI have any suggestion on how to share the file?

 

Also just a little bit more information if you've made it this far.  The reason for so many samples in a channel, is because this is a CAN bus log, and NI has made a standard for logging raw CAN frames by flattening a single CAN frame into an array of 24 bytes and writing that to a single TDMS channel.  With a standard CAN bus at 500Kbaud, and logging for multiple days, the number of samples in a channel get quite large.  I'm open to creating my own TDMS CAN log standard made up of multiple channels, but then it won't mean being able to use the DIAdem Bus converter, not that I can do that with these large files anyway.

State Diagram Toolkit - Possible to generate State Diagram from LabVIEW State Machine?

$
0
0

Is it possible to automatically generate a State Diagram from an existing LabVIEW State Machine using the State Diagram Toolkit, or is it necessary to manually generate it?

 

Thank you for your kind assistance.

Reading a SSI RS485 rotary encoder with PXI-8423

$
0
0

I have a Gurley A19 absolute rotary encoder with a SSI RS485 interface. I am trying to read it with my PXI RT. I am clocking the encoder with a PXI-6713 and am trying to read it with a PXI-8423. I am getting error -1073807253 framing error and error -1073807298. I am not sure if I can read this device with the hardware I have. I haven't been able to find any example code for reading Gurley encoders.


Error 0xC0000006: Cannot Open VI

$
0
0

Hello All

 

I have recently taken over an engineering position at my company and am working with some existing LabVIEW VI's. The majority of them are working normally, but I have one VI I simply cannot open. I'm not sure if it is a problem from before I started or something on my new computer.

 

I'm using LabVIEW 2016 (32-bit, 16.0f5) and when I try to open the VI (either manually or via the project) it will wait a long time and then give me this error:

Labview Crash.JPG

The file itself is very large (57MB) and much bigger than any other VI's in our system. Unfortunately, since this was created before I started, I don't actually know what is in the VI.

 

Has anyone encountered this error before or how I might get around it? Every other VI we have has worked fine with my computer setup.

Synchronizing data saving of high and low speed Daq with a triggering event

$
0
0

I am currently having issues with synchronizing my data saving for my labview code. Attached is an image of the block diagram of my code. What I am trying to do is to collect high speed and slow speed data and to continuously display the data on the front panel. Then when I trigger the injection event (as seen as the slow event) I want to save the data that is being read for three seconds following a digital TTL trigger. My current design is to always be polling for a write to measurement file in the while loops for the high speed and slow speed data collection and have them initially set to false. Then, when I trigger the system in the slow event I also set the boolean to true for the write to measurement file to start saving data. I then have two more while loops that will delay switching the the save data booleans to low for 3 seconds. This is my first time using labview and so it was the best design I could come up with but it is clearly lacking. I am unsure if the data is truly synchronized with each other, and synchronized with the initial pulse output in the slow event. I have done some research into a better strategy but I have not been able to find a solution that allows for me to continuously collect high and slow speed data, and then to synchronize the data collection with a given ttl trigger. I was hoping someone might be able to provide me with a little guidance on a better direction to take to accomplish the continuous data collection and the synchronized data saving. Also, the slow speed daq is NI cDaq-9174 (with modules three of 9214 and one 9202) and the high speed daq is NI USB-6356. The high speed daq is also what I am looking to use to create the trigger for the data synchronization (it is also being used to start our experiment). Thanks.

FTP Put file via MyRio1900 Error 59 (TCP Open Connection)

$
0
0

Hello everybody and thank you in advance for your help. I'm trying to upload a file from a MyRio 1900 on a FTP Server. On my pc the code works, but when i ran it on the MyRio it gave me Error 59 (TCP Open connection. Possible reason: the network is down, unreachable or has been reset). I'm trying to upload it connecting the MyRio to a modem via WiFi. Attached the project.

 

Thank you in advance to everyone who helps me with this problem.

Is using Labview GUIs unprofessional?

$
0
0

I am a test engineer at a high tech company in San Francisco bay area. I have been developing Labview automation routines for several years but mostly in the academic sector. I am new to the industry environment. I have had multiple arguments with one of the Engineering Managers about using Labview in final production tests on devices and on sending customers Labview GUIs to interface, control, and automate their tests and equipment with our products. He says that Labview is very slow and nobody uses Labview in production settings. He also thinks that sending customers Labview GUIs is unprofessional. He prefers GUIs written in C language.

 

I wanted to see what's your thoughts on that and if there is an article or a reference I can cite to convince him otherwise    

OMRON E5CC - S.ERR

$
0
0

Hello everyone,my problem is related to Digital Temperature Control OMRON E5CC,at my workplace I had some problems with one of the furnaces I wanted to fix,I wanted to correct against another device that we check the temperatures and too much zeal in the protected area, but I did not give up, I passed passwords (cmoV with password 1201) I reached adj 30, where I followed the steps and I managed to decalibrate it.Now I'd be glad if I could get to the factory settings.use a temperature sensor type J (-200 to 1300),today I will try with a PT100 sensor.I would like to get some advice or opinion about on how to recover the Omron device. Thank you in advance.

How to combine two instruments in one software

$
0
0

Hi everyone,

 

I'm absolutely new to LabVIEW, so apologies if my question sounds super silly to more experienced people here! 

 

I'd like my software to control a delay stage that is commanded by a separate control box (Conex) and a virtual power meter. I'd like the delay stage to stop at specific positions and the power meter to simply measure the power at a specific point and plot it. I have two software parts, but I'm not sure how to combine them into one- could anyone please help me combine them into one? I'd really appreciate your help! I'm using LabVIEW 2014. 

Apple iPhone 8 Plus Unlocked,Sony Playstation 4 500GB

$
0
0

New in box
comes with complete accesorries included with 1yr international warranty.
Factory Unlocked

iPhone 8 introduces an all‑new glass design. The world’s most popular camera, now even better. The smartest, most powerful chip ever in a smartphone. Wireless charging that’s truly effortless. And augmented reality experiences never before possible. iPhone 8. A new generation of iPhone.

Interested buyer should contact : sales.ttelectronics@outlook.com

-------------------------------------------------------------------------------------------------------------------------------------------------------
İmage



Dimensions: 265 × 288 × 39 mm
Weight: 3.3 kg
Processor: Eight-core AMD Jaguar x86-64
Graphics Card: 4.20 TFLOPS from AMD
RAM: 8 GB
Hard Drive 1000 GB
3 USB 3.1 ports, HDMI 2.0 connector with HDR and 4K support

Interested buyer should contact : sales.ttelectronics@outlook.com


I want to acquire a large number of samples consecutively with analog discovery 2 using LabVIEW

$
0
0

We would like to obtain signals with analog detection 2 using LabVIEW.
However, we can collect only 8192 samples at present.
How can I take more samples?

How to simulate a circuit consist of transistors in labview?

$
0
0

Dear friends,

 

Hi there!

 

I am new to labview and for now I need to build a circuit with transistors, TFT better, and then I will test the circuit with the code I built in labview. Could you please give me some advice on how to simulate a circuit consist of transistors in labview?

 

Thanks a lot!

 

Jason

Not able to see OPC server in Configure OPC Client I/O Server

$
0
0

I am not able to see the servers or the NI Variable engine running as shown below. Please let me know how can I see the servers in the local machine.

 

 

IMG_20180619_110946_resized_20180619_111229524.jpgNO Servers Shown in List

Offset value of Simultaneous analog input NI 9683 GPIC

$
0
0

I want to take the voltage/current sensor signals from the simultaneous analog input of NI 9683 GPIC board. In most of the examples it is given that to get the actual signal, the offset value is subtracted from the output of the GPIC board and the resultant is multiplied with the sensor gain. I could not find how to select the offset value. In both the attached model scaling is taken different.

Using SDA pin in I2C

$
0
0

I'm trying to use (pin34) "which is the SDA pin in I2C in myRIO" as a digital output first then use the I2C icon to start sending and receiving data between the i2c device and myRIO but it sends an error "363008" which says pin 34 is already specified as an output pin so i need to find a way to reset this pin after i send a signal on it to use it in the I2C icon..any help??

Viewing all 66670 articles
Browse latest View live


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