08-27-2008 09:56 PM
Well, is the vendor provided application running at the same time? I'm also assuming that you used the Import>Shared Library in order to create the Call Library Function Nodes. Lacking the hardware and the BioGraph application to run, I don't know how much help I or anyone else can be. You need to localize where the error is being generated. I don't think you need to be running all of that code in a constant loop. Start with something simple such as the connect function and make sure the BioGraph app is running when you try this.
The api is a com interface (ActiveX) and does not require that you run the BioGraph app at the same time. This gives you more control but may take more time to implement. You would use the Connectivity>ActiveX functions for the api. First an Automation Open and then appropriate Properties and Methods.
09-08-2008 10:26 PM - edited 09-08-2008 10:31 PM
Hi Dennis,
According to your guide, I try to make my vi, but I got some problem..I do not know how to start.Can you give me an example or an idea on that?
Thanks
09-09-2008 11:18 PM
Hello,
As Dennis mentioned, you can use the ActiveX VIs. You will need to use Automation Open and specify the reference for your instrument, and you can use the Property Nodes and Invoke Nodes to call specific properties or methods from your API. Which part specifically are you looking for help with.
You can look at LV Help documentation to get more understanding:
09-14-2008 11:05 PM - edited 09-14-2008 11:07 PM
09-16-2008 12:12 PM
Hi Orchid,
I looked at your VI and have a few questions.
09-16-2008 08:59 PM
Hi Karunya_R,
Yes, I am looking the output from the graph.. Then, I try to see with an array too..
What do you mean by the second question? I am using the property node to acquire the EEG signal from the third party hardware.
Here I attach the problem that I am facing now. Is it possible to use while loop to acquire the signal? Do anyone have a suggestion?
Thanks
09-17-2008 12:44 PM
Let me butt back in. You are obviously not getting any data back. The number of samples available is 0. That says to me that you are missing something in the configuration of the instrument. Either you need another method/property or you need to change something about the ones you are currently using. See if the vendor has any example code in any language. The property/method names will be the same and perhaps someone can help you translate the code into LabVIEW.
p.s. Your conversion of the scalar to an array is just silly. Even if you got data back, all that you would ever see in your graph is a single point. If you want to plot over time, just wire the scalar to a chart. If you really want to use a graph, then you could use a shift register with a build array function (two inputs - the shift register aray and the new scalar). First though, you need to get data.
09-21-2008 09:56 PM
Maybe is it true that I have missing something or need to change something, but I do not know to figure it out. I think my problem now is regarding to the notification property. The property have 2 type (put/get). Before this, I am using get function, then when I try to use put function, I still get the sample available value 0. Here I attach the block diagram. Please look at it and give me any idea to solve this problem.
Thanks
09-21-2008 10:13 PM
Here I attach the Notification property
property [read/write] LONG TTLLive::Notification[LONG liChannelHND]
Description : This property controls the issuing of TTLAPI_WM_ON_CHANNEL_DATA notification messages associated with the specified channel. A positive value enables notification and specifies the number of samples that need to be already buffered before TTLAPI sends a notification messages to the client. A zero value inhibits notification for the specified channel. Parameter : Valid channel handle. Possible property values: nonnegative integer. Default: zero (inactive)