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

FPGA Timekeeper and PPS

$
0
0

I use the FPGA TimeKeeper to synchronize my FlexRIO-7966 FPGAs to my PXIe controller's system clock.  This has been working well and give me roughly 5us of error.

 

Can a PPS input (From an external reference) be used to further increase the accuracy of the FPGA TimeKeeper?  If so, are there any alrogithms (FPGA VIs) already developed to do this?

 

Thanks,

 

XL600


Visa Write in Error: -1073807339

$
0
0

I'm receiving this error whenever I try to run my function.

 

The idea behind the function is to allow the user to input an 8 number string which is characterized as follows: channel (0-16), high value (0-255), low value (0-255).

 

This program uses serial communications (serial.read, serial.available, etc.), and it runs via USB (Com3).

 

However, I'm getting the error code -1073807339, "VISA Write in 'program.vi'" whenever I try to run my program.

 

The labview code is attached to this post.

ActiveX (MintController): Error 1057 after linking with driver

$
0
0

Hi, I'm relatively new to LabVIEW and have been trying to control a Baldor servo motor using ABB's Mint ActiveX controls. I pass a refnum from the ActiveX container to an invoke node called "SetMicroFlexE100Link" that sets up the connection to the Microflex e100 driver we're using. This works fine. Right after that, I send the same refnum to another invoke node to get the driver's relay status and the program throws an error (see attached image for block diagram and error message). According to this tutorial, what I have should be sufficient, so I'm confused as to why I am getting these errors.

Any ideas about what's going on would be greatly appreciated. Thanks!

Queued Message Handler with Desktop Execution Trace- Opinion Requested

$
0
0

So I use a common library at my work for the Queued Message Handling. I recently started using DET and added custom traces to this library containing the message and destination. Right now, it's just a reference number so it's hard to quickly debug. So I wanted an opinion on which would be best way to approach adding a name. I have two ideas:

 

  1. Via lookup table: On obtain, store a name and reference (not obtained by name) in some flavor of global. On enqueue/dequeue, do a lookup for that reference and label the trace.
    • I get a little bit of heartburn over for a common library in user.lib containing a functional global as well as lookup time for each enqueue/dequeue function.
  2. Via queue name: On obtain, obtain by name and tack on a random number. On enqueue/dequeue, use the Get Queue Status.vi to grab the name and label the trace.
    • I have to obtain by name which is generally frowned on. If I get a sufficiently long random number there is little chance of grabbing someone's queue on accident, so I'm not sure if this alleviates this concern totally.

Let me know what you think, or if you have other ideas. Thanks.

Spreadsheet String To Array Function Tab Delimiter

$
0
0

Hi all, I'm trying to use spreadsheet string to array function to read in multiple lines of texts and separate them into a 2D array. I have trouble using the delimiter. The default delimiter is tab, if I leave it unwired or use the Tab Constant, it works, but if I use \t, it doesn't work. I'm using Labview 2013 and Windows 7 64bit.

Anyone knows what's going on? Also, if I want to use multiple delimiters, what should I do?

Thanks!

 

Ayuda con trabajo 2 Tanque comunicados con tuberias

$
0
0

Hola, soy nuevo en el tema de scada y estoy manejando el labview, necesito ayuda con este problema.

Tengo 2 tanques el primero esta lleno y tiene una valvula manual, al abrir la valvula debe vacearce el tanque 1 y llenarce el tanque dos y en el momento que el tanque 2 se llene debe vacearce y empesar a llenar nuevamente el tanque uno, yo tengo la imagen de el panel frontal para que lo analicen y si me pueden coloborar me aporten con sus ideas muchas gracias... adjunto la imagen del panel frontal

File - Project sort by date on start screen

$
0
0

Question.PNG

 

 

I am curious if a way exists to sort VI's  / projects by date at the start screen. Not sure what e proper name is. See the attached screenshot.

 

 

 

Books about test automation

$
0
0

I want to buy some books about test automation,Involved in architecture,Programming ideas,Air test, data acquisition, processing, display and save.and so on.Do you know what are some good books?

Thank you very much.


Creating a SubVI to Configure Instrument Settings (Best/Easiest/ Way all you experts do it)

$
0
0

I have an Action Engine that controls my communication with an instrument (Init_AE, Spot Measure, Start Continuous, Stop Continuous, Measure Continuous, Close_AE). I would like to have a command that is Configure AE that opens a SubVI for editing important controls for the application. I have been going back and forth on how to do this properly for days and am pulling my hair out.

 

Right now I'm passing in a clustor with all the controls and returning the same typedef of clustor back to the Action Engine to be stored in the uninitialized registor for settings. 

 

I'm just having a problem with using events within this SubVI and would really appreciate some feedback. I'm sure most of you will laugh at this method i'm trying to implement but I've reached a brain block and need some ideas please. 

 

Thanks,

 

Kellen

 

Full_B2985A is the main template that I'm trying to replicate from insturment to instrument that I'm programming.

B2985A_AE is the action engine I mentioned above.

B2985A_CFG is the mess of a configuration SubVI I'm working on.

Error 61024 occurred at niLvTpga_OpenCRIO9118.vi

$
0
0

Dear all,


I have a cRIO-9024 with a NI 9881 (CanOpen communication) in slot 2. I have done a project in which I have already created a blank vi (bitfile) and another vi that run it, according to the steps vi called "CANopen_cRIO_FPGA_Dummy".

My next step was to read and write frames CAN with a device connected to the card NI 9881. To do this I used the "CANopen Read Write CAN Frame" vi example, that were in examples of NI-Industrial Communications for CANopen.

When I run it, appeared an error message, which asks me to update the firmware using "C: \ ... \ examples \ NI-Industrial Communications for CANopen \ Utility \ Module Firmware Update" (I have attached an image of this error).

When I run the firmware update vi, appeared the error 61024 (I have attached an image of this error). I've been looking through forums and NI website, and all I've seen it could not have compiled the bitfile, but I have compiled. I could see the NI 9881 module in MAX program.

 

Could anyone help me on what I can do to update the firmware and to run the vi that reads and writes CAN frames?

Thank you very much.

Best regards.

Image Matching with Labview Golden Template

$
0
0

Hello everyone!

 

I am currently trying to implement an image matching algorithm on two .png images (let's call them Template and Photo).

The idea is that Template contains an examply of what should be shown in a certain part of the Photo.

The Template and Photo have different image sizes.

 

What we want to achieve is :

 

1.Find the appropriate ROI in the Photo, where the Template is likely to be found

2. Compare the ROI with the actual Template

3. Get a similarity percentage as result (e.g. >90% similar -> Definite Match , 70-89% -> Possible Match , <70%similar -> Not a match)

 

Do you have any ideas of how we could implement this?

 

We are currently using LABView 2015 SP1 - 32bit with the Vision Add-On

We have considered using a modified version of the Golden Template Inspection.vi (can be found) but are stuck because the IMAQ Compare Golden Template Module keeps on returning error message attached to the post.

 

Any feedback on possible debugging is also welcome!

 

Thanks!

 

 

 

Controlling GangPro-ARM

$
0
0

Hi,

 
I have recently purchased two GangPro-ARM programmers and I am looking for some advice. I would like to able to control the programmer via LabVIEW. Do you have any information/ advice/ further reading on how I would go about going this?
 
Many thanks

launch clone vi

$
0
0

hello,

I need to launch multiple instances (or clones) of the same vi.

 

In the attached labview project I am trying to do it, the only problem is that when I look at the VI Hierarchy I only see 1 instance of the VI I am trying to clone. So I think there is something wrong.

 

As you can see,I use the  "open the VI reference" block with option 8, plus I set the VI execution property to be reentrant.

 

Can somebody point me out a possible solution?

 

thanks in advance 

 

 

Is it possible to plot a 4D graph in Labview with cuts?

$
0
0

Hello,

I have a list of points with (x,y,z) and T. I would like to plot these points in a 3D graph but also to give a colour to this points according to the value of the value of T. I would like to fill the space between this points with acolours gradient (I mean between two points with low and high value of T, it will be a gradient between red and blue for instance).

I am planning to run this plot in a loop, so I can see the change of the temperature inside a volume of cube following a grid of points if I make vertical or horizontal cut in the middle of cube).

This is very similar to follow the change of the temperature inside the sun for example.

Cheers,

Zied

Start/Pause/Resume Data Acquisition with DAQ assistant within a while loop

$
0
0

Hi everyone,

 

I'd like to create a VI in which I can start/pause/stop analog data acquisition and data display in a graph indicator with a DAQ assistant in the automatically generated while loop. I have seen that I can use event sructure or case structures. What would you recommend?  Is there an example I can refer to?

 

Thanks

Regards,

 

ES


IHTMLDocument2 and save jpg file from URL

$
0
0

Hello everyone,I was trying tosave to fileajpgimagepresent on awebsite that hasHTTPS.
Because DataSocket not work withhttps,I wasusingActiveX,but I have aproblem.

I can notextract the contentsof the imageand thensave it toJPGfiles.

I'm stuckto the question of the Annex.

Can someone help me?
THANK YOU

Labview 2015, Write to spreadsheetfile not avalibel

$
0
0

Capture.PNG

I have just installed labview 2015 platform. But “write to spreadsheet file” is not present.
Have I done anything wrong?

ButterWorth Filter FPGA d'ont work with Cuttoff frequency less then 50mHz !!!

$
0
0

Hi,

I'am using Butterworth filter in FPGA Code labview with PXI7841R.

I wana put a frequency less than 50mHz but i can not introduce i modified Sample rate parameters wchich allows to put less than 50mHz frequency but the behavior is not the same.

 i want to introduce cutoff frequency Fc=2mHz Fc=10mHz with 1order filter in FPGA math. 

 

Thanks for future advice.

 

Convert dnp3 protocol to modbus

$
0
0

has anyone tried to communicate with a ABB/Baldor controller using Baldor's "Host Comms Protocol"  over a serial connection using Labview? i have Labview running on a laptop with RS232 connection, connected to an RS232 to RS485 converter, then RS485 to the Baldor controller's RS485 serial port.

 

Split Signals Ordering

$
0
0

I understand that you can use the SPLIT signals module to split multiple signals from a multi-channel DAQ Assistant. My question is, what is the ordering of the split signals? If a DAQ Assistant has 4 signals that are then split, does the signal that comes out in the highest output position correspond to Order 0 of the DAQ signals (and so on: next highest is Order 1...lowest is Order 3)? If not, what is the ordering?Capture.JPG

Viewing all 69758 articles
Browse latest View live


Latest Images

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