Test and Measurement Forum

Getunitinfo

Post your LabVIEW discussions here

Getunitinfo

Postby roastmeat » Wed Dec 19, 2012 4:51 pm

Hey,

I need to get the serial number from the Picoscope 2200 and I have tried using the property node.
When the node is run, there is an error 1097, which I believe is because I have not set it up properly.

After selecting the dll and get_Unit_Info function, here is how the parameters tab looks:

strlen: Numeric, 16bit int
handle: Numeric, 16bit int, pass Value
String: String, C String Pointer, minimum value - string_length
string_length: Numeric, 16bit int, pass Value

I wire up the handle, blank string constant, and a 256 int constant on the left
on the right I wire up a string output to an indicator

I am kind of new at property nodes
Am I doing something wrong?

Thanks
roastmeat
Newbie
 
Posts: 0
Joined: Thu Oct 18, 2012 12:24 am

Re: Getunitinfo

Postby Martyn » Thu Dec 20, 2012 1:28 pm

Your problem is probably the blank string constant.

Can you try creating a string, " ", containing as many spaces as the number of characters you expect to read back, and then pass this to the driver.
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2653
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to LabVIEW

Who is online

Users browsing this forum: No registered users and 0 guests