06-05-2012 10:56 AM
Okay, here is part of the manual. On page 33 of the PDF there is another packet that has so error fixes I believe. There is one more packet like that, of error corrections, but I don't have it with me right now. I can upload it later on if you think we need it.
 Dennis_Knutson
		
			Dennis_Knutson
		
		
		
		
		
		
		
		
	
			06-05-2012 10:59 AM
Well, that is the generic format of a single packet. I'm not sure whether that is a read or write packet. It's clear that you will have to work in hex in order to send the correct sync codes, calculate the checksum, etc.
06-05-2012 11:07 AM
does labview accept hex as a string?
 Dennis_Knutson
		
			Dennis_Knutson
		
		
		
		
		
		
		
		
	
			06-05-2012 11:40 AM
You mean VISA. You can simply right click on a string control/constant and select Hex Display. You can also create a U8 array and use the Byte Array to String function. You can also use the Typecast function.
06-05-2012 12:05 PM
Is there a way to put muliple data entries of hex into the same string line? because I'm pretty sure that the code I need will have to be multiple characters all as a single command. or do I need to just do it each individually and set it up as one large VI?
 Dennis_Knutson
		
			Dennis_Knutson
		
		
		
		
		
		
		
		
	
			06-05-2012 12:27 PM
Of course you can have multiple characters in a single write. You were doing that with your writes to that GPIB instrument you were playing with. Totally irrelevant if the characters displayed are ASCII or HEX. They are just bytes being sent.
06-05-2012 12:29 PM
well when I changed it to hex it would not let me put spaces or press enter to distinguish between a different data entry.
 Dennis_Knutson
		
			Dennis_Knutson
		
		
		
		
		
		
		
		
	
			06-05-2012 12:43 PM
That is a slightly different question. Typically, for multiple entries/discrete commands, you would have a write for each. This is easily done with the Write inside a for loop and passing in an array of commands. Also, a carriage return/line feed/space are distinct hex characters and you would typically not randomly place them where you wanted. The instrument would not intrepret them as separators but as data (and invalid data at that).
06-05-2012 02:36 PM
Ok, I am still confused as to how I can draw out what I need from the maual in order to get a comand to work in Labview.
06-06-2012 12:25 PM - edited 06-06-2012 12:27 PM
nevermind