04-20-2016 10:35 AM
Hello, I am trying to use NI USB-6009 to send out an output voltage to a pulse generator as well as timing a camera on a microscope so that the picture is taken from the microscope when the pulse is generated.
So far I have this created on the VI
Inside the DAQ, I have an error of 50103.
If anyone could provide help on how to structure my VI or how to get rid of the error code, that would be most helpful. thank!!!
04-20-2016 10:49 AM
When you put a picture of your code and ask for help, we can't "probe" the picture and see what is "hidden". For example, we cannot tell how your Express VI is configured. What I can tell you is that the Sequence frame is unnecessary.
What kind of output are you attempting? Analog Out or Digital Out? I assume you know that Analog Out capabilities of the 6009 are quite limited -- update rate is less than 200Hz.
I could not find an Error description for 50103 or -50103.
To get more useful help, attach your actual VI to your next post.
Bob Schor
04-20-2016 10:49 AM
The Error: http://digital.ni.com/public.nsf/allkb/485201B647950BF886257537006CEB89
You will find that the example finder will help with many problems on how things can be done.
Help - Find Example
Hardware Input and Output - DAQmx - Analog Output
04-20-2016 10:51 AM
04-20-2016 02:34 PM
@NoClue2016 wrote:Inside the DAQ, I have an error of 50103.
That error code means "The specified resource is reserved. The operation was completed by ignoring or overriding the specified resource." This is likely caused by you not releasing the resource. There should be a "Stop" input on the DAQ Assistant. Make sure your stop botton is wired to that.
Otherwise, make sure nothing else is using the DAQ.
04-25-2016 10:27 AM
Hello all, sorry for the delay, I work M/W on this project only.
I do appologize for any trouble caused, I am very new with labview.
I am using ANALOG, and I dont believe most of the error cases effect me (at least to my limited knowledge), how do i give the actual VI?
I have also gone ahead and wired the Stop button, but still have an error.
04-25-2016 10:30 AM
When you post a Reply, you should see just below the space where you are typing something called "Attachments" (in bold letters). Click "Choose File", navigate to your VI, click it, and it will be "attached" when you Post your reply. Then we can look at it and better understand your question and can provide helpful and relevant responses.
Bob Schor
04-25-2016 10:33 AM
Here is what I have, its not much, let me know how best to continue.
04-25-2016 02:39 PM
You obviously changed something in the DAQ Assistance between the Picture you posted and the VI. I plugged my USB-6009 (which is called by MAX "USB-6009" rather than "Dev1") into my PC. I then modified your code very slightly, to look like this:
I wired the Stop button to the While Stop, wired some data (a random number) to the Data input, wired a Constant to the Device input (it was initially blank, but then I clicked the little triangle and it showed me the Devices that MAX could see, including the USB-6009, which I'd named "USB-6009").
When I push Run, it runs. I don't have anything hooked up to the output of my USB-6009, so I can't tell if it is actually doing anything, but it isn't crashing ...
Bob Schor
P.S. -- what you see, above, is a LabVIEW Snippet. It looks like a picture, but if you have a (blank) Block Diagram open and drag this "picture" into it, it will become code due to NI Magic. You can tell it's a Snippet by the little "2014" in the upper-right corner.