Quantcast
Channel: LabWindows/CVI topics
Viewing all 5339 articles
Browse latest View live

UI editor status issue

$
0
0

Hello,

 

I made the following observation when using the UI editor (CVI2015):

 

Let's say I have a panel and a LED control (it's the same behavior for other controls). If no control is selected the status line of the UI editor shows PANEL (and in the next field the size of the panel).

 

UI editor.png

 

If I click on the LED, the name (constant) of the LED is indicated in the status line of the UI editor, for example, the status now says PANEL_LED (and the position of the control next to it).

Now I double click on the LED to check/edit some values, and then I leave this popup panel using either OK or Cancel. The control is still selected, but now the status line of the UI editor does not show the constant name of the selected control anymore but PANEL...

 

I feel that this could be improved Smiley Wink

 

 


Excel not launching using excelreport.fp

$
0
0

Hello,

 

I have an odd bug. I am using excelreport.fp to open an Excel application for reading.

This works 95 percent of the time, except every now and then Excel will freeze or hang up.

I have to close my application and manually terminate the Excel process in order to recover.

I found the issue by stoping during debug and the code is stuck on Excel function.

 

I am trying to reproduce the error now, but it decided to work today. But I know the hang up is in one of these lines from a past debug:

 

    ExcelRpt_ApplicationNew (VFALSE, &applicationHandle);    
    ExcelRpt_WorkbookOpen (applicationHandle, supp_language.filepath, &workbookHandle);
    ExcelRpt_GetWorksheetFromIndex (workbookHandle, 1, &worksheetHandle);

 

I am pretty sure the issue occurs and freezes on WorkbookOpen, but since I can't repeat it on demand I can't be 100% sure.

 

Anyone else experience issues opening Excel using excelreport.fp?

Am I perhaps just using Excel before it is ready?

Is there an Excel timeout to generate a failure so that I am not stuck in an infinite loop?

 

Thanks.

Does Labwindows CVI version 10.0 program written in windows XP work in Windows 7

$
0
0

Hello,

 

I have written a LABWINDOWS CVI version 10.0 program in the Windows XP enviroment. The program communicates

via Ehternet interface with NI cDAQ-9188.

Can I use the same program in the Windows 7 environment?

 

Thanks

 

Bobby

 

 

Set Ctrl value using Ctrl constant name

$
0
0

Hi,

 

Only the UIR Ctrl constant name know when my aplication is running. I need to change some UIR Ctrl value based on the constant name.

I need the Ctrl ID to able to change the Ctrl value as far as I know.

 

 - Is there any function to get the UIR Ctrl ID from constant name?

 - Is there any function in CVI like Evaluate() in TestStand, so I could get the CTRL ID specified in a string (PANEL_CONSTANTNAME)?

 

Is there any other way to set a UIR Ctrl value using Ctrl constant name instead of the Ctrl ID?

Thanks!

BaseCam SimpleBGC 32-bit controller AND ARDUINO CONNECTED TO LABVIEW?

$
0
0

Hello i am working on a school project: i want make cartography of region with airplane.

I want to buy the EAGLE EYE gimbal with BaseCam SimpleBGC 32-bit controller (system_2) and work with an ARDUINO or PC card (system_1) conected to GPS module.

The CANON 600D has to be gyrostabilized. Pictures need to be georeferenced.

Is it possible to connect the BaseCam SimpleBGC 32-bit controller to LABVIEW (computer) and give commands to it and receive information's captors in live in LABVIEW software?

Is it possible to connect an Arduino card (which model?) to LABVIEW and work on LABVIEW software in order to programm the ARDUINO and also read in real time the informations?

Thank you very much. I really need help.

links for BaseCam SimpleBGC 32-bit controller:

http://www.basecamelectronics.com/simplebgc32bit/

http://www.basecamelectronics.com/serialapi/

Interfacing with launched executable in STDIO?

$
0
0

After some searching, I don't think I've found a forum response that addresses my issue.  Hopefully, I did not overlook something.

 

I have a LabWindows CVI tool that needs to interface (read from / write to) a launched executable on STDIO.  Unfortunately, I'm unable to modify the aforementioned executable and must use it as is.  

 

Launching the executable from LabWindows seems OK.  I use the following command:

 

err = LaunchExecutableEx("cmd /c test  -i InputCommands.ini", LE_SHOWNORMAL, &testHandle);

 

This "test.exe" gets initialized by "InputCommands.ini" and outputs a line of status information every second.  Ideally,  I would like to:

 

- monitor (read from STDO) the status

- based on read data, determine when to quit the test (write to STDI) 

- record (read from STDO) the final status data.  

 

I've seen many suggestions for redirecting Standard Output to a file from which I could simultaneously read and monitor.  I've tried the redirection portion with the following command.  This definitely redirects the output, but leaves me with the problem (1.) I describe below.

 

err = LaunchExecutableEx("cmd /c test  -i InputCommands.ini > output.txt", LE_SHOWNORMAL, &testHandle);

My points of frustration are:

1. How do I send commands to this launched executable telling it to stop?  I need to send 'q' followed by 'quit' to the program to stop the executable.  

printf("q\n");

This method sends a 'q' to STDIO, which the launched executable blissfully ignores.  It seems like I'm missing the obvious, which is no doubt true...

 

2. Is there some way to directly read the Standard Output without the interim step of redirecting to a file?

 

I appreciate the thoughts.

Designing a java swing GUI for calculating kinematic

$
0
0
Need help in designing a Java GUI for calculating newton's kinematic.

cvi 2013 and win 10

$
0
0

Hi,

 

I know that CVI 2013 and Win 10 are not officially compatible, but as I upgraded to Win 10 I'm now using CVI 2013 with Win 10.

 

At the beginning everything was fine. I could run without any problem my projects.

But when I wanted to build a release version I ran in some troubles. The project builds correctly but then CVI hangs and never displays the uir of the project. I have then to stop CVI and restart it.

 

I then tried to create a new project just with a button close and I got the same behavior.

 

Has someone an idea what could be the reason of this issue?

 


Simplest way to draw a vertical line on panel

$
0
0

Hi

I'm wondering what's the simplest way to draw a vertical line? Could you give me an example?

 

Thanks

Compiling error on ssize_t

$
0
0

 

Hi,

 

I'm rookie on the Labwindow cvi. Just followed through the traning material "Getting Started".

 

Almost completed chaper 3  and encountered an error on c source codes.

 

c surce code

   SinePattern (100, amp, 180.0, 2.0, sine);

 

Build output window shows

 sample2.c - 1 error
  86, 25    error: called object type 'ssize_t' (aka 'int') is not a function or function pointer

 

Have changed either " ssize_t" or " size_t" but still  having debugging error.

 

Need advice here.

 

Many thanks.

imaqdx error 0x80040217

$
0
0

Hello,

 

I use NI MAX to check usb camera, but when I click Ni MAX SNAP or GRAB, then an error


"IMAQdx error 0x80040217"


I use windows 8.1 x64.


How to correct it..

Opening a new window too small

$
0
0

Hi

I have a button on main GUI, when user click this button, a new window pop up but it's pretty small, how to specify the new

window size?

Thanks

How to activate a panel in console app?

$
0
0

Hi all!

I'm pretty sure it's a little stupid thing, but I didn't found out:

I'm looking for some ugly bugs in my app. To get some information while running the app in release mode, I build it as a console app and write debug infos to the console window. So far, so good. My problem is now,  if I bring any other app to front by clicking on the task bar, the panel of my app goes to the background, and I can't bring it to the foreground again, because clicking the task bar icon brings only the console window to front. The panel stays in the background.

So, how can I bring the panel to front by clicking the task bar icon?

 

Best,

Thomas

Circular Buffer on cRIO USB drive

$
0
0

Hello,

I'm wondering if it is possible streaming of data to a memory connected to cRIO 9063 USB connector.

My application currently streams data to a circular buffer implemented in Pc Host, using Network Streams. I need data of 24 channels sampled at 250 Hz for half an hour. This because sometimes the trigger condition is given from a web service which is updated every 20 minutes giving the timestamp of the event. So I use the timestamp to search data in the buffer and extract it from there. 

This cannot be carried out by 9063. I would remove Pc Host from my application and use USB memory. Is it possibile? I'm looking for an example but it seems there are no examples on the web.

KR

Davide

 

missing "mesa.dll" on CVI 2015 project install

$
0
0

I built my project with the new 2015 CVI.  I pushed this out to my customer and had them install it.  All did not go well.

 

They reported back to me that the they are seeing the mesa.dll error and the app doesn't open:

 

2015-11-20 14_06_32-Inbox - rob.lund@thermofisher.com - Microsoft Outlook.png

 

I've seen this talked about a lot here, but so far having the customer manually install the freshest copy of MS Visual C++ Redistributable hasn't worked either.

 

I've had them uninstall and reinstall.  Customer's machine is Windows 7, 64 bit CPU, 4GB RAM.  My distribution setup is all configured for 32-bit.

 

Strangely, (of course) when I install this same package on a local computer, it all works without errors.

 

Any ideas I haven't thought of?


How to use PCIe 6351 to trigger PCIe 1427?

$
0
0

Hi all,

   I am writing an imaging application that needs to use the PCIe 6351 (DAQmx) to trigger PCIe 1427 which is an IMAQ board. I have browsed through the DAQmx and there is a way to route a PFI line to the RTSI. And there is a RTSI port on the PCIe 1427 as well. However, I have read that PCIe 1427 supports only external trigger. My question is how can I route one of the external trigger of PCIe1427 to the RTSI port?

  A further question would be, since I am sending a specific analog waveform out of the PCIe 6351, I want to have a digital pulse from the PCIe6251 at a specific point of the waveform sent via the RTSI to trigger the PCIe 1427, should I write a separate array to the PFI line routed to the RTSI? 

  Thank you very much!

 

- Kyle

Generate function tree bug

$
0
0

Hello all,

I just found a small bug in the [Tools][Generate function tree].

If you have comment separators like that:

///////////////////////////////////////////////////////////

It gives you 'Unrecognized tag'.

I guess it sees /// and expects HIFN and such documentation tags to pre-generate the list of functions and parameters in the FP.

A simple workaround is to add a space after the 2nd slash.

But what am I doing debugging on a saturday while it's snowing outside... Gotta go skiing...

Xeon phi

$
0
0
Is there a way to use the intel xeon phi cards with labwindows?
These cards are becoming cheaper and support the I86 architecture.
Is ther a driver that could be used to run openMP commands on these cards?

Saving new exe file for existing program

$
0
0

Hello,

 

My name is Haim and I'm mechanical engineering student, who had recently started using CVI.

I have  a program called 'XYZ' and all it files including the exe is called the same.

I know there is a way using the save is... to save new uir, c and project files,

But, is there any way to save a new exe file'ZYX' (for example), so that any time i will run the program in CVI (including debugin),

it will generate the new exe?

 

Thanks in advance

Haim

Sudden "File access permission denied."

$
0
0

Hi all!

I use the .ini-Toolbox to save measurement data together with the related settings. To limit the size of the files, every hour a new file is generated. Everything works very well, BUT, after 30-35 hours, the Ini_WriteToFile function returns me an -95 "File access permission denied." error. The file seems not to be opened, because I can open him with a editor.

Any ideas out there?

It's pretty hard to figure out what's wrong because I always have to wait 30-35 hours until the error occurs.

Viewing all 5339 articles
Browse latest View live


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