LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 1097 in call library function

In labview VI. zip FILE  which i sent in message 28 . In VIDriver3 . vi , can any one tell me how to write pdata(in) byte wise?

 

Stacked sequence structure number 1 for write

 

"I mean to say that first i want to send  hex code to the controller of my usb daq card indicating that i am using pwm output channel ,then second time , in the second byte, i want to send the number of pwm channel on which i have to send some value.  After that i want to write 10 bit pwm value on the channel which i selected in 3rd and 4th bytes repectively. "

 

After all of the above process the pic controller in usb daq card will send the same code which i sent before.

 

Stacked sequence structure number 2 for Read

Now tell me how i can read the code from pdata and confirm that this is the code which i sent before?

 

One more Question is that how i can read analog inputs from daq card by using pdata and display them on front panel?

0 Kudos
Message 31 of 34
(844 Views)

Hi Simon.
What about the VIs in message #28?
Can these VIs perform read and write operations?
Or do they just execute and nothing happens at all? I cannot take from your words, that they work as expected.
It seems to me, that these VIs are just fakes.
Why do they execute on my computer without any errors?
Sorry, but I am too tired after two very long days to ... tomorrow hopefully comes a better day.
Message 32 of 34
(841 Views)

Hi Guenter Mueller

 

These VIs perform the basic usb operations like 1) usb open 2) usb close 3) usb read 4) usb write . As i mentioned before in my post that these VI communicate with my usb daq  card but the VI stops within 2 seconds . I think that they are not fake because these VIs return some  value of return (read) , return (write) , handle and plength values. but my question remains the same as in message no.28 and onwards messages.

 

Any one new to this can help me by looking from meassage 28 to onwards. For helping me you have to read the code of the functions which i mentioned before in my post. You can find the code  in mhsdlldef.zip in mhs.cpp in message no.17.

 

Thanks

Message Edited by mhs100 on 10-21-2009 12:59 AM
0 Kudos
Message 33 of 34
(827 Views)
Waiting for anyone's help.
Message Edited by mhs100 on 10-21-2009 07:39 AM
0 Kudos
Message 34 of 34
(819 Views)