06-18-2012 11:37 AM
I am confused as to how to complete this. What should I put in the false column to make it work? Or do I even need that false column?
06-18-2012 01:02 PM
I'm confused as to what you are attempting to do. You are not sending 0xAA even if you wire up the case statement (it's not a column) and you would simply wire a Boolean to the case statement if you wanted to do a single write or not. Also, you never wire the return count from a VISA Write to the byte count input of a VISA Read. You've completely ignored the previous advice about using the typecast function and you decided, for some reason, to use the Number to Hex String function instead. What exactly in the manual you posted are you attempting to send/receive?
06-18-2012 01:13 PM
Yeah I realized that was a dumb thing to do after I posted it. was about to go in and edit it. I am still trying to send the shutter structur
06-18-2012 02:30 PM
Place a numeric constant on your block diagram. Right click and select Representation>U8. Right click again and select Display Format>Hexadecimal. Right click again and select Show>Radix. Now drag that into an empty array constant. Enter your values for each element. Wire up a Byte Array to String Function.
06-18-2012 02:43 PM
Like this?
06-18-2012 03:13 PM
Overly complicated to use a Build Array instead of an array constant (Array palette) but it's all the same.
Since you are sending/reading hex, you do not want the termination character enabled with the VISA Configure Serial Port and I already told you not to wire the output of the VISA Write to the input of the VISA Read. That is just plain wrong!
06-18-2012 05:26 PM
ok, so we sent it and it did not work. We put a paper clip into port 2 and 3 of the serial cable so it would read us back exactly what we were sending (trick we learned from an engineer who knew labview that was in the building) and we got back
\AA\AA\n
so only the first 2 parts of the command is being sent. I don't know what to do from here.
06-18-2012 06:33 PM
06-19-2012 10:14 AM
I did change it, but going back now its turned back on. When ever I turn it off, and then run the program it just switches back on. How do I fix that?
We have it to be the numbe of bytes read (should) be equal to number of bytes written.
06-19-2012 10:44 AM
*I just went in and deleted the termination character within the serial configuration port. I don't know if this is too extreme, but it still didn't work.