Does labview support dll which has sub functions that are static functions?
Dear all,
I wrote and compiled a C function into dll to be called by labview. The function calls a sub function. It works fine if it is a normal sub function. However I see that if I declare the sub function to be static, labview will crash. So is it that labview does not support static function in dll?
Best,
Miao
A static function simply means that it is local to the C module that defines it and can't be seen from other C modules in a library. It should not change anything else about how it works.
So in conclusion it should not make a difference in if it crashes or not but only create possible problems in linking the library. It seems extremely likely that you have another problem in your library that gets somehow triggered more easily when you compile your code with the static functions, but it should not have to do anything directly with the fact that you have static functions in itself.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions
Similar Messages
-
How does Labview support redundancy?
I have a control system and Labview will act as the means of control/monitoring. However, I want to have a primary and secondary computer with duplicate system setups. How does Labview support this type of redundancy such that if the primary goes down, the secondary will take control seamlessly.
Hi,
LabVIEW has many capabilities that can be combined to create a very robust redundant system. Some of these features include the following:
Archiving databases periodically
Monitoring a process on a remote machine
Executing an application on the backup when the primary has failed
The most straight forward method of implementing the monitoing is to use discrete memory tags to create a heartbeat. When the heartbeat on the Primary machine has stopped, the backup should take over and begin execution.
If you have specific questions about how to implement this, feel free to call support by going to www.ni.com/ask.
Regards,
Mike -
Does LabVIEW support the SNMP (Simple Network Management Protocol)?
I looked at LabVIEW 2014 online help for some info on SNMP.
A problem was posted in 1996 and updated in 2008.
Does LabVIEW Support the SNMP (Simple Network Management Protocol)?
http://digital.ni.com/public.nsf/allkb/4CD3625A939A77DE852564050047D3BD
This was addressed to LabVIEW version 4.
What version are we up to now?
Version 14?
One solution offered was to get the SNMP VI from Viodia.
Why should I have to spend another $1,000 for a VI from Viodia after spending $5,000 for LabVIEW Professional?
Come on National Instruments, offer up SNMP to go with your professional package.
There seems to be a lot of chatter about SNMP on the forums.
I’m sure a lot of customers would be happy to have an official LabVIEW VI for SNMP.I find it unreasonable to expect that LabVIEW supports out of the box every network protocol that has ever been invented under the sun. You may find SNMP to be the most important protocol on the world but for most programmers it is a niche protocol that they may have heard of but never will happen to come across in their applications. It's in fact pretty low level for a very specific purpose of managing network connected resources.
On the other hand it is not rocket science either so can be implemented by someone with enough determination on top of the native network interface functions in LabVIEW. Is it a lot of work? Yes, you bet! Is it worth 1000 bucks! If you really need it and your own work hours cost anything more than a few cents per hour, most probably too! If you can live with an implementation that is supporting many but not all features of SNMP, the link on LAVAG is a very good and nice one.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Hello,
Does LabView support a thin client or dumb terminal (diskless workstation) type of deployment? I have a need to run LabView on some sort of dumb terminal / diskless workstation. If someone has deployed LabView in this matter, please provide me all the details on how this was accomplished (software, hardware, etc.)
ThanksSorry, can't call you.
My first suggestion has nothing to do with LV. It is simply connecting as a remote client to the windows server and controlling the windows session on the server.
My second suggestion involved writing a program which will contact the PLCs directly using Modbus and get the data from them. As mentioned, you can find some Modbus client implementations for LV by searching the web (or, if you have LV 8 and the DSC module, I think it should come built in).
My third was writing 2 programs - one would run on the server and one on the client\s. The server program would be responsible for sending the data to the client and the client would be responsible for interacting with the user and sending the appropriate messages to the server. I already gave you pointers on what to search for (the example finder can be found by going to Help>>Find Examples and the site can be searched from the box at the top of the page, but make sure you don't search just the forums).
In both cases, you would need to design the program and the interface for the user.
Wi-Fi also has nothing to do with LV and is simply a way to form a wireless network. Any mobile device would almost definitely have support for it and buying an access point to form the wireless network is easy and cheap.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
Try to take over the world! -
Does LabVIEW support Mobile and Wireless Protocols?
Does LabVIEW support these protocols;
3G GSM PHS
4G HCSD TACS
CDMA HSDPA TDMA
CDMA2000 iDEN TD-SCDMA
EV-DO Mobitex UMTS
FDMA NMT WCDMA
GAN PCS WiDEN
GPRS PDC WiMAX
If it does (some or all) of these protocols, what do I need to install to get VIs supporting these protocols (I mean which packag/ toolkit etc contians supporting VIs/ functions etc)?
Thanks for your help!
Have a very pleasant day!Most of these protocals are OS-supported. LabVIEW doesn't have lower level interface VIs.
For instance LabVIEW doesn't build a TCP/IP stream with header and stuff, the OS TCP/IP stack deals with that stuff.
For testing the quality of such network there are special hardware (most PXI) and software solutions.
What is it that you want to achieve?
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
Metaprogramming - does LabVIEW support reflection?
Does LabVIEW support reflectivity in metaprogramming?
By this I mean, can LabVIEW programatically generate LabVIEW code? Can one write a VI whose output is other, new VIs?
I think this amounts to a question of whether there is a way to create data having the same type as VIs do, for example by writing binary files. I've looked at .vi files in a text editor, and there is not much I can make sense of.tst wrote:
Ben wrote:
Of course you may be the FIRST person to harness that critter.
Definitely not the first. NI created scripting so it could be used (for the vision builder, if memory serves) and use it they do. When you use LVOOP, for instance, you use scripting every time you create an accessor VI. I'm sure there are other places where it's used and it looks like NI is making it more organized. 8.6 has a folder of VIs which seem to translate XML into scripting commands. I haven't looked into this, but I assume this was done because it's used somewhere, not because NI felt like playing around.
What can I say?
Yep!
Ton wrote "(I always had the impression that at least this code makes usefull use of scripting) "
So NOW what can I say?
So little apetite, and so much humble pie to eat.
Ben
Message Edited by Ben on 01-05-2009 01:59 PM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Does LabVIEW support USB 2 interface?
I need to transfer data from the USB port 2 but I'm thinking of using LabVIEW for interfacing. Does LabVIEW support USB2?
Yes, you can talk to USB devices using the LabVIEW 7e VISA VIs (see the attached image of the VISA USB Function Palette).
Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.
Attachments:
VISA_USB_Function_Palette.gif 38 KB -
Does LabVIEW support Multi Document Format
Hi
I had a doubt that does LabVIEW support Multi Document Format like Microsoft Word, execel etc.
please reply me with some solution if anyone has
With Regards
AvniYes, I know very well what MDI is, I just don't know what Multi Document Format is
Programs like word, excel, etc support reading/writing of files in multiple formats (e.g. *.doc, *.rtf, *.txt, etc. for word or *.xls, *.csv, etc. for excel), so the question could be along these lines. I guess we have to wait for the original poster to come back to clarify.
LabVIEW Champion . Do more with less code and in less time . -
Does Labview Support a Hierarchical VHDL Instantiation into Labview Clip Nodes?
Hello,
Does Labview Support a Hierarchical VHDL Instantiation into Labview Clip Nodes?
I followed the available help, and called out the top-level VHDL in my XML file. Unfortunately, my lower level VHDL components are being read as a Black Box and I am getting an error during compile. So, what must I do to instantiate hierarchical VHDL code into a clip node?
Solved!
Go to Solution.Yes, but you need to include the paths to all of your VHDL files in your CLIP XML. This tells LabVIEW which source files to copy into the compilation directory. Here is an example (which assumes the source files are in the same directory as the XML):
<CLIPDeclaration Name="NI Example CLIP">
<FormatVersion>1.0</FormatVersion>
<CLIPVersion>1.0.0</CLIPVersion>
<HDLName>ExampleClip</HDLName>
<ImplementationList>
<Path>ExampleClip.vhd</Path>
<Path>SubComponent.vhd</Path>
<Path>Fifo32.ngc</Path>
<Path>ExampleClip.ucf</Path>
</ImplementationList> -
I found out after the install of LION, that it does not support Rosetta, which runs Quicken and the classic AOL software and a myriad of other apps.
Can I go back to Snow Leopard? Is there a way to retrieve my thousands of saved E mails, which are saved on my Mac?
I still see the filing cabinet with my screen name but cannot get them to open.
Please help! Lion may roar, but the fact it does not support apps like quicken means it purrs.I had the Apple store wiped out my hard drive and I restore my last hard drive downloard by first placing Snow leopard DVD in the DVD drive and holding "C" when turning on the machine then I follow the instructions. I am back on snow leopard and trying out two finance software to replace Quicken for mac 2007. I am trialing Quicken essentials and ibank. They are both compatable with LION. So when I am ready will download Lion again. Also, Micorsoft Office needs to be 2011 version for it to work on Lion
-
Does Microsoft support disks which have been converted from MBR to GPT with third-party tools?
Before opening a ticket with Microsoft to get the official response, does Microsoft support disks which have been converted from MBR to GPT with third-party tools?
We have various disks on Windows Server 2008 R2 fileserver cluster that are all MBR with various mount points added to overcome the 2TB limitation on MBR disks. Due to the time involved in physically moving the 30Tb+ of data to GPT disks, I would
like to investigate the option of a lossless conversion tool. Does anybody have any experience of these in production environments that could comment?
Any advice and details of experiences would be really appreciated!
CRM AdvisorHi,
Besed on my research, Microsoft supports a fileserver cluster if the disks have been converted from MBR to GPT using a third-party tool.
For more detailed information, please refer to the links below:
Convert MBR to GPT
https://social.technet.microsoft.com/Forums/en-US/3007346f-cf7b-4089-9628-36d394da8240/convert-mbr-to-gpt
Change a Master Boot Record Disk into a GUID Partition Table Disk
http://technet.microsoft.com/en-us/library/cc725671.aspx
Best Regards,
Mandy
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Can not create an object for my c# form dll which has an ActiveX control
I want to create an object in teststand for my C# form dll which has an ActiveX Control . but the error says ActiveX control can not be instantiated because the current thread is not in a single-threaded apartment. can someone help to solve the problem?
Thanks.Two options:
1) put the step in a subsequence and use the sequence call "New thread" option with the advanced setting "Use single-threaded Apartment". Put a wait step immediately after the sequence call to wait for the new thread.
2) Inside of your dll, using .NET APIs create a new thread initialized as STA and call your code from that. Have the original thread wait for the new thread to finish running your dialog code.
Hope this helps,
-Doug -
Error - No cookies
Your browser does not support cookies, which are required for this web server to work in session authentication mode
This is a NOSCRIPT PROBLEM and NOT a Firefox problem.......
when disabled it works JUST FINEError - No cookies
Your browser does not support cookies, which are required for this web server to work in session authentication mode
This is a NOSCRIPT PROBLEM and NOT a Firefox problem.......
when disabled it works JUST FINE -
"Calling functions that are in a class based DLL (MFC extention DLL)"
"Calling functions that are in a class based DLL (MFC extention DLL)"
"Calling functions that are in a class based DLL (MFC extention DLL)
I have a DLL written in VC++ using MFC exteintion DLL.
The functions are used to extract information from a hardware card.
eg.:
class AFX_EXT_CLASS WSDevice : public cAsyncSocket
This is a class in a DLL. There are a number of functions in this DLL that we need to call from Labview 5.0
How do we call these functions?
Normally (in VC++ /C++) we ceate a instance of this class like WSDeviceObj and use the function call :
WSDeviceObj.fucntion name
Kindly Help.
Satish Narayana"You can create a wrapper dll from which you can call your dlls functions.
Guidelines on how to create a dll that can communicate with LabVIEW are provided in the document "Using External Code in LabVIEW", which should be included with LabVIEW. You can download the document also from www.ni.com at:
http://digital.ni.com/manuals.nsf/web_productcurrent/4F1447F7CD83D6D88625690D00637CED?OpenDocument
Regards;
Vargas
www.vartortech.com -
I have a us account balance which has $10, is that possible transfer this amount to my Australia Apple account?
No, account balance's can't be transferred between account, nor can it be used to gift content to another content - you can only use it to buy items for yourself in the US store.
Maybe you are looking for
-
Help needed in Print List Archiving
Hi Experts, I have archiuved the Print or Spool List and I am able to see that in the OADR Transaction. While tring to open document from storage I am getting this error : <b>"Error calling application via OLE ALVIEWER.APP"</b>. What is the cause of
-
Windows XP FF 20.0 I have Adobe Acrobat X 10.1.6. and the plugin checker says its out of date. I don't think it is, it's just not Abobe Reader. I don't want to have both Acrobat and Reader. When I do, then there's two different plug-ins in FF, but th
-
How can I attach or insert a received email into another email?
Outlook allows you to attach an existing email from your inbox to a new email. How can this be done in Thunderbird? Copying and pasting the content does not include the date and time the email was sent.
-
I just upgraded to the iPhone 6 and before I delete my old phone, I want to make sure all my photos were in icloud, but I can't find them anywhere. Why? I know it may take weeks to download my 14,000 pics, but I want to make sure they're there.
-
Extending System Center Operations Manager Classes & Discovery SCOM 2007 R2
I want to add some additional attributes to SCOM that are populated from information in another database.....for example. I have a CMDB that contains information about the support level for each server (i.e. gold, silver, bronze), i want to be able t