02-19-2016 01:00 AM
02-19-2016 01:05 AM
I am not trying to give control to the subvi, I am trying to give control to the main vi.
Basically I want my subvi to act just like creating a call library function. I want the user to interact with it and build their vi with it.
02-19-2016 01:15 AM
02-19-2016 01:20 AM
I understand what you are saying. The problem is I will have no control over what is in the main vi. If you mean make it so an input into my subvi takes a control that will have a reference in the subvi then I think we are saying the same thing in different ways
02-19-2016 01:21 AM
02-19-2016 01:29 AM
My application needs to do certain things to interact with my hardware. What I am trying to do is take the c code and basically create what is happening with my block diagram. A user would then be able to treat it like a function call by setting variables and looking at outputs. It would get a lot more complicated than this, but I hope you get the idea.
What you are suggesting would lead to multiple subvis inside a subvi.
02-19-2016 01:52 AM
What is wrong with multiple subVI's in a subVI?
Your code sounds like it is completely flipped inside out. The fact you are trying to recreate something that was written in C into LabVIEW is the first clue something is wrong.
If you want a black box function, that is what a subVI does. It has inputs, it does calculations, and it returns the results as an output when it ends.
02-19-2016 04:17 AM
If you're creating a LabVIEW wrapper/driver for a C-driver/DLL for an instrument or something, that's something that is worth doing but I have seen many examples where bad LabVIEW programmers have been asked to write LabVIEW wrappers for drivers and their implementations have been terrible and in some cases they have been locked so we ended up rewriting it from scratch.
Take a leaf out of the instrument driver book and wrap the individual functions that the instrument offers into LabVIEW VIs that someone can use in their VIs. Make sure they are well documented.
DAQmx is actually a pretty good example of what a LabVIEW driver should look like:
02-19-2016 04:09 PM
When I am trying to download DAQxm, it does not say that windows 10 is supported.
So you believe that creating an instrument driver is what I should be doing? I was just thrown off by the templates because it looked like it was creating a low level interaction between labview and the device. I do not need to implement how bits will be sent through a usb cable. Maybe you are able to guide me. The concept of what I am trying to do seems like it should be an instrument driver. I was looking at the labview help for creating a custom driver and I would basically need to get rid of all the VIs already in the driver.
02-19-2016 04:17 PM