Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help programming SEALEVEL USB 32IO model 8126.

I am trying to program a SeaDAC Lite model 8126. I had it working but had some changes. I am having some trouble with the variables. The number and what representation they should have. Here is a link for the Sealevel API http://www.sealevel.com/software/seamax/seadaclite_8126.html. when I try to import the DLL I configure them like i think they should be but i get errors from the device saying that it could not read VID or PID. I used NI visa wizard to create a visa that NI can use, and i am able to see it in NI MAX.. I did get it towork fine but was unable to save it so I lost the data.  So I am trying to redo my mistakes see if i can get it working again.. Another thing when I get the open working I get an invalid handle. SO PLEASE HELP ME.. I am a new user to Labview ... currently using version 8.6 ..

 

 

One thing is that the SM_HANDLE= void*

thanks

 

0 Kudos
Message 1 of 7
(5,063 Views)

Hello Ingenibro,

 

This sounds like you are trying to interface with a .dll which is more of a LabVIEW issue than a hardware issue.  I am not sure that this forum is the best location to get the help you need.  I am guessing that 1. The LabVIEW forum might find you more help and 2. that the error you are seeing is because you a passing a bad parameter to your .dll.  Please make sure that you know what you actually need to pass and that you are passing data in the proper data type.

 

Also, just so you know, NI-VISA is a driver that is used to interface with hardware, not dll's (software). 

ColeR
Field Engineer
0 Kudos
Message 2 of 7
(5,038 Views)

thanks for the heads up. I have contacted NI and the vendor SeaLevel. Seems that it is something with labview I have been having some issues with the visa where some times the computer device manager does not like the NI visa, making me have to reboot the computer, or reinstall the NI visa driver. I have checked also with the vendor, about the parameter and seems that they are fine the way that i have them. I had this program working previously and now seems that something is not working between the program and the hardware. I am thinking that there is some type of communications failure. I have also installed Snooper.exe, to monitor the interaction between the USB device and the program seeming since NI spy does no support RAW USB interaction. the only change that i have had was a change in labview from 8.6 to 2009. I dont have the option to purchase another USB device at the moment. So i was wondering if anyone has seen some similar way of programing it. I had gotten a sample VI from Sealevel and its pretty straight forward. that is why i have considered using the .dll file for programming.. if you want to take a look its attached to the forum. I have attached also a flow of what i want to do and also has the methos that the parameters are put in missing imported .dll vi's which was one thing that got messed up on the change of software.

Download All
0 Kudos
Message 3 of 7
(5,006 Views)

Hello Ingenibro,

 

I will recommend again to post this in the LabVIEW forum if you do not get much success here.  If this worked in one version of LabVIEW, but is no longer working, there are users and other employs here that would know a lot more of the intimate details of LabVIEW and can help you work through what might be happening.  As it is, you have a number of cascaded Call Library Nodes all calling to the same dll in the "SeaMAX" vi, and I am not completely sure, but I think you should be able to combine all of that into just one call library node by passing parameters in the Call Library Node.  Anyone else have thoughts on this?

 

Message Edited by ColeTrain on 11-19-2009 07:12 PM
ColeR
Field Engineer
0 Kudos
Message 4 of 7
(4,992 Views)
I understand that this is not the best place for something like this but its the fastest way to get people to see what i have been doing seeming that NI has a strange way of directing email to you engineers. I have been working with Will, Mike and the people at sealeve and i think that this is a good common ground where people can get the information the fastest .. I have tried several methods and at the point where this is getting boring and the challenging part of it is becoming frustration. I people at NI have been there most of the way and the only thing is that they dont have to product to see what is happening, I have been trying to get as much info to NI and SEALEVEL get things solved ... Well anyways i have made some snippents and some pictures in order to demostrate what i get. Like i said it seems that the .dll file is working correctly but i am not sure what the heck is going on and it seems that the parameter were wrong at the begining, but it seems that there is no communication between the program and the hardware.. but i am not sure how to test. I have used a program to see info being transfered between the hardware and software., but it seems there is nothing. only when you plug it in.. and that is only for a few seconds.. seeming that i can only add a few things i added the snippets to share info. Dot net example has  image included. i can also include the jpeg for the call node at request.. just let me know.
0 Kudos
Message 5 of 7
(4,967 Views)

Ok Sorry for the Delay Finally together with Sealevel, I finally have a complete program. There were several things that were wrong.

1. With the new version of NI MAX installed all my driver information was deleted. Which anyways resulted in me not needing it for this driver.

2. My fprogram was working correctly, but since I was using the wrong driver the software could not read or see the hardware.

3. Error check on the software created a conflict with the hard/software flow. So was removed and relied on .dll error checking.

4. Usb device flow must be correct. Timing is no issue unless there are time constraints, then add delays other wise try it will function at the speed that your computer lets you work.

5. Finally if you encounter an error whether it be hardware or software then you must. Then you must remember to unplug and replug device in, seeming that it will stall your program, if not shut it down.

 

 Thanks for the assistance from the ppl at NI and Sealevel. I have all of you to thank for helping me complete my program with the time constraints.

I will be adding all the required software with images to the forum in order to help anyone that might be lost for future reference.

0 Kudos
Message 6 of 7
(4,944 Views)
finally was able to get stuff posted the png is a vi snippet.. if you have any questions please let me know and i will get back to you as soon as possible. Thanks for everyones help..
0 Kudos
Message 7 of 7
(4,895 Views)